[2025-04-02 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:00:07 [end_date_ymd] => 2025-04-02 00:00:07 [RateCDR] => 1 ) [2025-04-02 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:00:07' and `end` < '2025-04-02 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:00:20] Production.INFO: count ==974 [2025-04-02 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-01 21:00:07 - End Time 2025-04-02 00:00:07 [2025-04-02 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814361', 'tblTempUsageDetail_20' ) start [2025-04-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814361', 'tblTempUsageDetail_20' ) end [2025-04-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814361', 'tblTempVendorCDR_20' ) start [2025-04-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814361', 'tblTempVendorCDR_20' ) end [2025-04-02 00:00:20] Production.INFO: ProcessCDR(1,14814361,1,1,2) [2025-04-02 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814361', 'tblTempUsageDetail_20' ) start [2025-04-02 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814361', 'tblTempUsageDetail_20' ) end [2025-04-02 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:00:25] Production.INFO: ==3549== Releasing lock... [2025-04-02 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:00:25] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:01:06 [end_date_ymd] => 2025-04-02 00:01:06 [RateCDR] => 1 ) [2025-04-02 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:01:06' and `end` < '2025-04-02 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:01:19] Production.INFO: count ==571 [2025-04-02 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-01 21:01:06 - End Time 2025-04-02 00:01:06 [2025-04-02 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814366', 'tblTempUsageDetail_20' ) start [2025-04-02 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814366', 'tblTempUsageDetail_20' ) end [2025-04-02 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814366', 'tblTempVendorCDR_20' ) start [2025-04-02 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814366', 'tblTempVendorCDR_20' ) end [2025-04-02 00:01:20] Production.INFO: ProcessCDR(1,14814366,1,1,2) [2025-04-02 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814366', 'tblTempUsageDetail_20' ) start [2025-04-02 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814366', 'tblTempUsageDetail_20' ) end [2025-04-02 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:01:25] Production.INFO: ==3677== Releasing lock... [2025-04-02 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:01:25] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:02:06 [end_date_ymd] => 2025-04-02 00:02:06 [RateCDR] => 1 ) [2025-04-02 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:02:06' and `end` < '2025-04-02 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:02:19] Production.INFO: count ==564 [2025-04-02 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:02:06 - End Time 2025-04-02 00:02:06 [2025-04-02 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814371', 'tblTempUsageDetail_20' ) start [2025-04-02 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814371', 'tblTempUsageDetail_20' ) end [2025-04-02 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814371', 'tblTempVendorCDR_20' ) start [2025-04-02 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814371', 'tblTempVendorCDR_20' ) end [2025-04-02 00:02:19] Production.INFO: ProcessCDR(1,14814371,1,1,2) [2025-04-02 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814371', 'tblTempUsageDetail_20' ) start [2025-04-02 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814371', 'tblTempUsageDetail_20' ) end [2025-04-02 00:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:02:24] Production.INFO: ==3750== Releasing lock... [2025-04-02 00:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:03:05 [end_date_ymd] => 2025-04-02 00:03:05 [RateCDR] => 1 ) [2025-04-02 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:03:05' and `end` < '2025-04-02 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:03:18] Production.INFO: count ==566 [2025-04-02 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:03:05 - End Time 2025-04-02 00:03:05 [2025-04-02 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814376', 'tblTempUsageDetail_20' ) start [2025-04-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814376', 'tblTempUsageDetail_20' ) end [2025-04-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814376', 'tblTempVendorCDR_20' ) start [2025-04-02 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814376', 'tblTempVendorCDR_20' ) end [2025-04-02 00:03:18] Production.INFO: ProcessCDR(1,14814376,1,1,2) [2025-04-02 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814376', 'tblTempUsageDetail_20' ) start [2025-04-02 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814376', 'tblTempUsageDetail_20' ) end [2025-04-02 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:03:23] Production.INFO: ==3824== Releasing lock... [2025-04-02 00:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:03:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:04:06 [end_date_ymd] => 2025-04-02 00:04:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 21:04:06' and `end` < '2025-04-02 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-04-02 00:04:19] Production.INFO: count ==559 [2025-04-02 00:04:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:04:06 - End Time 2025-04-02 00:04:06 [2025-04-02 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814381', 'tblTempUsageDetail_20' ) start [2025-04-02 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814381', 'tblTempUsageDetail_20' ) end [2025-04-02 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814381', 'tblTempVendorCDR_20' ) start [2025-04-02 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814381', 'tblTempVendorCDR_20' ) end [2025-04-02 00:04:19] Production.INFO: ProcessCDR(1,14814381,1,1,2) [2025-04-02 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814381', 'tblTempUsageDetail_20' ) start [2025-04-02 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814381', 'tblTempUsageDetail_20' ) end [2025-04-02 00:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:04:23] Production.INFO: ==3896== Releasing lock... [2025-04-02 00:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:04:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:05:05 [end_date_ymd] => 2025-04-02 00:05:05 [RateCDR] => 1 ) [2025-04-02 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:05:05' and `end` < '2025-04-02 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:05:32] Production.INFO: count ==562 [2025-04-02 00:05:33] Production.ERROR: pbx CDR StartTime 2025-04-01 21:05:05 - End Time 2025-04-02 00:05:05 [2025-04-02 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814386', 'tblTempUsageDetail_20' ) start [2025-04-02 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814386', 'tblTempUsageDetail_20' ) end [2025-04-02 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814386', 'tblTempVendorCDR_20' ) start [2025-04-02 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814386', 'tblTempVendorCDR_20' ) end [2025-04-02 00:05:33] Production.INFO: ProcessCDR(1,14814386,1,1,2) [2025-04-02 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814386', 'tblTempUsageDetail_20' ) start [2025-04-02 00:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814386', 'tblTempUsageDetail_20' ) end [2025-04-02 00:05:36] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:05:36] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:05:36] Production.INFO: ==3975== Releasing lock... [2025-04-02 00:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:05:36] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:06:06 [end_date_ymd] => 2025-04-02 00:06:06 [RateCDR] => 1 ) [2025-04-02 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:06:06' and `end` < '2025-04-02 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:06:30] Production.INFO: count ==546 [2025-04-02 00:06:30] Production.ERROR: pbx CDR StartTime 2025-04-01 21:06:06 - End Time 2025-04-02 00:06:06 [2025-04-02 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814391', 'tblTempUsageDetail_20' ) start [2025-04-02 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814391', 'tblTempUsageDetail_20' ) end [2025-04-02 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814391', 'tblTempVendorCDR_20' ) start [2025-04-02 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814391', 'tblTempVendorCDR_20' ) end [2025-04-02 00:06:30] Production.INFO: ProcessCDR(1,14814391,1,1,2) [2025-04-02 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814391', 'tblTempUsageDetail_20' ) start [2025-04-02 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814391', 'tblTempUsageDetail_20' ) end [2025-04-02 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:06:34] Production.INFO: ==4049== Releasing lock... [2025-04-02 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:06:34] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:07:05 [end_date_ymd] => 2025-04-02 00:07:05 [RateCDR] => 1 ) [2025-04-02 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:07:05' and `end` < '2025-04-02 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:07:26] Production.INFO: count ==540 [2025-04-02 00:07:27] Production.ERROR: pbx CDR StartTime 2025-04-01 21:07:05 - End Time 2025-04-02 00:07:05 [2025-04-02 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814396', 'tblTempUsageDetail_20' ) start [2025-04-02 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814396', 'tblTempUsageDetail_20' ) end [2025-04-02 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814396', 'tblTempVendorCDR_20' ) start [2025-04-02 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814396', 'tblTempVendorCDR_20' ) end [2025-04-02 00:07:27] Production.INFO: ProcessCDR(1,14814396,1,1,2) [2025-04-02 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814396', 'tblTempUsageDetail_20' ) start [2025-04-02 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814396', 'tblTempUsageDetail_20' ) end [2025-04-02 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:07:30] Production.INFO: ==4119== Releasing lock... [2025-04-02 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:07:30] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:08:06 [end_date_ymd] => 2025-04-02 00:08:06 [RateCDR] => 1 ) [2025-04-02 00:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:08:06' and `end` < '2025-04-02 00:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:08:30] Production.INFO: count ==541 [2025-04-02 00:08:30] Production.ERROR: pbx CDR StartTime 2025-04-01 21:08:06 - End Time 2025-04-02 00:08:06 [2025-04-02 00:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814401', 'tblTempUsageDetail_20' ) start [2025-04-02 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814401', 'tblTempUsageDetail_20' ) end [2025-04-02 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814401', 'tblTempVendorCDR_20' ) start [2025-04-02 00:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814401', 'tblTempVendorCDR_20' ) end [2025-04-02 00:08:30] Production.INFO: ProcessCDR(1,14814401,1,1,2) [2025-04-02 00:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814401', 'tblTempUsageDetail_20' ) start [2025-04-02 00:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814401', 'tblTempUsageDetail_20' ) end [2025-04-02 00:08:34] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:08:34] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:08:34] Production.INFO: ==4191== Releasing lock... [2025-04-02 00:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:08:34] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:09:05 [end_date_ymd] => 2025-04-02 00:09:05 [RateCDR] => 1 ) [2025-04-02 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:09:05' and `end` < '2025-04-02 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:09:27] Production.INFO: count ==543 [2025-04-02 00:09:27] Production.ERROR: pbx CDR StartTime 2025-04-01 21:09:05 - End Time 2025-04-02 00:09:05 [2025-04-02 00:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814406', 'tblTempUsageDetail_20' ) start [2025-04-02 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814406', 'tblTempUsageDetail_20' ) end [2025-04-02 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814406', 'tblTempVendorCDR_20' ) start [2025-04-02 00:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814406', 'tblTempVendorCDR_20' ) end [2025-04-02 00:09:27] Production.INFO: ProcessCDR(1,14814406,1,1,2) [2025-04-02 00:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814406', 'tblTempUsageDetail_20' ) start [2025-04-02 00:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814406', 'tblTempUsageDetail_20' ) end [2025-04-02 00:09:31] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:09:31] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:09:31] Production.INFO: ==4264== Releasing lock... [2025-04-02 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:09:31] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:10:07 [end_date_ymd] => 2025-04-02 00:10:07 [RateCDR] => 1 ) [2025-04-02 00:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:10:07' and `end` < '2025-04-02 00:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:10:20] Production.INFO: count ==548 [2025-04-02 00:10:20] Production.ERROR: pbx CDR StartTime 2025-04-01 21:10:07 - End Time 2025-04-02 00:10:07 [2025-04-02 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814412', 'tblTempUsageDetail_20' ) start [2025-04-02 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814412', 'tblTempUsageDetail_20' ) end [2025-04-02 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814412', 'tblTempVendorCDR_20' ) start [2025-04-02 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814412', 'tblTempVendorCDR_20' ) end [2025-04-02 00:10:20] Production.INFO: ProcessCDR(1,14814412,1,1,2) [2025-04-02 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814412', 'tblTempUsageDetail_20' ) start [2025-04-02 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814412', 'tblTempUsageDetail_20' ) end [2025-04-02 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:10:24] Production.INFO: ==4338== Releasing lock... [2025-04-02 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:11:05 [end_date_ymd] => 2025-04-02 00:11:05 [RateCDR] => 1 ) [2025-04-02 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:11:05' and `end` < '2025-04-02 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:11:18] Production.INFO: count ==545 [2025-04-02 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:11:05 - End Time 2025-04-02 00:11:05 [2025-04-02 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814417', 'tblTempUsageDetail_20' ) start [2025-04-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814417', 'tblTempUsageDetail_20' ) end [2025-04-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814417', 'tblTempVendorCDR_20' ) start [2025-04-02 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814417', 'tblTempVendorCDR_20' ) end [2025-04-02 00:11:18] Production.INFO: ProcessCDR(1,14814417,1,1,2) [2025-04-02 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814417', 'tblTempUsageDetail_20' ) start [2025-04-02 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814417', 'tblTempUsageDetail_20' ) end [2025-04-02 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:11:22] Production.INFO: ==4410== Releasing lock... [2025-04-02 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:11:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:12:06 [end_date_ymd] => 2025-04-02 00:12:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 21:12:06' and `end` < '2025-04-02 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-04-02 00:12:18] Production.INFO: count ==538 [2025-04-02 00:12:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:12:06 - End Time 2025-04-02 00:12:06 [2025-04-02 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814422', 'tblTempUsageDetail_20' ) start [2025-04-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814422', 'tblTempUsageDetail_20' ) end [2025-04-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814422', 'tblTempVendorCDR_20' ) start [2025-04-02 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814422', 'tblTempVendorCDR_20' ) end [2025-04-02 00:12:19] Production.INFO: ProcessCDR(1,14814422,1,1,2) [2025-04-02 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814422', 'tblTempUsageDetail_20' ) start [2025-04-02 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814422', 'tblTempUsageDetail_20' ) end [2025-04-02 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:12:22] Production.INFO: ==4480== Releasing lock... [2025-04-02 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:12:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:13:05 [end_date_ymd] => 2025-04-02 00:13:05 [RateCDR] => 1 ) [2025-04-02 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:13:05' and `end` < '2025-04-02 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:13:18] Production.INFO: count ==541 [2025-04-02 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:13:05 - End Time 2025-04-02 00:13:05 [2025-04-02 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814427', 'tblTempUsageDetail_20' ) start [2025-04-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814427', 'tblTempUsageDetail_20' ) end [2025-04-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814427', 'tblTempVendorCDR_20' ) start [2025-04-02 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814427', 'tblTempVendorCDR_20' ) end [2025-04-02 00:13:18] Production.INFO: ProcessCDR(1,14814427,1,1,2) [2025-04-02 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814427', 'tblTempUsageDetail_20' ) start [2025-04-02 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814427', 'tblTempUsageDetail_20' ) end [2025-04-02 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:13:22] Production.INFO: ==4551== Releasing lock... [2025-04-02 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:14:05 [end_date_ymd] => 2025-04-02 00:14:05 [RateCDR] => 1 ) [2025-04-02 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:14:05' and `end` < '2025-04-02 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:14:18] Production.INFO: count ==549 [2025-04-02 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:14:05 - End Time 2025-04-02 00:14:05 [2025-04-02 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814432', 'tblTempUsageDetail_20' ) start [2025-04-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814432', 'tblTempUsageDetail_20' ) end [2025-04-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814432', 'tblTempVendorCDR_20' ) start [2025-04-02 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814432', 'tblTempVendorCDR_20' ) end [2025-04-02 00:14:18] Production.INFO: ProcessCDR(1,14814432,1,1,2) [2025-04-02 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814432', 'tblTempUsageDetail_20' ) start [2025-04-02 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814432', 'tblTempUsageDetail_20' ) end [2025-04-02 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:14:22] Production.INFO: ==4634== Releasing lock... [2025-04-02 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:15:05 [end_date_ymd] => 2025-04-02 00:15:05 [RateCDR] => 1 ) [2025-04-02 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:15:05' and `end` < '2025-04-02 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:15:18] Production.INFO: count ==540 [2025-04-02 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:15:05 - End Time 2025-04-02 00:15:05 [2025-04-02 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814437', 'tblTempUsageDetail_20' ) start [2025-04-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814437', 'tblTempUsageDetail_20' ) end [2025-04-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814437', 'tblTempVendorCDR_20' ) start [2025-04-02 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814437', 'tblTempVendorCDR_20' ) end [2025-04-02 00:15:18] Production.INFO: ProcessCDR(1,14814437,1,1,2) [2025-04-02 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814437', 'tblTempUsageDetail_20' ) start [2025-04-02 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814437', 'tblTempUsageDetail_20' ) end [2025-04-02 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:15:22] Production.INFO: ==4705== Releasing lock... [2025-04-02 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:15:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:16:06 [end_date_ymd] => 2025-04-02 00:16:06 [RateCDR] => 1 ) [2025-04-02 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:16:06' and `end` < '2025-04-02 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:16:18] Production.INFO: count ==537 [2025-04-02 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:16:06 - End Time 2025-04-02 00:16:06 [2025-04-02 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814442', 'tblTempUsageDetail_20' ) start [2025-04-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814442', 'tblTempUsageDetail_20' ) end [2025-04-02 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814442', 'tblTempVendorCDR_20' ) start [2025-04-02 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814442', 'tblTempVendorCDR_20' ) end [2025-04-02 00:16:19] Production.INFO: ProcessCDR(1,14814442,1,1,2) [2025-04-02 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814442', 'tblTempUsageDetail_20' ) start [2025-04-02 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814442', 'tblTempUsageDetail_20' ) end [2025-04-02 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:16:22] Production.INFO: ==4783== Releasing lock... [2025-04-02 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:16:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:17:05 [end_date_ymd] => 2025-04-02 00:17:05 [RateCDR] => 1 ) [2025-04-02 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:17:05' and `end` < '2025-04-02 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:17:18] Production.INFO: count ==538 [2025-04-02 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:17:05 - End Time 2025-04-02 00:17:05 [2025-04-02 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814447', 'tblTempUsageDetail_20' ) start [2025-04-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814447', 'tblTempUsageDetail_20' ) end [2025-04-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814447', 'tblTempVendorCDR_20' ) start [2025-04-02 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814447', 'tblTempVendorCDR_20' ) end [2025-04-02 00:17:18] Production.INFO: ProcessCDR(1,14814447,1,1,2) [2025-04-02 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814447', 'tblTempUsageDetail_20' ) start [2025-04-02 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814447', 'tblTempUsageDetail_20' ) end [2025-04-02 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:17:23] Production.INFO: ==4891== Releasing lock... [2025-04-02 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:17:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:18:06 [end_date_ymd] => 2025-04-02 00:18:06 [RateCDR] => 1 ) [2025-04-02 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:18:06' and `end` < '2025-04-02 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:18:19] Production.INFO: count ==535 [2025-04-02 00:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:18:06 - End Time 2025-04-02 00:18:06 [2025-04-02 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814452', 'tblTempUsageDetail_20' ) start [2025-04-02 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814452', 'tblTempUsageDetail_20' ) end [2025-04-02 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814452', 'tblTempVendorCDR_20' ) start [2025-04-02 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814452', 'tblTempVendorCDR_20' ) end [2025-04-02 00:18:19] Production.INFO: ProcessCDR(1,14814452,1,1,2) [2025-04-02 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814452', 'tblTempUsageDetail_20' ) start [2025-04-02 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814452', 'tblTempUsageDetail_20' ) end [2025-04-02 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:18:22] Production.INFO: ==4967== Releasing lock... [2025-04-02 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:19:05 [end_date_ymd] => 2025-04-02 00:19:05 [RateCDR] => 1 ) [2025-04-02 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:19:05' and `end` < '2025-04-02 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:19:18] Production.INFO: count ==531 [2025-04-02 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:19:05 - End Time 2025-04-02 00:19:05 [2025-04-02 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814457', 'tblTempUsageDetail_20' ) start [2025-04-02 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814457', 'tblTempUsageDetail_20' ) end [2025-04-02 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814457', 'tblTempVendorCDR_20' ) start [2025-04-02 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814457', 'tblTempVendorCDR_20' ) end [2025-04-02 00:19:18] Production.INFO: ProcessCDR(1,14814457,1,1,2) [2025-04-02 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814457', 'tblTempUsageDetail_20' ) start [2025-04-02 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814457', 'tblTempUsageDetail_20' ) end [2025-04-02 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:19:22] Production.INFO: ==5049== Releasing lock... [2025-04-02 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:19:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:20:07 [end_date_ymd] => 2025-04-02 00:20:07 [RateCDR] => 1 ) [2025-04-02 00:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:20:07' and `end` < '2025-04-02 00:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:20:20] Production.INFO: count ==532 [2025-04-02 00:20:20] Production.ERROR: pbx CDR StartTime 2025-04-01 21:20:07 - End Time 2025-04-02 00:20:07 [2025-04-02 00:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814463', 'tblTempUsageDetail_20' ) start [2025-04-02 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814463', 'tblTempUsageDetail_20' ) end [2025-04-02 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814463', 'tblTempVendorCDR_20' ) start [2025-04-02 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814463', 'tblTempVendorCDR_20' ) end [2025-04-02 00:20:20] Production.INFO: ProcessCDR(1,14814463,1,1,2) [2025-04-02 00:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814463', 'tblTempUsageDetail_20' ) start [2025-04-02 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814463', 'tblTempUsageDetail_20' ) end [2025-04-02 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:20:24] Production.INFO: ==5123== Releasing lock... [2025-04-02 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:20:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:21:05 [end_date_ymd] => 2025-04-02 00:21:05 [RateCDR] => 1 ) [2025-04-02 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:21:05' and `end` < '2025-04-02 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:21:17] Production.INFO: count ==534 [2025-04-02 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:21:05 - End Time 2025-04-02 00:21:05 [2025-04-02 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814468', 'tblTempUsageDetail_20' ) start [2025-04-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814468', 'tblTempUsageDetail_20' ) end [2025-04-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814468', 'tblTempVendorCDR_20' ) start [2025-04-02 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814468', 'tblTempVendorCDR_20' ) end [2025-04-02 00:21:18] Production.INFO: ProcessCDR(1,14814468,1,1,2) [2025-04-02 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814468', 'tblTempUsageDetail_20' ) start [2025-04-02 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814468', 'tblTempUsageDetail_20' ) end [2025-04-02 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:21:21] Production.INFO: ==5197== Releasing lock... [2025-04-02 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:22:05 [end_date_ymd] => 2025-04-02 00:22:05 [RateCDR] => 1 ) [2025-04-02 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:22:05' and `end` < '2025-04-02 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:22:18] Production.INFO: count ==536 [2025-04-02 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:22:05 - End Time 2025-04-02 00:22:05 [2025-04-02 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814473', 'tblTempUsageDetail_20' ) start [2025-04-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814473', 'tblTempUsageDetail_20' ) end [2025-04-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814473', 'tblTempVendorCDR_20' ) start [2025-04-02 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814473', 'tblTempVendorCDR_20' ) end [2025-04-02 00:22:18] Production.INFO: ProcessCDR(1,14814473,1,1,2) [2025-04-02 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814473', 'tblTempUsageDetail_20' ) start [2025-04-02 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814473', 'tblTempUsageDetail_20' ) end [2025-04-02 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:22:22] Production.INFO: ==5269== Releasing lock... [2025-04-02 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:23:05 [end_date_ymd] => 2025-04-02 00:23:05 [RateCDR] => 1 ) [2025-04-02 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:23:05' and `end` < '2025-04-02 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:23:18] Production.INFO: count ==535 [2025-04-02 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:23:05 - End Time 2025-04-02 00:23:05 [2025-04-02 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814478', 'tblTempUsageDetail_20' ) start [2025-04-02 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814478', 'tblTempUsageDetail_20' ) end [2025-04-02 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814478', 'tblTempVendorCDR_20' ) start [2025-04-02 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814478', 'tblTempVendorCDR_20' ) end [2025-04-02 00:23:18] Production.INFO: ProcessCDR(1,14814478,1,1,2) [2025-04-02 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814478', 'tblTempUsageDetail_20' ) start [2025-04-02 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814478', 'tblTempUsageDetail_20' ) end [2025-04-02 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:23:21] Production.INFO: ==5339== Releasing lock... [2025-04-02 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:24:05 [end_date_ymd] => 2025-04-02 00:24:05 [RateCDR] => 1 ) [2025-04-02 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:24:05' and `end` < '2025-04-02 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:24:18] Production.INFO: count ==548 [2025-04-02 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:24:05 - End Time 2025-04-02 00:24:05 [2025-04-02 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814483', 'tblTempUsageDetail_20' ) start [2025-04-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814483', 'tblTempUsageDetail_20' ) end [2025-04-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814483', 'tblTempVendorCDR_20' ) start [2025-04-02 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814483', 'tblTempVendorCDR_20' ) end [2025-04-02 00:24:18] Production.INFO: ProcessCDR(1,14814483,1,1,2) [2025-04-02 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814483', 'tblTempUsageDetail_20' ) start [2025-04-02 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814483', 'tblTempUsageDetail_20' ) end [2025-04-02 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:24:22] Production.INFO: ==5408== Releasing lock... [2025-04-02 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:24:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:25:05 [end_date_ymd] => 2025-04-02 00:25:05 [RateCDR] => 1 ) [2025-04-02 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:25:05' and `end` < '2025-04-02 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:25:18] Production.INFO: count ==554 [2025-04-02 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:25:05 - End Time 2025-04-02 00:25:05 [2025-04-02 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814488', 'tblTempUsageDetail_20' ) start [2025-04-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814488', 'tblTempUsageDetail_20' ) end [2025-04-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814488', 'tblTempVendorCDR_20' ) start [2025-04-02 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814488', 'tblTempVendorCDR_20' ) end [2025-04-02 00:25:18] Production.INFO: ProcessCDR(1,14814488,1,1,2) [2025-04-02 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814488', 'tblTempUsageDetail_20' ) start [2025-04-02 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814488', 'tblTempUsageDetail_20' ) end [2025-04-02 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:25:22] Production.INFO: ==5478== Releasing lock... [2025-04-02 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:26:06 [end_date_ymd] => 2025-04-02 00:26:06 [RateCDR] => 1 ) [2025-04-02 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:26:06' and `end` < '2025-04-02 00:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:26:18] Production.INFO: count ==560 [2025-04-02 00:26:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:26:06 - End Time 2025-04-02 00:26:06 [2025-04-02 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814493', 'tblTempUsageDetail_20' ) start [2025-04-02 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814493', 'tblTempUsageDetail_20' ) end [2025-04-02 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814493', 'tblTempVendorCDR_20' ) start [2025-04-02 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814493', 'tblTempVendorCDR_20' ) end [2025-04-02 00:26:19] Production.INFO: ProcessCDR(1,14814493,1,1,2) [2025-04-02 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814493', 'tblTempUsageDetail_20' ) start [2025-04-02 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814493', 'tblTempUsageDetail_20' ) end [2025-04-02 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:26:22] Production.INFO: ==5551== Releasing lock... [2025-04-02 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:26:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:27:05 [end_date_ymd] => 2025-04-02 00:27:05 [RateCDR] => 1 ) [2025-04-02 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-04-01 21:27:05' and `end` < '2025-04-02 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-04-02 00:27:18] Production.INFO: count ==560 [2025-04-02 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:27:05 - End Time 2025-04-02 00:27:05 [2025-04-02 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814498', 'tblTempUsageDetail_20' ) start [2025-04-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814498', 'tblTempUsageDetail_20' ) end [2025-04-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814498', 'tblTempVendorCDR_20' ) start [2025-04-02 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814498', 'tblTempVendorCDR_20' ) end [2025-04-02 00:27:18] Production.INFO: ProcessCDR(1,14814498,1,1,2) [2025-04-02 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814498', 'tblTempUsageDetail_20' ) start [2025-04-02 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814498', 'tblTempUsageDetail_20' ) end [2025-04-02 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:27:22] Production.INFO: ==5624== Releasing lock... [2025-04-02 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:28:06 [end_date_ymd] => 2025-04-02 00:28:06 [RateCDR] => 1 ) [2025-04-02 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:28:06' and `end` < '2025-04-02 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:28:18] Production.INFO: count ==565 [2025-04-02 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:28:06 - End Time 2025-04-02 00:28:06 [2025-04-02 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814503', 'tblTempUsageDetail_20' ) start [2025-04-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814503', 'tblTempUsageDetail_20' ) end [2025-04-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814503', 'tblTempVendorCDR_20' ) start [2025-04-02 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814503', 'tblTempVendorCDR_20' ) end [2025-04-02 00:28:18] Production.INFO: ProcessCDR(1,14814503,1,1,2) [2025-04-02 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814503', 'tblTempUsageDetail_20' ) start [2025-04-02 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814503', 'tblTempUsageDetail_20' ) end [2025-04-02 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:28:22] Production.INFO: ==5701== Releasing lock... [2025-04-02 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:29:05 [end_date_ymd] => 2025-04-02 00:29:05 [RateCDR] => 1 ) [2025-04-02 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:29:05' and `end` < '2025-04-02 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:29:17] Production.INFO: count ==549 [2025-04-02 00:29:17] Production.ERROR: pbx CDR StartTime 2025-04-01 21:29:05 - End Time 2025-04-02 00:29:05 [2025-04-02 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814508', 'tblTempUsageDetail_20' ) start [2025-04-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814508', 'tblTempUsageDetail_20' ) end [2025-04-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814508', 'tblTempVendorCDR_20' ) start [2025-04-02 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814508', 'tblTempVendorCDR_20' ) end [2025-04-02 00:29:18] Production.INFO: ProcessCDR(1,14814508,1,1,2) [2025-04-02 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814508', 'tblTempUsageDetail_20' ) start [2025-04-02 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814508', 'tblTempUsageDetail_20' ) end [2025-04-02 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:29:21] Production.INFO: ==5770== Releasing lock... [2025-04-02 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:29:21] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:30:06 [end_date_ymd] => 2025-04-02 00:30:06 [RateCDR] => 1 ) [2025-04-02 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:30:06' and `end` < '2025-04-02 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:30:19] Production.INFO: count ==549 [2025-04-02 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:30:06 - End Time 2025-04-02 00:30:06 [2025-04-02 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814514', 'tblTempUsageDetail_20' ) start [2025-04-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814514', 'tblTempUsageDetail_20' ) end [2025-04-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814514', 'tblTempVendorCDR_20' ) start [2025-04-02 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814514', 'tblTempVendorCDR_20' ) end [2025-04-02 00:30:19] Production.INFO: ProcessCDR(1,14814514,1,1,2) [2025-04-02 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814514', 'tblTempUsageDetail_20' ) start [2025-04-02 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814514', 'tblTempUsageDetail_20' ) end [2025-04-02 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:30:23] Production.INFO: ==5845== Releasing lock... [2025-04-02 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:30:23] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:31:05 [end_date_ymd] => 2025-04-02 00:31:05 [RateCDR] => 1 ) [2025-04-02 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:31:05' and `end` < '2025-04-02 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:31:18] Production.INFO: count ==549 [2025-04-02 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:31:05 - End Time 2025-04-02 00:31:05 [2025-04-02 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814519', 'tblTempUsageDetail_20' ) start [2025-04-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814519', 'tblTempUsageDetail_20' ) end [2025-04-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814519', 'tblTempVendorCDR_20' ) start [2025-04-02 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814519', 'tblTempVendorCDR_20' ) end [2025-04-02 00:31:18] Production.INFO: ProcessCDR(1,14814519,1,1,2) [2025-04-02 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814519', 'tblTempUsageDetail_20' ) start [2025-04-02 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814519', 'tblTempUsageDetail_20' ) end [2025-04-02 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:31:22] Production.INFO: ==5919== Releasing lock... [2025-04-02 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:31:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:32:06 [end_date_ymd] => 2025-04-02 00:32:06 [RateCDR] => 1 ) [2025-04-02 00:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:32:06' and `end` < '2025-04-02 00:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:32:18] Production.INFO: count ==547 [2025-04-02 00:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:32:06 - End Time 2025-04-02 00:32:06 [2025-04-02 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814524', 'tblTempUsageDetail_20' ) start [2025-04-02 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814524', 'tblTempUsageDetail_20' ) end [2025-04-02 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814524', 'tblTempVendorCDR_20' ) start [2025-04-02 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814524', 'tblTempVendorCDR_20' ) end [2025-04-02 00:32:19] Production.INFO: ProcessCDR(1,14814524,1,1,2) [2025-04-02 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814524', 'tblTempUsageDetail_20' ) start [2025-04-02 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814524', 'tblTempUsageDetail_20' ) end [2025-04-02 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:32:22] Production.INFO: ==6030== Releasing lock... [2025-04-02 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:33:05 [end_date_ymd] => 2025-04-02 00:33:05 [RateCDR] => 1 ) [2025-04-02 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:33:05' and `end` < '2025-04-02 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:33:18] Production.INFO: count ==546 [2025-04-02 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:33:05 - End Time 2025-04-02 00:33:05 [2025-04-02 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814529', 'tblTempUsageDetail_20' ) start [2025-04-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814529', 'tblTempUsageDetail_20' ) end [2025-04-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814529', 'tblTempVendorCDR_20' ) start [2025-04-02 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814529', 'tblTempVendorCDR_20' ) end [2025-04-02 00:33:18] Production.INFO: ProcessCDR(1,14814529,1,1,2) [2025-04-02 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814529', 'tblTempUsageDetail_20' ) start [2025-04-02 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814529', 'tblTempUsageDetail_20' ) end [2025-04-02 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:33:21] Production.INFO: ==6108== Releasing lock... [2025-04-02 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:33:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:34:06 [end_date_ymd] => 2025-04-02 00:34:06 [RateCDR] => 1 ) [2025-04-02 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:34:06' and `end` < '2025-04-02 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:34:18] Production.INFO: count ==542 [2025-04-02 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:34:06 - End Time 2025-04-02 00:34:06 [2025-04-02 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814534', 'tblTempUsageDetail_20' ) start [2025-04-02 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814534', 'tblTempUsageDetail_20' ) end [2025-04-02 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814534', 'tblTempVendorCDR_20' ) start [2025-04-02 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814534', 'tblTempVendorCDR_20' ) end [2025-04-02 00:34:19] Production.INFO: ProcessCDR(1,14814534,1,1,2) [2025-04-02 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814534', 'tblTempUsageDetail_20' ) start [2025-04-02 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814534', 'tblTempUsageDetail_20' ) end [2025-04-02 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:34:22] Production.INFO: ==6183== Releasing lock... [2025-04-02 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:35:05 [end_date_ymd] => 2025-04-02 00:35:05 [RateCDR] => 1 ) [2025-04-02 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:35:05' and `end` < '2025-04-02 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:35:17] Production.INFO: count ==542 [2025-04-02 00:35:17] Production.ERROR: pbx CDR StartTime 2025-04-01 21:35:05 - End Time 2025-04-02 00:35:05 [2025-04-02 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814539', 'tblTempUsageDetail_20' ) start [2025-04-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814539', 'tblTempUsageDetail_20' ) end [2025-04-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814539', 'tblTempVendorCDR_20' ) start [2025-04-02 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814539', 'tblTempVendorCDR_20' ) end [2025-04-02 00:35:18] Production.INFO: ProcessCDR(1,14814539,1,1,2) [2025-04-02 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814539', 'tblTempUsageDetail_20' ) start [2025-04-02 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814539', 'tblTempUsageDetail_20' ) end [2025-04-02 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:35:21] Production.INFO: ==6260== Releasing lock... [2025-04-02 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:36:06 [end_date_ymd] => 2025-04-02 00:36:06 [RateCDR] => 1 ) [2025-04-02 00:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:36:06' and `end` < '2025-04-02 00:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:36:18] Production.INFO: count ==541 [2025-04-02 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:36:06 - End Time 2025-04-02 00:36:06 [2025-04-02 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814544', 'tblTempUsageDetail_20' ) start [2025-04-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814544', 'tblTempUsageDetail_20' ) end [2025-04-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814544', 'tblTempVendorCDR_20' ) start [2025-04-02 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814544', 'tblTempVendorCDR_20' ) end [2025-04-02 00:36:19] Production.INFO: ProcessCDR(1,14814544,1,1,2) [2025-04-02 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814544', 'tblTempUsageDetail_20' ) start [2025-04-02 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814544', 'tblTempUsageDetail_20' ) end [2025-04-02 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:36:22] Production.INFO: ==6333== Releasing lock... [2025-04-02 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:37:05 [end_date_ymd] => 2025-04-02 00:37:05 [RateCDR] => 1 ) [2025-04-02 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:37:05' and `end` < '2025-04-02 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:37:17] Production.INFO: count ==535 [2025-04-02 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:37:05 - End Time 2025-04-02 00:37:05 [2025-04-02 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814549', 'tblTempUsageDetail_20' ) start [2025-04-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814549', 'tblTempUsageDetail_20' ) end [2025-04-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814549', 'tblTempVendorCDR_20' ) start [2025-04-02 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814549', 'tblTempVendorCDR_20' ) end [2025-04-02 00:37:18] Production.INFO: ProcessCDR(1,14814549,1,1,2) [2025-04-02 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814549', 'tblTempUsageDetail_20' ) start [2025-04-02 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814549', 'tblTempUsageDetail_20' ) end [2025-04-02 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:37:21] Production.INFO: ==6407== Releasing lock... [2025-04-02 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:38:06 [end_date_ymd] => 2025-04-02 00:38:06 [RateCDR] => 1 ) [2025-04-02 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:38:06' and `end` < '2025-04-02 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:38:18] Production.INFO: count ==532 [2025-04-02 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:38:06 - End Time 2025-04-02 00:38:06 [2025-04-02 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814554', 'tblTempUsageDetail_20' ) start [2025-04-02 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814554', 'tblTempUsageDetail_20' ) end [2025-04-02 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814554', 'tblTempVendorCDR_20' ) start [2025-04-02 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814554', 'tblTempVendorCDR_20' ) end [2025-04-02 00:38:19] Production.INFO: ProcessCDR(1,14814554,1,1,2) [2025-04-02 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814554', 'tblTempUsageDetail_20' ) start [2025-04-02 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814554', 'tblTempUsageDetail_20' ) end [2025-04-02 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:38:22] Production.INFO: ==6483== Releasing lock... [2025-04-02 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:39:05 [end_date_ymd] => 2025-04-02 00:39:05 [RateCDR] => 1 ) [2025-04-02 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:39:05' and `end` < '2025-04-02 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:39:18] Production.INFO: count ==535 [2025-04-02 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:39:05 - End Time 2025-04-02 00:39:05 [2025-04-02 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814559', 'tblTempUsageDetail_20' ) start [2025-04-02 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814559', 'tblTempUsageDetail_20' ) end [2025-04-02 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814559', 'tblTempVendorCDR_20' ) start [2025-04-02 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814559', 'tblTempVendorCDR_20' ) end [2025-04-02 00:39:18] Production.INFO: ProcessCDR(1,14814559,1,1,2) [2025-04-02 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814559', 'tblTempUsageDetail_20' ) start [2025-04-02 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814559', 'tblTempUsageDetail_20' ) end [2025-04-02 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:39:22] Production.INFO: ==6557== Releasing lock... [2025-04-02 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:40:06 [end_date_ymd] => 2025-04-02 00:40:06 [RateCDR] => 1 ) [2025-04-02 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:40:06' and `end` < '2025-04-02 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:40:18] Production.INFO: count ==544 [2025-04-02 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:40:06 - End Time 2025-04-02 00:40:06 [2025-04-02 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814564', 'tblTempUsageDetail_20' ) start [2025-04-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814564', 'tblTempUsageDetail_20' ) end [2025-04-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814564', 'tblTempVendorCDR_20' ) start [2025-04-02 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814564', 'tblTempVendorCDR_20' ) end [2025-04-02 00:40:19] Production.INFO: ProcessCDR(1,14814564,1,1,2) [2025-04-02 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814564', 'tblTempUsageDetail_20' ) start [2025-04-02 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814564', 'tblTempUsageDetail_20' ) end [2025-04-02 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:40:22] Production.INFO: ==6630== Releasing lock... [2025-04-02 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:41:05 [end_date_ymd] => 2025-04-02 00:41:05 [RateCDR] => 1 ) [2025-04-02 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:41:05' and `end` < '2025-04-02 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:41:18] Production.INFO: count ==545 [2025-04-02 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:41:05 - End Time 2025-04-02 00:41:05 [2025-04-02 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814570', 'tblTempUsageDetail_20' ) start [2025-04-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814570', 'tblTempUsageDetail_20' ) end [2025-04-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814570', 'tblTempVendorCDR_20' ) start [2025-04-02 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814570', 'tblTempVendorCDR_20' ) end [2025-04-02 00:41:18] Production.INFO: ProcessCDR(1,14814570,1,1,2) [2025-04-02 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814570', 'tblTempUsageDetail_20' ) start [2025-04-02 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814570', 'tblTempUsageDetail_20' ) end [2025-04-02 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:41:22] Production.INFO: ==6709== Releasing lock... [2025-04-02 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:42:06 [end_date_ymd] => 2025-04-02 00:42:06 [RateCDR] => 1 ) [2025-04-02 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:42:06' and `end` < '2025-04-02 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:42:18] Production.INFO: count ==545 [2025-04-02 00:42:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:42:06 - End Time 2025-04-02 00:42:06 [2025-04-02 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814575', 'tblTempUsageDetail_20' ) start [2025-04-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814575', 'tblTempUsageDetail_20' ) end [2025-04-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814575', 'tblTempVendorCDR_20' ) start [2025-04-02 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814575', 'tblTempVendorCDR_20' ) end [2025-04-02 00:42:19] Production.INFO: ProcessCDR(1,14814575,1,1,2) [2025-04-02 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814575', 'tblTempUsageDetail_20' ) start [2025-04-02 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814575', 'tblTempUsageDetail_20' ) end [2025-04-02 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:42:22] Production.INFO: ==6784== Releasing lock... [2025-04-02 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:43:05 [end_date_ymd] => 2025-04-02 00:43:05 [RateCDR] => 1 ) [2025-04-02 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:43:05' and `end` < '2025-04-02 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:43:17] Production.INFO: count ==541 [2025-04-02 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:43:05 - End Time 2025-04-02 00:43:05 [2025-04-02 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814580', 'tblTempUsageDetail_20' ) start [2025-04-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814580', 'tblTempUsageDetail_20' ) end [2025-04-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814580', 'tblTempVendorCDR_20' ) start [2025-04-02 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814580', 'tblTempVendorCDR_20' ) end [2025-04-02 00:43:18] Production.INFO: ProcessCDR(1,14814580,1,1,2) [2025-04-02 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814580', 'tblTempUsageDetail_20' ) start [2025-04-02 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814580', 'tblTempUsageDetail_20' ) end [2025-04-02 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:43:21] Production.INFO: ==6857== Releasing lock... [2025-04-02 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:43:21] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:44:05 [end_date_ymd] => 2025-04-02 00:44:05 [RateCDR] => 1 ) [2025-04-02 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-04-01 21:44:05' and `end` < '2025-04-02 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-04-02 00:44:17] Production.INFO: count ==538 [2025-04-02 00:44:17] Production.ERROR: pbx CDR StartTime 2025-04-01 21:44:05 - End Time 2025-04-02 00:44:05 [2025-04-02 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814585', 'tblTempUsageDetail_20' ) start [2025-04-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814585', 'tblTempUsageDetail_20' ) end [2025-04-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814585', 'tblTempVendorCDR_20' ) start [2025-04-02 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814585', 'tblTempVendorCDR_20' ) end [2025-04-02 00:44:18] Production.INFO: ProcessCDR(1,14814585,1,1,2) [2025-04-02 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814585', 'tblTempUsageDetail_20' ) start [2025-04-02 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814585', 'tblTempUsageDetail_20' ) end [2025-04-02 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:44:21] Production.INFO: ==6931== Releasing lock... [2025-04-02 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:45:06 [end_date_ymd] => 2025-04-02 00:45:06 [RateCDR] => 1 ) [2025-04-02 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:45:06' and `end` < '2025-04-02 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:45:19] Production.INFO: count ==538 [2025-04-02 00:45:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:45:06 - End Time 2025-04-02 00:45:06 [2025-04-02 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814590', 'tblTempUsageDetail_20' ) start [2025-04-02 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814590', 'tblTempUsageDetail_20' ) end [2025-04-02 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814590', 'tblTempVendorCDR_20' ) start [2025-04-02 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814590', 'tblTempVendorCDR_20' ) end [2025-04-02 00:45:19] Production.INFO: ProcessCDR(1,14814590,1,1,2) [2025-04-02 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814590', 'tblTempUsageDetail_20' ) start [2025-04-02 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814590', 'tblTempUsageDetail_20' ) end [2025-04-02 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:45:22] Production.INFO: ==7005== Releasing lock... [2025-04-02 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:46:06 [end_date_ymd] => 2025-04-02 00:46:06 [RateCDR] => 1 ) [2025-04-02 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:46:06' and `end` < '2025-04-02 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:46:18] Production.INFO: count ==536 [2025-04-02 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:46:06 - End Time 2025-04-02 00:46:06 [2025-04-02 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814595', 'tblTempUsageDetail_20' ) start [2025-04-02 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814595', 'tblTempUsageDetail_20' ) end [2025-04-02 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814595', 'tblTempVendorCDR_20' ) start [2025-04-02 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814595', 'tblTempVendorCDR_20' ) end [2025-04-02 00:46:19] Production.INFO: ProcessCDR(1,14814595,1,1,2) [2025-04-02 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814595', 'tblTempUsageDetail_20' ) start [2025-04-02 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814595', 'tblTempUsageDetail_20' ) end [2025-04-02 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:46:22] Production.INFO: ==7078== Releasing lock... [2025-04-02 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:47:05 [end_date_ymd] => 2025-04-02 00:47:05 [RateCDR] => 1 ) [2025-04-02 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:47:05' and `end` < '2025-04-02 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:47:18] Production.INFO: count ==532 [2025-04-02 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:47:05 - End Time 2025-04-02 00:47:05 [2025-04-02 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814600', 'tblTempUsageDetail_20' ) start [2025-04-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814600', 'tblTempUsageDetail_20' ) end [2025-04-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814600', 'tblTempVendorCDR_20' ) start [2025-04-02 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814600', 'tblTempVendorCDR_20' ) end [2025-04-02 00:47:18] Production.INFO: ProcessCDR(1,14814600,1,1,2) [2025-04-02 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814600', 'tblTempUsageDetail_20' ) start [2025-04-02 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814600', 'tblTempUsageDetail_20' ) end [2025-04-02 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:47:22] Production.INFO: ==7157== Releasing lock... [2025-04-02 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:47:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:48:06 [end_date_ymd] => 2025-04-02 00:48:06 [RateCDR] => 1 ) [2025-04-02 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:48:06' and `end` < '2025-04-02 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:48:18] Production.INFO: count ==532 [2025-04-02 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:48:06 - End Time 2025-04-02 00:48:06 [2025-04-02 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814605', 'tblTempUsageDetail_20' ) start [2025-04-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814605', 'tblTempUsageDetail_20' ) end [2025-04-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814605', 'tblTempVendorCDR_20' ) start [2025-04-02 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814605', 'tblTempVendorCDR_20' ) end [2025-04-02 00:48:18] Production.INFO: ProcessCDR(1,14814605,1,1,2) [2025-04-02 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814605', 'tblTempUsageDetail_20' ) start [2025-04-02 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814605', 'tblTempUsageDetail_20' ) end [2025-04-02 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:48:22] Production.INFO: ==7271== Releasing lock... [2025-04-02 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:49:06 [end_date_ymd] => 2025-04-02 00:49:06 [RateCDR] => 1 ) [2025-04-02 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:49:06' and `end` < '2025-04-02 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:49:18] Production.INFO: count ==532 [2025-04-02 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:49:06 - End Time 2025-04-02 00:49:06 [2025-04-02 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814610', 'tblTempUsageDetail_20' ) start [2025-04-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814610', 'tblTempUsageDetail_20' ) end [2025-04-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814610', 'tblTempVendorCDR_20' ) start [2025-04-02 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814610', 'tblTempVendorCDR_20' ) end [2025-04-02 00:49:18] Production.INFO: ProcessCDR(1,14814610,1,1,2) [2025-04-02 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814610', 'tblTempUsageDetail_20' ) start [2025-04-02 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814610', 'tblTempUsageDetail_20' ) end [2025-04-02 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:49:22] Production.INFO: ==7346== Releasing lock... [2025-04-02 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:49:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:50:06 [end_date_ymd] => 2025-04-02 00:50:06 [RateCDR] => 1 ) [2025-04-02 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:50:06' and `end` < '2025-04-02 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:50:19] Production.INFO: count ==529 [2025-04-02 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:50:06 - End Time 2025-04-02 00:50:06 [2025-04-02 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814615', 'tblTempUsageDetail_20' ) start [2025-04-02 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814615', 'tblTempUsageDetail_20' ) end [2025-04-02 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814615', 'tblTempVendorCDR_20' ) start [2025-04-02 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814615', 'tblTempVendorCDR_20' ) end [2025-04-02 00:50:19] Production.INFO: ProcessCDR(1,14814615,1,1,2) [2025-04-02 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814615', 'tblTempUsageDetail_20' ) start [2025-04-02 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814615', 'tblTempUsageDetail_20' ) end [2025-04-02 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:50:22] Production.INFO: ==7420== Releasing lock... [2025-04-02 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:50:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:51:06 [end_date_ymd] => 2025-04-02 00:51:06 [RateCDR] => 1 ) [2025-04-02 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:51:06' and `end` < '2025-04-02 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:51:19] Production.INFO: count ==523 [2025-04-02 00:51:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:51:06 - End Time 2025-04-02 00:51:06 [2025-04-02 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814621', 'tblTempUsageDetail_20' ) start [2025-04-02 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814621', 'tblTempUsageDetail_20' ) end [2025-04-02 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814621', 'tblTempVendorCDR_20' ) start [2025-04-02 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814621', 'tblTempVendorCDR_20' ) end [2025-04-02 00:51:19] Production.INFO: ProcessCDR(1,14814621,1,1,2) [2025-04-02 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814621', 'tblTempUsageDetail_20' ) start [2025-04-02 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814621', 'tblTempUsageDetail_20' ) end [2025-04-02 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:51:22] Production.INFO: ==7497== Releasing lock... [2025-04-02 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:51:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:52:05 [end_date_ymd] => 2025-04-02 00:52:05 [RateCDR] => 1 ) [2025-04-02 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:52:05' and `end` < '2025-04-02 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:52:18] Production.INFO: count ==537 [2025-04-02 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:52:05 - End Time 2025-04-02 00:52:05 [2025-04-02 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814626', 'tblTempUsageDetail_20' ) start [2025-04-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814626', 'tblTempUsageDetail_20' ) end [2025-04-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814626', 'tblTempVendorCDR_20' ) start [2025-04-02 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814626', 'tblTempVendorCDR_20' ) end [2025-04-02 00:52:18] Production.INFO: ProcessCDR(1,14814626,1,1,2) [2025-04-02 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814626', 'tblTempUsageDetail_20' ) start [2025-04-02 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814626', 'tblTempUsageDetail_20' ) end [2025-04-02 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:52:22] Production.INFO: ==7576== Releasing lock... [2025-04-02 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:53:05 [end_date_ymd] => 2025-04-02 00:53:05 [RateCDR] => 1 ) [2025-04-02 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:53:05' and `end` < '2025-04-02 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:53:18] Production.INFO: count ==540 [2025-04-02 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:53:05 - End Time 2025-04-02 00:53:05 [2025-04-02 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814631', 'tblTempUsageDetail_20' ) start [2025-04-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814631', 'tblTempUsageDetail_20' ) end [2025-04-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814631', 'tblTempVendorCDR_20' ) start [2025-04-02 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814631', 'tblTempVendorCDR_20' ) end [2025-04-02 00:53:18] Production.INFO: ProcessCDR(1,14814631,1,1,2) [2025-04-02 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814631', 'tblTempUsageDetail_20' ) start [2025-04-02 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814631', 'tblTempUsageDetail_20' ) end [2025-04-02 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:53:22] Production.INFO: ==7651== Releasing lock... [2025-04-02 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:54:05 [end_date_ymd] => 2025-04-02 00:54:05 [RateCDR] => 1 ) [2025-04-02 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:54:05' and `end` < '2025-04-02 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:54:17] Production.INFO: count ==540 [2025-04-02 00:54:17] Production.ERROR: pbx CDR StartTime 2025-04-01 21:54:05 - End Time 2025-04-02 00:54:05 [2025-04-02 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814636', 'tblTempUsageDetail_20' ) start [2025-04-02 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814636', 'tblTempUsageDetail_20' ) end [2025-04-02 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814636', 'tblTempVendorCDR_20' ) start [2025-04-02 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814636', 'tblTempVendorCDR_20' ) end [2025-04-02 00:54:17] Production.INFO: ProcessCDR(1,14814636,1,1,2) [2025-04-02 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814636', 'tblTempUsageDetail_20' ) start [2025-04-02 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814636', 'tblTempUsageDetail_20' ) end [2025-04-02 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:54:21] Production.INFO: ==7728== Releasing lock... [2025-04-02 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:55:05 [end_date_ymd] => 2025-04-02 00:55:05 [RateCDR] => 1 ) [2025-04-02 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-04-01 21:55:05' and `end` < '2025-04-02 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-04-02 00:55:18] Production.INFO: count ==539 [2025-04-02 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:55:05 - End Time 2025-04-02 00:55:05 [2025-04-02 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814641', 'tblTempUsageDetail_20' ) start [2025-04-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814641', 'tblTempUsageDetail_20' ) end [2025-04-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814641', 'tblTempVendorCDR_20' ) start [2025-04-02 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814641', 'tblTempVendorCDR_20' ) end [2025-04-02 00:55:18] Production.INFO: ProcessCDR(1,14814641,1,1,2) [2025-04-02 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814641', 'tblTempUsageDetail_20' ) start [2025-04-02 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814641', 'tblTempUsageDetail_20' ) end [2025-04-02 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:55:22] Production.INFO: ==7801== Releasing lock... [2025-04-02 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:55:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:56:06 [end_date_ymd] => 2025-04-02 00:56:06 [RateCDR] => 1 ) [2025-04-02 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:56:06' and `end` < '2025-04-02 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:56:18] Production.INFO: count ==543 [2025-04-02 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:56:06 - End Time 2025-04-02 00:56:06 [2025-04-02 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814646', 'tblTempUsageDetail_20' ) start [2025-04-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814646', 'tblTempUsageDetail_20' ) end [2025-04-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814646', 'tblTempVendorCDR_20' ) start [2025-04-02 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814646', 'tblTempVendorCDR_20' ) end [2025-04-02 00:56:18] Production.INFO: ProcessCDR(1,14814646,1,1,2) [2025-04-02 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814646', 'tblTempUsageDetail_20' ) start [2025-04-02 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814646', 'tblTempUsageDetail_20' ) end [2025-04-02 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:56:23] Production.INFO: ==7875== Releasing lock... [2025-04-02 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:57:05 [end_date_ymd] => 2025-04-02 00:57:05 [RateCDR] => 1 ) [2025-04-02 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:57:05' and `end` < '2025-04-02 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:57:18] Production.INFO: count ==546 [2025-04-02 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:57:05 - End Time 2025-04-02 00:57:05 [2025-04-02 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814651', 'tblTempUsageDetail_20' ) start [2025-04-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814651', 'tblTempUsageDetail_20' ) end [2025-04-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814651', 'tblTempVendorCDR_20' ) start [2025-04-02 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814651', 'tblTempVendorCDR_20' ) end [2025-04-02 00:57:18] Production.INFO: ProcessCDR(1,14814651,1,1,2) [2025-04-02 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814651', 'tblTempUsageDetail_20' ) start [2025-04-02 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814651', 'tblTempUsageDetail_20' ) end [2025-04-02 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:57:22] Production.INFO: ==7949== Releasing lock... [2025-04-02 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:57:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:58:06 [end_date_ymd] => 2025-04-02 00:58:06 [RateCDR] => 1 ) [2025-04-02 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:58:06' and `end` < '2025-04-02 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:58:18] Production.INFO: count ==541 [2025-04-02 00:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 21:58:06 - End Time 2025-04-02 00:58:06 [2025-04-02 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814656', 'tblTempUsageDetail_20' ) start [2025-04-02 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814656', 'tblTempUsageDetail_20' ) end [2025-04-02 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814656', 'tblTempVendorCDR_20' ) start [2025-04-02 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814656', 'tblTempVendorCDR_20' ) end [2025-04-02 00:58:19] Production.INFO: ProcessCDR(1,14814656,1,1,2) [2025-04-02 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814656', 'tblTempUsageDetail_20' ) start [2025-04-02 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814656', 'tblTempUsageDetail_20' ) end [2025-04-02 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:58:22] Production.INFO: ==8024== Releasing lock... [2025-04-02 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:58:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 21:59:05 [end_date_ymd] => 2025-04-02 00:59:05 [RateCDR] => 1 ) [2025-04-02 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 21:59:05' and `end` < '2025-04-02 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 00:59:18] Production.INFO: count ==528 [2025-04-02 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 21:59:05 - End Time 2025-04-02 00:59:05 [2025-04-02 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814661', 'tblTempUsageDetail_20' ) start [2025-04-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814661', 'tblTempUsageDetail_20' ) end [2025-04-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814661', 'tblTempVendorCDR_20' ) start [2025-04-02 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814661', 'tblTempVendorCDR_20' ) end [2025-04-02 00:59:18] Production.INFO: ProcessCDR(1,14814661,1,1,2) [2025-04-02 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814661', 'tblTempUsageDetail_20' ) start [2025-04-02 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814661', 'tblTempUsageDetail_20' ) end [2025-04-02 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 00:59:22] Production.INFO: ==8095== Releasing lock... [2025-04-02 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 00:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:00:07 [end_date_ymd] => 2025-04-02 01:00:07 [RateCDR] => 1 ) [2025-04-02 01:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:00:07' and `end` < '2025-04-02 01:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:00:19] Production.INFO: count ==529 [2025-04-02 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:00:07 - End Time 2025-04-02 01:00:07 [2025-04-02 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814667', 'tblTempUsageDetail_20' ) start [2025-04-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814667', 'tblTempUsageDetail_20' ) end [2025-04-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814667', 'tblTempVendorCDR_20' ) start [2025-04-02 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814667', 'tblTempVendorCDR_20' ) end [2025-04-02 01:00:19] Production.INFO: ProcessCDR(1,14814667,1,1,2) [2025-04-02 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814667', 'tblTempUsageDetail_20' ) start [2025-04-02 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814667', 'tblTempUsageDetail_20' ) end [2025-04-02 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:00:23] Production.INFO: ==8176== Releasing lock... [2025-04-02 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:01:05 [end_date_ymd] => 2025-04-02 01:01:05 [RateCDR] => 1 ) [2025-04-02 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:01:05' and `end` < '2025-04-02 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:01:18] Production.INFO: count ==524 [2025-04-02 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:01:05 - End Time 2025-04-02 01:01:05 [2025-04-02 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814672', 'tblTempUsageDetail_20' ) start [2025-04-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814672', 'tblTempUsageDetail_20' ) end [2025-04-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814672', 'tblTempVendorCDR_20' ) start [2025-04-02 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814672', 'tblTempVendorCDR_20' ) end [2025-04-02 01:01:18] Production.INFO: ProcessCDR(1,14814672,1,1,2) [2025-04-02 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814672', 'tblTempUsageDetail_20' ) start [2025-04-02 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814672', 'tblTempUsageDetail_20' ) end [2025-04-02 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:01:21] Production.INFO: ==8270== Releasing lock... [2025-04-02 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:02:06 [end_date_ymd] => 2025-04-02 01:02:06 [RateCDR] => 1 ) [2025-04-02 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:02:06' and `end` < '2025-04-02 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:02:18] Production.INFO: count ==519 [2025-04-02 01:02:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:02:06 - End Time 2025-04-02 01:02:06 [2025-04-02 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814677', 'tblTempUsageDetail_20' ) start [2025-04-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814677', 'tblTempUsageDetail_20' ) end [2025-04-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814677', 'tblTempVendorCDR_20' ) start [2025-04-02 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814677', 'tblTempVendorCDR_20' ) end [2025-04-02 01:02:19] Production.INFO: ProcessCDR(1,14814677,1,1,2) [2025-04-02 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814677', 'tblTempUsageDetail_20' ) start [2025-04-02 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814677', 'tblTempUsageDetail_20' ) end [2025-04-02 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:02:22] Production.INFO: ==8345== Releasing lock... [2025-04-02 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:02:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:03:05 [end_date_ymd] => 2025-04-02 01:03:05 [RateCDR] => 1 ) [2025-04-02 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:03:05' and `end` < '2025-04-02 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:03:17] Production.INFO: count ==514 [2025-04-02 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:03:05 - End Time 2025-04-02 01:03:05 [2025-04-02 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814682', 'tblTempUsageDetail_20' ) start [2025-04-02 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814682', 'tblTempUsageDetail_20' ) end [2025-04-02 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814682', 'tblTempVendorCDR_20' ) start [2025-04-02 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814682', 'tblTempVendorCDR_20' ) end [2025-04-02 01:03:18] Production.INFO: ProcessCDR(1,14814682,1,1,2) [2025-04-02 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814682', 'tblTempUsageDetail_20' ) start [2025-04-02 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814682', 'tblTempUsageDetail_20' ) end [2025-04-02 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:03:21] Production.INFO: ==8456== Releasing lock... [2025-04-02 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:04:06 [end_date_ymd] => 2025-04-02 01:04:06 [RateCDR] => 1 ) [2025-04-02 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:04:06' and `end` < '2025-04-02 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:04:18] Production.INFO: count ==499 [2025-04-02 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:04:06 - End Time 2025-04-02 01:04:06 [2025-04-02 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814687', 'tblTempUsageDetail_20' ) start [2025-04-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814687', 'tblTempUsageDetail_20' ) end [2025-04-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814687', 'tblTempVendorCDR_20' ) start [2025-04-02 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814687', 'tblTempVendorCDR_20' ) end [2025-04-02 01:04:18] Production.INFO: ProcessCDR(1,14814687,1,1,2) [2025-04-02 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814687', 'tblTempUsageDetail_20' ) start [2025-04-02 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814687', 'tblTempUsageDetail_20' ) end [2025-04-02 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:04:22] Production.INFO: ==8531== Releasing lock... [2025-04-02 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:04:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:05:05 [end_date_ymd] => 2025-04-02 01:05:05 [RateCDR] => 1 ) [2025-04-02 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:05:05' and `end` < '2025-04-02 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:05:18] Production.INFO: count ==492 [2025-04-02 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:05:05 - End Time 2025-04-02 01:05:05 [2025-04-02 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814692', 'tblTempUsageDetail_20' ) start [2025-04-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814692', 'tblTempUsageDetail_20' ) end [2025-04-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814692', 'tblTempVendorCDR_20' ) start [2025-04-02 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814692', 'tblTempVendorCDR_20' ) end [2025-04-02 01:05:18] Production.INFO: ProcessCDR(1,14814692,1,1,2) [2025-04-02 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814692', 'tblTempUsageDetail_20' ) start [2025-04-02 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814692', 'tblTempUsageDetail_20' ) end [2025-04-02 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:05:21] Production.INFO: ==8604== Releasing lock... [2025-04-02 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:06:05 [end_date_ymd] => 2025-04-02 01:06:05 [RateCDR] => 1 ) [2025-04-02 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:06:05' and `end` < '2025-04-02 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:06:18] Production.INFO: count ==475 [2025-04-02 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:06:05 - End Time 2025-04-02 01:06:05 [2025-04-02 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814697', 'tblTempUsageDetail_20' ) start [2025-04-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814697', 'tblTempUsageDetail_20' ) end [2025-04-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814697', 'tblTempVendorCDR_20' ) start [2025-04-02 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814697', 'tblTempVendorCDR_20' ) end [2025-04-02 01:06:18] Production.INFO: ProcessCDR(1,14814697,1,1,2) [2025-04-02 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814697', 'tblTempUsageDetail_20' ) start [2025-04-02 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814697', 'tblTempUsageDetail_20' ) end [2025-04-02 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:06:21] Production.INFO: ==8679== Releasing lock... [2025-04-02 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:06:21] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:07:05 [end_date_ymd] => 2025-04-02 01:07:05 [RateCDR] => 1 ) [2025-04-02 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:07:05' and `end` < '2025-04-02 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:07:18] Production.INFO: count ==476 [2025-04-02 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:07:05 - End Time 2025-04-02 01:07:05 [2025-04-02 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814702', 'tblTempUsageDetail_20' ) start [2025-04-02 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814702', 'tblTempUsageDetail_20' ) end [2025-04-02 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814702', 'tblTempVendorCDR_20' ) start [2025-04-02 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814702', 'tblTempVendorCDR_20' ) end [2025-04-02 01:07:18] Production.INFO: ProcessCDR(1,14814702,1,1,2) [2025-04-02 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814702', 'tblTempUsageDetail_20' ) start [2025-04-02 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814702', 'tblTempUsageDetail_20' ) end [2025-04-02 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:07:22] Production.INFO: ==8752== Releasing lock... [2025-04-02 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:07:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:08:06 [end_date_ymd] => 2025-04-02 01:08:06 [RateCDR] => 1 ) [2025-04-02 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:08:06' and `end` < '2025-04-02 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:08:18] Production.INFO: count ==474 [2025-04-02 01:08:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:08:06 - End Time 2025-04-02 01:08:06 [2025-04-02 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814707', 'tblTempUsageDetail_20' ) start [2025-04-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814707', 'tblTempUsageDetail_20' ) end [2025-04-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814707', 'tblTempVendorCDR_20' ) start [2025-04-02 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814707', 'tblTempVendorCDR_20' ) end [2025-04-02 01:08:19] Production.INFO: ProcessCDR(1,14814707,1,1,2) [2025-04-02 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814707', 'tblTempUsageDetail_20' ) start [2025-04-02 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814707', 'tblTempUsageDetail_20' ) end [2025-04-02 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:08:22] Production.INFO: ==8832== Releasing lock... [2025-04-02 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:08:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:09:05 [end_date_ymd] => 2025-04-02 01:09:05 [RateCDR] => 1 ) [2025-04-02 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:09:05' and `end` < '2025-04-02 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:09:18] Production.INFO: count ==474 [2025-04-02 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:09:05 - End Time 2025-04-02 01:09:05 [2025-04-02 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814712', 'tblTempUsageDetail_20' ) start [2025-04-02 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814712', 'tblTempUsageDetail_20' ) end [2025-04-02 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814712', 'tblTempVendorCDR_20' ) start [2025-04-02 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814712', 'tblTempVendorCDR_20' ) end [2025-04-02 01:09:18] Production.INFO: ProcessCDR(1,14814712,1,1,2) [2025-04-02 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814712', 'tblTempUsageDetail_20' ) start [2025-04-02 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814712', 'tblTempUsageDetail_20' ) end [2025-04-02 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:09:21] Production.INFO: ==8914== Releasing lock... [2025-04-02 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:09:21] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:10:07 [end_date_ymd] => 2025-04-02 01:10:07 [RateCDR] => 1 ) [2025-04-02 01:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:10:07' and `end` < '2025-04-02 01:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:10:19] Production.INFO: count ==473 [2025-04-02 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:10:07 - End Time 2025-04-02 01:10:07 [2025-04-02 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814718', 'tblTempUsageDetail_20' ) start [2025-04-02 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814718', 'tblTempUsageDetail_20' ) end [2025-04-02 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814718', 'tblTempVendorCDR_20' ) start [2025-04-02 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814718', 'tblTempVendorCDR_20' ) end [2025-04-02 01:10:20] Production.INFO: ProcessCDR(1,14814718,1,1,2) [2025-04-02 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814718', 'tblTempUsageDetail_20' ) start [2025-04-02 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814718', 'tblTempUsageDetail_20' ) end [2025-04-02 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:10:23] Production.INFO: ==8998== Releasing lock... [2025-04-02 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:10:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:11:05 [end_date_ymd] => 2025-04-02 01:11:05 [RateCDR] => 1 ) [2025-04-02 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:11:05' and `end` < '2025-04-02 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:11:18] Production.INFO: count ==472 [2025-04-02 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:11:05 - End Time 2025-04-02 01:11:05 [2025-04-02 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814723', 'tblTempUsageDetail_20' ) start [2025-04-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814723', 'tblTempUsageDetail_20' ) end [2025-04-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814723', 'tblTempVendorCDR_20' ) start [2025-04-02 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814723', 'tblTempVendorCDR_20' ) end [2025-04-02 01:11:18] Production.INFO: ProcessCDR(1,14814723,1,1,2) [2025-04-02 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814723', 'tblTempUsageDetail_20' ) start [2025-04-02 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814723', 'tblTempUsageDetail_20' ) end [2025-04-02 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:11:22] Production.INFO: ==9084== Releasing lock... [2025-04-02 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:11:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:12:06 [end_date_ymd] => 2025-04-02 01:12:06 [RateCDR] => 1 ) [2025-04-02 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:12:06' and `end` < '2025-04-02 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:12:18] Production.INFO: count ==472 [2025-04-02 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:12:06 - End Time 2025-04-02 01:12:06 [2025-04-02 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814728', 'tblTempUsageDetail_20' ) start [2025-04-02 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814728', 'tblTempUsageDetail_20' ) end [2025-04-02 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814728', 'tblTempVendorCDR_20' ) start [2025-04-02 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814728', 'tblTempVendorCDR_20' ) end [2025-04-02 01:12:19] Production.INFO: ProcessCDR(1,14814728,1,1,2) [2025-04-02 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814728', 'tblTempUsageDetail_20' ) start [2025-04-02 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814728', 'tblTempUsageDetail_20' ) end [2025-04-02 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:12:22] Production.INFO: ==9172== Releasing lock... [2025-04-02 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:13:05 [end_date_ymd] => 2025-04-02 01:13:05 [RateCDR] => 1 ) [2025-04-02 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:13:05' and `end` < '2025-04-02 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:13:18] Production.INFO: count ==469 [2025-04-02 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:13:05 - End Time 2025-04-02 01:13:05 [2025-04-02 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814733', 'tblTempUsageDetail_20' ) start [2025-04-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814733', 'tblTempUsageDetail_20' ) end [2025-04-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814733', 'tblTempVendorCDR_20' ) start [2025-04-02 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814733', 'tblTempVendorCDR_20' ) end [2025-04-02 01:13:18] Production.INFO: ProcessCDR(1,14814733,1,1,2) [2025-04-02 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814733', 'tblTempUsageDetail_20' ) start [2025-04-02 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814733', 'tblTempUsageDetail_20' ) end [2025-04-02 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:13:21] Production.INFO: ==9253== Releasing lock... [2025-04-02 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:14:05 [end_date_ymd] => 2025-04-02 01:14:05 [RateCDR] => 1 ) [2025-04-02 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:14:05' and `end` < '2025-04-02 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:14:18] Production.INFO: count ==471 [2025-04-02 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:14:05 - End Time 2025-04-02 01:14:05 [2025-04-02 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814738', 'tblTempUsageDetail_20' ) start [2025-04-02 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814738', 'tblTempUsageDetail_20' ) end [2025-04-02 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814738', 'tblTempVendorCDR_20' ) start [2025-04-02 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814738', 'tblTempVendorCDR_20' ) end [2025-04-02 01:14:18] Production.INFO: ProcessCDR(1,14814738,1,1,2) [2025-04-02 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814738', 'tblTempUsageDetail_20' ) start [2025-04-02 01:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814738', 'tblTempUsageDetail_20' ) end [2025-04-02 01:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:14:24] Production.INFO: ==9337== Releasing lock... [2025-04-02 01:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:14:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:15:05 [end_date_ymd] => 2025-04-02 01:15:05 [RateCDR] => 1 ) [2025-04-02 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:15:05' and `end` < '2025-04-02 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:15:17] Production.INFO: count ==470 [2025-04-02 01:15:17] Production.ERROR: pbx CDR StartTime 2025-04-01 22:15:05 - End Time 2025-04-02 01:15:05 [2025-04-02 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814743', 'tblTempUsageDetail_20' ) start [2025-04-02 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814743', 'tblTempUsageDetail_20' ) end [2025-04-02 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814743', 'tblTempVendorCDR_20' ) start [2025-04-02 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814743', 'tblTempVendorCDR_20' ) end [2025-04-02 01:15:17] Production.INFO: ProcessCDR(1,14814743,1,1,2) [2025-04-02 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814743', 'tblTempUsageDetail_20' ) start [2025-04-02 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814743', 'tblTempUsageDetail_20' ) end [2025-04-02 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:15:21] Production.INFO: ==9418== Releasing lock... [2025-04-02 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:16:06 [end_date_ymd] => 2025-04-02 01:16:06 [RateCDR] => 1 ) [2025-04-02 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:16:06' and `end` < '2025-04-02 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:16:18] Production.INFO: count ==473 [2025-04-02 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:16:06 - End Time 2025-04-02 01:16:06 [2025-04-02 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814748', 'tblTempUsageDetail_20' ) start [2025-04-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814748', 'tblTempUsageDetail_20' ) end [2025-04-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814748', 'tblTempVendorCDR_20' ) start [2025-04-02 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814748', 'tblTempVendorCDR_20' ) end [2025-04-02 01:16:18] Production.INFO: ProcessCDR(1,14814748,1,1,2) [2025-04-02 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814748', 'tblTempUsageDetail_20' ) start [2025-04-02 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814748', 'tblTempUsageDetail_20' ) end [2025-04-02 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:16:22] Production.INFO: ==9501== Releasing lock... [2025-04-02 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:17:05 [end_date_ymd] => 2025-04-02 01:17:05 [RateCDR] => 1 ) [2025-04-02 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:17:05' and `end` < '2025-04-02 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:17:18] Production.INFO: count ==473 [2025-04-02 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:17:05 - End Time 2025-04-02 01:17:05 [2025-04-02 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814753', 'tblTempUsageDetail_20' ) start [2025-04-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814753', 'tblTempUsageDetail_20' ) end [2025-04-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814753', 'tblTempVendorCDR_20' ) start [2025-04-02 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814753', 'tblTempVendorCDR_20' ) end [2025-04-02 01:17:18] Production.INFO: ProcessCDR(1,14814753,1,1,2) [2025-04-02 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814753', 'tblTempUsageDetail_20' ) start [2025-04-02 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814753', 'tblTempUsageDetail_20' ) end [2025-04-02 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:17:22] Production.INFO: ==9581== Releasing lock... [2025-04-02 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:17:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:18:06 [end_date_ymd] => 2025-04-02 01:18:06 [RateCDR] => 1 ) [2025-04-02 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:18:06' and `end` < '2025-04-02 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:18:18] Production.INFO: count ==478 [2025-04-02 01:18:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:18:06 - End Time 2025-04-02 01:18:06 [2025-04-02 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814758', 'tblTempUsageDetail_20' ) start [2025-04-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814758', 'tblTempUsageDetail_20' ) end [2025-04-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814758', 'tblTempVendorCDR_20' ) start [2025-04-02 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814758', 'tblTempVendorCDR_20' ) end [2025-04-02 01:18:19] Production.INFO: ProcessCDR(1,14814758,1,1,2) [2025-04-02 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814758', 'tblTempUsageDetail_20' ) start [2025-04-02 01:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814758', 'tblTempUsageDetail_20' ) end [2025-04-02 01:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:18:24] Production.INFO: ==9674== Releasing lock... [2025-04-02 01:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:18:24] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:19:06 [end_date_ymd] => 2025-04-02 01:19:06 [RateCDR] => 1 ) [2025-04-02 01:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:19:06' and `end` < '2025-04-02 01:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:19:19] Production.INFO: count ==499 [2025-04-02 01:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:19:06 - End Time 2025-04-02 01:19:06 [2025-04-02 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814763', 'tblTempUsageDetail_20' ) start [2025-04-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814763', 'tblTempUsageDetail_20' ) end [2025-04-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814763', 'tblTempVendorCDR_20' ) start [2025-04-02 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814763', 'tblTempVendorCDR_20' ) end [2025-04-02 01:19:19] Production.INFO: ProcessCDR(1,14814763,1,1,2) [2025-04-02 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814763', 'tblTempUsageDetail_20' ) start [2025-04-02 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814763', 'tblTempUsageDetail_20' ) end [2025-04-02 01:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:19:24] Production.INFO: ==9798== Releasing lock... [2025-04-02 01:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:19:24] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:20:06 [end_date_ymd] => 2025-04-02 01:20:06 [RateCDR] => 1 ) [2025-04-02 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:20:06' and `end` < '2025-04-02 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:20:19] Production.INFO: count ==512 [2025-04-02 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:20:06 - End Time 2025-04-02 01:20:06 [2025-04-02 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814769', 'tblTempUsageDetail_20' ) start [2025-04-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814769', 'tblTempUsageDetail_20' ) end [2025-04-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814769', 'tblTempVendorCDR_20' ) start [2025-04-02 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814769', 'tblTempVendorCDR_20' ) end [2025-04-02 01:20:19] Production.INFO: ProcessCDR(1,14814769,1,1,2) [2025-04-02 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814769', 'tblTempUsageDetail_20' ) start [2025-04-02 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814769', 'tblTempUsageDetail_20' ) end [2025-04-02 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:20:23] Production.INFO: ==9883== Releasing lock... [2025-04-02 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:20:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:21:06 [end_date_ymd] => 2025-04-02 01:21:06 [RateCDR] => 1 ) [2025-04-02 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:21:06' and `end` < '2025-04-02 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:21:18] Production.INFO: count ==526 [2025-04-02 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:21:06 - End Time 2025-04-02 01:21:06 [2025-04-02 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814774', 'tblTempUsageDetail_20' ) start [2025-04-02 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814774', 'tblTempUsageDetail_20' ) end [2025-04-02 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814774', 'tblTempVendorCDR_20' ) start [2025-04-02 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814774', 'tblTempVendorCDR_20' ) end [2025-04-02 01:21:18] Production.INFO: ProcessCDR(1,14814774,1,1,2) [2025-04-02 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814774', 'tblTempUsageDetail_20' ) start [2025-04-02 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814774', 'tblTempUsageDetail_20' ) end [2025-04-02 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:21:23] Production.INFO: ==9966== Releasing lock... [2025-04-02 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:21:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:22:05 [end_date_ymd] => 2025-04-02 01:22:05 [RateCDR] => 1 ) [2025-04-02 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:22:05' and `end` < '2025-04-02 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:22:17] Production.INFO: count ==512 [2025-04-02 01:22:17] Production.ERROR: pbx CDR StartTime 2025-04-01 22:22:05 - End Time 2025-04-02 01:22:05 [2025-04-02 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814779', 'tblTempUsageDetail_20' ) start [2025-04-02 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814779', 'tblTempUsageDetail_20' ) end [2025-04-02 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814779', 'tblTempVendorCDR_20' ) start [2025-04-02 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814779', 'tblTempVendorCDR_20' ) end [2025-04-02 01:22:18] Production.INFO: ProcessCDR(1,14814779,1,1,2) [2025-04-02 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814779', 'tblTempUsageDetail_20' ) start [2025-04-02 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814779', 'tblTempUsageDetail_20' ) end [2025-04-02 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:22:23] Production.INFO: ==10047== Releasing lock... [2025-04-02 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:22:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:23:05 [end_date_ymd] => 2025-04-02 01:23:05 [RateCDR] => 1 ) [2025-04-02 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:23:05' and `end` < '2025-04-02 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:23:18] Production.INFO: count ==512 [2025-04-02 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:23:05 - End Time 2025-04-02 01:23:05 [2025-04-02 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814784', 'tblTempUsageDetail_20' ) start [2025-04-02 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814784', 'tblTempUsageDetail_20' ) end [2025-04-02 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814784', 'tblTempVendorCDR_20' ) start [2025-04-02 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814784', 'tblTempVendorCDR_20' ) end [2025-04-02 01:23:18] Production.INFO: ProcessCDR(1,14814784,1,1,2) [2025-04-02 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814784', 'tblTempUsageDetail_20' ) start [2025-04-02 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814784', 'tblTempUsageDetail_20' ) end [2025-04-02 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:23:21] Production.INFO: ==10131== Releasing lock... [2025-04-02 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:24:05 [end_date_ymd] => 2025-04-02 01:24:05 [RateCDR] => 1 ) [2025-04-02 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:24:05' and `end` < '2025-04-02 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:24:18] Production.INFO: count ==510 [2025-04-02 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:24:05 - End Time 2025-04-02 01:24:05 [2025-04-02 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814789', 'tblTempUsageDetail_20' ) start [2025-04-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814789', 'tblTempUsageDetail_20' ) end [2025-04-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814789', 'tblTempVendorCDR_20' ) start [2025-04-02 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814789', 'tblTempVendorCDR_20' ) end [2025-04-02 01:24:18] Production.INFO: ProcessCDR(1,14814789,1,1,2) [2025-04-02 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814789', 'tblTempUsageDetail_20' ) start [2025-04-02 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814789', 'tblTempUsageDetail_20' ) end [2025-04-02 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:24:22] Production.INFO: ==10210== Releasing lock... [2025-04-02 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:25:05 [end_date_ymd] => 2025-04-02 01:25:05 [RateCDR] => 1 ) [2025-04-02 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:25:05' and `end` < '2025-04-02 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:25:18] Production.INFO: count ==496 [2025-04-02 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:25:05 - End Time 2025-04-02 01:25:05 [2025-04-02 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814794', 'tblTempUsageDetail_20' ) start [2025-04-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814794', 'tblTempUsageDetail_20' ) end [2025-04-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814794', 'tblTempVendorCDR_20' ) start [2025-04-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814794', 'tblTempVendorCDR_20' ) end [2025-04-02 01:25:18] Production.INFO: ProcessCDR(1,14814794,1,1,2) [2025-04-02 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814794', 'tblTempUsageDetail_20' ) start [2025-04-02 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814794', 'tblTempUsageDetail_20' ) end [2025-04-02 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:25:22] Production.INFO: ==10293== Releasing lock... [2025-04-02 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:26:05 [end_date_ymd] => 2025-04-02 01:26:05 [RateCDR] => 1 ) [2025-04-02 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:26:05' and `end` < '2025-04-02 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:26:18] Production.INFO: count ==505 [2025-04-02 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:26:05 - End Time 2025-04-02 01:26:05 [2025-04-02 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814799', 'tblTempUsageDetail_20' ) start [2025-04-02 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814799', 'tblTempUsageDetail_20' ) end [2025-04-02 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814799', 'tblTempVendorCDR_20' ) start [2025-04-02 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814799', 'tblTempVendorCDR_20' ) end [2025-04-02 01:26:18] Production.INFO: ProcessCDR(1,14814799,1,1,2) [2025-04-02 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814799', 'tblTempUsageDetail_20' ) start [2025-04-02 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814799', 'tblTempUsageDetail_20' ) end [2025-04-02 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:26:21] Production.INFO: ==10368== Releasing lock... [2025-04-02 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:27:05 [end_date_ymd] => 2025-04-02 01:27:05 [RateCDR] => 1 ) [2025-04-02 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:27:05' and `end` < '2025-04-02 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:27:18] Production.INFO: count ==505 [2025-04-02 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:27:05 - End Time 2025-04-02 01:27:05 [2025-04-02 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814804', 'tblTempUsageDetail_20' ) start [2025-04-02 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814804', 'tblTempUsageDetail_20' ) end [2025-04-02 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814804', 'tblTempVendorCDR_20' ) start [2025-04-02 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814804', 'tblTempVendorCDR_20' ) end [2025-04-02 01:27:18] Production.INFO: ProcessCDR(1,14814804,1,1,2) [2025-04-02 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814804', 'tblTempUsageDetail_20' ) start [2025-04-02 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814804', 'tblTempUsageDetail_20' ) end [2025-04-02 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:27:21] Production.INFO: ==10446== Releasing lock... [2025-04-02 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:28:06 [end_date_ymd] => 2025-04-02 01:28:06 [RateCDR] => 1 ) [2025-04-02 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:28:06' and `end` < '2025-04-02 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:28:19] Production.INFO: count ==511 [2025-04-02 01:28:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:28:06 - End Time 2025-04-02 01:28:06 [2025-04-02 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814809', 'tblTempUsageDetail_20' ) start [2025-04-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814809', 'tblTempUsageDetail_20' ) end [2025-04-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814809', 'tblTempVendorCDR_20' ) start [2025-04-02 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814809', 'tblTempVendorCDR_20' ) end [2025-04-02 01:28:19] Production.INFO: ProcessCDR(1,14814809,1,1,2) [2025-04-02 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814809', 'tblTempUsageDetail_20' ) start [2025-04-02 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814809', 'tblTempUsageDetail_20' ) end [2025-04-02 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:28:22] Production.INFO: ==10519== Releasing lock... [2025-04-02 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:29:05 [end_date_ymd] => 2025-04-02 01:29:05 [RateCDR] => 1 ) [2025-04-02 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:29:05' and `end` < '2025-04-02 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:29:17] Production.INFO: count ==509 [2025-04-02 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:29:05 - End Time 2025-04-02 01:29:05 [2025-04-02 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814814', 'tblTempUsageDetail_20' ) start [2025-04-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814814', 'tblTempUsageDetail_20' ) end [2025-04-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814814', 'tblTempVendorCDR_20' ) start [2025-04-02 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814814', 'tblTempVendorCDR_20' ) end [2025-04-02 01:29:18] Production.INFO: ProcessCDR(1,14814814,1,1,2) [2025-04-02 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814814', 'tblTempUsageDetail_20' ) start [2025-04-02 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814814', 'tblTempUsageDetail_20' ) end [2025-04-02 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:29:21] Production.INFO: ==10596== Releasing lock... [2025-04-02 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:30:07 [end_date_ymd] => 2025-04-02 01:30:07 [RateCDR] => 1 ) [2025-04-02 01:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:30:07' and `end` < '2025-04-02 01:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:30:19] Production.INFO: count ==515 [2025-04-02 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:30:07 - End Time 2025-04-02 01:30:07 [2025-04-02 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814820', 'tblTempUsageDetail_20' ) start [2025-04-02 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814820', 'tblTempUsageDetail_20' ) end [2025-04-02 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814820', 'tblTempVendorCDR_20' ) start [2025-04-02 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814820', 'tblTempVendorCDR_20' ) end [2025-04-02 01:30:20] Production.INFO: ProcessCDR(1,14814820,1,1,2) [2025-04-02 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814820', 'tblTempUsageDetail_20' ) start [2025-04-02 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814820', 'tblTempUsageDetail_20' ) end [2025-04-02 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:30:23] Production.INFO: ==10676== Releasing lock... [2025-04-02 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:31:05 [end_date_ymd] => 2025-04-02 01:31:05 [RateCDR] => 1 ) [2025-04-02 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:31:05' and `end` < '2025-04-02 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:31:17] Production.INFO: count ==514 [2025-04-02 01:31:17] Production.ERROR: pbx CDR StartTime 2025-04-01 22:31:05 - End Time 2025-04-02 01:31:05 [2025-04-02 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814825', 'tblTempUsageDetail_20' ) start [2025-04-02 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814825', 'tblTempUsageDetail_20' ) end [2025-04-02 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814825', 'tblTempVendorCDR_20' ) start [2025-04-02 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814825', 'tblTempVendorCDR_20' ) end [2025-04-02 01:31:18] Production.INFO: ProcessCDR(1,14814825,1,1,2) [2025-04-02 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814825', 'tblTempUsageDetail_20' ) start [2025-04-02 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814825', 'tblTempUsageDetail_20' ) end [2025-04-02 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:31:21] Production.INFO: ==10761== Releasing lock... [2025-04-02 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:32:06 [end_date_ymd] => 2025-04-02 01:32:06 [RateCDR] => 1 ) [2025-04-02 01:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:32:06' and `end` < '2025-04-02 01:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:32:18] Production.INFO: count ==514 [2025-04-02 01:32:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:32:06 - End Time 2025-04-02 01:32:06 [2025-04-02 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814830', 'tblTempUsageDetail_20' ) start [2025-04-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814830', 'tblTempUsageDetail_20' ) end [2025-04-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814830', 'tblTempVendorCDR_20' ) start [2025-04-02 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814830', 'tblTempVendorCDR_20' ) end [2025-04-02 01:32:19] Production.INFO: ProcessCDR(1,14814830,1,1,2) [2025-04-02 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814830', 'tblTempUsageDetail_20' ) start [2025-04-02 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814830', 'tblTempUsageDetail_20' ) end [2025-04-02 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:32:22] Production.INFO: ==10846== Releasing lock... [2025-04-02 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:33:05 [end_date_ymd] => 2025-04-02 01:33:05 [RateCDR] => 1 ) [2025-04-02 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:33:05' and `end` < '2025-04-02 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:33:18] Production.INFO: count ==514 [2025-04-02 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:33:05 - End Time 2025-04-02 01:33:05 [2025-04-02 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814835', 'tblTempUsageDetail_20' ) start [2025-04-02 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814835', 'tblTempUsageDetail_20' ) end [2025-04-02 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814835', 'tblTempVendorCDR_20' ) start [2025-04-02 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814835', 'tblTempVendorCDR_20' ) end [2025-04-02 01:33:18] Production.INFO: ProcessCDR(1,14814835,1,1,2) [2025-04-02 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814835', 'tblTempUsageDetail_20' ) start [2025-04-02 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814835', 'tblTempUsageDetail_20' ) end [2025-04-02 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:33:22] Production.INFO: ==10923== Releasing lock... [2025-04-02 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:34:06 [end_date_ymd] => 2025-04-02 01:34:06 [RateCDR] => 1 ) [2025-04-02 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:34:06' and `end` < '2025-04-02 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:34:18] Production.INFO: count ==512 [2025-04-02 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:34:06 - End Time 2025-04-02 01:34:06 [2025-04-02 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814840', 'tblTempUsageDetail_20' ) start [2025-04-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814840', 'tblTempUsageDetail_20' ) end [2025-04-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814840', 'tblTempVendorCDR_20' ) start [2025-04-02 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814840', 'tblTempVendorCDR_20' ) end [2025-04-02 01:34:18] Production.INFO: ProcessCDR(1,14814840,1,1,2) [2025-04-02 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814840', 'tblTempUsageDetail_20' ) start [2025-04-02 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814840', 'tblTempUsageDetail_20' ) end [2025-04-02 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:34:22] Production.INFO: ==11042== Releasing lock... [2025-04-02 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:35:05 [end_date_ymd] => 2025-04-02 01:35:05 [RateCDR] => 1 ) [2025-04-02 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:35:05' and `end` < '2025-04-02 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:35:18] Production.INFO: count ==508 [2025-04-02 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:35:05 - End Time 2025-04-02 01:35:05 [2025-04-02 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814845', 'tblTempUsageDetail_20' ) start [2025-04-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814845', 'tblTempUsageDetail_20' ) end [2025-04-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814845', 'tblTempVendorCDR_20' ) start [2025-04-02 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814845', 'tblTempVendorCDR_20' ) end [2025-04-02 01:35:18] Production.INFO: ProcessCDR(1,14814845,1,1,2) [2025-04-02 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814845', 'tblTempUsageDetail_20' ) start [2025-04-02 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814845', 'tblTempUsageDetail_20' ) end [2025-04-02 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:35:22] Production.INFO: ==11117== Releasing lock... [2025-04-02 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:36:06 [end_date_ymd] => 2025-04-02 01:36:06 [RateCDR] => 1 ) [2025-04-02 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:36:06' and `end` < '2025-04-02 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:36:19] Production.INFO: count ==512 [2025-04-02 01:36:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:36:06 - End Time 2025-04-02 01:36:06 [2025-04-02 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814850', 'tblTempUsageDetail_20' ) start [2025-04-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814850', 'tblTempUsageDetail_20' ) end [2025-04-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814850', 'tblTempVendorCDR_20' ) start [2025-04-02 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814850', 'tblTempVendorCDR_20' ) end [2025-04-02 01:36:19] Production.INFO: ProcessCDR(1,14814850,1,1,2) [2025-04-02 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814850', 'tblTempUsageDetail_20' ) start [2025-04-02 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814850', 'tblTempUsageDetail_20' ) end [2025-04-02 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:36:22] Production.INFO: ==11196== Releasing lock... [2025-04-02 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:37:05 [end_date_ymd] => 2025-04-02 01:37:05 [RateCDR] => 1 ) [2025-04-02 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:37:05' and `end` < '2025-04-02 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:37:18] Production.INFO: count ==514 [2025-04-02 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:37:05 - End Time 2025-04-02 01:37:05 [2025-04-02 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814855', 'tblTempUsageDetail_20' ) start [2025-04-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814855', 'tblTempUsageDetail_20' ) end [2025-04-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814855', 'tblTempVendorCDR_20' ) start [2025-04-02 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814855', 'tblTempVendorCDR_20' ) end [2025-04-02 01:37:18] Production.INFO: ProcessCDR(1,14814855,1,1,2) [2025-04-02 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814855', 'tblTempUsageDetail_20' ) start [2025-04-02 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814855', 'tblTempUsageDetail_20' ) end [2025-04-02 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:37:22] Production.INFO: ==11268== Releasing lock... [2025-04-02 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:38:05 [end_date_ymd] => 2025-04-02 01:38:05 [RateCDR] => 1 ) [2025-04-02 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:38:05' and `end` < '2025-04-02 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:38:18] Production.INFO: count ==514 [2025-04-02 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:38:05 - End Time 2025-04-02 01:38:05 [2025-04-02 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814860', 'tblTempUsageDetail_20' ) start [2025-04-02 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814860', 'tblTempUsageDetail_20' ) end [2025-04-02 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814860', 'tblTempVendorCDR_20' ) start [2025-04-02 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814860', 'tblTempVendorCDR_20' ) end [2025-04-02 01:38:18] Production.INFO: ProcessCDR(1,14814860,1,1,2) [2025-04-02 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814860', 'tblTempUsageDetail_20' ) start [2025-04-02 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814860', 'tblTempUsageDetail_20' ) end [2025-04-02 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:38:22] Production.INFO: ==11351== Releasing lock... [2025-04-02 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:39:05 [end_date_ymd] => 2025-04-02 01:39:05 [RateCDR] => 1 ) [2025-04-02 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:39:05' and `end` < '2025-04-02 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:39:17] Production.INFO: count ==514 [2025-04-02 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:39:05 - End Time 2025-04-02 01:39:05 [2025-04-02 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814865', 'tblTempUsageDetail_20' ) start [2025-04-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814865', 'tblTempUsageDetail_20' ) end [2025-04-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814865', 'tblTempVendorCDR_20' ) start [2025-04-02 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814865', 'tblTempVendorCDR_20' ) end [2025-04-02 01:39:18] Production.INFO: ProcessCDR(1,14814865,1,1,2) [2025-04-02 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814865', 'tblTempUsageDetail_20' ) start [2025-04-02 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814865', 'tblTempUsageDetail_20' ) end [2025-04-02 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:39:21] Production.INFO: ==11424== Releasing lock... [2025-04-02 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:40:06 [end_date_ymd] => 2025-04-02 01:40:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:40:06' and `end` < '2025-04-02 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-04-02 01:40:19] Production.INFO: count ==524 [2025-04-02 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:40:06 - End Time 2025-04-02 01:40:06 [2025-04-02 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814871', 'tblTempUsageDetail_20' ) start [2025-04-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814871', 'tblTempUsageDetail_20' ) end [2025-04-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814871', 'tblTempVendorCDR_20' ) start [2025-04-02 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814871', 'tblTempVendorCDR_20' ) end [2025-04-02 01:40:19] Production.INFO: ProcessCDR(1,14814871,1,1,2) [2025-04-02 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814871', 'tblTempUsageDetail_20' ) start [2025-04-02 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814871', 'tblTempUsageDetail_20' ) end [2025-04-02 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:40:23] Production.INFO: ==11504== Releasing lock... [2025-04-02 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:41:06 [end_date_ymd] => 2025-04-02 01:41:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:41:06' and `end` < '2025-04-02 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-04-02 01:41:18] Production.INFO: count ==528 [2025-04-02 01:41:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:41:06 - End Time 2025-04-02 01:41:06 [2025-04-02 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814876', 'tblTempUsageDetail_20' ) start [2025-04-02 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814876', 'tblTempUsageDetail_20' ) end [2025-04-02 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814876', 'tblTempVendorCDR_20' ) start [2025-04-02 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814876', 'tblTempVendorCDR_20' ) end [2025-04-02 01:41:19] Production.INFO: ProcessCDR(1,14814876,1,1,2) [2025-04-02 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814876', 'tblTempUsageDetail_20' ) start [2025-04-02 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814876', 'tblTempUsageDetail_20' ) end [2025-04-02 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:41:22] Production.INFO: ==11585== Releasing lock... [2025-04-02 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:42:05 [end_date_ymd] => 2025-04-02 01:42:05 [RateCDR] => 1 ) [2025-04-02 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:42:05' and `end` < '2025-04-02 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:42:17] Production.INFO: count ==528 [2025-04-02 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:42:05 - End Time 2025-04-02 01:42:05 [2025-04-02 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814881', 'tblTempUsageDetail_20' ) start [2025-04-02 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814881', 'tblTempUsageDetail_20' ) end [2025-04-02 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814881', 'tblTempVendorCDR_20' ) start [2025-04-02 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814881', 'tblTempVendorCDR_20' ) end [2025-04-02 01:42:18] Production.INFO: ProcessCDR(1,14814881,1,1,2) [2025-04-02 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814881', 'tblTempUsageDetail_20' ) start [2025-04-02 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814881', 'tblTempUsageDetail_20' ) end [2025-04-02 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:42:21] Production.INFO: ==11655== Releasing lock... [2025-04-02 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:43:06 [end_date_ymd] => 2025-04-02 01:43:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:43:06' and `end` < '2025-04-02 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-04-02 01:43:18] Production.INFO: count ==528 [2025-04-02 01:43:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:43:06 - End Time 2025-04-02 01:43:06 [2025-04-02 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814886', 'tblTempUsageDetail_20' ) start [2025-04-02 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814886', 'tblTempUsageDetail_20' ) end [2025-04-02 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814886', 'tblTempVendorCDR_20' ) start [2025-04-02 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814886', 'tblTempVendorCDR_20' ) end [2025-04-02 01:43:19] Production.INFO: ProcessCDR(1,14814886,1,1,2) [2025-04-02 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814886', 'tblTempUsageDetail_20' ) start [2025-04-02 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814886', 'tblTempUsageDetail_20' ) end [2025-04-02 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:43:22] Production.INFO: ==11734== Releasing lock... [2025-04-02 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:44:05 [end_date_ymd] => 2025-04-02 01:44:05 [RateCDR] => 1 ) [2025-04-02 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:44:05' and `end` < '2025-04-02 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:44:18] Production.INFO: count ==515 [2025-04-02 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:44:05 - End Time 2025-04-02 01:44:05 [2025-04-02 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814891', 'tblTempUsageDetail_20' ) start [2025-04-02 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814891', 'tblTempUsageDetail_20' ) end [2025-04-02 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814891', 'tblTempVendorCDR_20' ) start [2025-04-02 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814891', 'tblTempVendorCDR_20' ) end [2025-04-02 01:44:18] Production.INFO: ProcessCDR(1,14814891,1,1,2) [2025-04-02 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814891', 'tblTempUsageDetail_20' ) start [2025-04-02 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814891', 'tblTempUsageDetail_20' ) end [2025-04-02 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:44:21] Production.INFO: ==11815== Releasing lock... [2025-04-02 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:45:06 [end_date_ymd] => 2025-04-02 01:45:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:45:06' and `end` < '2025-04-02 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-04-02 01:45:18] Production.INFO: count ==515 [2025-04-02 01:45:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:45:06 - End Time 2025-04-02 01:45:06 [2025-04-02 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814896', 'tblTempUsageDetail_20' ) start [2025-04-02 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814896', 'tblTempUsageDetail_20' ) end [2025-04-02 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814896', 'tblTempVendorCDR_20' ) start [2025-04-02 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814896', 'tblTempVendorCDR_20' ) end [2025-04-02 01:45:19] Production.INFO: ProcessCDR(1,14814896,1,1,2) [2025-04-02 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814896', 'tblTempUsageDetail_20' ) start [2025-04-02 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814896', 'tblTempUsageDetail_20' ) end [2025-04-02 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:45:22] Production.INFO: ==11897== Releasing lock... [2025-04-02 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:46:06 [end_date_ymd] => 2025-04-02 01:46:06 [RateCDR] => 1 ) [2025-04-02 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:46:06' and `end` < '2025-04-02 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:46:18] Production.INFO: count ==519 [2025-04-02 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:46:06 - End Time 2025-04-02 01:46:06 [2025-04-02 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814901', 'tblTempUsageDetail_20' ) start [2025-04-02 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814901', 'tblTempUsageDetail_20' ) end [2025-04-02 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814901', 'tblTempVendorCDR_20' ) start [2025-04-02 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814901', 'tblTempVendorCDR_20' ) end [2025-04-02 01:46:18] Production.INFO: ProcessCDR(1,14814901,1,1,2) [2025-04-02 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814901', 'tblTempUsageDetail_20' ) start [2025-04-02 01:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814901', 'tblTempUsageDetail_20' ) end [2025-04-02 01:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:46:24] Production.INFO: ==11983== Releasing lock... [2025-04-02 01:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:46:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:47:06 [end_date_ymd] => 2025-04-02 01:47:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:47:06' and `end` < '2025-04-02 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-04-02 01:47:18] Production.INFO: count ==519 [2025-04-02 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:47:06 - End Time 2025-04-02 01:47:06 [2025-04-02 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814906', 'tblTempUsageDetail_20' ) start [2025-04-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814906', 'tblTempUsageDetail_20' ) end [2025-04-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814906', 'tblTempVendorCDR_20' ) start [2025-04-02 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814906', 'tblTempVendorCDR_20' ) end [2025-04-02 01:47:18] Production.INFO: ProcessCDR(1,14814906,1,1,2) [2025-04-02 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814906', 'tblTempUsageDetail_20' ) start [2025-04-02 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814906', 'tblTempUsageDetail_20' ) end [2025-04-02 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:47:22] Production.INFO: ==12063== Releasing lock... [2025-04-02 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:48:05 [end_date_ymd] => 2025-04-02 01:48:05 [RateCDR] => 1 ) [2025-04-02 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:48:05' and `end` < '2025-04-02 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:48:17] Production.INFO: count ==515 [2025-04-02 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:48:05 - End Time 2025-04-02 01:48:05 [2025-04-02 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814911', 'tblTempUsageDetail_20' ) start [2025-04-02 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814911', 'tblTempUsageDetail_20' ) end [2025-04-02 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814911', 'tblTempVendorCDR_20' ) start [2025-04-02 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814911', 'tblTempVendorCDR_20' ) end [2025-04-02 01:48:18] Production.INFO: ProcessCDR(1,14814911,1,1,2) [2025-04-02 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814911', 'tblTempUsageDetail_20' ) start [2025-04-02 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814911', 'tblTempUsageDetail_20' ) end [2025-04-02 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:48:21] Production.INFO: ==12132== Releasing lock... [2025-04-02 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:49:06 [end_date_ymd] => 2025-04-02 01:49:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:49:06' and `end` < '2025-04-02 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-04-02 01:49:18] Production.INFO: count ==512 [2025-04-02 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:49:06 - End Time 2025-04-02 01:49:06 [2025-04-02 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814916', 'tblTempUsageDetail_20' ) start [2025-04-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814916', 'tblTempUsageDetail_20' ) end [2025-04-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814916', 'tblTempVendorCDR_20' ) start [2025-04-02 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814916', 'tblTempVendorCDR_20' ) end [2025-04-02 01:49:19] Production.INFO: ProcessCDR(1,14814916,1,1,2) [2025-04-02 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814916', 'tblTempUsageDetail_20' ) start [2025-04-02 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814916', 'tblTempUsageDetail_20' ) end [2025-04-02 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:49:22] Production.INFO: ==12211== Releasing lock... [2025-04-02 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:50:05 [end_date_ymd] => 2025-04-02 01:50:05 [RateCDR] => 1 ) [2025-04-02 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:50:05' and `end` < '2025-04-02 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:50:17] Production.INFO: count ==508 [2025-04-02 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:50:05 - End Time 2025-04-02 01:50:05 [2025-04-02 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814921', 'tblTempUsageDetail_20' ) start [2025-04-02 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814921', 'tblTempUsageDetail_20' ) end [2025-04-02 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814921', 'tblTempVendorCDR_20' ) start [2025-04-02 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814921', 'tblTempVendorCDR_20' ) end [2025-04-02 01:50:18] Production.INFO: ProcessCDR(1,14814921,1,1,2) [2025-04-02 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814921', 'tblTempUsageDetail_20' ) start [2025-04-02 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814921', 'tblTempUsageDetail_20' ) end [2025-04-02 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:50:21] Production.INFO: ==12336== Releasing lock... [2025-04-02 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:51:05 [end_date_ymd] => 2025-04-02 01:51:05 [RateCDR] => 1 ) [2025-04-02 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:51:05' and `end` < '2025-04-02 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:51:18] Production.INFO: count ==508 [2025-04-02 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:51:05 - End Time 2025-04-02 01:51:05 [2025-04-02 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814927', 'tblTempUsageDetail_20' ) start [2025-04-02 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814927', 'tblTempUsageDetail_20' ) end [2025-04-02 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814927', 'tblTempVendorCDR_20' ) start [2025-04-02 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814927', 'tblTempVendorCDR_20' ) end [2025-04-02 01:51:18] Production.INFO: ProcessCDR(1,14814927,1,1,2) [2025-04-02 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814927', 'tblTempUsageDetail_20' ) start [2025-04-02 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814927', 'tblTempUsageDetail_20' ) end [2025-04-02 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:51:21] Production.INFO: ==12421== Releasing lock... [2025-04-02 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:52:05 [end_date_ymd] => 2025-04-02 01:52:05 [RateCDR] => 1 ) [2025-04-02 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:52:05' and `end` < '2025-04-02 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:52:18] Production.INFO: count ==508 [2025-04-02 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:52:05 - End Time 2025-04-02 01:52:05 [2025-04-02 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814932', 'tblTempUsageDetail_20' ) start [2025-04-02 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814932', 'tblTempUsageDetail_20' ) end [2025-04-02 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814932', 'tblTempVendorCDR_20' ) start [2025-04-02 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814932', 'tblTempVendorCDR_20' ) end [2025-04-02 01:52:18] Production.INFO: ProcessCDR(1,14814932,1,1,2) [2025-04-02 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814932', 'tblTempUsageDetail_20' ) start [2025-04-02 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814932', 'tblTempUsageDetail_20' ) end [2025-04-02 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:52:21] Production.INFO: ==12501== Releasing lock... [2025-04-02 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:53:05 [end_date_ymd] => 2025-04-02 01:53:05 [RateCDR] => 1 ) [2025-04-02 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:53:05' and `end` < '2025-04-02 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:53:18] Production.INFO: count ==505 [2025-04-02 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:53:05 - End Time 2025-04-02 01:53:05 [2025-04-02 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814937', 'tblTempUsageDetail_20' ) start [2025-04-02 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814937', 'tblTempUsageDetail_20' ) end [2025-04-02 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814937', 'tblTempVendorCDR_20' ) start [2025-04-02 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814937', 'tblTempVendorCDR_20' ) end [2025-04-02 01:53:18] Production.INFO: ProcessCDR(1,14814937,1,1,2) [2025-04-02 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814937', 'tblTempUsageDetail_20' ) start [2025-04-02 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814937', 'tblTempUsageDetail_20' ) end [2025-04-02 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:53:21] Production.INFO: ==12581== Releasing lock... [2025-04-02 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:54:06 [end_date_ymd] => 2025-04-02 01:54:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:54:06' and `end` < '2025-04-02 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-04-02 01:54:19] Production.INFO: count ==507 [2025-04-02 01:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:54:06 - End Time 2025-04-02 01:54:06 [2025-04-02 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814942', 'tblTempUsageDetail_20' ) start [2025-04-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814942', 'tblTempUsageDetail_20' ) end [2025-04-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814942', 'tblTempVendorCDR_20' ) start [2025-04-02 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814942', 'tblTempVendorCDR_20' ) end [2025-04-02 01:54:19] Production.INFO: ProcessCDR(1,14814942,1,1,2) [2025-04-02 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814942', 'tblTempUsageDetail_20' ) start [2025-04-02 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814942', 'tblTempUsageDetail_20' ) end [2025-04-02 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:54:22] Production.INFO: ==12662== Releasing lock... [2025-04-02 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:55:05 [end_date_ymd] => 2025-04-02 01:55:05 [RateCDR] => 1 ) [2025-04-02 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:55:05' and `end` < '2025-04-02 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:55:18] Production.INFO: count ==507 [2025-04-02 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:55:05 - End Time 2025-04-02 01:55:05 [2025-04-02 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814947', 'tblTempUsageDetail_20' ) start [2025-04-02 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814947', 'tblTempUsageDetail_20' ) end [2025-04-02 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814947', 'tblTempVendorCDR_20' ) start [2025-04-02 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814947', 'tblTempVendorCDR_20' ) end [2025-04-02 01:55:18] Production.INFO: ProcessCDR(1,14814947,1,1,2) [2025-04-02 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814947', 'tblTempUsageDetail_20' ) start [2025-04-02 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814947', 'tblTempUsageDetail_20' ) end [2025-04-02 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:55:22] Production.INFO: ==12742== Releasing lock... [2025-04-02 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:56:06 [end_date_ymd] => 2025-04-02 01:56:06 [RateCDR] => 1 ) [2025-04-02 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:56:06' and `end` < '2025-04-02 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:56:19] Production.INFO: count ==509 [2025-04-02 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:56:06 - End Time 2025-04-02 01:56:06 [2025-04-02 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814952', 'tblTempUsageDetail_20' ) start [2025-04-02 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814952', 'tblTempUsageDetail_20' ) end [2025-04-02 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814952', 'tblTempVendorCDR_20' ) start [2025-04-02 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814952', 'tblTempVendorCDR_20' ) end [2025-04-02 01:56:19] Production.INFO: ProcessCDR(1,14814952,1,1,2) [2025-04-02 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814952', 'tblTempUsageDetail_20' ) start [2025-04-02 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814952', 'tblTempUsageDetail_20' ) end [2025-04-02 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:56:22] Production.INFO: ==12817== Releasing lock... [2025-04-02 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:57:06 [end_date_ymd] => 2025-04-02 01:57:06 [RateCDR] => 1 ) [2025-04-02 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:57:06' and `end` < '2025-04-02 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:57:18] Production.INFO: count ==510 [2025-04-02 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:57:06 - End Time 2025-04-02 01:57:06 [2025-04-02 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814957', 'tblTempUsageDetail_20' ) start [2025-04-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814957', 'tblTempUsageDetail_20' ) end [2025-04-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814957', 'tblTempVendorCDR_20' ) start [2025-04-02 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814957', 'tblTempVendorCDR_20' ) end [2025-04-02 01:57:18] Production.INFO: ProcessCDR(1,14814957,1,1,2) [2025-04-02 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814957', 'tblTempUsageDetail_20' ) start [2025-04-02 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814957', 'tblTempUsageDetail_20' ) end [2025-04-02 01:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:57:24] Production.INFO: ==12899== Releasing lock... [2025-04-02 01:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:57:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:58:06 [end_date_ymd] => 2025-04-02 01:58:06 [RateCDR] => 1 ) [2025-04-02 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-04-01 22:58:06' and `end` < '2025-04-02 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-04-02 01:58:18] Production.INFO: count ==491 [2025-04-02 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 22:58:06 - End Time 2025-04-02 01:58:06 [2025-04-02 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814962', 'tblTempUsageDetail_20' ) start [2025-04-02 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814962', 'tblTempUsageDetail_20' ) end [2025-04-02 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814962', 'tblTempVendorCDR_20' ) start [2025-04-02 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814962', 'tblTempVendorCDR_20' ) end [2025-04-02 01:58:19] Production.INFO: ProcessCDR(1,14814962,1,1,2) [2025-04-02 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814962', 'tblTempUsageDetail_20' ) start [2025-04-02 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814962', 'tblTempUsageDetail_20' ) end [2025-04-02 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:58:22] Production.INFO: ==12982== Releasing lock... [2025-04-02 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 22:59:05 [end_date_ymd] => 2025-04-02 01:59:05 [RateCDR] => 1 ) [2025-04-02 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 22:59:05' and `end` < '2025-04-02 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 01:59:18] Production.INFO: count ==480 [2025-04-02 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 22:59:05 - End Time 2025-04-02 01:59:05 [2025-04-02 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814967', 'tblTempUsageDetail_20' ) start [2025-04-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814967', 'tblTempUsageDetail_20' ) end [2025-04-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814967', 'tblTempVendorCDR_20' ) start [2025-04-02 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814967', 'tblTempVendorCDR_20' ) end [2025-04-02 01:59:18] Production.INFO: ProcessCDR(1,14814967,1,1,2) [2025-04-02 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814967', 'tblTempUsageDetail_20' ) start [2025-04-02 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814967', 'tblTempUsageDetail_20' ) end [2025-04-02 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 01:59:21] Production.INFO: ==13060== Releasing lock... [2025-04-02 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 01:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:00:06 [end_date_ymd] => 2025-04-02 02:00:06 [RateCDR] => 1 ) [2025-04-02 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:00:06' and `end` < '2025-04-02 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:00:19] Production.INFO: count ==484 [2025-04-02 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:00:06 - End Time 2025-04-02 02:00:06 [2025-04-02 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814972', 'tblTempUsageDetail_20' ) start [2025-04-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814972', 'tblTempUsageDetail_20' ) end [2025-04-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814972', 'tblTempVendorCDR_20' ) start [2025-04-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814972', 'tblTempVendorCDR_20' ) end [2025-04-02 02:00:19] Production.INFO: ProcessCDR(1,14814972,1,1,2) [2025-04-02 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814972', 'tblTempUsageDetail_20' ) start [2025-04-02 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814972', 'tblTempUsageDetail_20' ) end [2025-04-02 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:00:24] Production.INFO: ==13141== Releasing lock... [2025-04-02 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:00:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:01:06 [end_date_ymd] => 2025-04-02 02:01:06 [RateCDR] => 1 ) [2025-04-02 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:01:06' and `end` < '2025-04-02 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:01:18] Production.INFO: count ==484 [2025-04-02 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:01:06 - End Time 2025-04-02 02:01:06 [2025-04-02 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814978', 'tblTempUsageDetail_20' ) start [2025-04-02 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814978', 'tblTempUsageDetail_20' ) end [2025-04-02 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814978', 'tblTempVendorCDR_20' ) start [2025-04-02 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814978', 'tblTempVendorCDR_20' ) end [2025-04-02 02:01:19] Production.INFO: ProcessCDR(1,14814978,1,1,2) [2025-04-02 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814978', 'tblTempUsageDetail_20' ) start [2025-04-02 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814978', 'tblTempUsageDetail_20' ) end [2025-04-02 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:01:22] Production.INFO: ==13237== Releasing lock... [2025-04-02 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:02:06 [end_date_ymd] => 2025-04-02 02:02:06 [RateCDR] => 1 ) [2025-04-02 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:02:06' and `end` < '2025-04-02 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:02:18] Production.INFO: count ==476 [2025-04-02 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:02:06 - End Time 2025-04-02 02:02:06 [2025-04-02 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814983', 'tblTempUsageDetail_20' ) start [2025-04-02 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814983', 'tblTempUsageDetail_20' ) end [2025-04-02 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814983', 'tblTempVendorCDR_20' ) start [2025-04-02 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814983', 'tblTempVendorCDR_20' ) end [2025-04-02 02:02:18] Production.INFO: ProcessCDR(1,14814983,1,1,2) [2025-04-02 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814983', 'tblTempUsageDetail_20' ) start [2025-04-02 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814983', 'tblTempUsageDetail_20' ) end [2025-04-02 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:02:22] Production.INFO: ==13400== Releasing lock... [2025-04-02 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:02:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:03:06 [end_date_ymd] => 2025-04-02 02:03:06 [RateCDR] => 1 ) [2025-04-02 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:03:06' and `end` < '2025-04-02 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:03:18] Production.INFO: count ==475 [2025-04-02 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:03:06 - End Time 2025-04-02 02:03:06 [2025-04-02 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814988', 'tblTempUsageDetail_20' ) start [2025-04-02 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814988', 'tblTempUsageDetail_20' ) end [2025-04-02 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814988', 'tblTempVendorCDR_20' ) start [2025-04-02 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814988', 'tblTempVendorCDR_20' ) end [2025-04-02 02:03:18] Production.INFO: ProcessCDR(1,14814988,1,1,2) [2025-04-02 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814988', 'tblTempUsageDetail_20' ) start [2025-04-02 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814988', 'tblTempUsageDetail_20' ) end [2025-04-02 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:03:22] Production.INFO: ==13480== Releasing lock... [2025-04-02 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:04:05 [end_date_ymd] => 2025-04-02 02:04:05 [RateCDR] => 1 ) [2025-04-02 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:04:05' and `end` < '2025-04-02 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:04:18] Production.INFO: count ==475 [2025-04-02 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:04:05 - End Time 2025-04-02 02:04:05 [2025-04-02 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814993', 'tblTempUsageDetail_20' ) start [2025-04-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814993', 'tblTempUsageDetail_20' ) end [2025-04-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814993', 'tblTempVendorCDR_20' ) start [2025-04-02 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814993', 'tblTempVendorCDR_20' ) end [2025-04-02 02:04:18] Production.INFO: ProcessCDR(1,14814993,1,1,2) [2025-04-02 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814993', 'tblTempUsageDetail_20' ) start [2025-04-02 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814993', 'tblTempUsageDetail_20' ) end [2025-04-02 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:04:22] Production.INFO: ==13569== Releasing lock... [2025-04-02 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:05:05 [end_date_ymd] => 2025-04-02 02:05:05 [RateCDR] => 1 ) [2025-04-02 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:05:05' and `end` < '2025-04-02 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:05:18] Production.INFO: count ==475 [2025-04-02 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:05:05 - End Time 2025-04-02 02:05:05 [2025-04-02 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814998', 'tblTempUsageDetail_20' ) start [2025-04-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14814998', 'tblTempUsageDetail_20' ) end [2025-04-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814998', 'tblTempVendorCDR_20' ) start [2025-04-02 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14814998', 'tblTempVendorCDR_20' ) end [2025-04-02 02:05:18] Production.INFO: ProcessCDR(1,14814998,1,1,2) [2025-04-02 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14814998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14814998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14814998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14814998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814998', 'tblTempUsageDetail_20' ) start [2025-04-02 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14814998', 'tblTempUsageDetail_20' ) end [2025-04-02 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:05:22] Production.INFO: ==13691== Releasing lock... [2025-04-02 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:05:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:06:06 [end_date_ymd] => 2025-04-02 02:06:06 [RateCDR] => 1 ) [2025-04-02 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:06:06' and `end` < '2025-04-02 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:06:19] Production.INFO: count ==474 [2025-04-02 02:06:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:06:06 - End Time 2025-04-02 02:06:06 [2025-04-02 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815003', 'tblTempUsageDetail_20' ) start [2025-04-02 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815003', 'tblTempUsageDetail_20' ) end [2025-04-02 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815003', 'tblTempVendorCDR_20' ) start [2025-04-02 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815003', 'tblTempVendorCDR_20' ) end [2025-04-02 02:06:19] Production.INFO: ProcessCDR(1,14815003,1,1,2) [2025-04-02 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815003', 'tblTempUsageDetail_20' ) start [2025-04-02 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815003', 'tblTempUsageDetail_20' ) end [2025-04-02 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:06:22] Production.INFO: ==13772== Releasing lock... [2025-04-02 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:06:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:07:05 [end_date_ymd] => 2025-04-02 02:07:05 [RateCDR] => 1 ) [2025-04-02 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:07:05' and `end` < '2025-04-02 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:07:18] Production.INFO: count ==477 [2025-04-02 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:07:05 - End Time 2025-04-02 02:07:05 [2025-04-02 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815008', 'tblTempUsageDetail_20' ) start [2025-04-02 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815008', 'tblTempUsageDetail_20' ) end [2025-04-02 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815008', 'tblTempVendorCDR_20' ) start [2025-04-02 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815008', 'tblTempVendorCDR_20' ) end [2025-04-02 02:07:18] Production.INFO: ProcessCDR(1,14815008,1,1,2) [2025-04-02 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815008', 'tblTempUsageDetail_20' ) start [2025-04-02 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815008', 'tblTempUsageDetail_20' ) end [2025-04-02 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:07:21] Production.INFO: ==13853== Releasing lock... [2025-04-02 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:08:05 [end_date_ymd] => 2025-04-02 02:08:05 [RateCDR] => 1 ) [2025-04-02 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:08:05' and `end` < '2025-04-02 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:08:18] Production.INFO: count ==477 [2025-04-02 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:08:05 - End Time 2025-04-02 02:08:05 [2025-04-02 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815013', 'tblTempUsageDetail_20' ) start [2025-04-02 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815013', 'tblTempUsageDetail_20' ) end [2025-04-02 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815013', 'tblTempVendorCDR_20' ) start [2025-04-02 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815013', 'tblTempVendorCDR_20' ) end [2025-04-02 02:08:18] Production.INFO: ProcessCDR(1,14815013,1,1,2) [2025-04-02 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815013', 'tblTempUsageDetail_20' ) start [2025-04-02 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815013', 'tblTempUsageDetail_20' ) end [2025-04-02 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:08:22] Production.INFO: ==13932== Releasing lock... [2025-04-02 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:09:05 [end_date_ymd] => 2025-04-02 02:09:05 [RateCDR] => 1 ) [2025-04-02 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:09:05' and `end` < '2025-04-02 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:09:18] Production.INFO: count ==492 [2025-04-02 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:09:05 - End Time 2025-04-02 02:09:05 [2025-04-02 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815018', 'tblTempUsageDetail_20' ) start [2025-04-02 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815018', 'tblTempUsageDetail_20' ) end [2025-04-02 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815018', 'tblTempVendorCDR_20' ) start [2025-04-02 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815018', 'tblTempVendorCDR_20' ) end [2025-04-02 02:09:18] Production.INFO: ProcessCDR(1,14815018,1,1,2) [2025-04-02 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815018', 'tblTempUsageDetail_20' ) start [2025-04-02 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815018', 'tblTempUsageDetail_20' ) end [2025-04-02 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:09:21] Production.INFO: ==14016== Releasing lock... [2025-04-02 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:10:06 [end_date_ymd] => 2025-04-02 02:10:06 [RateCDR] => 1 ) [2025-04-02 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:10:06' and `end` < '2025-04-02 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:10:19] Production.INFO: count ==497 [2025-04-02 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:10:06 - End Time 2025-04-02 02:10:06 [2025-04-02 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815024', 'tblTempUsageDetail_20' ) start [2025-04-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815024', 'tblTempUsageDetail_20' ) end [2025-04-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815024', 'tblTempVendorCDR_20' ) start [2025-04-02 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815024', 'tblTempVendorCDR_20' ) end [2025-04-02 02:10:19] Production.INFO: ProcessCDR(1,14815024,1,1,2) [2025-04-02 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815024', 'tblTempUsageDetail_20' ) start [2025-04-02 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815024', 'tblTempUsageDetail_20' ) end [2025-04-02 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:10:23] Production.INFO: ==14104== Releasing lock... [2025-04-02 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:10:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:11:05 [end_date_ymd] => 2025-04-02 02:11:05 [RateCDR] => 1 ) [2025-04-02 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:11:05' and `end` < '2025-04-02 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:11:18] Production.INFO: count ==496 [2025-04-02 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:11:05 - End Time 2025-04-02 02:11:05 [2025-04-02 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815029', 'tblTempUsageDetail_20' ) start [2025-04-02 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815029', 'tblTempUsageDetail_20' ) end [2025-04-02 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815029', 'tblTempVendorCDR_20' ) start [2025-04-02 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815029', 'tblTempVendorCDR_20' ) end [2025-04-02 02:11:18] Production.INFO: ProcessCDR(1,14815029,1,1,2) [2025-04-02 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815029', 'tblTempUsageDetail_20' ) start [2025-04-02 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815029', 'tblTempUsageDetail_20' ) end [2025-04-02 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:11:22] Production.INFO: ==14191== Releasing lock... [2025-04-02 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:11:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:12:06 [end_date_ymd] => 2025-04-02 02:12:06 [RateCDR] => 1 ) [2025-04-02 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:12:06' and `end` < '2025-04-02 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:12:18] Production.INFO: count ==495 [2025-04-02 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:12:06 - End Time 2025-04-02 02:12:06 [2025-04-02 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815034', 'tblTempUsageDetail_20' ) start [2025-04-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815034', 'tblTempUsageDetail_20' ) end [2025-04-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815034', 'tblTempVendorCDR_20' ) start [2025-04-02 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815034', 'tblTempVendorCDR_20' ) end [2025-04-02 02:12:18] Production.INFO: ProcessCDR(1,14815034,1,1,2) [2025-04-02 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815034', 'tblTempUsageDetail_20' ) start [2025-04-02 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815034', 'tblTempUsageDetail_20' ) end [2025-04-02 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:12:22] Production.INFO: ==14273== Releasing lock... [2025-04-02 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:12:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:13:05 [end_date_ymd] => 2025-04-02 02:13:05 [RateCDR] => 1 ) [2025-04-02 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:13:05' and `end` < '2025-04-02 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:13:18] Production.INFO: count ==495 [2025-04-02 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:13:05 - End Time 2025-04-02 02:13:05 [2025-04-02 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815039', 'tblTempUsageDetail_20' ) start [2025-04-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815039', 'tblTempUsageDetail_20' ) end [2025-04-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815039', 'tblTempVendorCDR_20' ) start [2025-04-02 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815039', 'tblTempVendorCDR_20' ) end [2025-04-02 02:13:18] Production.INFO: ProcessCDR(1,14815039,1,1,2) [2025-04-02 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815039', 'tblTempUsageDetail_20' ) start [2025-04-02 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815039', 'tblTempUsageDetail_20' ) end [2025-04-02 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:13:21] Production.INFO: ==14354== Releasing lock... [2025-04-02 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:13:21] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:14:05 [end_date_ymd] => 2025-04-02 02:14:05 [RateCDR] => 1 ) [2025-04-02 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:14:05' and `end` < '2025-04-02 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:14:18] Production.INFO: count ==495 [2025-04-02 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:14:05 - End Time 2025-04-02 02:14:05 [2025-04-02 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815044', 'tblTempUsageDetail_20' ) start [2025-04-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815044', 'tblTempUsageDetail_20' ) end [2025-04-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815044', 'tblTempVendorCDR_20' ) start [2025-04-02 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815044', 'tblTempVendorCDR_20' ) end [2025-04-02 02:14:18] Production.INFO: ProcessCDR(1,14815044,1,1,2) [2025-04-02 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815044', 'tblTempUsageDetail_20' ) start [2025-04-02 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815044', 'tblTempUsageDetail_20' ) end [2025-04-02 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:14:22] Production.INFO: ==14435== Releasing lock... [2025-04-02 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:14:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:15:05 [end_date_ymd] => 2025-04-02 02:15:05 [RateCDR] => 1 ) [2025-04-02 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:15:05' and `end` < '2025-04-02 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:15:17] Production.INFO: count ==495 [2025-04-02 02:15:17] Production.ERROR: pbx CDR StartTime 2025-04-01 23:15:05 - End Time 2025-04-02 02:15:05 [2025-04-02 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815049', 'tblTempUsageDetail_20' ) start [2025-04-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815049', 'tblTempUsageDetail_20' ) end [2025-04-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815049', 'tblTempVendorCDR_20' ) start [2025-04-02 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815049', 'tblTempVendorCDR_20' ) end [2025-04-02 02:15:17] Production.INFO: ProcessCDR(1,14815049,1,1,2) [2025-04-02 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815049', 'tblTempUsageDetail_20' ) start [2025-04-02 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815049', 'tblTempUsageDetail_20' ) end [2025-04-02 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:15:21] Production.INFO: ==14516== Releasing lock... [2025-04-02 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:15:21] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:16:06 [end_date_ymd] => 2025-04-02 02:16:06 [RateCDR] => 1 ) [2025-04-02 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:16:06' and `end` < '2025-04-02 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:16:18] Production.INFO: count ==497 [2025-04-02 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:16:06 - End Time 2025-04-02 02:16:06 [2025-04-02 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815054', 'tblTempUsageDetail_20' ) start [2025-04-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815054', 'tblTempUsageDetail_20' ) end [2025-04-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815054', 'tblTempVendorCDR_20' ) start [2025-04-02 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815054', 'tblTempVendorCDR_20' ) end [2025-04-02 02:16:18] Production.INFO: ProcessCDR(1,14815054,1,1,2) [2025-04-02 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815054', 'tblTempUsageDetail_20' ) start [2025-04-02 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815054', 'tblTempUsageDetail_20' ) end [2025-04-02 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:16:22] Production.INFO: ==14598== Releasing lock... [2025-04-02 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:16:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:17:06 [end_date_ymd] => 2025-04-02 02:17:06 [RateCDR] => 1 ) [2025-04-02 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:17:06' and `end` < '2025-04-02 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:17:19] Production.INFO: count ==495 [2025-04-02 02:17:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:17:06 - End Time 2025-04-02 02:17:06 [2025-04-02 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815059', 'tblTempUsageDetail_20' ) start [2025-04-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815059', 'tblTempUsageDetail_20' ) end [2025-04-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815059', 'tblTempVendorCDR_20' ) start [2025-04-02 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815059', 'tblTempVendorCDR_20' ) end [2025-04-02 02:17:19] Production.INFO: ProcessCDR(1,14815059,1,1,2) [2025-04-02 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815059', 'tblTempUsageDetail_20' ) start [2025-04-02 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815059', 'tblTempUsageDetail_20' ) end [2025-04-02 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:17:23] Production.INFO: ==14679== Releasing lock... [2025-04-02 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:17:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:18:05 [end_date_ymd] => 2025-04-02 02:18:05 [RateCDR] => 1 ) [2025-04-02 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:18:05' and `end` < '2025-04-02 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:18:17] Production.INFO: count ==496 [2025-04-02 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:18:05 - End Time 2025-04-02 02:18:05 [2025-04-02 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815064', 'tblTempUsageDetail_20' ) start [2025-04-02 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815064', 'tblTempUsageDetail_20' ) end [2025-04-02 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815064', 'tblTempVendorCDR_20' ) start [2025-04-02 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815064', 'tblTempVendorCDR_20' ) end [2025-04-02 02:18:18] Production.INFO: ProcessCDR(1,14815064,1,1,2) [2025-04-02 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815064', 'tblTempUsageDetail_20' ) start [2025-04-02 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815064', 'tblTempUsageDetail_20' ) end [2025-04-02 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:18:23] Production.INFO: ==14759== Releasing lock... [2025-04-02 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:18:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:19:06 [end_date_ymd] => 2025-04-02 02:19:06 [RateCDR] => 1 ) [2025-04-02 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:19:06' and `end` < '2025-04-02 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:19:18] Production.INFO: count ==498 [2025-04-02 02:19:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:19:06 - End Time 2025-04-02 02:19:06 [2025-04-02 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815069', 'tblTempUsageDetail_20' ) start [2025-04-02 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815069', 'tblTempUsageDetail_20' ) end [2025-04-02 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815069', 'tblTempVendorCDR_20' ) start [2025-04-02 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815069', 'tblTempVendorCDR_20' ) end [2025-04-02 02:19:19] Production.INFO: ProcessCDR(1,14815069,1,1,2) [2025-04-02 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815069', 'tblTempUsageDetail_20' ) start [2025-04-02 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815069', 'tblTempUsageDetail_20' ) end [2025-04-02 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:19:22] Production.INFO: ==14844== Releasing lock... [2025-04-02 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:19:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:20:06 [end_date_ymd] => 2025-04-02 02:20:06 [RateCDR] => 1 ) [2025-04-02 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:20:06' and `end` < '2025-04-02 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:20:19] Production.INFO: count ==498 [2025-04-02 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:20:06 - End Time 2025-04-02 02:20:06 [2025-04-02 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815075', 'tblTempUsageDetail_20' ) start [2025-04-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815075', 'tblTempUsageDetail_20' ) end [2025-04-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815075', 'tblTempVendorCDR_20' ) start [2025-04-02 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815075', 'tblTempVendorCDR_20' ) end [2025-04-02 02:20:19] Production.INFO: ProcessCDR(1,14815075,1,1,2) [2025-04-02 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815075', 'tblTempUsageDetail_20' ) start [2025-04-02 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815075', 'tblTempUsageDetail_20' ) end [2025-04-02 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:20:22] Production.INFO: ==14964== Releasing lock... [2025-04-02 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:20:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:21:05 [end_date_ymd] => 2025-04-02 02:21:05 [RateCDR] => 1 ) [2025-04-02 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:21:05' and `end` < '2025-04-02 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:21:18] Production.INFO: count ==498 [2025-04-02 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:21:05 - End Time 2025-04-02 02:21:05 [2025-04-02 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815076', 'tblTempUsageDetail_20' ) start [2025-04-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815076', 'tblTempUsageDetail_20' ) end [2025-04-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815076', 'tblTempVendorCDR_20' ) start [2025-04-02 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815076', 'tblTempVendorCDR_20' ) end [2025-04-02 02:21:18] Production.INFO: ProcessCDR(1,14815076,1,1,2) [2025-04-02 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815076', 'tblTempUsageDetail_20' ) start [2025-04-02 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815076', 'tblTempUsageDetail_20' ) end [2025-04-02 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:21:22] Production.INFO: ==15048== Releasing lock... [2025-04-02 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:21:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:22:05 [end_date_ymd] => 2025-04-02 02:22:05 [RateCDR] => 1 ) [2025-04-02 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:22:05' and `end` < '2025-04-02 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:22:18] Production.INFO: count ==494 [2025-04-02 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:22:05 - End Time 2025-04-02 02:22:05 [2025-04-02 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815085', 'tblTempUsageDetail_20' ) start [2025-04-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815085', 'tblTempUsageDetail_20' ) end [2025-04-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815085', 'tblTempVendorCDR_20' ) start [2025-04-02 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815085', 'tblTempVendorCDR_20' ) end [2025-04-02 02:22:18] Production.INFO: ProcessCDR(1,14815085,1,1,2) [2025-04-02 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815085', 'tblTempUsageDetail_20' ) start [2025-04-02 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815085', 'tblTempUsageDetail_20' ) end [2025-04-02 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:22:22] Production.INFO: ==15127== Releasing lock... [2025-04-02 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:22:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:23:06 [end_date_ymd] => 2025-04-02 02:23:06 [RateCDR] => 1 ) [2025-04-02 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:23:06' and `end` < '2025-04-02 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:23:19] Production.INFO: count ==493 [2025-04-02 02:23:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:23:06 - End Time 2025-04-02 02:23:06 [2025-04-02 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815090', 'tblTempUsageDetail_20' ) start [2025-04-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815090', 'tblTempUsageDetail_20' ) end [2025-04-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815090', 'tblTempVendorCDR_20' ) start [2025-04-02 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815090', 'tblTempVendorCDR_20' ) end [2025-04-02 02:23:19] Production.INFO: ProcessCDR(1,14815090,1,1,2) [2025-04-02 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815090', 'tblTempUsageDetail_20' ) start [2025-04-02 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815090', 'tblTempUsageDetail_20' ) end [2025-04-02 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:23:22] Production.INFO: ==15209== Releasing lock... [2025-04-02 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:24:05 [end_date_ymd] => 2025-04-02 02:24:05 [RateCDR] => 1 ) [2025-04-02 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:24:05' and `end` < '2025-04-02 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:24:17] Production.INFO: count ==492 [2025-04-02 02:24:17] Production.ERROR: pbx CDR StartTime 2025-04-01 23:24:05 - End Time 2025-04-02 02:24:05 [2025-04-02 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815095', 'tblTempUsageDetail_20' ) start [2025-04-02 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815095', 'tblTempUsageDetail_20' ) end [2025-04-02 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815095', 'tblTempVendorCDR_20' ) start [2025-04-02 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815095', 'tblTempVendorCDR_20' ) end [2025-04-02 02:24:17] Production.INFO: ProcessCDR(1,14815095,1,1,2) [2025-04-02 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815095', 'tblTempUsageDetail_20' ) start [2025-04-02 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815095', 'tblTempUsageDetail_20' ) end [2025-04-02 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:24:21] Production.INFO: ==15288== Releasing lock... [2025-04-02 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:25:06 [end_date_ymd] => 2025-04-02 02:25:06 [RateCDR] => 1 ) [2025-04-02 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:25:06' and `end` < '2025-04-02 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:25:19] Production.INFO: count ==490 [2025-04-02 02:25:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:25:06 - End Time 2025-04-02 02:25:06 [2025-04-02 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815100', 'tblTempUsageDetail_20' ) start [2025-04-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815100', 'tblTempUsageDetail_20' ) end [2025-04-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815100', 'tblTempVendorCDR_20' ) start [2025-04-02 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815100', 'tblTempVendorCDR_20' ) end [2025-04-02 02:25:19] Production.INFO: ProcessCDR(1,14815100,1,1,2) [2025-04-02 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815100', 'tblTempUsageDetail_20' ) start [2025-04-02 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815100', 'tblTempUsageDetail_20' ) end [2025-04-02 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:25:22] Production.INFO: ==15370== Releasing lock... [2025-04-02 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:26:05 [end_date_ymd] => 2025-04-02 02:26:05 [RateCDR] => 1 ) [2025-04-02 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:26:05' and `end` < '2025-04-02 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:26:18] Production.INFO: count ==488 [2025-04-02 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:26:05 - End Time 2025-04-02 02:26:05 [2025-04-02 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815105', 'tblTempUsageDetail_20' ) start [2025-04-02 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815105', 'tblTempUsageDetail_20' ) end [2025-04-02 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815105', 'tblTempVendorCDR_20' ) start [2025-04-02 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815105', 'tblTempVendorCDR_20' ) end [2025-04-02 02:26:18] Production.INFO: ProcessCDR(1,14815105,1,1,2) [2025-04-02 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815105', 'tblTempUsageDetail_20' ) start [2025-04-02 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815105', 'tblTempUsageDetail_20' ) end [2025-04-02 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:26:22] Production.INFO: ==15452== Releasing lock... [2025-04-02 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:26:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:27:06 [end_date_ymd] => 2025-04-02 02:27:06 [RateCDR] => 1 ) [2025-04-02 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:27:06' and `end` < '2025-04-02 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:27:19] Production.INFO: count ==488 [2025-04-02 02:27:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:27:06 - End Time 2025-04-02 02:27:06 [2025-04-02 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815110', 'tblTempUsageDetail_20' ) start [2025-04-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815110', 'tblTempUsageDetail_20' ) end [2025-04-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815110', 'tblTempVendorCDR_20' ) start [2025-04-02 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815110', 'tblTempVendorCDR_20' ) end [2025-04-02 02:27:19] Production.INFO: ProcessCDR(1,14815110,1,1,2) [2025-04-02 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815110', 'tblTempUsageDetail_20' ) start [2025-04-02 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815110', 'tblTempUsageDetail_20' ) end [2025-04-02 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:27:22] Production.INFO: ==15535== Releasing lock... [2025-04-02 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:28:05 [end_date_ymd] => 2025-04-02 02:28:05 [RateCDR] => 1 ) [2025-04-02 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:28:05' and `end` < '2025-04-02 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:28:18] Production.INFO: count ==474 [2025-04-02 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:28:05 - End Time 2025-04-02 02:28:05 [2025-04-02 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815115', 'tblTempUsageDetail_20' ) start [2025-04-02 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815115', 'tblTempUsageDetail_20' ) end [2025-04-02 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815115', 'tblTempVendorCDR_20' ) start [2025-04-02 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815115', 'tblTempVendorCDR_20' ) end [2025-04-02 02:28:18] Production.INFO: ProcessCDR(1,14815115,1,1,2) [2025-04-02 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815115', 'tblTempUsageDetail_20' ) start [2025-04-02 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815115', 'tblTempUsageDetail_20' ) end [2025-04-02 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:28:21] Production.INFO: ==15613== Releasing lock... [2025-04-02 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:29:06 [end_date_ymd] => 2025-04-02 02:29:06 [RateCDR] => 1 ) [2025-04-02 02:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:29:06' and `end` < '2025-04-02 02:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:29:18] Production.INFO: count ==474 [2025-04-02 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:29:06 - End Time 2025-04-02 02:29:06 [2025-04-02 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815120', 'tblTempUsageDetail_20' ) start [2025-04-02 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815120', 'tblTempUsageDetail_20' ) end [2025-04-02 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815120', 'tblTempVendorCDR_20' ) start [2025-04-02 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815120', 'tblTempVendorCDR_20' ) end [2025-04-02 02:29:18] Production.INFO: ProcessCDR(1,14815120,1,1,2) [2025-04-02 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815120', 'tblTempUsageDetail_20' ) start [2025-04-02 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815120', 'tblTempUsageDetail_20' ) end [2025-04-02 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:29:22] Production.INFO: ==15702== Releasing lock... [2025-04-02 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:30:06 [end_date_ymd] => 2025-04-02 02:30:06 [RateCDR] => 1 ) [2025-04-02 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:30:06' and `end` < '2025-04-02 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:30:19] Production.INFO: count ==482 [2025-04-02 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:30:06 - End Time 2025-04-02 02:30:06 [2025-04-02 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815126', 'tblTempUsageDetail_20' ) start [2025-04-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815126', 'tblTempUsageDetail_20' ) end [2025-04-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815126', 'tblTempVendorCDR_20' ) start [2025-04-02 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815126', 'tblTempVendorCDR_20' ) end [2025-04-02 02:30:19] Production.INFO: ProcessCDR(1,14815126,1,1,2) [2025-04-02 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815126', 'tblTempUsageDetail_20' ) start [2025-04-02 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815126', 'tblTempUsageDetail_20' ) end [2025-04-02 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:30:22] Production.INFO: ==15781== Releasing lock... [2025-04-02 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:31:05 [end_date_ymd] => 2025-04-02 02:31:05 [RateCDR] => 1 ) [2025-04-02 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:31:05' and `end` < '2025-04-02 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:31:18] Production.INFO: count ==483 [2025-04-02 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:31:05 - End Time 2025-04-02 02:31:05 [2025-04-02 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815131', 'tblTempUsageDetail_20' ) start [2025-04-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815131', 'tblTempUsageDetail_20' ) end [2025-04-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815131', 'tblTempVendorCDR_20' ) start [2025-04-02 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815131', 'tblTempVendorCDR_20' ) end [2025-04-02 02:31:18] Production.INFO: ProcessCDR(1,14815131,1,1,2) [2025-04-02 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815131', 'tblTempUsageDetail_20' ) start [2025-04-02 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815131', 'tblTempUsageDetail_20' ) end [2025-04-02 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:31:22] Production.INFO: ==15863== Releasing lock... [2025-04-02 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:32:05 [end_date_ymd] => 2025-04-02 02:32:05 [RateCDR] => 1 ) [2025-04-02 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:32:05' and `end` < '2025-04-02 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:32:18] Production.INFO: count ==476 [2025-04-02 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:32:05 - End Time 2025-04-02 02:32:05 [2025-04-02 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815136', 'tblTempUsageDetail_20' ) start [2025-04-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815136', 'tblTempUsageDetail_20' ) end [2025-04-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815136', 'tblTempVendorCDR_20' ) start [2025-04-02 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815136', 'tblTempVendorCDR_20' ) end [2025-04-02 02:32:18] Production.INFO: ProcessCDR(1,14815136,1,1,2) [2025-04-02 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815136', 'tblTempUsageDetail_20' ) start [2025-04-02 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815136', 'tblTempUsageDetail_20' ) end [2025-04-02 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:32:21] Production.INFO: ==15943== Releasing lock... [2025-04-02 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:33:05 [end_date_ymd] => 2025-04-02 02:33:05 [RateCDR] => 1 ) [2025-04-02 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:33:05' and `end` < '2025-04-02 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:33:18] Production.INFO: count ==480 [2025-04-02 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:33:05 - End Time 2025-04-02 02:33:05 [2025-04-02 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815141', 'tblTempUsageDetail_20' ) start [2025-04-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815141', 'tblTempUsageDetail_20' ) end [2025-04-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815141', 'tblTempVendorCDR_20' ) start [2025-04-02 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815141', 'tblTempVendorCDR_20' ) end [2025-04-02 02:33:18] Production.INFO: ProcessCDR(1,14815141,1,1,2) [2025-04-02 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815141', 'tblTempUsageDetail_20' ) start [2025-04-02 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815141', 'tblTempUsageDetail_20' ) end [2025-04-02 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:33:22] Production.INFO: ==16028== Releasing lock... [2025-04-02 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:34:05 [end_date_ymd] => 2025-04-02 02:34:05 [RateCDR] => 1 ) [2025-04-02 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:34:05' and `end` < '2025-04-02 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:34:18] Production.INFO: count ==480 [2025-04-02 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:34:05 - End Time 2025-04-02 02:34:05 [2025-04-02 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815146', 'tblTempUsageDetail_20' ) start [2025-04-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815146', 'tblTempUsageDetail_20' ) end [2025-04-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815146', 'tblTempVendorCDR_20' ) start [2025-04-02 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815146', 'tblTempVendorCDR_20' ) end [2025-04-02 02:34:18] Production.INFO: ProcessCDR(1,14815146,1,1,2) [2025-04-02 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815146', 'tblTempUsageDetail_20' ) start [2025-04-02 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815146', 'tblTempUsageDetail_20' ) end [2025-04-02 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:34:22] Production.INFO: ==16110== Releasing lock... [2025-04-02 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:35:06 [end_date_ymd] => 2025-04-02 02:35:06 [RateCDR] => 1 ) [2025-04-02 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:35:06' and `end` < '2025-04-02 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:35:19] Production.INFO: count ==480 [2025-04-02 02:35:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:35:06 - End Time 2025-04-02 02:35:06 [2025-04-02 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815151', 'tblTempUsageDetail_20' ) start [2025-04-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815151', 'tblTempUsageDetail_20' ) end [2025-04-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815151', 'tblTempVendorCDR_20' ) start [2025-04-02 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815151', 'tblTempVendorCDR_20' ) end [2025-04-02 02:35:19] Production.INFO: ProcessCDR(1,14815151,1,1,2) [2025-04-02 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815151', 'tblTempUsageDetail_20' ) start [2025-04-02 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815151', 'tblTempUsageDetail_20' ) end [2025-04-02 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:35:23] Production.INFO: ==16191== Releasing lock... [2025-04-02 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:35:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:36:05 [end_date_ymd] => 2025-04-02 02:36:05 [RateCDR] => 1 ) [2025-04-02 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:36:05' and `end` < '2025-04-02 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:36:18] Production.INFO: count ==474 [2025-04-02 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:36:05 - End Time 2025-04-02 02:36:05 [2025-04-02 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815156', 'tblTempUsageDetail_20' ) start [2025-04-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815156', 'tblTempUsageDetail_20' ) end [2025-04-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815156', 'tblTempVendorCDR_20' ) start [2025-04-02 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815156', 'tblTempVendorCDR_20' ) end [2025-04-02 02:36:18] Production.INFO: ProcessCDR(1,14815156,1,1,2) [2025-04-02 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815156', 'tblTempUsageDetail_20' ) start [2025-04-02 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815156', 'tblTempUsageDetail_20' ) end [2025-04-02 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:36:22] Production.INFO: ==16313== Releasing lock... [2025-04-02 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:37:06 [end_date_ymd] => 2025-04-02 02:37:06 [RateCDR] => 1 ) [2025-04-02 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:37:06' and `end` < '2025-04-02 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:37:18] Production.INFO: count ==473 [2025-04-02 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:37:06 - End Time 2025-04-02 02:37:06 [2025-04-02 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815161', 'tblTempUsageDetail_20' ) start [2025-04-02 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815161', 'tblTempUsageDetail_20' ) end [2025-04-02 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815161', 'tblTempVendorCDR_20' ) start [2025-04-02 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815161', 'tblTempVendorCDR_20' ) end [2025-04-02 02:37:19] Production.INFO: ProcessCDR(1,14815161,1,1,2) [2025-04-02 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815161', 'tblTempUsageDetail_20' ) start [2025-04-02 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815161', 'tblTempUsageDetail_20' ) end [2025-04-02 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:37:22] Production.INFO: ==16384== Releasing lock... [2025-04-02 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:37:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:38:06 [end_date_ymd] => 2025-04-02 02:38:06 [RateCDR] => 1 ) [2025-04-02 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:38:06' and `end` < '2025-04-02 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:38:18] Production.INFO: count ==473 [2025-04-02 02:38:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:38:06 - End Time 2025-04-02 02:38:06 [2025-04-02 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815166', 'tblTempUsageDetail_20' ) start [2025-04-02 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815166', 'tblTempUsageDetail_20' ) end [2025-04-02 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815166', 'tblTempVendorCDR_20' ) start [2025-04-02 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815166', 'tblTempVendorCDR_20' ) end [2025-04-02 02:38:18] Production.INFO: ProcessCDR(1,14815166,1,1,2) [2025-04-02 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815166', 'tblTempUsageDetail_20' ) start [2025-04-02 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815166', 'tblTempUsageDetail_20' ) end [2025-04-02 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:38:22] Production.INFO: ==16454== Releasing lock... [2025-04-02 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:38:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:39:06 [end_date_ymd] => 2025-04-02 02:39:06 [RateCDR] => 1 ) [2025-04-02 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:39:06' and `end` < '2025-04-02 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:39:19] Production.INFO: count ==469 [2025-04-02 02:39:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:39:06 - End Time 2025-04-02 02:39:06 [2025-04-02 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815171', 'tblTempUsageDetail_20' ) start [2025-04-02 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815171', 'tblTempUsageDetail_20' ) end [2025-04-02 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815171', 'tblTempVendorCDR_20' ) start [2025-04-02 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815171', 'tblTempVendorCDR_20' ) end [2025-04-02 02:39:19] Production.INFO: ProcessCDR(1,14815171,1,1,2) [2025-04-02 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815171', 'tblTempUsageDetail_20' ) start [2025-04-02 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815171', 'tblTempUsageDetail_20' ) end [2025-04-02 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:39:23] Production.INFO: ==16527== Releasing lock... [2025-04-02 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:39:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:40:07 [end_date_ymd] => 2025-04-02 02:40:07 [RateCDR] => 1 ) [2025-04-02 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:40:07' and `end` < '2025-04-02 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:40:19] Production.INFO: count ==477 [2025-04-02 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:40:07 - End Time 2025-04-02 02:40:07 [2025-04-02 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815177', 'tblTempUsageDetail_20' ) start [2025-04-02 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815177', 'tblTempUsageDetail_20' ) end [2025-04-02 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815177', 'tblTempVendorCDR_20' ) start [2025-04-02 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815177', 'tblTempVendorCDR_20' ) end [2025-04-02 02:40:19] Production.INFO: ProcessCDR(1,14815177,1,1,2) [2025-04-02 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815177', 'tblTempUsageDetail_20' ) start [2025-04-02 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815177', 'tblTempUsageDetail_20' ) end [2025-04-02 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:40:24] Production.INFO: ==16603== Releasing lock... [2025-04-02 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:40:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:41:06 [end_date_ymd] => 2025-04-02 02:41:06 [RateCDR] => 1 ) [2025-04-02 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:41:06' and `end` < '2025-04-02 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:41:18] Production.INFO: count ==477 [2025-04-02 02:41:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:41:06 - End Time 2025-04-02 02:41:06 [2025-04-02 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815182', 'tblTempUsageDetail_20' ) start [2025-04-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815182', 'tblTempUsageDetail_20' ) end [2025-04-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815182', 'tblTempVendorCDR_20' ) start [2025-04-02 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815182', 'tblTempVendorCDR_20' ) end [2025-04-02 02:41:19] Production.INFO: ProcessCDR(1,14815182,1,1,2) [2025-04-02 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815182', 'tblTempUsageDetail_20' ) start [2025-04-02 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815182', 'tblTempUsageDetail_20' ) end [2025-04-02 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:41:22] Production.INFO: ==16677== Releasing lock... [2025-04-02 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:42:05 [end_date_ymd] => 2025-04-02 02:42:05 [RateCDR] => 1 ) [2025-04-02 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:42:05' and `end` < '2025-04-02 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:42:18] Production.INFO: count ==470 [2025-04-02 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:42:05 - End Time 2025-04-02 02:42:05 [2025-04-02 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815187', 'tblTempUsageDetail_20' ) start [2025-04-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815187', 'tblTempUsageDetail_20' ) end [2025-04-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815187', 'tblTempVendorCDR_20' ) start [2025-04-02 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815187', 'tblTempVendorCDR_20' ) end [2025-04-02 02:42:18] Production.INFO: ProcessCDR(1,14815187,1,1,2) [2025-04-02 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815187', 'tblTempUsageDetail_20' ) start [2025-04-02 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815187', 'tblTempUsageDetail_20' ) end [2025-04-02 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:42:22] Production.INFO: ==16749== Releasing lock... [2025-04-02 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:43:06 [end_date_ymd] => 2025-04-02 02:43:06 [RateCDR] => 1 ) [2025-04-02 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:43:06' and `end` < '2025-04-02 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:43:19] Production.INFO: count ==470 [2025-04-02 02:43:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:43:06 - End Time 2025-04-02 02:43:06 [2025-04-02 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815192', 'tblTempUsageDetail_20' ) start [2025-04-02 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815192', 'tblTempUsageDetail_20' ) end [2025-04-02 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815192', 'tblTempVendorCDR_20' ) start [2025-04-02 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815192', 'tblTempVendorCDR_20' ) end [2025-04-02 02:43:19] Production.INFO: ProcessCDR(1,14815192,1,1,2) [2025-04-02 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815192', 'tblTempUsageDetail_20' ) start [2025-04-02 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815192', 'tblTempUsageDetail_20' ) end [2025-04-02 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:43:23] Production.INFO: ==16819== Releasing lock... [2025-04-02 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:43:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:44:06 [end_date_ymd] => 2025-04-02 02:44:06 [RateCDR] => 1 ) [2025-04-02 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:44:06' and `end` < '2025-04-02 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:44:19] Production.INFO: count ==470 [2025-04-02 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:44:06 - End Time 2025-04-02 02:44:06 [2025-04-02 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815197', 'tblTempUsageDetail_20' ) start [2025-04-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815197', 'tblTempUsageDetail_20' ) end [2025-04-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815197', 'tblTempVendorCDR_20' ) start [2025-04-02 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815197', 'tblTempVendorCDR_20' ) end [2025-04-02 02:44:19] Production.INFO: ProcessCDR(1,14815197,1,1,2) [2025-04-02 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815197', 'tblTempUsageDetail_20' ) start [2025-04-02 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815197', 'tblTempUsageDetail_20' ) end [2025-04-02 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:44:23] Production.INFO: ==16890== Releasing lock... [2025-04-02 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:44:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 02:45:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:45:07 [end_date_ymd] => 2025-04-02 02:45:07 [RateCDR] => 1 ) [2025-04-02 02:45:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:45:07' and `end` < '2025-04-02 02:45:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:45:19] Production.INFO: count ==470 [2025-04-02 02:45:20] Production.ERROR: pbx CDR StartTime 2025-04-01 23:45:07 - End Time 2025-04-02 02:45:07 [2025-04-02 02:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815202', 'tblTempUsageDetail_20' ) start [2025-04-02 02:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815202', 'tblTempUsageDetail_20' ) end [2025-04-02 02:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815202', 'tblTempVendorCDR_20' ) start [2025-04-02 02:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815202', 'tblTempVendorCDR_20' ) end [2025-04-02 02:45:20] Production.INFO: ProcessCDR(1,14815202,1,1,2) [2025-04-02 02:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815202', 'tblTempUsageDetail_20' ) start [2025-04-02 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815202', 'tblTempUsageDetail_20' ) end [2025-04-02 02:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:45:24] Production.INFO: ==16962== Releasing lock... [2025-04-02 02:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:45:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:46:06 [end_date_ymd] => 2025-04-02 02:46:06 [RateCDR] => 1 ) [2025-04-02 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:46:06' and `end` < '2025-04-02 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:46:19] Production.INFO: count ==467 [2025-04-02 02:46:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:46:06 - End Time 2025-04-02 02:46:06 [2025-04-02 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815207', 'tblTempUsageDetail_20' ) start [2025-04-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815207', 'tblTempUsageDetail_20' ) end [2025-04-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815207', 'tblTempVendorCDR_20' ) start [2025-04-02 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815207', 'tblTempVendorCDR_20' ) end [2025-04-02 02:46:19] Production.INFO: ProcessCDR(1,14815207,1,1,2) [2025-04-02 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815207', 'tblTempUsageDetail_20' ) start [2025-04-02 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815207', 'tblTempUsageDetail_20' ) end [2025-04-02 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:46:23] Production.INFO: ==17034== Releasing lock... [2025-04-02 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:47:06 [end_date_ymd] => 2025-04-02 02:47:06 [RateCDR] => 1 ) [2025-04-02 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:47:06' and `end` < '2025-04-02 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:47:19] Production.INFO: count ==467 [2025-04-02 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:47:06 - End Time 2025-04-02 02:47:06 [2025-04-02 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815212', 'tblTempUsageDetail_20' ) start [2025-04-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815212', 'tblTempUsageDetail_20' ) end [2025-04-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815212', 'tblTempVendorCDR_20' ) start [2025-04-02 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815212', 'tblTempVendorCDR_20' ) end [2025-04-02 02:47:19] Production.INFO: ProcessCDR(1,14815212,1,1,2) [2025-04-02 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815212', 'tblTempUsageDetail_20' ) start [2025-04-02 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815212', 'tblTempUsageDetail_20' ) end [2025-04-02 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:47:23] Production.INFO: ==17105== Releasing lock... [2025-04-02 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:47:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:48:06 [end_date_ymd] => 2025-04-02 02:48:06 [RateCDR] => 1 ) [2025-04-02 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:48:06' and `end` < '2025-04-02 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:48:19] Production.INFO: count ==466 [2025-04-02 02:48:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:48:06 - End Time 2025-04-02 02:48:06 [2025-04-02 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815217', 'tblTempUsageDetail_20' ) start [2025-04-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815217', 'tblTempUsageDetail_20' ) end [2025-04-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815217', 'tblTempVendorCDR_20' ) start [2025-04-02 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815217', 'tblTempVendorCDR_20' ) end [2025-04-02 02:48:19] Production.INFO: ProcessCDR(1,14815217,1,1,2) [2025-04-02 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815217', 'tblTempUsageDetail_20' ) start [2025-04-02 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815217', 'tblTempUsageDetail_20' ) end [2025-04-02 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:48:23] Production.INFO: ==17184== Releasing lock... [2025-04-02 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:48:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:49:05 [end_date_ymd] => 2025-04-02 02:49:05 [RateCDR] => 1 ) [2025-04-02 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:49:05' and `end` < '2025-04-02 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:49:18] Production.INFO: count ==469 [2025-04-02 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:49:05 - End Time 2025-04-02 02:49:05 [2025-04-02 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815222', 'tblTempUsageDetail_20' ) start [2025-04-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815222', 'tblTempUsageDetail_20' ) end [2025-04-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815222', 'tblTempVendorCDR_20' ) start [2025-04-02 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815222', 'tblTempVendorCDR_20' ) end [2025-04-02 02:49:18] Production.INFO: ProcessCDR(1,14815222,1,1,2) [2025-04-02 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815222', 'tblTempUsageDetail_20' ) start [2025-04-02 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815222', 'tblTempUsageDetail_20' ) end [2025-04-02 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:49:22] Production.INFO: ==17254== Releasing lock... [2025-04-02 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:50:07 [end_date_ymd] => 2025-04-02 02:50:07 [RateCDR] => 1 ) [2025-04-02 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:50:07' and `end` < '2025-04-02 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:50:19] Production.INFO: count ==469 [2025-04-02 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:50:07 - End Time 2025-04-02 02:50:07 [2025-04-02 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815228', 'tblTempUsageDetail_20' ) start [2025-04-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815228', 'tblTempUsageDetail_20' ) end [2025-04-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815228', 'tblTempVendorCDR_20' ) start [2025-04-02 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815228', 'tblTempVendorCDR_20' ) end [2025-04-02 02:50:20] Production.INFO: ProcessCDR(1,14815228,1,1,2) [2025-04-02 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815228', 'tblTempUsageDetail_20' ) start [2025-04-02 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815228', 'tblTempUsageDetail_20' ) end [2025-04-02 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:50:23] Production.INFO: ==17327== Releasing lock... [2025-04-02 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:51:06 [end_date_ymd] => 2025-04-02 02:51:06 [RateCDR] => 1 ) [2025-04-02 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:51:06' and `end` < '2025-04-02 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:51:18] Production.INFO: count ==466 [2025-04-02 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:51:06 - End Time 2025-04-02 02:51:06 [2025-04-02 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815233', 'tblTempUsageDetail_20' ) start [2025-04-02 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815233', 'tblTempUsageDetail_20' ) end [2025-04-02 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815233', 'tblTempVendorCDR_20' ) start [2025-04-02 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815233', 'tblTempVendorCDR_20' ) end [2025-04-02 02:51:18] Production.INFO: ProcessCDR(1,14815233,1,1,2) [2025-04-02 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815233', 'tblTempUsageDetail_20' ) start [2025-04-02 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815233', 'tblTempUsageDetail_20' ) end [2025-04-02 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:51:22] Production.INFO: ==17438== Releasing lock... [2025-04-02 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:51:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:52:06 [end_date_ymd] => 2025-04-02 02:52:06 [RateCDR] => 1 ) [2025-04-02 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:52:06' and `end` < '2025-04-02 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:52:18] Production.INFO: count ==465 [2025-04-02 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:52:06 - End Time 2025-04-02 02:52:06 [2025-04-02 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815238', 'tblTempUsageDetail_20' ) start [2025-04-02 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815238', 'tblTempUsageDetail_20' ) end [2025-04-02 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815238', 'tblTempVendorCDR_20' ) start [2025-04-02 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815238', 'tblTempVendorCDR_20' ) end [2025-04-02 02:52:19] Production.INFO: ProcessCDR(1,14815238,1,1,2) [2025-04-02 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815238', 'tblTempUsageDetail_20' ) start [2025-04-02 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815238', 'tblTempUsageDetail_20' ) end [2025-04-02 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:52:23] Production.INFO: ==17508== Releasing lock... [2025-04-02 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:52:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:53:06 [end_date_ymd] => 2025-04-02 02:53:06 [RateCDR] => 1 ) [2025-04-02 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:53:06' and `end` < '2025-04-02 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:53:18] Production.INFO: count ==462 [2025-04-02 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:53:06 - End Time 2025-04-02 02:53:06 [2025-04-02 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815243', 'tblTempUsageDetail_20' ) start [2025-04-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815243', 'tblTempUsageDetail_20' ) end [2025-04-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815243', 'tblTempVendorCDR_20' ) start [2025-04-02 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815243', 'tblTempVendorCDR_20' ) end [2025-04-02 02:53:18] Production.INFO: ProcessCDR(1,14815243,1,1,2) [2025-04-02 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815243', 'tblTempUsageDetail_20' ) start [2025-04-02 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815243', 'tblTempUsageDetail_20' ) end [2025-04-02 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:53:22] Production.INFO: ==17582== Releasing lock... [2025-04-02 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:53:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:54:06 [end_date_ymd] => 2025-04-02 02:54:06 [RateCDR] => 1 ) [2025-04-02 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:54:06' and `end` < '2025-04-02 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:54:18] Production.INFO: count ==461 [2025-04-02 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:54:06 - End Time 2025-04-02 02:54:06 [2025-04-02 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815248', 'tblTempUsageDetail_20' ) start [2025-04-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815248', 'tblTempUsageDetail_20' ) end [2025-04-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815248', 'tblTempVendorCDR_20' ) start [2025-04-02 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815248', 'tblTempVendorCDR_20' ) end [2025-04-02 02:54:19] Production.INFO: ProcessCDR(1,14815248,1,1,2) [2025-04-02 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815248', 'tblTempUsageDetail_20' ) start [2025-04-02 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815248', 'tblTempUsageDetail_20' ) end [2025-04-02 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:54:22] Production.INFO: ==17655== Releasing lock... [2025-04-02 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:55:05 [end_date_ymd] => 2025-04-02 02:55:05 [RateCDR] => 1 ) [2025-04-02 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:55:05' and `end` < '2025-04-02 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:55:18] Production.INFO: count ==461 [2025-04-02 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:55:05 - End Time 2025-04-02 02:55:05 [2025-04-02 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815253', 'tblTempUsageDetail_20' ) start [2025-04-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815253', 'tblTempUsageDetail_20' ) end [2025-04-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815253', 'tblTempVendorCDR_20' ) start [2025-04-02 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815253', 'tblTempVendorCDR_20' ) end [2025-04-02 02:55:18] Production.INFO: ProcessCDR(1,14815253,1,1,2) [2025-04-02 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815253', 'tblTempUsageDetail_20' ) start [2025-04-02 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815253', 'tblTempUsageDetail_20' ) end [2025-04-02 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:55:22] Production.INFO: ==17725== Releasing lock... [2025-04-02 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:56:06 [end_date_ymd] => 2025-04-02 02:56:06 [RateCDR] => 1 ) [2025-04-02 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:56:06' and `end` < '2025-04-02 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:56:18] Production.INFO: count ==448 [2025-04-02 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:56:06 - End Time 2025-04-02 02:56:06 [2025-04-02 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815258', 'tblTempUsageDetail_20' ) start [2025-04-02 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815258', 'tblTempUsageDetail_20' ) end [2025-04-02 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815258', 'tblTempVendorCDR_20' ) start [2025-04-02 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815258', 'tblTempVendorCDR_20' ) end [2025-04-02 02:56:19] Production.INFO: ProcessCDR(1,14815258,1,1,2) [2025-04-02 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815258', 'tblTempUsageDetail_20' ) start [2025-04-02 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815258', 'tblTempUsageDetail_20' ) end [2025-04-02 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:56:23] Production.INFO: ==17797== Releasing lock... [2025-04-02 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:56:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:57:06 [end_date_ymd] => 2025-04-02 02:57:06 [RateCDR] => 1 ) [2025-04-02 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:57:06' and `end` < '2025-04-02 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:57:19] Production.INFO: count ==450 [2025-04-02 02:57:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:57:06 - End Time 2025-04-02 02:57:06 [2025-04-02 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815263', 'tblTempUsageDetail_20' ) start [2025-04-02 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815263', 'tblTempUsageDetail_20' ) end [2025-04-02 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815263', 'tblTempVendorCDR_20' ) start [2025-04-02 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815263', 'tblTempVendorCDR_20' ) end [2025-04-02 02:57:19] Production.INFO: ProcessCDR(1,14815263,1,1,2) [2025-04-02 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815263', 'tblTempUsageDetail_20' ) start [2025-04-02 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815263', 'tblTempUsageDetail_20' ) end [2025-04-02 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:57:23] Production.INFO: ==17869== Releasing lock... [2025-04-02 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:57:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:58:06 [end_date_ymd] => 2025-04-02 02:58:06 [RateCDR] => 1 ) [2025-04-02 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:58:06' and `end` < '2025-04-02 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:58:18] Production.INFO: count ==436 [2025-04-02 02:58:19] Production.ERROR: pbx CDR StartTime 2025-04-01 23:58:06 - End Time 2025-04-02 02:58:06 [2025-04-02 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815268', 'tblTempUsageDetail_20' ) start [2025-04-02 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815268', 'tblTempUsageDetail_20' ) end [2025-04-02 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815268', 'tblTempVendorCDR_20' ) start [2025-04-02 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815268', 'tblTempVendorCDR_20' ) end [2025-04-02 02:58:19] Production.INFO: ProcessCDR(1,14815268,1,1,2) [2025-04-02 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815268', 'tblTempUsageDetail_20' ) start [2025-04-02 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815268', 'tblTempUsageDetail_20' ) end [2025-04-02 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:58:22] Production.INFO: ==17941== Releasing lock... [2025-04-02 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-01 23:59:05 [end_date_ymd] => 2025-04-02 02:59:05 [RateCDR] => 1 ) [2025-04-02 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-01 23:59:05' and `end` < '2025-04-02 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 02:59:18] Production.INFO: count ==436 [2025-04-02 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-01 23:59:05 - End Time 2025-04-02 02:59:05 [2025-04-02 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815273', 'tblTempUsageDetail_20' ) start [2025-04-02 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815273', 'tblTempUsageDetail_20' ) end [2025-04-02 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815273', 'tblTempVendorCDR_20' ) start [2025-04-02 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815273', 'tblTempVendorCDR_20' ) end [2025-04-02 02:59:18] Production.INFO: ProcessCDR(1,14815273,1,1,2) [2025-04-02 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815273', 'tblTempUsageDetail_20' ) start [2025-04-02 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815273', 'tblTempUsageDetail_20' ) end [2025-04-02 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 02:59:22] Production.INFO: ==18013== Releasing lock... [2025-04-02 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 02:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:00:07 [end_date_ymd] => 2025-04-02 03:00:07 [RateCDR] => 1 ) [2025-04-02 03:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:00:07' and `end` < '2025-04-02 03:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:00:20] Production.INFO: count ==444 [2025-04-02 03:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 00:00:07 - End Time 2025-04-02 03:00:07 [2025-04-02 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815279', 'tblTempUsageDetail_20' ) start [2025-04-02 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815279', 'tblTempUsageDetail_20' ) end [2025-04-02 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815279', 'tblTempVendorCDR_20' ) start [2025-04-02 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815279', 'tblTempVendorCDR_20' ) end [2025-04-02 03:00:20] Production.INFO: ProcessCDR(1,14815279,1,1,2) [2025-04-02 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815279', 'tblTempUsageDetail_20' ) start [2025-04-02 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815279', 'tblTempUsageDetail_20' ) end [2025-04-02 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:00:24] Production.INFO: ==18087== Releasing lock... [2025-04-02 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:00:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:01:06 [end_date_ymd] => 2025-04-02 03:01:06 [RateCDR] => 1 ) [2025-04-02 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:01:06' and `end` < '2025-04-02 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:01:18] Production.INFO: count ==438 [2025-04-02 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:01:06 - End Time 2025-04-02 03:01:06 [2025-04-02 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815284', 'tblTempUsageDetail_20' ) start [2025-04-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815284', 'tblTempUsageDetail_20' ) end [2025-04-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815284', 'tblTempVendorCDR_20' ) start [2025-04-02 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815284', 'tblTempVendorCDR_20' ) end [2025-04-02 03:01:18] Production.INFO: ProcessCDR(1,14815284,1,1,2) [2025-04-02 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815284', 'tblTempUsageDetail_20' ) start [2025-04-02 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815284', 'tblTempUsageDetail_20' ) end [2025-04-02 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:01:22] Production.INFO: ==18175== Releasing lock... [2025-04-02 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:02:06 [end_date_ymd] => 2025-04-02 03:02:06 [RateCDR] => 1 ) [2025-04-02 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:02:06' and `end` < '2025-04-02 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:02:19] Production.INFO: count ==437 [2025-04-02 03:02:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:02:06 - End Time 2025-04-02 03:02:06 [2025-04-02 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815289', 'tblTempUsageDetail_20' ) start [2025-04-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815289', 'tblTempUsageDetail_20' ) end [2025-04-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815289', 'tblTempVendorCDR_20' ) start [2025-04-02 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815289', 'tblTempVendorCDR_20' ) end [2025-04-02 03:02:19] Production.INFO: ProcessCDR(1,14815289,1,1,2) [2025-04-02 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815289', 'tblTempUsageDetail_20' ) start [2025-04-02 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815289', 'tblTempUsageDetail_20' ) end [2025-04-02 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:02:23] Production.INFO: ==18324== Releasing lock... [2025-04-02 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:02:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:03:06 [end_date_ymd] => 2025-04-02 03:03:06 [RateCDR] => 1 ) [2025-04-02 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:03:06' and `end` < '2025-04-02 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:03:18] Production.INFO: count ==433 [2025-04-02 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:03:06 - End Time 2025-04-02 03:03:06 [2025-04-02 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815294', 'tblTempUsageDetail_20' ) start [2025-04-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815294', 'tblTempUsageDetail_20' ) end [2025-04-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815294', 'tblTempVendorCDR_20' ) start [2025-04-02 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815294', 'tblTempVendorCDR_20' ) end [2025-04-02 03:03:18] Production.INFO: ProcessCDR(1,14815294,1,1,2) [2025-04-02 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815294', 'tblTempUsageDetail_20' ) start [2025-04-02 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815294', 'tblTempUsageDetail_20' ) end [2025-04-02 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:03:22] Production.INFO: ==18394== Releasing lock... [2025-04-02 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:03:22] Production.INFO: 32 MB #Memory Used# [2025-04-02 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:04:06 [end_date_ymd] => 2025-04-02 03:04:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:04:06' and `end` < '2025-04-02 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:04:19] Production.INFO: count ==433 [2025-04-02 03:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:04:06 - End Time 2025-04-02 03:04:06 [2025-04-02 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815299', 'tblTempUsageDetail_20' ) start [2025-04-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815299', 'tblTempUsageDetail_20' ) end [2025-04-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815299', 'tblTempVendorCDR_20' ) start [2025-04-02 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815299', 'tblTempVendorCDR_20' ) end [2025-04-02 03:04:19] Production.INFO: ProcessCDR(1,14815299,1,1,2) [2025-04-02 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815299', 'tblTempUsageDetail_20' ) start [2025-04-02 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815299', 'tblTempUsageDetail_20' ) end [2025-04-02 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:04:23] Production.INFO: ==18465== Releasing lock... [2025-04-02 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:04:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:05:06 [end_date_ymd] => 2025-04-02 03:05:06 [RateCDR] => 1 ) [2025-04-02 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:05:06' and `end` < '2025-04-02 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:05:18] Production.INFO: count ==416 [2025-04-02 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:05:06 - End Time 2025-04-02 03:05:06 [2025-04-02 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815304', 'tblTempUsageDetail_20' ) start [2025-04-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815304', 'tblTempUsageDetail_20' ) end [2025-04-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815304', 'tblTempVendorCDR_20' ) start [2025-04-02 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815304', 'tblTempVendorCDR_20' ) end [2025-04-02 03:05:19] Production.INFO: ProcessCDR(1,14815304,1,1,2) [2025-04-02 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815304', 'tblTempUsageDetail_20' ) start [2025-04-02 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815304', 'tblTempUsageDetail_20' ) end [2025-04-02 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:05:22] Production.INFO: ==18534== Releasing lock... [2025-04-02 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:06:06 [end_date_ymd] => 2025-04-02 03:06:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:06:06' and `end` < '2025-04-02 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:06:18] Production.INFO: count ==413 [2025-04-02 03:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:06:06 - End Time 2025-04-02 03:06:06 [2025-04-02 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815309', 'tblTempUsageDetail_20' ) start [2025-04-02 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815309', 'tblTempUsageDetail_20' ) end [2025-04-02 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815309', 'tblTempVendorCDR_20' ) start [2025-04-02 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815309', 'tblTempVendorCDR_20' ) end [2025-04-02 03:06:19] Production.INFO: ProcessCDR(1,14815309,1,1,2) [2025-04-02 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815309', 'tblTempUsageDetail_20' ) start [2025-04-02 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815309', 'tblTempUsageDetail_20' ) end [2025-04-02 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:06:23] Production.INFO: ==18680== Releasing lock... [2025-04-02 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:06:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:07:06 [end_date_ymd] => 2025-04-02 03:07:06 [RateCDR] => 1 ) [2025-04-02 03:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:07:06' and `end` < '2025-04-02 03:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:07:18] Production.INFO: count ==413 [2025-04-02 03:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:07:06 - End Time 2025-04-02 03:07:06 [2025-04-02 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815314', 'tblTempUsageDetail_20' ) start [2025-04-02 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815314', 'tblTempUsageDetail_20' ) end [2025-04-02 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815314', 'tblTempVendorCDR_20' ) start [2025-04-02 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815314', 'tblTempVendorCDR_20' ) end [2025-04-02 03:07:19] Production.INFO: ProcessCDR(1,14815314,1,1,2) [2025-04-02 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815314', 'tblTempUsageDetail_20' ) start [2025-04-02 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815314', 'tblTempUsageDetail_20' ) end [2025-04-02 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:07:22] Production.INFO: ==18791== Releasing lock... [2025-04-02 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:08:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:08:07 [end_date_ymd] => 2025-04-02 03:08:07 [RateCDR] => 1 ) [2025-04-02 03:08:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:08:07' and `end` < '2025-04-02 03:08:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:08:19] Production.INFO: count ==412 [2025-04-02 03:08:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:08:07 - End Time 2025-04-02 03:08:07 [2025-04-02 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815319', 'tblTempUsageDetail_20' ) start [2025-04-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815319', 'tblTempUsageDetail_20' ) end [2025-04-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815319', 'tblTempVendorCDR_20' ) start [2025-04-02 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815319', 'tblTempVendorCDR_20' ) end [2025-04-02 03:08:19] Production.INFO: ProcessCDR(1,14815319,1,1,2) [2025-04-02 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815319', 'tblTempUsageDetail_20' ) start [2025-04-02 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815319', 'tblTempUsageDetail_20' ) end [2025-04-02 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:08:23] Production.INFO: ==18870== Releasing lock... [2025-04-02 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:08:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:09:05 [end_date_ymd] => 2025-04-02 03:09:05 [RateCDR] => 1 ) [2025-04-02 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:09:05' and `end` < '2025-04-02 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:09:18] Production.INFO: count ==409 [2025-04-02 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:09:05 - End Time 2025-04-02 03:09:05 [2025-04-02 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815324', 'tblTempUsageDetail_20' ) start [2025-04-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815324', 'tblTempUsageDetail_20' ) end [2025-04-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815324', 'tblTempVendorCDR_20' ) start [2025-04-02 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815324', 'tblTempVendorCDR_20' ) end [2025-04-02 03:09:18] Production.INFO: ProcessCDR(1,14815324,1,1,2) [2025-04-02 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815324', 'tblTempUsageDetail_20' ) start [2025-04-02 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815324', 'tblTempUsageDetail_20' ) end [2025-04-02 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:09:22] Production.INFO: ==19016== Releasing lock... [2025-04-02 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:09:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:10:06 [end_date_ymd] => 2025-04-02 03:10:06 [RateCDR] => 1 ) [2025-04-02 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:10:06' and `end` < '2025-04-02 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:10:19] Production.INFO: count ==403 [2025-04-02 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:10:06 - End Time 2025-04-02 03:10:06 [2025-04-02 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815330', 'tblTempUsageDetail_20' ) start [2025-04-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815330', 'tblTempUsageDetail_20' ) end [2025-04-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815330', 'tblTempVendorCDR_20' ) start [2025-04-02 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815330', 'tblTempVendorCDR_20' ) end [2025-04-02 03:10:19] Production.INFO: ProcessCDR(1,14815330,1,1,2) [2025-04-02 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815330', 'tblTempUsageDetail_20' ) start [2025-04-02 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815330', 'tblTempUsageDetail_20' ) end [2025-04-02 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:10:23] Production.INFO: ==19095== Releasing lock... [2025-04-02 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:10:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:11:05 [end_date_ymd] => 2025-04-02 03:11:05 [RateCDR] => 1 ) [2025-04-02 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:11:05' and `end` < '2025-04-02 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:11:18] Production.INFO: count ==408 [2025-04-02 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:11:05 - End Time 2025-04-02 03:11:05 [2025-04-02 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815335', 'tblTempUsageDetail_20' ) start [2025-04-02 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815335', 'tblTempUsageDetail_20' ) end [2025-04-02 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815335', 'tblTempVendorCDR_20' ) start [2025-04-02 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815335', 'tblTempVendorCDR_20' ) end [2025-04-02 03:11:18] Production.INFO: ProcessCDR(1,14815335,1,1,2) [2025-04-02 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815335', 'tblTempUsageDetail_20' ) start [2025-04-02 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815335', 'tblTempUsageDetail_20' ) end [2025-04-02 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:11:21] Production.INFO: ==19166== Releasing lock... [2025-04-02 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:12:05 [end_date_ymd] => 2025-04-02 03:12:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:12:05' and `end` < '2025-04-02 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:12:18] Production.INFO: count ==408 [2025-04-02 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:12:05 - End Time 2025-04-02 03:12:05 [2025-04-02 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815340', 'tblTempUsageDetail_20' ) start [2025-04-02 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815340', 'tblTempUsageDetail_20' ) end [2025-04-02 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815340', 'tblTempVendorCDR_20' ) start [2025-04-02 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815340', 'tblTempVendorCDR_20' ) end [2025-04-02 03:12:18] Production.INFO: ProcessCDR(1,14815340,1,1,2) [2025-04-02 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815340', 'tblTempUsageDetail_20' ) start [2025-04-02 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815340', 'tblTempUsageDetail_20' ) end [2025-04-02 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:12:21] Production.INFO: ==19235== Releasing lock... [2025-04-02 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:13:06 [end_date_ymd] => 2025-04-02 03:13:06 [RateCDR] => 1 ) [2025-04-02 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:13:06' and `end` < '2025-04-02 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:13:18] Production.INFO: count ==395 [2025-04-02 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:13:06 - End Time 2025-04-02 03:13:06 [2025-04-02 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815345', 'tblTempUsageDetail_20' ) start [2025-04-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815345', 'tblTempUsageDetail_20' ) end [2025-04-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815345', 'tblTempVendorCDR_20' ) start [2025-04-02 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815345', 'tblTempVendorCDR_20' ) end [2025-04-02 03:13:18] Production.INFO: ProcessCDR(1,14815345,1,1,2) [2025-04-02 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815345', 'tblTempUsageDetail_20' ) start [2025-04-02 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815345', 'tblTempUsageDetail_20' ) end [2025-04-02 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:13:22] Production.INFO: ==19381== Releasing lock... [2025-04-02 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:14:05 [end_date_ymd] => 2025-04-02 03:14:05 [RateCDR] => 1 ) [2025-04-02 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:14:05' and `end` < '2025-04-02 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:14:17] Production.INFO: count ==392 [2025-04-02 03:14:17] Production.ERROR: pbx CDR StartTime 2025-04-02 00:14:05 - End Time 2025-04-02 03:14:05 [2025-04-02 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815350', 'tblTempUsageDetail_20' ) start [2025-04-02 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815350', 'tblTempUsageDetail_20' ) end [2025-04-02 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815350', 'tblTempVendorCDR_20' ) start [2025-04-02 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815350', 'tblTempVendorCDR_20' ) end [2025-04-02 03:14:17] Production.INFO: ProcessCDR(1,14815350,1,1,2) [2025-04-02 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815350', 'tblTempUsageDetail_20' ) start [2025-04-02 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815350', 'tblTempUsageDetail_20' ) end [2025-04-02 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:14:21] Production.INFO: ==19453== Releasing lock... [2025-04-02 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:15:05 [end_date_ymd] => 2025-04-02 03:15:05 [RateCDR] => 1 ) [2025-04-02 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:15:05' and `end` < '2025-04-02 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:15:18] Production.INFO: count ==392 [2025-04-02 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:15:05 - End Time 2025-04-02 03:15:05 [2025-04-02 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815355', 'tblTempUsageDetail_20' ) start [2025-04-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815355', 'tblTempUsageDetail_20' ) end [2025-04-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815355', 'tblTempVendorCDR_20' ) start [2025-04-02 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815355', 'tblTempVendorCDR_20' ) end [2025-04-02 03:15:18] Production.INFO: ProcessCDR(1,14815355,1,1,2) [2025-04-02 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815355', 'tblTempUsageDetail_20' ) start [2025-04-02 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815355', 'tblTempUsageDetail_20' ) end [2025-04-02 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:15:22] Production.INFO: ==19525== Releasing lock... [2025-04-02 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:16:06 [end_date_ymd] => 2025-04-02 03:16:06 [RateCDR] => 1 ) [2025-04-02 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:16:06' and `end` < '2025-04-02 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:16:18] Production.INFO: count ==392 [2025-04-02 03:16:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:16:06 - End Time 2025-04-02 03:16:06 [2025-04-02 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815360', 'tblTempUsageDetail_20' ) start [2025-04-02 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815360', 'tblTempUsageDetail_20' ) end [2025-04-02 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815360', 'tblTempVendorCDR_20' ) start [2025-04-02 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815360', 'tblTempVendorCDR_20' ) end [2025-04-02 03:16:19] Production.INFO: ProcessCDR(1,14815360,1,1,2) [2025-04-02 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815360', 'tblTempUsageDetail_20' ) start [2025-04-02 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815360', 'tblTempUsageDetail_20' ) end [2025-04-02 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:16:22] Production.INFO: ==19596== Releasing lock... [2025-04-02 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:17:05 [end_date_ymd] => 2025-04-02 03:17:05 [RateCDR] => 1 ) [2025-04-02 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:17:05' and `end` < '2025-04-02 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:17:18] Production.INFO: count ==391 [2025-04-02 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:17:05 - End Time 2025-04-02 03:17:05 [2025-04-02 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815365', 'tblTempUsageDetail_20' ) start [2025-04-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815365', 'tblTempUsageDetail_20' ) end [2025-04-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815365', 'tblTempVendorCDR_20' ) start [2025-04-02 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815365', 'tblTempVendorCDR_20' ) end [2025-04-02 03:17:18] Production.INFO: ProcessCDR(1,14815365,1,1,2) [2025-04-02 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815365', 'tblTempUsageDetail_20' ) start [2025-04-02 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815365', 'tblTempUsageDetail_20' ) end [2025-04-02 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:17:22] Production.INFO: ==19742== Releasing lock... [2025-04-02 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:18:05 [end_date_ymd] => 2025-04-02 03:18:05 [RateCDR] => 1 ) [2025-04-02 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:18:05' and `end` < '2025-04-02 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:18:18] Production.INFO: count ==391 [2025-04-02 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:18:05 - End Time 2025-04-02 03:18:05 [2025-04-02 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815370', 'tblTempUsageDetail_20' ) start [2025-04-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815370', 'tblTempUsageDetail_20' ) end [2025-04-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815370', 'tblTempVendorCDR_20' ) start [2025-04-02 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815370', 'tblTempVendorCDR_20' ) end [2025-04-02 03:18:18] Production.INFO: ProcessCDR(1,14815370,1,1,2) [2025-04-02 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815370', 'tblTempUsageDetail_20' ) start [2025-04-02 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815370', 'tblTempUsageDetail_20' ) end [2025-04-02 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:18:21] Production.INFO: ==19811== Releasing lock... [2025-04-02 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:19:05 [end_date_ymd] => 2025-04-02 03:19:05 [RateCDR] => 1 ) [2025-04-02 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:19:05' and `end` < '2025-04-02 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:19:18] Production.INFO: count ==391 [2025-04-02 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:19:05 - End Time 2025-04-02 03:19:05 [2025-04-02 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815375', 'tblTempUsageDetail_20' ) start [2025-04-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815375', 'tblTempUsageDetail_20' ) end [2025-04-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815375', 'tblTempVendorCDR_20' ) start [2025-04-02 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815375', 'tblTempVendorCDR_20' ) end [2025-04-02 03:19:18] Production.INFO: ProcessCDR(1,14815375,1,1,2) [2025-04-02 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815375', 'tblTempUsageDetail_20' ) start [2025-04-02 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815375', 'tblTempUsageDetail_20' ) end [2025-04-02 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:19:21] Production.INFO: ==19879== Releasing lock... [2025-04-02 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:20:06 [end_date_ymd] => 2025-04-02 03:20:06 [RateCDR] => 1 ) [2025-04-02 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:20:06' and `end` < '2025-04-02 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:20:19] Production.INFO: count ==383 [2025-04-02 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:20:06 - End Time 2025-04-02 03:20:06 [2025-04-02 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815380', 'tblTempUsageDetail_20' ) start [2025-04-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815380', 'tblTempUsageDetail_20' ) end [2025-04-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815380', 'tblTempVendorCDR_20' ) start [2025-04-02 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815380', 'tblTempVendorCDR_20' ) end [2025-04-02 03:20:19] Production.INFO: ProcessCDR(1,14815380,1,1,2) [2025-04-02 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815380', 'tblTempUsageDetail_20' ) start [2025-04-02 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815380', 'tblTempUsageDetail_20' ) end [2025-04-02 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:20:22] Production.INFO: ==19953== Releasing lock... [2025-04-02 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:21:05 [end_date_ymd] => 2025-04-02 03:21:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:21:05' and `end` < '2025-04-02 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:21:17] Production.INFO: count ==377 [2025-04-02 03:21:17] Production.ERROR: pbx CDR StartTime 2025-04-02 00:21:05 - End Time 2025-04-02 03:21:05 [2025-04-02 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815386', 'tblTempUsageDetail_20' ) start [2025-04-02 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815386', 'tblTempUsageDetail_20' ) end [2025-04-02 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815386', 'tblTempVendorCDR_20' ) start [2025-04-02 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815386', 'tblTempVendorCDR_20' ) end [2025-04-02 03:21:17] Production.INFO: ProcessCDR(1,14815386,1,1,2) [2025-04-02 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815386', 'tblTempUsageDetail_20' ) start [2025-04-02 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815386', 'tblTempUsageDetail_20' ) end [2025-04-02 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:21:21] Production.INFO: ==20023== Releasing lock... [2025-04-02 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:22:05 [end_date_ymd] => 2025-04-02 03:22:05 [RateCDR] => 1 ) [2025-04-02 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:22:05' and `end` < '2025-04-02 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:22:18] Production.INFO: count ==373 [2025-04-02 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:22:05 - End Time 2025-04-02 03:22:05 [2025-04-02 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815391', 'tblTempUsageDetail_20' ) start [2025-04-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815391', 'tblTempUsageDetail_20' ) end [2025-04-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815391', 'tblTempVendorCDR_20' ) start [2025-04-02 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815391', 'tblTempVendorCDR_20' ) end [2025-04-02 03:22:18] Production.INFO: ProcessCDR(1,14815391,1,1,2) [2025-04-02 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815391', 'tblTempUsageDetail_20' ) start [2025-04-02 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815391', 'tblTempUsageDetail_20' ) end [2025-04-02 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:22:21] Production.INFO: ==20113== Releasing lock... [2025-04-02 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:22:21] Production.INFO: 31 MB #Memory Used# [2025-04-02 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:23:05 [end_date_ymd] => 2025-04-02 03:23:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:23:05' and `end` < '2025-04-02 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:23:18] Production.INFO: count ==370 [2025-04-02 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:23:05 - End Time 2025-04-02 03:23:05 [2025-04-02 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815396', 'tblTempUsageDetail_20' ) start [2025-04-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815396', 'tblTempUsageDetail_20' ) end [2025-04-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815396', 'tblTempVendorCDR_20' ) start [2025-04-02 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815396', 'tblTempVendorCDR_20' ) end [2025-04-02 03:23:18] Production.INFO: ProcessCDR(1,14815396,1,1,2) [2025-04-02 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815396', 'tblTempUsageDetail_20' ) start [2025-04-02 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815396', 'tblTempUsageDetail_20' ) end [2025-04-02 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:23:21] Production.INFO: ==20207== Releasing lock... [2025-04-02 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:24:06 [end_date_ymd] => 2025-04-02 03:24:06 [RateCDR] => 1 ) [2025-04-02 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:24:06' and `end` < '2025-04-02 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:24:19] Production.INFO: count ==355 [2025-04-02 03:24:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:24:06 - End Time 2025-04-02 03:24:06 [2025-04-02 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815401', 'tblTempUsageDetail_20' ) start [2025-04-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815401', 'tblTempUsageDetail_20' ) end [2025-04-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815401', 'tblTempVendorCDR_20' ) start [2025-04-02 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815401', 'tblTempVendorCDR_20' ) end [2025-04-02 03:24:19] Production.INFO: ProcessCDR(1,14815401,1,1,2) [2025-04-02 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815401', 'tblTempUsageDetail_20' ) start [2025-04-02 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815401', 'tblTempUsageDetail_20' ) end [2025-04-02 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:24:22] Production.INFO: ==20315== Releasing lock... [2025-04-02 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:25:05 [end_date_ymd] => 2025-04-02 03:25:05 [RateCDR] => 1 ) [2025-04-02 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:25:05' and `end` < '2025-04-02 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:25:18] Production.INFO: count ==355 [2025-04-02 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:25:05 - End Time 2025-04-02 03:25:05 [2025-04-02 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815406', 'tblTempUsageDetail_20' ) start [2025-04-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815406', 'tblTempUsageDetail_20' ) end [2025-04-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815406', 'tblTempVendorCDR_20' ) start [2025-04-02 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815406', 'tblTempVendorCDR_20' ) end [2025-04-02 03:25:18] Production.INFO: ProcessCDR(1,14815406,1,1,2) [2025-04-02 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815406', 'tblTempUsageDetail_20' ) start [2025-04-02 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815406', 'tblTempUsageDetail_20' ) end [2025-04-02 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:25:21] Production.INFO: ==20384== Releasing lock... [2025-04-02 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:26:06 [end_date_ymd] => 2025-04-02 03:26:06 [RateCDR] => 1 ) [2025-04-02 03:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:26:06' and `end` < '2025-04-02 03:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:26:18] Production.INFO: count ==341 [2025-04-02 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:26:06 - End Time 2025-04-02 03:26:06 [2025-04-02 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815411', 'tblTempUsageDetail_20' ) start [2025-04-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815411', 'tblTempUsageDetail_20' ) end [2025-04-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815411', 'tblTempVendorCDR_20' ) start [2025-04-02 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815411', 'tblTempVendorCDR_20' ) end [2025-04-02 03:26:18] Production.INFO: ProcessCDR(1,14815411,1,1,2) [2025-04-02 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815411', 'tblTempUsageDetail_20' ) start [2025-04-02 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815411', 'tblTempUsageDetail_20' ) end [2025-04-02 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:26:22] Production.INFO: ==20455== Releasing lock... [2025-04-02 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:26:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:27:05 [end_date_ymd] => 2025-04-02 03:27:05 [RateCDR] => 1 ) [2025-04-02 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:27:05' and `end` < '2025-04-02 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:27:18] Production.INFO: count ==341 [2025-04-02 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:27:05 - End Time 2025-04-02 03:27:05 [2025-04-02 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815416', 'tblTempUsageDetail_20' ) start [2025-04-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815416', 'tblTempUsageDetail_20' ) end [2025-04-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815416', 'tblTempVendorCDR_20' ) start [2025-04-02 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815416', 'tblTempVendorCDR_20' ) end [2025-04-02 03:27:18] Production.INFO: ProcessCDR(1,14815416,1,1,2) [2025-04-02 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815416', 'tblTempUsageDetail_20' ) start [2025-04-02 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815416', 'tblTempUsageDetail_20' ) end [2025-04-02 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:27:21] Production.INFO: ==20529== Releasing lock... [2025-04-02 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:28:06 [end_date_ymd] => 2025-04-02 03:28:06 [RateCDR] => 1 ) [2025-04-02 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:28:06' and `end` < '2025-04-02 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:28:18] Production.INFO: count ==340 [2025-04-02 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:28:06 - End Time 2025-04-02 03:28:06 [2025-04-02 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815421', 'tblTempUsageDetail_20' ) start [2025-04-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815421', 'tblTempUsageDetail_20' ) end [2025-04-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815421', 'tblTempVendorCDR_20' ) start [2025-04-02 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815421', 'tblTempVendorCDR_20' ) end [2025-04-02 03:28:18] Production.INFO: ProcessCDR(1,14815421,1,1,2) [2025-04-02 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815421', 'tblTempUsageDetail_20' ) start [2025-04-02 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815421', 'tblTempUsageDetail_20' ) end [2025-04-02 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:28:22] Production.INFO: ==20605== Releasing lock... [2025-04-02 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:29:05 [end_date_ymd] => 2025-04-02 03:29:05 [RateCDR] => 1 ) [2025-04-02 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:29:05' and `end` < '2025-04-02 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:29:17] Production.INFO: count ==340 [2025-04-02 03:29:17] Production.ERROR: pbx CDR StartTime 2025-04-02 00:29:05 - End Time 2025-04-02 03:29:05 [2025-04-02 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815426', 'tblTempUsageDetail_20' ) start [2025-04-02 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815426', 'tblTempUsageDetail_20' ) end [2025-04-02 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815426', 'tblTempVendorCDR_20' ) start [2025-04-02 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815426', 'tblTempVendorCDR_20' ) end [2025-04-02 03:29:17] Production.INFO: ProcessCDR(1,14815426,1,1,2) [2025-04-02 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815426', 'tblTempUsageDetail_20' ) start [2025-04-02 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815426', 'tblTempUsageDetail_20' ) end [2025-04-02 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:29:21] Production.INFO: ==20676== Releasing lock... [2025-04-02 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:30:07 [end_date_ymd] => 2025-04-02 03:30:07 [RateCDR] => 1 ) [2025-04-02 03:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:30:07' and `end` < '2025-04-02 03:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:30:19] Production.INFO: count ==340 [2025-04-02 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:30:07 - End Time 2025-04-02 03:30:07 [2025-04-02 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815432', 'tblTempUsageDetail_20' ) start [2025-04-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815432', 'tblTempUsageDetail_20' ) end [2025-04-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815432', 'tblTempVendorCDR_20' ) start [2025-04-02 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815432', 'tblTempVendorCDR_20' ) end [2025-04-02 03:30:19] Production.INFO: ProcessCDR(1,14815432,1,1,2) [2025-04-02 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815432', 'tblTempUsageDetail_20' ) start [2025-04-02 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815432', 'tblTempUsageDetail_20' ) end [2025-04-02 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:30:23] Production.INFO: ==20751== Releasing lock... [2025-04-02 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:30:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:31:05 [end_date_ymd] => 2025-04-02 03:31:05 [RateCDR] => 1 ) [2025-04-02 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:31:05' and `end` < '2025-04-02 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:31:17] Production.INFO: count ==340 [2025-04-02 03:31:17] Production.ERROR: pbx CDR StartTime 2025-04-02 00:31:05 - End Time 2025-04-02 03:31:05 [2025-04-02 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815436', 'tblTempUsageDetail_20' ) start [2025-04-02 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815436', 'tblTempUsageDetail_20' ) end [2025-04-02 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815436', 'tblTempVendorCDR_20' ) start [2025-04-02 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815436', 'tblTempVendorCDR_20' ) end [2025-04-02 03:31:18] Production.INFO: ProcessCDR(1,14815436,1,1,2) [2025-04-02 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815436', 'tblTempUsageDetail_20' ) start [2025-04-02 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815436', 'tblTempUsageDetail_20' ) end [2025-04-02 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:31:21] Production.INFO: ==20826== Releasing lock... [2025-04-02 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:32:06 [end_date_ymd] => 2025-04-02 03:32:06 [RateCDR] => 1 ) [2025-04-02 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:32:06' and `end` < '2025-04-02 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:32:19] Production.INFO: count ==340 [2025-04-02 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:32:06 - End Time 2025-04-02 03:32:06 [2025-04-02 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815442', 'tblTempUsageDetail_20' ) start [2025-04-02 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815442', 'tblTempUsageDetail_20' ) end [2025-04-02 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815442', 'tblTempVendorCDR_20' ) start [2025-04-02 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815442', 'tblTempVendorCDR_20' ) end [2025-04-02 03:32:19] Production.INFO: ProcessCDR(1,14815442,1,1,2) [2025-04-02 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815442', 'tblTempUsageDetail_20' ) start [2025-04-02 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815442', 'tblTempUsageDetail_20' ) end [2025-04-02 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:32:23] Production.INFO: ==20898== Releasing lock... [2025-04-02 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:32:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:33:05 [end_date_ymd] => 2025-04-02 03:33:05 [RateCDR] => 1 ) [2025-04-02 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:33:05' and `end` < '2025-04-02 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:33:18] Production.INFO: count ==340 [2025-04-02 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:33:05 - End Time 2025-04-02 03:33:05 [2025-04-02 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815447', 'tblTempUsageDetail_20' ) start [2025-04-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815447', 'tblTempUsageDetail_20' ) end [2025-04-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815447', 'tblTempVendorCDR_20' ) start [2025-04-02 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815447', 'tblTempVendorCDR_20' ) end [2025-04-02 03:33:18] Production.INFO: ProcessCDR(1,14815447,1,1,2) [2025-04-02 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815447', 'tblTempUsageDetail_20' ) start [2025-04-02 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815447', 'tblTempUsageDetail_20' ) end [2025-04-02 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:33:22] Production.INFO: ==20970== Releasing lock... [2025-04-02 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:34:06 [end_date_ymd] => 2025-04-02 03:34:06 [RateCDR] => 1 ) [2025-04-02 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:34:06' and `end` < '2025-04-02 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:34:19] Production.INFO: count ==340 [2025-04-02 03:34:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:34:06 - End Time 2025-04-02 03:34:06 [2025-04-02 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815452', 'tblTempUsageDetail_20' ) start [2025-04-02 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815452', 'tblTempUsageDetail_20' ) end [2025-04-02 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815452', 'tblTempVendorCDR_20' ) start [2025-04-02 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815452', 'tblTempVendorCDR_20' ) end [2025-04-02 03:34:19] Production.INFO: ProcessCDR(1,14815452,1,1,2) [2025-04-02 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815452', 'tblTempUsageDetail_20' ) start [2025-04-02 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815452', 'tblTempUsageDetail_20' ) end [2025-04-02 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:34:22] Production.INFO: ==21041== Releasing lock... [2025-04-02 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:35:06 [end_date_ymd] => 2025-04-02 03:35:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:35:06' and `end` < '2025-04-02 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:35:18] Production.INFO: count ==340 [2025-04-02 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:35:06 - End Time 2025-04-02 03:35:06 [2025-04-02 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815457', 'tblTempUsageDetail_20' ) start [2025-04-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815457', 'tblTempUsageDetail_20' ) end [2025-04-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815457', 'tblTempVendorCDR_20' ) start [2025-04-02 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815457', 'tblTempVendorCDR_20' ) end [2025-04-02 03:35:18] Production.INFO: ProcessCDR(1,14815457,1,1,2) [2025-04-02 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815457', 'tblTempUsageDetail_20' ) start [2025-04-02 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815457', 'tblTempUsageDetail_20' ) end [2025-04-02 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:35:22] Production.INFO: ==21113== Releasing lock... [2025-04-02 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:36:06 [end_date_ymd] => 2025-04-02 03:36:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:36:06' and `end` < '2025-04-02 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:36:19] Production.INFO: count ==340 [2025-04-02 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:36:06 - End Time 2025-04-02 03:36:06 [2025-04-02 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815462', 'tblTempUsageDetail_20' ) start [2025-04-02 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815462', 'tblTempUsageDetail_20' ) end [2025-04-02 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815462', 'tblTempVendorCDR_20' ) start [2025-04-02 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815462', 'tblTempVendorCDR_20' ) end [2025-04-02 03:36:19] Production.INFO: ProcessCDR(1,14815462,1,1,2) [2025-04-02 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815462', 'tblTempUsageDetail_20' ) start [2025-04-02 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815462', 'tblTempUsageDetail_20' ) end [2025-04-02 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:36:23] Production.INFO: ==21190== Releasing lock... [2025-04-02 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:36:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:37:05 [end_date_ymd] => 2025-04-02 03:37:05 [RateCDR] => 1 ) [2025-04-02 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:37:05' and `end` < '2025-04-02 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:37:18] Production.INFO: count ==340 [2025-04-02 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:37:05 - End Time 2025-04-02 03:37:05 [2025-04-02 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815467', 'tblTempUsageDetail_20' ) start [2025-04-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815467', 'tblTempUsageDetail_20' ) end [2025-04-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815467', 'tblTempVendorCDR_20' ) start [2025-04-02 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815467', 'tblTempVendorCDR_20' ) end [2025-04-02 03:37:18] Production.INFO: ProcessCDR(1,14815467,1,1,2) [2025-04-02 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815467', 'tblTempUsageDetail_20' ) start [2025-04-02 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815467', 'tblTempUsageDetail_20' ) end [2025-04-02 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:37:22] Production.INFO: ==21260== Releasing lock... [2025-04-02 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:38:06 [end_date_ymd] => 2025-04-02 03:38:06 [RateCDR] => 1 ) [2025-04-02 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:38:06' and `end` < '2025-04-02 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:38:19] Production.INFO: count ==337 [2025-04-02 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:38:06 - End Time 2025-04-02 03:38:06 [2025-04-02 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815472', 'tblTempUsageDetail_20' ) start [2025-04-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815472', 'tblTempUsageDetail_20' ) end [2025-04-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815472', 'tblTempVendorCDR_20' ) start [2025-04-02 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815472', 'tblTempVendorCDR_20' ) end [2025-04-02 03:38:19] Production.INFO: ProcessCDR(1,14815472,1,1,2) [2025-04-02 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815472', 'tblTempUsageDetail_20' ) start [2025-04-02 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815472', 'tblTempUsageDetail_20' ) end [2025-04-02 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:38:23] Production.INFO: ==21332== Releasing lock... [2025-04-02 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:38:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:39:06 [end_date_ymd] => 2025-04-02 03:39:06 [RateCDR] => 1 ) [2025-04-02 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:39:06' and `end` < '2025-04-02 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:39:18] Production.INFO: count ==337 [2025-04-02 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:39:06 - End Time 2025-04-02 03:39:06 [2025-04-02 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815477', 'tblTempUsageDetail_20' ) start [2025-04-02 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815477', 'tblTempUsageDetail_20' ) end [2025-04-02 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815477', 'tblTempVendorCDR_20' ) start [2025-04-02 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815477', 'tblTempVendorCDR_20' ) end [2025-04-02 03:39:18] Production.INFO: ProcessCDR(1,14815477,1,1,2) [2025-04-02 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815477', 'tblTempUsageDetail_20' ) start [2025-04-02 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815477', 'tblTempUsageDetail_20' ) end [2025-04-02 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:39:22] Production.INFO: ==21443== Releasing lock... [2025-04-02 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:40:07 [end_date_ymd] => 2025-04-02 03:40:07 [RateCDR] => 1 ) [2025-04-02 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:40:07' and `end` < '2025-04-02 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:40:20] Production.INFO: count ==325 [2025-04-02 03:40:20] Production.ERROR: pbx CDR StartTime 2025-04-02 00:40:07 - End Time 2025-04-02 03:40:07 [2025-04-02 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815483', 'tblTempUsageDetail_20' ) start [2025-04-02 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815483', 'tblTempUsageDetail_20' ) end [2025-04-02 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815483', 'tblTempVendorCDR_20' ) start [2025-04-02 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815483', 'tblTempVendorCDR_20' ) end [2025-04-02 03:40:20] Production.INFO: ProcessCDR(1,14815483,1,1,2) [2025-04-02 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815483', 'tblTempUsageDetail_20' ) start [2025-04-02 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815483', 'tblTempUsageDetail_20' ) end [2025-04-02 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:40:24] Production.INFO: ==21515== Releasing lock... [2025-04-02 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:40:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:41:06 [end_date_ymd] => 2025-04-02 03:41:06 [RateCDR] => 1 ) [2025-04-02 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:41:06' and `end` < '2025-04-02 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:41:18] Production.INFO: count ==325 [2025-04-02 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:41:06 - End Time 2025-04-02 03:41:06 [2025-04-02 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815488', 'tblTempUsageDetail_20' ) start [2025-04-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815488', 'tblTempUsageDetail_20' ) end [2025-04-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815488', 'tblTempVendorCDR_20' ) start [2025-04-02 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815488', 'tblTempVendorCDR_20' ) end [2025-04-02 03:41:18] Production.INFO: ProcessCDR(1,14815488,1,1,2) [2025-04-02 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815488', 'tblTempUsageDetail_20' ) start [2025-04-02 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815488', 'tblTempUsageDetail_20' ) end [2025-04-02 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:41:22] Production.INFO: ==21589== Releasing lock... [2025-04-02 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:42:06 [end_date_ymd] => 2025-04-02 03:42:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:42:06' and `end` < '2025-04-02 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:42:19] Production.INFO: count ==324 [2025-04-02 03:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:42:06 - End Time 2025-04-02 03:42:06 [2025-04-02 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815493', 'tblTempUsageDetail_20' ) start [2025-04-02 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815493', 'tblTempUsageDetail_20' ) end [2025-04-02 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815493', 'tblTempVendorCDR_20' ) start [2025-04-02 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815493', 'tblTempVendorCDR_20' ) end [2025-04-02 03:42:19] Production.INFO: ProcessCDR(1,14815493,1,1,2) [2025-04-02 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815493', 'tblTempUsageDetail_20' ) start [2025-04-02 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815493', 'tblTempUsageDetail_20' ) end [2025-04-02 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:42:23] Production.INFO: ==21659== Releasing lock... [2025-04-02 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:42:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:43:06 [end_date_ymd] => 2025-04-02 03:43:06 [RateCDR] => 1 ) [2025-04-02 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:43:06' and `end` < '2025-04-02 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:43:18] Production.INFO: count ==324 [2025-04-02 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:43:06 - End Time 2025-04-02 03:43:06 [2025-04-02 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815498', 'tblTempUsageDetail_20' ) start [2025-04-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815498', 'tblTempUsageDetail_20' ) end [2025-04-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815498', 'tblTempVendorCDR_20' ) start [2025-04-02 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815498', 'tblTempVendorCDR_20' ) end [2025-04-02 03:43:18] Production.INFO: ProcessCDR(1,14815498,1,1,2) [2025-04-02 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815498', 'tblTempUsageDetail_20' ) start [2025-04-02 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815498', 'tblTempUsageDetail_20' ) end [2025-04-02 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:43:22] Production.INFO: ==21729== Releasing lock... [2025-04-02 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:44:06 [end_date_ymd] => 2025-04-02 03:44:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:44:06' and `end` < '2025-04-02 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:44:19] Production.INFO: count ==323 [2025-04-02 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:44:06 - End Time 2025-04-02 03:44:06 [2025-04-02 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815503', 'tblTempUsageDetail_20' ) start [2025-04-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815503', 'tblTempUsageDetail_20' ) end [2025-04-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815503', 'tblTempVendorCDR_20' ) start [2025-04-02 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815503', 'tblTempVendorCDR_20' ) end [2025-04-02 03:44:19] Production.INFO: ProcessCDR(1,14815503,1,1,2) [2025-04-02 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815503', 'tblTempUsageDetail_20' ) start [2025-04-02 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815503', 'tblTempUsageDetail_20' ) end [2025-04-02 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:44:23] Production.INFO: ==21803== Releasing lock... [2025-04-02 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:44:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:45:06 [end_date_ymd] => 2025-04-02 03:45:06 [RateCDR] => 1 ) [2025-04-02 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:45:06' and `end` < '2025-04-02 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:45:18] Production.INFO: count ==323 [2025-04-02 03:45:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:45:06 - End Time 2025-04-02 03:45:06 [2025-04-02 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815508', 'tblTempUsageDetail_20' ) start [2025-04-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815508', 'tblTempUsageDetail_20' ) end [2025-04-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815508', 'tblTempVendorCDR_20' ) start [2025-04-02 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815508', 'tblTempVendorCDR_20' ) end [2025-04-02 03:45:19] Production.INFO: ProcessCDR(1,14815508,1,1,2) [2025-04-02 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815508', 'tblTempUsageDetail_20' ) start [2025-04-02 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815508', 'tblTempUsageDetail_20' ) end [2025-04-02 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:45:22] Production.INFO: ==21876== Releasing lock... [2025-04-02 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:46:06 [end_date_ymd] => 2025-04-02 03:46:06 [RateCDR] => 1 ) [2025-04-02 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:46:06' and `end` < '2025-04-02 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:46:19] Production.INFO: count ==320 [2025-04-02 03:46:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:46:06 - End Time 2025-04-02 03:46:06 [2025-04-02 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815513', 'tblTempUsageDetail_20' ) start [2025-04-02 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815513', 'tblTempUsageDetail_20' ) end [2025-04-02 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815513', 'tblTempVendorCDR_20' ) start [2025-04-02 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815513', 'tblTempVendorCDR_20' ) end [2025-04-02 03:46:19] Production.INFO: ProcessCDR(1,14815513,1,1,2) [2025-04-02 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815513', 'tblTempUsageDetail_20' ) start [2025-04-02 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815513', 'tblTempUsageDetail_20' ) end [2025-04-02 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:46:23] Production.INFO: ==21947== Releasing lock... [2025-04-02 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:46:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:47:05 [end_date_ymd] => 2025-04-02 03:47:05 [RateCDR] => 1 ) [2025-04-02 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:47:05' and `end` < '2025-04-02 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:47:18] Production.INFO: count ==320 [2025-04-02 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:47:05 - End Time 2025-04-02 03:47:05 [2025-04-02 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815518', 'tblTempUsageDetail_20' ) start [2025-04-02 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815518', 'tblTempUsageDetail_20' ) end [2025-04-02 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815518', 'tblTempVendorCDR_20' ) start [2025-04-02 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815518', 'tblTempVendorCDR_20' ) end [2025-04-02 03:47:18] Production.INFO: ProcessCDR(1,14815518,1,1,2) [2025-04-02 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815518', 'tblTempUsageDetail_20' ) start [2025-04-02 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815518', 'tblTempUsageDetail_20' ) end [2025-04-02 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:47:22] Production.INFO: ==22023== Releasing lock... [2025-04-02 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:48:06 [end_date_ymd] => 2025-04-02 03:48:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:48:06' and `end` < '2025-04-02 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:48:19] Production.INFO: count ==318 [2025-04-02 03:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:48:06 - End Time 2025-04-02 03:48:06 [2025-04-02 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815523', 'tblTempUsageDetail_20' ) start [2025-04-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815523', 'tblTempUsageDetail_20' ) end [2025-04-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815523', 'tblTempVendorCDR_20' ) start [2025-04-02 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815523', 'tblTempVendorCDR_20' ) end [2025-04-02 03:48:19] Production.INFO: ProcessCDR(1,14815523,1,1,2) [2025-04-02 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815523', 'tblTempUsageDetail_20' ) start [2025-04-02 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815523', 'tblTempUsageDetail_20' ) end [2025-04-02 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:48:23] Production.INFO: ==22094== Releasing lock... [2025-04-02 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:48:23] Production.INFO: 31 MB #Memory Used# [2025-04-02 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:49:06 [end_date_ymd] => 2025-04-02 03:49:06 [RateCDR] => 1 ) [2025-04-02 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:49:06' and `end` < '2025-04-02 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:49:18] Production.INFO: count ==318 [2025-04-02 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:49:06 - End Time 2025-04-02 03:49:06 [2025-04-02 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815528', 'tblTempUsageDetail_20' ) start [2025-04-02 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815528', 'tblTempUsageDetail_20' ) end [2025-04-02 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815528', 'tblTempVendorCDR_20' ) start [2025-04-02 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815528', 'tblTempVendorCDR_20' ) end [2025-04-02 03:49:19] Production.INFO: ProcessCDR(1,14815528,1,1,2) [2025-04-02 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815528', 'tblTempUsageDetail_20' ) start [2025-04-02 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815528', 'tblTempUsageDetail_20' ) end [2025-04-02 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:49:23] Production.INFO: ==22171== Releasing lock... [2025-04-02 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:49:23] Production.INFO: 31 MB #Memory Used# [2025-04-02 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:50:06 [end_date_ymd] => 2025-04-02 03:50:06 [RateCDR] => 1 ) [2025-04-02 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:50:06' and `end` < '2025-04-02 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:50:19] Production.INFO: count ==294 [2025-04-02 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:50:06 - End Time 2025-04-02 03:50:06 [2025-04-02 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815534', 'tblTempUsageDetail_20' ) start [2025-04-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815534', 'tblTempUsageDetail_20' ) end [2025-04-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815534', 'tblTempVendorCDR_20' ) start [2025-04-02 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815534', 'tblTempVendorCDR_20' ) end [2025-04-02 03:50:19] Production.INFO: ProcessCDR(1,14815534,1,1,2) [2025-04-02 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815534', 'tblTempUsageDetail_20' ) start [2025-04-02 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815534', 'tblTempUsageDetail_20' ) end [2025-04-02 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:50:23] Production.INFO: ==22247== Releasing lock... [2025-04-02 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:51:06 [end_date_ymd] => 2025-04-02 03:51:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:51:06' and `end` < '2025-04-02 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:51:19] Production.INFO: count ==290 [2025-04-02 03:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:51:06 - End Time 2025-04-02 03:51:06 [2025-04-02 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815539', 'tblTempUsageDetail_20' ) start [2025-04-02 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815539', 'tblTempUsageDetail_20' ) end [2025-04-02 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815539', 'tblTempVendorCDR_20' ) start [2025-04-02 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815539', 'tblTempVendorCDR_20' ) end [2025-04-02 03:51:19] Production.INFO: ProcessCDR(1,14815539,1,1,2) [2025-04-02 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815539', 'tblTempUsageDetail_20' ) start [2025-04-02 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815539', 'tblTempUsageDetail_20' ) end [2025-04-02 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:51:23] Production.INFO: ==22323== Releasing lock... [2025-04-02 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-02 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:52:06 [end_date_ymd] => 2025-04-02 03:52:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:52:06' and `end` < '2025-04-02 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:52:18] Production.INFO: count ==275 [2025-04-02 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:52:06 - End Time 2025-04-02 03:52:06 [2025-04-02 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815544', 'tblTempUsageDetail_20' ) start [2025-04-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815544', 'tblTempUsageDetail_20' ) end [2025-04-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815544', 'tblTempVendorCDR_20' ) start [2025-04-02 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815544', 'tblTempVendorCDR_20' ) end [2025-04-02 03:52:18] Production.INFO: ProcessCDR(1,14815544,1,1,2) [2025-04-02 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815544', 'tblTempUsageDetail_20' ) start [2025-04-02 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815544', 'tblTempUsageDetail_20' ) end [2025-04-02 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:52:22] Production.INFO: ==22401== Releasing lock... [2025-04-02 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:53:06 [end_date_ymd] => 2025-04-02 03:53:06 [RateCDR] => 1 ) [2025-04-02 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:53:06' and `end` < '2025-04-02 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:53:18] Production.INFO: count ==274 [2025-04-02 03:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:53:06 - End Time 2025-04-02 03:53:06 [2025-04-02 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815549', 'tblTempUsageDetail_20' ) start [2025-04-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815549', 'tblTempUsageDetail_20' ) end [2025-04-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815549', 'tblTempVendorCDR_20' ) start [2025-04-02 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815549', 'tblTempVendorCDR_20' ) end [2025-04-02 03:53:19] Production.INFO: ProcessCDR(1,14815549,1,1,2) [2025-04-02 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815549', 'tblTempUsageDetail_20' ) start [2025-04-02 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815549', 'tblTempUsageDetail_20' ) end [2025-04-02 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:53:22] Production.INFO: ==22472== Releasing lock... [2025-04-02 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:54:05 [end_date_ymd] => 2025-04-02 03:54:05 [RateCDR] => 1 ) [2025-04-02 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:54:05' and `end` < '2025-04-02 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:54:18] Production.INFO: count ==274 [2025-04-02 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:54:05 - End Time 2025-04-02 03:54:05 [2025-04-02 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815554', 'tblTempUsageDetail_20' ) start [2025-04-02 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815554', 'tblTempUsageDetail_20' ) end [2025-04-02 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815554', 'tblTempVendorCDR_20' ) start [2025-04-02 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815554', 'tblTempVendorCDR_20' ) end [2025-04-02 03:54:18] Production.INFO: ProcessCDR(1,14815554,1,1,2) [2025-04-02 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815554', 'tblTempUsageDetail_20' ) start [2025-04-02 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815554', 'tblTempUsageDetail_20' ) end [2025-04-02 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:54:22] Production.INFO: ==22542== Releasing lock... [2025-04-02 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:55:06 [end_date_ymd] => 2025-04-02 03:55:06 [RateCDR] => 1 ) [2025-04-02 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:55:06' and `end` < '2025-04-02 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:55:19] Production.INFO: count ==274 [2025-04-02 03:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:55:06 - End Time 2025-04-02 03:55:06 [2025-04-02 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815559', 'tblTempUsageDetail_20' ) start [2025-04-02 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815559', 'tblTempUsageDetail_20' ) end [2025-04-02 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815559', 'tblTempVendorCDR_20' ) start [2025-04-02 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815559', 'tblTempVendorCDR_20' ) end [2025-04-02 03:55:19] Production.INFO: ProcessCDR(1,14815559,1,1,2) [2025-04-02 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815559', 'tblTempUsageDetail_20' ) start [2025-04-02 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815559', 'tblTempUsageDetail_20' ) end [2025-04-02 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:55:22] Production.INFO: ==22653== Releasing lock... [2025-04-02 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:56:05 [end_date_ymd] => 2025-04-02 03:56:05 [RateCDR] => 1 ) [2025-04-02 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:56:05' and `end` < '2025-04-02 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:56:18] Production.INFO: count ==274 [2025-04-02 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:56:05 - End Time 2025-04-02 03:56:05 [2025-04-02 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815564', 'tblTempUsageDetail_20' ) start [2025-04-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815564', 'tblTempUsageDetail_20' ) end [2025-04-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815564', 'tblTempVendorCDR_20' ) start [2025-04-02 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815564', 'tblTempVendorCDR_20' ) end [2025-04-02 03:56:18] Production.INFO: ProcessCDR(1,14815564,1,1,2) [2025-04-02 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815564', 'tblTempUsageDetail_20' ) start [2025-04-02 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815564', 'tblTempUsageDetail_20' ) end [2025-04-02 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:56:22] Production.INFO: ==22725== Releasing lock... [2025-04-02 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:57:06 [end_date_ymd] => 2025-04-02 03:57:06 [RateCDR] => 1 ) [2025-04-02 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:57:06' and `end` < '2025-04-02 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:57:18] Production.INFO: count ==272 [2025-04-02 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:57:06 - End Time 2025-04-02 03:57:06 [2025-04-02 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815569', 'tblTempUsageDetail_20' ) start [2025-04-02 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815569', 'tblTempUsageDetail_20' ) end [2025-04-02 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815569', 'tblTempVendorCDR_20' ) start [2025-04-02 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815569', 'tblTempVendorCDR_20' ) end [2025-04-02 03:57:18] Production.INFO: ProcessCDR(1,14815569,1,1,2) [2025-04-02 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815569', 'tblTempUsageDetail_20' ) start [2025-04-02 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815569', 'tblTempUsageDetail_20' ) end [2025-04-02 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:57:22] Production.INFO: ==22795== Releasing lock... [2025-04-02 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:58:06 [end_date_ymd] => 2025-04-02 03:58:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 00:58:06' and `end` < '2025-04-02 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:58:18] Production.INFO: count ==272 [2025-04-02 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-02 00:58:06 - End Time 2025-04-02 03:58:06 [2025-04-02 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815574', 'tblTempUsageDetail_20' ) start [2025-04-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815574', 'tblTempUsageDetail_20' ) end [2025-04-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815574', 'tblTempVendorCDR_20' ) start [2025-04-02 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815574', 'tblTempVendorCDR_20' ) end [2025-04-02 03:58:18] Production.INFO: ProcessCDR(1,14815574,1,1,2) [2025-04-02 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815574', 'tblTempUsageDetail_20' ) start [2025-04-02 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815574', 'tblTempUsageDetail_20' ) end [2025-04-02 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:58:22] Production.INFO: ==22871== Releasing lock... [2025-04-02 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 00:59:06 [end_date_ymd] => 2025-04-02 03:59:06 [RateCDR] => 1 ) [2025-04-02 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 00:59:06' and `end` < '2025-04-02 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 03:59:19] Production.INFO: count ==272 [2025-04-02 03:59:19] Production.ERROR: pbx CDR StartTime 2025-04-02 00:59:06 - End Time 2025-04-02 03:59:06 [2025-04-02 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815579', 'tblTempUsageDetail_20' ) start [2025-04-02 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815579', 'tblTempUsageDetail_20' ) end [2025-04-02 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815579', 'tblTempVendorCDR_20' ) start [2025-04-02 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815579', 'tblTempVendorCDR_20' ) end [2025-04-02 03:59:19] Production.INFO: ProcessCDR(1,14815579,1,1,2) [2025-04-02 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815579', 'tblTempUsageDetail_20' ) start [2025-04-02 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815579', 'tblTempUsageDetail_20' ) end [2025-04-02 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 03:59:22] Production.INFO: ==22943== Releasing lock... [2025-04-02 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 03:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:00:07 [end_date_ymd] => 2025-04-02 04:00:07 [RateCDR] => 1 ) [2025-04-02 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:00:07' and `end` < '2025-04-02 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:00:19] Production.INFO: count ==264 [2025-04-02 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:00:07 - End Time 2025-04-02 04:00:07 [2025-04-02 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815585', 'tblTempUsageDetail_20' ) start [2025-04-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815585', 'tblTempUsageDetail_20' ) end [2025-04-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815585', 'tblTempVendorCDR_20' ) start [2025-04-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815585', 'tblTempVendorCDR_20' ) end [2025-04-02 04:00:20] Production.INFO: ProcessCDR(1,14815585,1,1,2) [2025-04-02 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815585', 'tblTempUsageDetail_20' ) start [2025-04-02 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815585', 'tblTempUsageDetail_20' ) end [2025-04-02 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:00:23] Production.INFO: ==23018== Releasing lock... [2025-04-02 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:01:07 [end_date_ymd] => 2025-04-02 04:01:07 [RateCDR] => 1 ) [2025-04-02 04:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:01:07' and `end` < '2025-04-02 04:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:01:19] Production.INFO: count ==264 [2025-04-02 04:01:20] Production.ERROR: pbx CDR StartTime 2025-04-02 01:01:07 - End Time 2025-04-02 04:01:07 [2025-04-02 04:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815591', 'tblTempUsageDetail_20' ) start [2025-04-02 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815591', 'tblTempUsageDetail_20' ) end [2025-04-02 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815591', 'tblTempVendorCDR_20' ) start [2025-04-02 04:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815591', 'tblTempVendorCDR_20' ) end [2025-04-02 04:01:20] Production.INFO: ProcessCDR(1,14815591,1,1,2) [2025-04-02 04:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815591', 'tblTempUsageDetail_20' ) start [2025-04-02 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815591', 'tblTempUsageDetail_20' ) end [2025-04-02 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:01:23] Production.INFO: ==23103== Releasing lock... [2025-04-02 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:01:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:02:06 [end_date_ymd] => 2025-04-02 04:02:06 [RateCDR] => 1 ) [2025-04-02 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:02:06' and `end` < '2025-04-02 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:02:18] Production.INFO: count ==264 [2025-04-02 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:02:06 - End Time 2025-04-02 04:02:06 [2025-04-02 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815596', 'tblTempUsageDetail_20' ) start [2025-04-02 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815596', 'tblTempUsageDetail_20' ) end [2025-04-02 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815596', 'tblTempVendorCDR_20' ) start [2025-04-02 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815596', 'tblTempVendorCDR_20' ) end [2025-04-02 04:02:18] Production.INFO: ProcessCDR(1,14815596,1,1,2) [2025-04-02 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815596', 'tblTempUsageDetail_20' ) start [2025-04-02 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815596', 'tblTempUsageDetail_20' ) end [2025-04-02 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:02:22] Production.INFO: ==23173== Releasing lock... [2025-04-02 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:03:05 [end_date_ymd] => 2025-04-02 04:03:05 [RateCDR] => 1 ) [2025-04-02 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:03:05' and `end` < '2025-04-02 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:03:18] Production.INFO: count ==261 [2025-04-02 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:03:05 - End Time 2025-04-02 04:03:05 [2025-04-02 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815601', 'tblTempUsageDetail_20' ) start [2025-04-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815601', 'tblTempUsageDetail_20' ) end [2025-04-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815601', 'tblTempVendorCDR_20' ) start [2025-04-02 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815601', 'tblTempVendorCDR_20' ) end [2025-04-02 04:03:18] Production.INFO: ProcessCDR(1,14815601,1,1,2) [2025-04-02 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815601', 'tblTempUsageDetail_20' ) start [2025-04-02 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815601', 'tblTempUsageDetail_20' ) end [2025-04-02 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:03:22] Production.INFO: ==23243== Releasing lock... [2025-04-02 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:04:06 [end_date_ymd] => 2025-04-02 04:04:06 [RateCDR] => 1 ) [2025-04-02 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:04:06' and `end` < '2025-04-02 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-04-02 04:04:18] Production.INFO: count ==261 [2025-04-02 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:04:06 - End Time 2025-04-02 04:04:06 [2025-04-02 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815606', 'tblTempUsageDetail_20' ) start [2025-04-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815606', 'tblTempUsageDetail_20' ) end [2025-04-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815606', 'tblTempVendorCDR_20' ) start [2025-04-02 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815606', 'tblTempVendorCDR_20' ) end [2025-04-02 04:04:18] Production.INFO: ProcessCDR(1,14815606,1,1,2) [2025-04-02 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815606', 'tblTempUsageDetail_20' ) start [2025-04-02 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815606', 'tblTempUsageDetail_20' ) end [2025-04-02 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:04:22] Production.INFO: ==23320== Releasing lock... [2025-04-02 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:05:05 [end_date_ymd] => 2025-04-02 04:05:05 [RateCDR] => 1 ) [2025-04-02 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:05:05' and `end` < '2025-04-02 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:05:18] Production.INFO: count ==259 [2025-04-02 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:05:05 - End Time 2025-04-02 04:05:05 [2025-04-02 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815611', 'tblTempUsageDetail_20' ) start [2025-04-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815611', 'tblTempUsageDetail_20' ) end [2025-04-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815611', 'tblTempVendorCDR_20' ) start [2025-04-02 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815611', 'tblTempVendorCDR_20' ) end [2025-04-02 04:05:18] Production.INFO: ProcessCDR(1,14815611,1,1,2) [2025-04-02 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815611', 'tblTempUsageDetail_20' ) start [2025-04-02 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815611', 'tblTempUsageDetail_20' ) end [2025-04-02 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:05:21] Production.INFO: ==23391== Releasing lock... [2025-04-02 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:06:06 [end_date_ymd] => 2025-04-02 04:06:06 [RateCDR] => 1 ) [2025-04-02 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:06:06' and `end` < '2025-04-02 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-04-02 04:06:18] Production.INFO: count ==258 [2025-04-02 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:06:06 - End Time 2025-04-02 04:06:06 [2025-04-02 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815616', 'tblTempUsageDetail_20' ) start [2025-04-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815616', 'tblTempUsageDetail_20' ) end [2025-04-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815616', 'tblTempVendorCDR_20' ) start [2025-04-02 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815616', 'tblTempVendorCDR_20' ) end [2025-04-02 04:06:18] Production.INFO: ProcessCDR(1,14815616,1,1,2) [2025-04-02 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815616', 'tblTempUsageDetail_20' ) start [2025-04-02 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815616', 'tblTempUsageDetail_20' ) end [2025-04-02 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:06:22] Production.INFO: ==23466== Releasing lock... [2025-04-02 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-02 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:07:05 [end_date_ymd] => 2025-04-02 04:07:05 [RateCDR] => 1 ) [2025-04-02 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:07:05' and `end` < '2025-04-02 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:07:17] Production.INFO: count ==257 [2025-04-02 04:07:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:07:05 - End Time 2025-04-02 04:07:05 [2025-04-02 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815621', 'tblTempUsageDetail_20' ) start [2025-04-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815621', 'tblTempUsageDetail_20' ) end [2025-04-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815621', 'tblTempVendorCDR_20' ) start [2025-04-02 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815621', 'tblTempVendorCDR_20' ) end [2025-04-02 04:07:17] Production.INFO: ProcessCDR(1,14815621,1,1,2) [2025-04-02 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815621', 'tblTempUsageDetail_20' ) start [2025-04-02 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815621', 'tblTempUsageDetail_20' ) end [2025-04-02 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:07:21] Production.INFO: ==23538== Releasing lock... [2025-04-02 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:08:05 [end_date_ymd] => 2025-04-02 04:08:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 01:08:05' and `end` < '2025-04-02 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:08:18] Production.INFO: count ==257 [2025-04-02 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:08:05 - End Time 2025-04-02 04:08:05 [2025-04-02 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815626', 'tblTempUsageDetail_20' ) start [2025-04-02 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815626', 'tblTempUsageDetail_20' ) end [2025-04-02 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815626', 'tblTempVendorCDR_20' ) start [2025-04-02 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815626', 'tblTempVendorCDR_20' ) end [2025-04-02 04:08:18] Production.INFO: ProcessCDR(1,14815626,1,1,2) [2025-04-02 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815626', 'tblTempUsageDetail_20' ) start [2025-04-02 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815626', 'tblTempUsageDetail_20' ) end [2025-04-02 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:08:22] Production.INFO: ==23610== Releasing lock... [2025-04-02 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:09:05 [end_date_ymd] => 2025-04-02 04:09:05 [RateCDR] => 1 ) [2025-04-02 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:09:05' and `end` < '2025-04-02 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:09:18] Production.INFO: count ==257 [2025-04-02 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:09:05 - End Time 2025-04-02 04:09:05 [2025-04-02 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815631', 'tblTempUsageDetail_20' ) start [2025-04-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815631', 'tblTempUsageDetail_20' ) end [2025-04-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815631', 'tblTempVendorCDR_20' ) start [2025-04-02 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815631', 'tblTempVendorCDR_20' ) end [2025-04-02 04:09:18] Production.INFO: ProcessCDR(1,14815631,1,1,2) [2025-04-02 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815631', 'tblTempUsageDetail_20' ) start [2025-04-02 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815631', 'tblTempUsageDetail_20' ) end [2025-04-02 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:09:21] Production.INFO: ==23679== Releasing lock... [2025-04-02 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:10:06 [end_date_ymd] => 2025-04-02 04:10:06 [RateCDR] => 1 ) [2025-04-02 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:10:06' and `end` < '2025-04-02 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:10:19] Production.INFO: count ==266 [2025-04-02 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:10:06 - End Time 2025-04-02 04:10:06 [2025-04-02 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815637', 'tblTempUsageDetail_20' ) start [2025-04-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815637', 'tblTempUsageDetail_20' ) end [2025-04-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815637', 'tblTempVendorCDR_20' ) start [2025-04-02 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815637', 'tblTempVendorCDR_20' ) end [2025-04-02 04:10:19] Production.INFO: ProcessCDR(1,14815637,1,1,2) [2025-04-02 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815637', 'tblTempUsageDetail_20' ) start [2025-04-02 04:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815637', 'tblTempUsageDetail_20' ) end [2025-04-02 04:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:10:25] Production.INFO: ==23792== Releasing lock... [2025-04-02 04:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:10:25] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:11:05 [end_date_ymd] => 2025-04-02 04:11:05 [RateCDR] => 1 ) [2025-04-02 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:11:05' and `end` < '2025-04-02 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:11:18] Production.INFO: count ==266 [2025-04-02 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:11:05 - End Time 2025-04-02 04:11:05 [2025-04-02 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815642', 'tblTempUsageDetail_20' ) start [2025-04-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815642', 'tblTempUsageDetail_20' ) end [2025-04-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815642', 'tblTempVendorCDR_20' ) start [2025-04-02 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815642', 'tblTempVendorCDR_20' ) end [2025-04-02 04:11:18] Production.INFO: ProcessCDR(1,14815642,1,1,2) [2025-04-02 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815642', 'tblTempUsageDetail_20' ) start [2025-04-02 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815642', 'tblTempUsageDetail_20' ) end [2025-04-02 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:11:21] Production.INFO: ==23865== Releasing lock... [2025-04-02 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:12:05 [end_date_ymd] => 2025-04-02 04:12:05 [RateCDR] => 1 ) [2025-04-02 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:12:05' and `end` < '2025-04-02 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:12:18] Production.INFO: count ==266 [2025-04-02 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:12:05 - End Time 2025-04-02 04:12:05 [2025-04-02 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815647', 'tblTempUsageDetail_20' ) start [2025-04-02 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815647', 'tblTempUsageDetail_20' ) end [2025-04-02 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815647', 'tblTempVendorCDR_20' ) start [2025-04-02 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815647', 'tblTempVendorCDR_20' ) end [2025-04-02 04:12:18] Production.INFO: ProcessCDR(1,14815647,1,1,2) [2025-04-02 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815647', 'tblTempUsageDetail_20' ) start [2025-04-02 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815647', 'tblTempUsageDetail_20' ) end [2025-04-02 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:12:21] Production.INFO: ==23936== Releasing lock... [2025-04-02 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:13:06 [end_date_ymd] => 2025-04-02 04:13:06 [RateCDR] => 1 ) [2025-04-02 04:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:13:06' and `end` < '2025-04-02 04:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:13:19] Production.INFO: count ==266 [2025-04-02 04:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:13:06 - End Time 2025-04-02 04:13:06 [2025-04-02 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815652', 'tblTempUsageDetail_20' ) start [2025-04-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815652', 'tblTempUsageDetail_20' ) end [2025-04-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815652', 'tblTempVendorCDR_20' ) start [2025-04-02 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815652', 'tblTempVendorCDR_20' ) end [2025-04-02 04:13:19] Production.INFO: ProcessCDR(1,14815652,1,1,2) [2025-04-02 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815652', 'tblTempUsageDetail_20' ) start [2025-04-02 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815652', 'tblTempUsageDetail_20' ) end [2025-04-02 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:13:22] Production.INFO: ==24006== Releasing lock... [2025-04-02 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:14:06 [end_date_ymd] => 2025-04-02 04:14:06 [RateCDR] => 1 ) [2025-04-02 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:14:06' and `end` < '2025-04-02 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:14:18] Production.INFO: count ==262 [2025-04-02 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:14:06 - End Time 2025-04-02 04:14:06 [2025-04-02 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815657', 'tblTempUsageDetail_20' ) start [2025-04-02 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815657', 'tblTempUsageDetail_20' ) end [2025-04-02 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815657', 'tblTempVendorCDR_20' ) start [2025-04-02 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815657', 'tblTempVendorCDR_20' ) end [2025-04-02 04:14:18] Production.INFO: ProcessCDR(1,14815657,1,1,2) [2025-04-02 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815657', 'tblTempUsageDetail_20' ) start [2025-04-02 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815657', 'tblTempUsageDetail_20' ) end [2025-04-02 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:14:22] Production.INFO: ==24076== Releasing lock... [2025-04-02 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:15:05 [end_date_ymd] => 2025-04-02 04:15:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 01:15:05' and `end` < '2025-04-02 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-04-02 04:15:18] Production.INFO: count ==262 [2025-04-02 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:15:05 - End Time 2025-04-02 04:15:05 [2025-04-02 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815662', 'tblTempUsageDetail_20' ) start [2025-04-02 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815662', 'tblTempUsageDetail_20' ) end [2025-04-02 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815662', 'tblTempVendorCDR_20' ) start [2025-04-02 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815662', 'tblTempVendorCDR_20' ) end [2025-04-02 04:15:18] Production.INFO: ProcessCDR(1,14815662,1,1,2) [2025-04-02 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815662', 'tblTempUsageDetail_20' ) start [2025-04-02 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815662', 'tblTempUsageDetail_20' ) end [2025-04-02 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:15:21] Production.INFO: ==24150== Releasing lock... [2025-04-02 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:16:06 [end_date_ymd] => 2025-04-02 04:16:06 [RateCDR] => 1 ) [2025-04-02 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:16:06' and `end` < '2025-04-02 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:16:18] Production.INFO: count ==257 [2025-04-02 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:16:06 - End Time 2025-04-02 04:16:06 [2025-04-02 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815667', 'tblTempUsageDetail_20' ) start [2025-04-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815667', 'tblTempUsageDetail_20' ) end [2025-04-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815667', 'tblTempVendorCDR_20' ) start [2025-04-02 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815667', 'tblTempVendorCDR_20' ) end [2025-04-02 04:16:18] Production.INFO: ProcessCDR(1,14815667,1,1,2) [2025-04-02 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815667', 'tblTempUsageDetail_20' ) start [2025-04-02 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815667', 'tblTempUsageDetail_20' ) end [2025-04-02 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:16:22] Production.INFO: ==24227== Releasing lock... [2025-04-02 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:17:05 [end_date_ymd] => 2025-04-02 04:17:05 [RateCDR] => 1 ) [2025-04-02 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:17:05' and `end` < '2025-04-02 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-04-02 04:17:18] Production.INFO: count ==255 [2025-04-02 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:17:05 - End Time 2025-04-02 04:17:05 [2025-04-02 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815672', 'tblTempUsageDetail_20' ) start [2025-04-02 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815672', 'tblTempUsageDetail_20' ) end [2025-04-02 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815672', 'tblTempVendorCDR_20' ) start [2025-04-02 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815672', 'tblTempVendorCDR_20' ) end [2025-04-02 04:17:18] Production.INFO: ProcessCDR(1,14815672,1,1,2) [2025-04-02 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815672', 'tblTempUsageDetail_20' ) start [2025-04-02 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815672', 'tblTempUsageDetail_20' ) end [2025-04-02 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:17:21] Production.INFO: ==24301== Releasing lock... [2025-04-02 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:18:05 [end_date_ymd] => 2025-04-02 04:18:05 [RateCDR] => 1 ) [2025-04-02 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:18:05' and `end` < '2025-04-02 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:18:18] Production.INFO: count ==252 [2025-04-02 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:18:05 - End Time 2025-04-02 04:18:05 [2025-04-02 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815677', 'tblTempUsageDetail_20' ) start [2025-04-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815677', 'tblTempUsageDetail_20' ) end [2025-04-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815677', 'tblTempVendorCDR_20' ) start [2025-04-02 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815677', 'tblTempVendorCDR_20' ) end [2025-04-02 04:18:18] Production.INFO: ProcessCDR(1,14815677,1,1,2) [2025-04-02 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815677', 'tblTempUsageDetail_20' ) start [2025-04-02 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815677', 'tblTempUsageDetail_20' ) end [2025-04-02 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:18:21] Production.INFO: ==24377== Releasing lock... [2025-04-02 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:19:05 [end_date_ymd] => 2025-04-02 04:19:05 [RateCDR] => 1 ) [2025-04-02 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:19:05' and `end` < '2025-04-02 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:19:17] Production.INFO: count ==231 [2025-04-02 04:19:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:19:05 - End Time 2025-04-02 04:19:05 [2025-04-02 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815682', 'tblTempUsageDetail_20' ) start [2025-04-02 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815682', 'tblTempUsageDetail_20' ) end [2025-04-02 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815682', 'tblTempVendorCDR_20' ) start [2025-04-02 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815682', 'tblTempVendorCDR_20' ) end [2025-04-02 04:19:17] Production.INFO: ProcessCDR(1,14815682,1,1,2) [2025-04-02 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815682', 'tblTempUsageDetail_20' ) start [2025-04-02 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815682', 'tblTempUsageDetail_20' ) end [2025-04-02 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:19:21] Production.INFO: ==24449== Releasing lock... [2025-04-02 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:19:21] Production.INFO: 30 MB #Memory Used# [2025-04-02 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:20:06 [end_date_ymd] => 2025-04-02 04:20:06 [RateCDR] => 1 ) [2025-04-02 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:20:06' and `end` < '2025-04-02 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:20:18] Production.INFO: count ==218 [2025-04-02 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:20:06 - End Time 2025-04-02 04:20:06 [2025-04-02 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815688', 'tblTempUsageDetail_20' ) start [2025-04-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815688', 'tblTempUsageDetail_20' ) end [2025-04-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815688', 'tblTempVendorCDR_20' ) start [2025-04-02 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815688', 'tblTempVendorCDR_20' ) end [2025-04-02 04:20:19] Production.INFO: ProcessCDR(1,14815688,1,1,2) [2025-04-02 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815688', 'tblTempUsageDetail_20' ) start [2025-04-02 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815688', 'tblTempUsageDetail_20' ) end [2025-04-02 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:20:22] Production.INFO: ==24531== Releasing lock... [2025-04-02 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:21:05 [end_date_ymd] => 2025-04-02 04:21:05 [RateCDR] => 1 ) [2025-04-02 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:21:05' and `end` < '2025-04-02 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:21:18] Production.INFO: count ==209 [2025-04-02 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:21:05 - End Time 2025-04-02 04:21:05 [2025-04-02 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815693', 'tblTempUsageDetail_20' ) start [2025-04-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815693', 'tblTempUsageDetail_20' ) end [2025-04-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815693', 'tblTempVendorCDR_20' ) start [2025-04-02 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815693', 'tblTempVendorCDR_20' ) end [2025-04-02 04:21:18] Production.INFO: ProcessCDR(1,14815693,1,1,2) [2025-04-02 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815693', 'tblTempUsageDetail_20' ) start [2025-04-02 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815693', 'tblTempUsageDetail_20' ) end [2025-04-02 04:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:21:23] Production.INFO: ==24612== Releasing lock... [2025-04-02 04:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:21:23] Production.INFO: 30 MB #Memory Used# [2025-04-02 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:22:05 [end_date_ymd] => 2025-04-02 04:22:05 [RateCDR] => 1 ) [2025-04-02 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:22:05' and `end` < '2025-04-02 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:22:18] Production.INFO: count ==208 [2025-04-02 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:22:05 - End Time 2025-04-02 04:22:05 [2025-04-02 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815698', 'tblTempUsageDetail_20' ) start [2025-04-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815698', 'tblTempUsageDetail_20' ) end [2025-04-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815698', 'tblTempVendorCDR_20' ) start [2025-04-02 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815698', 'tblTempVendorCDR_20' ) end [2025-04-02 04:22:18] Production.INFO: ProcessCDR(1,14815698,1,1,2) [2025-04-02 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815698', 'tblTempUsageDetail_20' ) start [2025-04-02 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815698', 'tblTempUsageDetail_20' ) end [2025-04-02 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:22:21] Production.INFO: ==24690== Releasing lock... [2025-04-02 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:22:21] Production.INFO: 30 MB #Memory Used# [2025-04-02 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:23:05 [end_date_ymd] => 2025-04-02 04:23:05 [RateCDR] => 1 ) [2025-04-02 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:23:05' and `end` < '2025-04-02 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:23:17] Production.INFO: count ==208 [2025-04-02 04:23:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:23:05 - End Time 2025-04-02 04:23:05 [2025-04-02 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815703', 'tblTempUsageDetail_20' ) start [2025-04-02 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815703', 'tblTempUsageDetail_20' ) end [2025-04-02 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815703', 'tblTempVendorCDR_20' ) start [2025-04-02 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815703', 'tblTempVendorCDR_20' ) end [2025-04-02 04:23:17] Production.INFO: ProcessCDR(1,14815703,1,1,2) [2025-04-02 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815703', 'tblTempUsageDetail_20' ) start [2025-04-02 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815703', 'tblTempUsageDetail_20' ) end [2025-04-02 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:23:21] Production.INFO: ==24777== Releasing lock... [2025-04-02 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-02 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:24:05 [end_date_ymd] => 2025-04-02 04:24:05 [RateCDR] => 1 ) [2025-04-02 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:24:05' and `end` < '2025-04-02 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:24:18] Production.INFO: count ==208 [2025-04-02 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:24:05 - End Time 2025-04-02 04:24:05 [2025-04-02 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815708', 'tblTempUsageDetail_20' ) start [2025-04-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815708', 'tblTempUsageDetail_20' ) end [2025-04-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815708', 'tblTempVendorCDR_20' ) start [2025-04-02 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815708', 'tblTempVendorCDR_20' ) end [2025-04-02 04:24:18] Production.INFO: ProcessCDR(1,14815708,1,1,2) [2025-04-02 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815708', 'tblTempUsageDetail_20' ) start [2025-04-02 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815708', 'tblTempUsageDetail_20' ) end [2025-04-02 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:24:21] Production.INFO: ==24860== Releasing lock... [2025-04-02 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:24:21] Production.INFO: 30 MB #Memory Used# [2025-04-02 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:25:06 [end_date_ymd] => 2025-04-02 04:25:06 [RateCDR] => 1 ) [2025-04-02 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:25:06' and `end` < '2025-04-02 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:25:19] Production.INFO: count ==208 [2025-04-02 04:25:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:25:06 - End Time 2025-04-02 04:25:06 [2025-04-02 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815713', 'tblTempUsageDetail_20' ) start [2025-04-02 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815713', 'tblTempUsageDetail_20' ) end [2025-04-02 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815713', 'tblTempVendorCDR_20' ) start [2025-04-02 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815713', 'tblTempVendorCDR_20' ) end [2025-04-02 04:25:19] Production.INFO: ProcessCDR(1,14815713,1,1,2) [2025-04-02 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815713', 'tblTempUsageDetail_20' ) start [2025-04-02 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815713', 'tblTempUsageDetail_20' ) end [2025-04-02 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:25:22] Production.INFO: ==24946== Releasing lock... [2025-04-02 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:25:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:26:05 [end_date_ymd] => 2025-04-02 04:26:05 [RateCDR] => 1 ) [2025-04-02 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:26:05' and `end` < '2025-04-02 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:26:18] Production.INFO: count ==193 [2025-04-02 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:26:05 - End Time 2025-04-02 04:26:05 [2025-04-02 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815718', 'tblTempUsageDetail_20' ) start [2025-04-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815718', 'tblTempUsageDetail_20' ) end [2025-04-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815718', 'tblTempVendorCDR_20' ) start [2025-04-02 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815718', 'tblTempVendorCDR_20' ) end [2025-04-02 04:26:18] Production.INFO: ProcessCDR(1,14815718,1,1,2) [2025-04-02 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815718', 'tblTempUsageDetail_20' ) start [2025-04-02 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815718', 'tblTempUsageDetail_20' ) end [2025-04-02 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:26:21] Production.INFO: ==25066== Releasing lock... [2025-04-02 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:27:06 [end_date_ymd] => 2025-04-02 04:27:06 [RateCDR] => 1 ) [2025-04-02 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:27:06' and `end` < '2025-04-02 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:27:18] Production.INFO: count ==193 [2025-04-02 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:27:06 - End Time 2025-04-02 04:27:06 [2025-04-02 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815723', 'tblTempUsageDetail_20' ) start [2025-04-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815723', 'tblTempUsageDetail_20' ) end [2025-04-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815723', 'tblTempVendorCDR_20' ) start [2025-04-02 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815723', 'tblTempVendorCDR_20' ) end [2025-04-02 04:27:18] Production.INFO: ProcessCDR(1,14815723,1,1,2) [2025-04-02 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815723', 'tblTempUsageDetail_20' ) start [2025-04-02 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815723', 'tblTempUsageDetail_20' ) end [2025-04-02 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:27:22] Production.INFO: ==25147== Releasing lock... [2025-04-02 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:27:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:28:05 [end_date_ymd] => 2025-04-02 04:28:05 [RateCDR] => 1 ) [2025-04-02 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:28:05' and `end` < '2025-04-02 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:28:18] Production.INFO: count ==199 [2025-04-02 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:28:05 - End Time 2025-04-02 04:28:05 [2025-04-02 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815728', 'tblTempUsageDetail_20' ) start [2025-04-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815728', 'tblTempUsageDetail_20' ) end [2025-04-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815728', 'tblTempVendorCDR_20' ) start [2025-04-02 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815728', 'tblTempVendorCDR_20' ) end [2025-04-02 04:28:18] Production.INFO: ProcessCDR(1,14815728,1,1,2) [2025-04-02 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815728', 'tblTempUsageDetail_20' ) start [2025-04-02 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815728', 'tblTempUsageDetail_20' ) end [2025-04-02 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:28:21] Production.INFO: ==25227== Releasing lock... [2025-04-02 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:29:06 [end_date_ymd] => 2025-04-02 04:29:06 [RateCDR] => 1 ) [2025-04-02 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:29:06' and `end` < '2025-04-02 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:29:19] Production.INFO: count ==199 [2025-04-02 04:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:29:06 - End Time 2025-04-02 04:29:06 [2025-04-02 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815733', 'tblTempUsageDetail_20' ) start [2025-04-02 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815733', 'tblTempUsageDetail_20' ) end [2025-04-02 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815733', 'tblTempVendorCDR_20' ) start [2025-04-02 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815733', 'tblTempVendorCDR_20' ) end [2025-04-02 04:29:19] Production.INFO: ProcessCDR(1,14815733,1,1,2) [2025-04-02 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815733', 'tblTempUsageDetail_20' ) start [2025-04-02 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815733', 'tblTempUsageDetail_20' ) end [2025-04-02 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:29:22] Production.INFO: ==25311== Releasing lock... [2025-04-02 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:30:06 [end_date_ymd] => 2025-04-02 04:30:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 01:30:06' and `end` < '2025-04-02 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-04-02 04:30:19] Production.INFO: count ==193 [2025-04-02 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:30:06 - End Time 2025-04-02 04:30:06 [2025-04-02 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815740', 'tblTempUsageDetail_20' ) start [2025-04-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815740', 'tblTempUsageDetail_20' ) end [2025-04-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815740', 'tblTempVendorCDR_20' ) start [2025-04-02 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815740', 'tblTempVendorCDR_20' ) end [2025-04-02 04:30:19] Production.INFO: ProcessCDR(1,14815740,1,1,2) [2025-04-02 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815740', 'tblTempUsageDetail_20' ) start [2025-04-02 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815740', 'tblTempUsageDetail_20' ) end [2025-04-02 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:30:23] Production.INFO: ==25400== Releasing lock... [2025-04-02 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:31:06 [end_date_ymd] => 2025-04-02 04:31:06 [RateCDR] => 1 ) [2025-04-02 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:31:06' and `end` < '2025-04-02 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-04-02 04:31:18] Production.INFO: count ==193 [2025-04-02 04:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:31:06 - End Time 2025-04-02 04:31:06 [2025-04-02 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815745', 'tblTempUsageDetail_20' ) start [2025-04-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815745', 'tblTempUsageDetail_20' ) end [2025-04-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815745', 'tblTempVendorCDR_20' ) start [2025-04-02 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815745', 'tblTempVendorCDR_20' ) end [2025-04-02 04:31:19] Production.INFO: ProcessCDR(1,14815745,1,1,2) [2025-04-02 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815745', 'tblTempUsageDetail_20' ) start [2025-04-02 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815745', 'tblTempUsageDetail_20' ) end [2025-04-02 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:31:22] Production.INFO: ==25517== Releasing lock... [2025-04-02 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:32:05 [end_date_ymd] => 2025-04-02 04:32:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 01:32:05' and `end` < '2025-04-02 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:32:18] Production.INFO: count ==193 [2025-04-02 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:32:05 - End Time 2025-04-02 04:32:05 [2025-04-02 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815750', 'tblTempUsageDetail_20' ) start [2025-04-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815750', 'tblTempUsageDetail_20' ) end [2025-04-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815750', 'tblTempVendorCDR_20' ) start [2025-04-02 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815750', 'tblTempVendorCDR_20' ) end [2025-04-02 04:32:18] Production.INFO: ProcessCDR(1,14815750,1,1,2) [2025-04-02 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815750', 'tblTempUsageDetail_20' ) start [2025-04-02 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815750', 'tblTempUsageDetail_20' ) end [2025-04-02 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:32:21] Production.INFO: ==25600== Releasing lock... [2025-04-02 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:33:05 [end_date_ymd] => 2025-04-02 04:33:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 01:33:05' and `end` < '2025-04-02 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-04-02 04:33:18] Production.INFO: count ==193 [2025-04-02 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:33:05 - End Time 2025-04-02 04:33:05 [2025-04-02 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815755', 'tblTempUsageDetail_20' ) start [2025-04-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815755', 'tblTempUsageDetail_20' ) end [2025-04-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815755', 'tblTempVendorCDR_20' ) start [2025-04-02 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815755', 'tblTempVendorCDR_20' ) end [2025-04-02 04:33:18] Production.INFO: ProcessCDR(1,14815755,1,1,2) [2025-04-02 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815755', 'tblTempUsageDetail_20' ) start [2025-04-02 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815755', 'tblTempUsageDetail_20' ) end [2025-04-02 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:33:21] Production.INFO: ==25683== Releasing lock... [2025-04-02 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:34:05 [end_date_ymd] => 2025-04-02 04:34:05 [RateCDR] => 1 ) [2025-04-02 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:34:05' and `end` < '2025-04-02 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:34:18] Production.INFO: count ==193 [2025-04-02 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:34:05 - End Time 2025-04-02 04:34:05 [2025-04-02 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815760', 'tblTempUsageDetail_20' ) start [2025-04-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815760', 'tblTempUsageDetail_20' ) end [2025-04-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815760', 'tblTempVendorCDR_20' ) start [2025-04-02 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815760', 'tblTempVendorCDR_20' ) end [2025-04-02 04:34:18] Production.INFO: ProcessCDR(1,14815760,1,1,2) [2025-04-02 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815760', 'tblTempUsageDetail_20' ) start [2025-04-02 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815760', 'tblTempUsageDetail_20' ) end [2025-04-02 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:34:21] Production.INFO: ==25761== Releasing lock... [2025-04-02 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:35:05 [end_date_ymd] => 2025-04-02 04:35:05 [RateCDR] => 1 ) [2025-04-02 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:35:05' and `end` < '2025-04-02 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:35:17] Production.INFO: count ==190 [2025-04-02 04:35:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:35:05 - End Time 2025-04-02 04:35:05 [2025-04-02 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815765', 'tblTempUsageDetail_20' ) start [2025-04-02 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815765', 'tblTempUsageDetail_20' ) end [2025-04-02 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815765', 'tblTempVendorCDR_20' ) start [2025-04-02 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815765', 'tblTempVendorCDR_20' ) end [2025-04-02 04:35:17] Production.INFO: ProcessCDR(1,14815765,1,1,2) [2025-04-02 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815765', 'tblTempUsageDetail_20' ) start [2025-04-02 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815765', 'tblTempUsageDetail_20' ) end [2025-04-02 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:35:21] Production.INFO: ==25842== Releasing lock... [2025-04-02 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:36:05 [end_date_ymd] => 2025-04-02 04:36:05 [RateCDR] => 1 ) [2025-04-02 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:36:05' and `end` < '2025-04-02 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:36:17] Production.INFO: count ==187 [2025-04-02 04:36:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:36:05 - End Time 2025-04-02 04:36:05 [2025-04-02 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815770', 'tblTempUsageDetail_20' ) start [2025-04-02 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815770', 'tblTempUsageDetail_20' ) end [2025-04-02 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815770', 'tblTempVendorCDR_20' ) start [2025-04-02 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815770', 'tblTempVendorCDR_20' ) end [2025-04-02 04:36:17] Production.INFO: ProcessCDR(1,14815770,1,1,2) [2025-04-02 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815770', 'tblTempUsageDetail_20' ) start [2025-04-02 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815770', 'tblTempUsageDetail_20' ) end [2025-04-02 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:36:21] Production.INFO: ==25925== Releasing lock... [2025-04-02 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:37:05 [end_date_ymd] => 2025-04-02 04:37:05 [RateCDR] => 1 ) [2025-04-02 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:37:05' and `end` < '2025-04-02 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:37:17] Production.INFO: count ==186 [2025-04-02 04:37:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:37:05 - End Time 2025-04-02 04:37:05 [2025-04-02 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815775', 'tblTempUsageDetail_20' ) start [2025-04-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815775', 'tblTempUsageDetail_20' ) end [2025-04-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815775', 'tblTempVendorCDR_20' ) start [2025-04-02 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815775', 'tblTempVendorCDR_20' ) end [2025-04-02 04:37:17] Production.INFO: ProcessCDR(1,14815775,1,1,2) [2025-04-02 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815775', 'tblTempUsageDetail_20' ) start [2025-04-02 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815775', 'tblTempUsageDetail_20' ) end [2025-04-02 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:37:21] Production.INFO: ==26006== Releasing lock... [2025-04-02 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:38:04 [end_date_ymd] => 2025-04-02 04:38:04 [RateCDR] => 1 ) [2025-04-02 04:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:38:04' and `end` < '2025-04-02 04:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:38:17] Production.INFO: count ==186 [2025-04-02 04:38:17] Production.ERROR: pbx CDR StartTime 2025-04-02 01:38:04 - End Time 2025-04-02 04:38:04 [2025-04-02 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815780', 'tblTempUsageDetail_20' ) start [2025-04-02 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815780', 'tblTempUsageDetail_20' ) end [2025-04-02 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815780', 'tblTempVendorCDR_20' ) start [2025-04-02 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815780', 'tblTempVendorCDR_20' ) end [2025-04-02 04:38:17] Production.INFO: ProcessCDR(1,14815780,1,1,2) [2025-04-02 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815780', 'tblTempUsageDetail_20' ) start [2025-04-02 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815780', 'tblTempUsageDetail_20' ) end [2025-04-02 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:38:20] Production.INFO: ==26091== Releasing lock... [2025-04-02 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:39:05 [end_date_ymd] => 2025-04-02 04:39:05 [RateCDR] => 1 ) [2025-04-02 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:39:05' and `end` < '2025-04-02 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:39:18] Production.INFO: count ==186 [2025-04-02 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:39:05 - End Time 2025-04-02 04:39:05 [2025-04-02 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815785', 'tblTempUsageDetail_20' ) start [2025-04-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815785', 'tblTempUsageDetail_20' ) end [2025-04-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815785', 'tblTempVendorCDR_20' ) start [2025-04-02 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815785', 'tblTempVendorCDR_20' ) end [2025-04-02 04:39:18] Production.INFO: ProcessCDR(1,14815785,1,1,2) [2025-04-02 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815785', 'tblTempUsageDetail_20' ) start [2025-04-02 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815785', 'tblTempUsageDetail_20' ) end [2025-04-02 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:39:21] Production.INFO: ==26173== Releasing lock... [2025-04-02 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:40:07 [end_date_ymd] => 2025-04-02 04:40:07 [RateCDR] => 1 ) [2025-04-02 04:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:40:07' and `end` < '2025-04-02 04:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:40:19] Production.INFO: count ==174 [2025-04-02 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:40:07 - End Time 2025-04-02 04:40:07 [2025-04-02 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815791', 'tblTempUsageDetail_20' ) start [2025-04-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815791', 'tblTempUsageDetail_20' ) end [2025-04-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815791', 'tblTempVendorCDR_20' ) start [2025-04-02 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815791', 'tblTempVendorCDR_20' ) end [2025-04-02 04:40:19] Production.INFO: ProcessCDR(1,14815791,1,1,2) [2025-04-02 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815791', 'tblTempUsageDetail_20' ) start [2025-04-02 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815791', 'tblTempUsageDetail_20' ) end [2025-04-02 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:40:23] Production.INFO: ==26261== Releasing lock... [2025-04-02 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:41:05 [end_date_ymd] => 2025-04-02 04:41:05 [RateCDR] => 1 ) [2025-04-02 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:41:05' and `end` < '2025-04-02 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:41:18] Production.INFO: count ==172 [2025-04-02 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:41:05 - End Time 2025-04-02 04:41:05 [2025-04-02 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815796', 'tblTempUsageDetail_20' ) start [2025-04-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815796', 'tblTempUsageDetail_20' ) end [2025-04-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815796', 'tblTempVendorCDR_20' ) start [2025-04-02 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815796', 'tblTempVendorCDR_20' ) end [2025-04-02 04:41:18] Production.INFO: ProcessCDR(1,14815796,1,1,2) [2025-04-02 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815796', 'tblTempUsageDetail_20' ) start [2025-04-02 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815796', 'tblTempUsageDetail_20' ) end [2025-04-02 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:41:21] Production.INFO: ==26385== Releasing lock... [2025-04-02 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:42:06 [end_date_ymd] => 2025-04-02 04:42:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 01:42:06' and `end` < '2025-04-02 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-04-02 04:42:18] Production.INFO: count ==172 [2025-04-02 04:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:42:06 - End Time 2025-04-02 04:42:06 [2025-04-02 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815801', 'tblTempUsageDetail_20' ) start [2025-04-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815801', 'tblTempUsageDetail_20' ) end [2025-04-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815801', 'tblTempVendorCDR_20' ) start [2025-04-02 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815801', 'tblTempVendorCDR_20' ) end [2025-04-02 04:42:19] Production.INFO: ProcessCDR(1,14815801,1,1,2) [2025-04-02 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815801', 'tblTempUsageDetail_20' ) start [2025-04-02 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815801', 'tblTempUsageDetail_20' ) end [2025-04-02 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:42:22] Production.INFO: ==26474== Releasing lock... [2025-04-02 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:43:05 [end_date_ymd] => 2025-04-02 04:43:05 [RateCDR] => 1 ) [2025-04-02 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:43:05' and `end` < '2025-04-02 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-04-02 04:43:18] Production.INFO: count ==172 [2025-04-02 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:43:05 - End Time 2025-04-02 04:43:05 [2025-04-02 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815806', 'tblTempUsageDetail_20' ) start [2025-04-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815806', 'tblTempUsageDetail_20' ) end [2025-04-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815806', 'tblTempVendorCDR_20' ) start [2025-04-02 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815806', 'tblTempVendorCDR_20' ) end [2025-04-02 04:43:18] Production.INFO: ProcessCDR(1,14815806,1,1,2) [2025-04-02 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815806', 'tblTempUsageDetail_20' ) start [2025-04-02 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815806', 'tblTempUsageDetail_20' ) end [2025-04-02 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:43:21] Production.INFO: ==26567== Releasing lock... [2025-04-02 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:44:06 [end_date_ymd] => 2025-04-02 04:44:06 [RateCDR] => 1 ) [2025-04-02 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:44:06' and `end` < '2025-04-02 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-04-02 04:44:19] Production.INFO: count ==169 [2025-04-02 04:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:44:06 - End Time 2025-04-02 04:44:06 [2025-04-02 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815811', 'tblTempUsageDetail_20' ) start [2025-04-02 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815811', 'tblTempUsageDetail_20' ) end [2025-04-02 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815811', 'tblTempVendorCDR_20' ) start [2025-04-02 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815811', 'tblTempVendorCDR_20' ) end [2025-04-02 04:44:19] Production.INFO: ProcessCDR(1,14815811,1,1,2) [2025-04-02 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815811', 'tblTempUsageDetail_20' ) start [2025-04-02 04:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815811', 'tblTempUsageDetail_20' ) end [2025-04-02 04:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:44:23] Production.INFO: ==26653== Releasing lock... [2025-04-02 04:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:44:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:45:05 [end_date_ymd] => 2025-04-02 04:45:05 [RateCDR] => 1 ) [2025-04-02 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:45:05' and `end` < '2025-04-02 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:45:18] Production.INFO: count ==169 [2025-04-02 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:45:05 - End Time 2025-04-02 04:45:05 [2025-04-02 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815816', 'tblTempUsageDetail_20' ) start [2025-04-02 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815816', 'tblTempUsageDetail_20' ) end [2025-04-02 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815816', 'tblTempVendorCDR_20' ) start [2025-04-02 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815816', 'tblTempVendorCDR_20' ) end [2025-04-02 04:45:18] Production.INFO: ProcessCDR(1,14815816,1,1,2) [2025-04-02 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815816', 'tblTempUsageDetail_20' ) start [2025-04-02 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815816', 'tblTempUsageDetail_20' ) end [2025-04-02 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:45:21] Production.INFO: ==26749== Releasing lock... [2025-04-02 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:46:06 [end_date_ymd] => 2025-04-02 04:46:06 [RateCDR] => 1 ) [2025-04-02 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:46:06' and `end` < '2025-04-02 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:46:18] Production.INFO: count ==165 [2025-04-02 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:46:06 - End Time 2025-04-02 04:46:06 [2025-04-02 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815821', 'tblTempUsageDetail_20' ) start [2025-04-02 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815821', 'tblTempUsageDetail_20' ) end [2025-04-02 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815821', 'tblTempVendorCDR_20' ) start [2025-04-02 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815821', 'tblTempVendorCDR_20' ) end [2025-04-02 04:46:19] Production.INFO: ProcessCDR(1,14815821,1,1,2) [2025-04-02 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815821', 'tblTempUsageDetail_20' ) start [2025-04-02 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815821', 'tblTempUsageDetail_20' ) end [2025-04-02 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:46:22] Production.INFO: ==26833== Releasing lock... [2025-04-02 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:47:05 [end_date_ymd] => 2025-04-02 04:47:05 [RateCDR] => 1 ) [2025-04-02 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:47:05' and `end` < '2025-04-02 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:47:18] Production.INFO: count ==164 [2025-04-02 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:47:05 - End Time 2025-04-02 04:47:05 [2025-04-02 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815826', 'tblTempUsageDetail_20' ) start [2025-04-02 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815826', 'tblTempUsageDetail_20' ) end [2025-04-02 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815826', 'tblTempVendorCDR_20' ) start [2025-04-02 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815826', 'tblTempVendorCDR_20' ) end [2025-04-02 04:47:18] Production.INFO: ProcessCDR(1,14815826,1,1,2) [2025-04-02 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815826', 'tblTempUsageDetail_20' ) start [2025-04-02 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815826', 'tblTempUsageDetail_20' ) end [2025-04-02 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:47:22] Production.INFO: ==26924== Releasing lock... [2025-04-02 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:48:07 [end_date_ymd] => 2025-04-02 04:48:07 [RateCDR] => 1 ) [2025-04-02 04:48:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:48:07' and `end` < '2025-04-02 04:48:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:48:19] Production.INFO: count ==164 [2025-04-02 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:48:07 - End Time 2025-04-02 04:48:07 [2025-04-02 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815831', 'tblTempUsageDetail_20' ) start [2025-04-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815831', 'tblTempUsageDetail_20' ) end [2025-04-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815831', 'tblTempVendorCDR_20' ) start [2025-04-02 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815831', 'tblTempVendorCDR_20' ) end [2025-04-02 04:48:19] Production.INFO: ProcessCDR(1,14815831,1,1,2) [2025-04-02 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815831', 'tblTempUsageDetail_20' ) start [2025-04-02 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815831', 'tblTempUsageDetail_20' ) end [2025-04-02 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:48:23] Production.INFO: ==27018== Releasing lock... [2025-04-02 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:48:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:49:05 [end_date_ymd] => 2025-04-02 04:49:05 [RateCDR] => 1 ) [2025-04-02 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:49:05' and `end` < '2025-04-02 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:49:18] Production.INFO: count ==164 [2025-04-02 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:49:05 - End Time 2025-04-02 04:49:05 [2025-04-02 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815836', 'tblTempUsageDetail_20' ) start [2025-04-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815836', 'tblTempUsageDetail_20' ) end [2025-04-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815836', 'tblTempVendorCDR_20' ) start [2025-04-02 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815836', 'tblTempVendorCDR_20' ) end [2025-04-02 04:49:18] Production.INFO: ProcessCDR(1,14815836,1,1,2) [2025-04-02 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815836', 'tblTempUsageDetail_20' ) start [2025-04-02 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815836', 'tblTempUsageDetail_20' ) end [2025-04-02 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:49:22] Production.INFO: ==27115== Releasing lock... [2025-04-02 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:50:06 [end_date_ymd] => 2025-04-02 04:50:06 [RateCDR] => 1 ) [2025-04-02 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:50:06' and `end` < '2025-04-02 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:50:19] Production.INFO: count ==164 [2025-04-02 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:50:06 - End Time 2025-04-02 04:50:06 [2025-04-02 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815841', 'tblTempUsageDetail_20' ) start [2025-04-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815841', 'tblTempUsageDetail_20' ) end [2025-04-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815841', 'tblTempVendorCDR_20' ) start [2025-04-02 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815841', 'tblTempVendorCDR_20' ) end [2025-04-02 04:50:19] Production.INFO: ProcessCDR(1,14815841,1,1,2) [2025-04-02 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815841', 'tblTempUsageDetail_20' ) start [2025-04-02 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815841', 'tblTempUsageDetail_20' ) end [2025-04-02 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:50:22] Production.INFO: ==27201== Releasing lock... [2025-04-02 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:51:05 [end_date_ymd] => 2025-04-02 04:51:05 [RateCDR] => 1 ) [2025-04-02 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:51:05' and `end` < '2025-04-02 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:51:18] Production.INFO: count ==164 [2025-04-02 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:51:05 - End Time 2025-04-02 04:51:05 [2025-04-02 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815847', 'tblTempUsageDetail_20' ) start [2025-04-02 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815847', 'tblTempUsageDetail_20' ) end [2025-04-02 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815847', 'tblTempVendorCDR_20' ) start [2025-04-02 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815847', 'tblTempVendorCDR_20' ) end [2025-04-02 04:51:18] Production.INFO: ProcessCDR(1,14815847,1,1,2) [2025-04-02 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815847', 'tblTempUsageDetail_20' ) start [2025-04-02 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815847', 'tblTempUsageDetail_20' ) end [2025-04-02 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:51:22] Production.INFO: ==27296== Releasing lock... [2025-04-02 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:52:05 [end_date_ymd] => 2025-04-02 04:52:05 [RateCDR] => 1 ) [2025-04-02 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:52:05' and `end` < '2025-04-02 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:52:18] Production.INFO: count ==164 [2025-04-02 04:52:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:52:05 - End Time 2025-04-02 04:52:05 [2025-04-02 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815852', 'tblTempUsageDetail_20' ) start [2025-04-02 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815852', 'tblTempUsageDetail_20' ) end [2025-04-02 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815852', 'tblTempVendorCDR_20' ) start [2025-04-02 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815852', 'tblTempVendorCDR_20' ) end [2025-04-02 04:52:18] Production.INFO: ProcessCDR(1,14815852,1,1,2) [2025-04-02 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815852', 'tblTempUsageDetail_20' ) start [2025-04-02 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815852', 'tblTempUsageDetail_20' ) end [2025-04-02 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:52:21] Production.INFO: ==27386== Releasing lock... [2025-04-02 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:53:05 [end_date_ymd] => 2025-04-02 04:53:05 [RateCDR] => 1 ) [2025-04-02 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:53:05' and `end` < '2025-04-02 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:53:18] Production.INFO: count ==164 [2025-04-02 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:53:05 - End Time 2025-04-02 04:53:05 [2025-04-02 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815857', 'tblTempUsageDetail_20' ) start [2025-04-02 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815857', 'tblTempUsageDetail_20' ) end [2025-04-02 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815857', 'tblTempVendorCDR_20' ) start [2025-04-02 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815857', 'tblTempVendorCDR_20' ) end [2025-04-02 04:53:18] Production.INFO: ProcessCDR(1,14815857,1,1,2) [2025-04-02 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815857', 'tblTempUsageDetail_20' ) start [2025-04-02 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815857', 'tblTempUsageDetail_20' ) end [2025-04-02 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:53:21] Production.INFO: ==27494== Releasing lock... [2025-04-02 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:54:06 [end_date_ymd] => 2025-04-02 04:54:06 [RateCDR] => 1 ) [2025-04-02 04:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:54:06' and `end` < '2025-04-02 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-04-02 04:54:19] Production.INFO: count ==161 [2025-04-02 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:54:06 - End Time 2025-04-02 04:54:06 [2025-04-02 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815862', 'tblTempUsageDetail_20' ) start [2025-04-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815862', 'tblTempUsageDetail_20' ) end [2025-04-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815862', 'tblTempVendorCDR_20' ) start [2025-04-02 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815862', 'tblTempVendorCDR_20' ) end [2025-04-02 04:54:19] Production.INFO: ProcessCDR(1,14815862,1,1,2) [2025-04-02 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815862', 'tblTempUsageDetail_20' ) start [2025-04-02 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815862', 'tblTempUsageDetail_20' ) end [2025-04-02 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:54:23] Production.INFO: ==27591== Releasing lock... [2025-04-02 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:54:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:55:05 [end_date_ymd] => 2025-04-02 04:55:05 [RateCDR] => 1 ) [2025-04-02 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:55:05' and `end` < '2025-04-02 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:55:18] Production.INFO: count ==161 [2025-04-02 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:55:05 - End Time 2025-04-02 04:55:05 [2025-04-02 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815867', 'tblTempUsageDetail_20' ) start [2025-04-02 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815867', 'tblTempUsageDetail_20' ) end [2025-04-02 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815867', 'tblTempVendorCDR_20' ) start [2025-04-02 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815867', 'tblTempVendorCDR_20' ) end [2025-04-02 04:55:18] Production.INFO: ProcessCDR(1,14815867,1,1,2) [2025-04-02 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815867', 'tblTempUsageDetail_20' ) start [2025-04-02 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815867', 'tblTempUsageDetail_20' ) end [2025-04-02 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:55:22] Production.INFO: ==27686== Releasing lock... [2025-04-02 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:56:06 [end_date_ymd] => 2025-04-02 04:56:06 [RateCDR] => 1 ) [2025-04-02 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:56:06' and `end` < '2025-04-02 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-04-02 04:56:18] Production.INFO: count ==156 [2025-04-02 04:56:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:56:06 - End Time 2025-04-02 04:56:06 [2025-04-02 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815872', 'tblTempUsageDetail_20' ) start [2025-04-02 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815872', 'tblTempUsageDetail_20' ) end [2025-04-02 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815872', 'tblTempVendorCDR_20' ) start [2025-04-02 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815872', 'tblTempVendorCDR_20' ) end [2025-04-02 04:56:18] Production.INFO: ProcessCDR(1,14815872,1,1,2) [2025-04-02 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815872', 'tblTempUsageDetail_20' ) start [2025-04-02 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815872', 'tblTempUsageDetail_20' ) end [2025-04-02 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:56:22] Production.INFO: ==27776== Releasing lock... [2025-04-02 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:57:05 [end_date_ymd] => 2025-04-02 04:57:05 [RateCDR] => 1 ) [2025-04-02 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:57:05' and `end` < '2025-04-02 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:57:19] Production.INFO: count ==153 [2025-04-02 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:57:05 - End Time 2025-04-02 04:57:05 [2025-04-02 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815877', 'tblTempUsageDetail_20' ) start [2025-04-02 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815877', 'tblTempUsageDetail_20' ) end [2025-04-02 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815877', 'tblTempVendorCDR_20' ) start [2025-04-02 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815877', 'tblTempVendorCDR_20' ) end [2025-04-02 04:57:19] Production.INFO: ProcessCDR(1,14815877,1,1,2) [2025-04-02 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815877', 'tblTempUsageDetail_20' ) start [2025-04-02 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815877', 'tblTempUsageDetail_20' ) end [2025-04-02 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:57:23] Production.INFO: ==27908== Releasing lock... [2025-04-02 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:58:06 [end_date_ymd] => 2025-04-02 04:58:06 [RateCDR] => 1 ) [2025-04-02 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:58:06' and `end` < '2025-04-02 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:58:19] Production.INFO: count ==153 [2025-04-02 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 01:58:06 - End Time 2025-04-02 04:58:06 [2025-04-02 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815882', 'tblTempUsageDetail_20' ) start [2025-04-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815882', 'tblTempUsageDetail_20' ) end [2025-04-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815882', 'tblTempVendorCDR_20' ) start [2025-04-02 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815882', 'tblTempVendorCDR_20' ) end [2025-04-02 04:58:19] Production.INFO: ProcessCDR(1,14815882,1,1,2) [2025-04-02 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815882', 'tblTempUsageDetail_20' ) start [2025-04-02 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815882', 'tblTempUsageDetail_20' ) end [2025-04-02 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:58:22] Production.INFO: ==27990== Releasing lock... [2025-04-02 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 01:59:05 [end_date_ymd] => 2025-04-02 04:59:05 [RateCDR] => 1 ) [2025-04-02 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 01:59:05' and `end` < '2025-04-02 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 04:59:18] Production.INFO: count ==158 [2025-04-02 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 01:59:05 - End Time 2025-04-02 04:59:05 [2025-04-02 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815887', 'tblTempUsageDetail_20' ) start [2025-04-02 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815887', 'tblTempUsageDetail_20' ) end [2025-04-02 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815887', 'tblTempVendorCDR_20' ) start [2025-04-02 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815887', 'tblTempVendorCDR_20' ) end [2025-04-02 04:59:18] Production.INFO: ProcessCDR(1,14815887,1,1,2) [2025-04-02 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815887', 'tblTempUsageDetail_20' ) start [2025-04-02 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815887', 'tblTempUsageDetail_20' ) end [2025-04-02 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 04:59:22] Production.INFO: ==28086== Releasing lock... [2025-04-02 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 04:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:00:06 [end_date_ymd] => 2025-04-02 05:00:06 [RateCDR] => 1 ) [2025-04-02 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:00:06' and `end` < '2025-04-02 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:00:19] Production.INFO: count ==153 [2025-04-02 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:00:06 - End Time 2025-04-02 05:00:06 [2025-04-02 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815893', 'tblTempUsageDetail_20' ) start [2025-04-02 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815893', 'tblTempUsageDetail_20' ) end [2025-04-02 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815893', 'tblTempVendorCDR_20' ) start [2025-04-02 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815893', 'tblTempVendorCDR_20' ) end [2025-04-02 05:00:19] Production.INFO: ProcessCDR(1,14815893,1,1,2) [2025-04-02 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815893', 'tblTempUsageDetail_20' ) start [2025-04-02 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815893', 'tblTempUsageDetail_20' ) end [2025-04-02 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:00:23] Production.INFO: ==28180== Releasing lock... [2025-04-02 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:01:05 [end_date_ymd] => 2025-04-02 05:01:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:01:05' and `end` < '2025-04-02 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-04-02 05:01:18] Production.INFO: count ==153 [2025-04-02 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:01:05 - End Time 2025-04-02 05:01:05 [2025-04-02 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815898', 'tblTempUsageDetail_20' ) start [2025-04-02 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815898', 'tblTempUsageDetail_20' ) end [2025-04-02 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815898', 'tblTempVendorCDR_20' ) start [2025-04-02 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815898', 'tblTempVendorCDR_20' ) end [2025-04-02 05:01:18] Production.INFO: ProcessCDR(1,14815898,1,1,2) [2025-04-02 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815898', 'tblTempUsageDetail_20' ) start [2025-04-02 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815898', 'tblTempUsageDetail_20' ) end [2025-04-02 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:01:22] Production.INFO: ==28282== Releasing lock... [2025-04-02 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:02:05 [end_date_ymd] => 2025-04-02 05:02:05 [RateCDR] => 1 ) [2025-04-02 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:02:05' and `end` < '2025-04-02 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:02:18] Production.INFO: count ==153 [2025-04-02 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:02:05 - End Time 2025-04-02 05:02:05 [2025-04-02 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815903', 'tblTempUsageDetail_20' ) start [2025-04-02 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815903', 'tblTempUsageDetail_20' ) end [2025-04-02 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815903', 'tblTempVendorCDR_20' ) start [2025-04-02 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815903', 'tblTempVendorCDR_20' ) end [2025-04-02 05:02:18] Production.INFO: ProcessCDR(1,14815903,1,1,2) [2025-04-02 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815903', 'tblTempUsageDetail_20' ) start [2025-04-02 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815903', 'tblTempUsageDetail_20' ) end [2025-04-02 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:02:21] Production.INFO: ==28370== Releasing lock... [2025-04-02 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:03:05 [end_date_ymd] => 2025-04-02 05:03:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:03:05' and `end` < '2025-04-02 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-04-02 05:03:18] Production.INFO: count ==151 [2025-04-02 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:03:05 - End Time 2025-04-02 05:03:05 [2025-04-02 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815908', 'tblTempUsageDetail_20' ) start [2025-04-02 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815908', 'tblTempUsageDetail_20' ) end [2025-04-02 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815908', 'tblTempVendorCDR_20' ) start [2025-04-02 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815908', 'tblTempVendorCDR_20' ) end [2025-04-02 05:03:18] Production.INFO: ProcessCDR(1,14815908,1,1,2) [2025-04-02 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815908', 'tblTempUsageDetail_20' ) start [2025-04-02 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815908', 'tblTempUsageDetail_20' ) end [2025-04-02 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:03:21] Production.INFO: ==28457== Releasing lock... [2025-04-02 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:04:05 [end_date_ymd] => 2025-04-02 05:04:05 [RateCDR] => 1 ) [2025-04-02 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:04:05' and `end` < '2025-04-02 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:04:18] Production.INFO: count ==151 [2025-04-02 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:04:05 - End Time 2025-04-02 05:04:05 [2025-04-02 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815913', 'tblTempUsageDetail_20' ) start [2025-04-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815913', 'tblTempUsageDetail_20' ) end [2025-04-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815913', 'tblTempVendorCDR_20' ) start [2025-04-02 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815913', 'tblTempVendorCDR_20' ) end [2025-04-02 05:04:18] Production.INFO: ProcessCDR(1,14815913,1,1,2) [2025-04-02 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815913', 'tblTempUsageDetail_20' ) start [2025-04-02 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815913', 'tblTempUsageDetail_20' ) end [2025-04-02 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:04:21] Production.INFO: ==28548== Releasing lock... [2025-04-02 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:05:05 [end_date_ymd] => 2025-04-02 05:05:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:05:05' and `end` < '2025-04-02 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-04-02 05:05:18] Production.INFO: count ==151 [2025-04-02 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:05:05 - End Time 2025-04-02 05:05:05 [2025-04-02 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815918', 'tblTempUsageDetail_20' ) start [2025-04-02 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815918', 'tblTempUsageDetail_20' ) end [2025-04-02 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815918', 'tblTempVendorCDR_20' ) start [2025-04-02 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815918', 'tblTempVendorCDR_20' ) end [2025-04-02 05:05:18] Production.INFO: ProcessCDR(1,14815918,1,1,2) [2025-04-02 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815918', 'tblTempUsageDetail_20' ) start [2025-04-02 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815918', 'tblTempUsageDetail_20' ) end [2025-04-02 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:05:21] Production.INFO: ==28635== Releasing lock... [2025-04-02 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:06:05 [end_date_ymd] => 2025-04-02 05:06:05 [RateCDR] => 1 ) [2025-04-02 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:06:05' and `end` < '2025-04-02 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:06:18] Production.INFO: count ==151 [2025-04-02 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:06:05 - End Time 2025-04-02 05:06:05 [2025-04-02 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815923', 'tblTempUsageDetail_20' ) start [2025-04-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815923', 'tblTempUsageDetail_20' ) end [2025-04-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815923', 'tblTempVendorCDR_20' ) start [2025-04-02 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815923', 'tblTempVendorCDR_20' ) end [2025-04-02 05:06:18] Production.INFO: ProcessCDR(1,14815923,1,1,2) [2025-04-02 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815923', 'tblTempUsageDetail_20' ) start [2025-04-02 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815923', 'tblTempUsageDetail_20' ) end [2025-04-02 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:06:21] Production.INFO: ==28722== Releasing lock... [2025-04-02 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:07:06 [end_date_ymd] => 2025-04-02 05:07:06 [RateCDR] => 1 ) [2025-04-02 05:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:07:06' and `end` < '2025-04-02 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-04-02 05:07:18] Production.INFO: count ==150 [2025-04-02 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:07:06 - End Time 2025-04-02 05:07:06 [2025-04-02 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815928', 'tblTempUsageDetail_20' ) start [2025-04-02 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815928', 'tblTempUsageDetail_20' ) end [2025-04-02 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815928', 'tblTempVendorCDR_20' ) start [2025-04-02 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815928', 'tblTempVendorCDR_20' ) end [2025-04-02 05:07:18] Production.INFO: ProcessCDR(1,14815928,1,1,2) [2025-04-02 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815928', 'tblTempUsageDetail_20' ) start [2025-04-02 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815928', 'tblTempUsageDetail_20' ) end [2025-04-02 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:07:22] Production.INFO: ==28802== Releasing lock... [2025-04-02 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:08:05 [end_date_ymd] => 2025-04-02 05:08:05 [RateCDR] => 1 ) [2025-04-02 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:08:05' and `end` < '2025-04-02 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:08:17] Production.INFO: count ==150 [2025-04-02 05:08:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:08:05 - End Time 2025-04-02 05:08:05 [2025-04-02 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815933', 'tblTempUsageDetail_20' ) start [2025-04-02 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815933', 'tblTempUsageDetail_20' ) end [2025-04-02 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815933', 'tblTempVendorCDR_20' ) start [2025-04-02 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815933', 'tblTempVendorCDR_20' ) end [2025-04-02 05:08:17] Production.INFO: ProcessCDR(1,14815933,1,1,2) [2025-04-02 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815933', 'tblTempUsageDetail_20' ) start [2025-04-02 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815933', 'tblTempUsageDetail_20' ) end [2025-04-02 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:08:21] Production.INFO: ==28890== Releasing lock... [2025-04-02 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:09:06 [end_date_ymd] => 2025-04-02 05:09:06 [RateCDR] => 1 ) [2025-04-02 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:09:06' and `end` < '2025-04-02 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:09:18] Production.INFO: count ==135 [2025-04-02 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:09:06 - End Time 2025-04-02 05:09:06 [2025-04-02 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815938', 'tblTempUsageDetail_20' ) start [2025-04-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815938', 'tblTempUsageDetail_20' ) end [2025-04-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815938', 'tblTempVendorCDR_20' ) start [2025-04-02 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815938', 'tblTempVendorCDR_20' ) end [2025-04-02 05:09:18] Production.INFO: ProcessCDR(1,14815938,1,1,2) [2025-04-02 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815938', 'tblTempUsageDetail_20' ) start [2025-04-02 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815938', 'tblTempUsageDetail_20' ) end [2025-04-02 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:09:22] Production.INFO: ==28975== Releasing lock... [2025-04-02 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:10:06 [end_date_ymd] => 2025-04-02 05:10:06 [RateCDR] => 1 ) [2025-04-02 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:10:06' and `end` < '2025-04-02 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:10:18] Production.INFO: count ==125 [2025-04-02 05:10:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:10:06 - End Time 2025-04-02 05:10:06 [2025-04-02 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815944', 'tblTempUsageDetail_20' ) start [2025-04-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815944', 'tblTempUsageDetail_20' ) end [2025-04-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815944', 'tblTempVendorCDR_20' ) start [2025-04-02 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815944', 'tblTempVendorCDR_20' ) end [2025-04-02 05:10:18] Production.INFO: ProcessCDR(1,14815944,1,1,2) [2025-04-02 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815944', 'tblTempUsageDetail_20' ) start [2025-04-02 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815944', 'tblTempUsageDetail_20' ) end [2025-04-02 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:10:22] Production.INFO: ==29056== Releasing lock... [2025-04-02 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:11:06 [end_date_ymd] => 2025-04-02 05:11:06 [RateCDR] => 1 ) [2025-04-02 05:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:11:06' and `end` < '2025-04-02 05:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:11:18] Production.INFO: count ==125 [2025-04-02 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:11:06 - End Time 2025-04-02 05:11:06 [2025-04-02 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815949', 'tblTempUsageDetail_20' ) start [2025-04-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815949', 'tblTempUsageDetail_20' ) end [2025-04-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815949', 'tblTempVendorCDR_20' ) start [2025-04-02 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815949', 'tblTempVendorCDR_20' ) end [2025-04-02 05:11:18] Production.INFO: ProcessCDR(1,14815949,1,1,2) [2025-04-02 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815949', 'tblTempUsageDetail_20' ) start [2025-04-02 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815949', 'tblTempUsageDetail_20' ) end [2025-04-02 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:11:22] Production.INFO: ==29143== Releasing lock... [2025-04-02 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:12:05 [end_date_ymd] => 2025-04-02 05:12:05 [RateCDR] => 1 ) [2025-04-02 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:12:05' and `end` < '2025-04-02 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:12:17] Production.INFO: count ==125 [2025-04-02 05:12:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:12:05 - End Time 2025-04-02 05:12:05 [2025-04-02 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815954', 'tblTempUsageDetail_20' ) start [2025-04-02 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815954', 'tblTempUsageDetail_20' ) end [2025-04-02 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815954', 'tblTempVendorCDR_20' ) start [2025-04-02 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815954', 'tblTempVendorCDR_20' ) end [2025-04-02 05:12:17] Production.INFO: ProcessCDR(1,14815954,1,1,2) [2025-04-02 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815954', 'tblTempUsageDetail_20' ) start [2025-04-02 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815954', 'tblTempUsageDetail_20' ) end [2025-04-02 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:12:21] Production.INFO: ==29264== Releasing lock... [2025-04-02 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:13:06 [end_date_ymd] => 2025-04-02 05:13:06 [RateCDR] => 1 ) [2025-04-02 05:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:13:06' and `end` < '2025-04-02 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-04-02 05:13:18] Production.INFO: count ==125 [2025-04-02 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:13:06 - End Time 2025-04-02 05:13:06 [2025-04-02 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815959', 'tblTempUsageDetail_20' ) start [2025-04-02 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815959', 'tblTempUsageDetail_20' ) end [2025-04-02 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815959', 'tblTempVendorCDR_20' ) start [2025-04-02 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815959', 'tblTempVendorCDR_20' ) end [2025-04-02 05:13:18] Production.INFO: ProcessCDR(1,14815959,1,1,2) [2025-04-02 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815959', 'tblTempUsageDetail_20' ) start [2025-04-02 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815959', 'tblTempUsageDetail_20' ) end [2025-04-02 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:13:22] Production.INFO: ==29348== Releasing lock... [2025-04-02 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:14:05 [end_date_ymd] => 2025-04-02 05:14:05 [RateCDR] => 1 ) [2025-04-02 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:14:05' and `end` < '2025-04-02 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:14:18] Production.INFO: count ==125 [2025-04-02 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:14:05 - End Time 2025-04-02 05:14:05 [2025-04-02 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815964', 'tblTempUsageDetail_20' ) start [2025-04-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815964', 'tblTempUsageDetail_20' ) end [2025-04-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815964', 'tblTempVendorCDR_20' ) start [2025-04-02 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815964', 'tblTempVendorCDR_20' ) end [2025-04-02 05:14:18] Production.INFO: ProcessCDR(1,14815964,1,1,2) [2025-04-02 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815964', 'tblTempUsageDetail_20' ) start [2025-04-02 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815964', 'tblTempUsageDetail_20' ) end [2025-04-02 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:14:21] Production.INFO: ==29430== Releasing lock... [2025-04-02 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:15:05 [end_date_ymd] => 2025-04-02 05:15:05 [RateCDR] => 1 ) [2025-04-02 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:15:05' and `end` < '2025-04-02 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:15:18] Production.INFO: count ==125 [2025-04-02 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:15:05 - End Time 2025-04-02 05:15:05 [2025-04-02 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815969', 'tblTempUsageDetail_20' ) start [2025-04-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815969', 'tblTempUsageDetail_20' ) end [2025-04-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815969', 'tblTempVendorCDR_20' ) start [2025-04-02 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815969', 'tblTempVendorCDR_20' ) end [2025-04-02 05:15:18] Production.INFO: ProcessCDR(1,14815969,1,1,2) [2025-04-02 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815969', 'tblTempUsageDetail_20' ) start [2025-04-02 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815969', 'tblTempUsageDetail_20' ) end [2025-04-02 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:15:21] Production.INFO: ==29524== Releasing lock... [2025-04-02 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:16:05 [end_date_ymd] => 2025-04-02 05:16:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:16:05' and `end` < '2025-04-02 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-04-02 05:16:17] Production.INFO: count ==122 [2025-04-02 05:16:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:16:05 - End Time 2025-04-02 05:16:05 [2025-04-02 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815974', 'tblTempUsageDetail_20' ) start [2025-04-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815974', 'tblTempUsageDetail_20' ) end [2025-04-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815974', 'tblTempVendorCDR_20' ) start [2025-04-02 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815974', 'tblTempVendorCDR_20' ) end [2025-04-02 05:16:17] Production.INFO: ProcessCDR(1,14815974,1,1,2) [2025-04-02 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815974', 'tblTempUsageDetail_20' ) start [2025-04-02 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815974', 'tblTempUsageDetail_20' ) end [2025-04-02 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:16:21] Production.INFO: ==29604== Releasing lock... [2025-04-02 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:16:21] Production.INFO: 29 MB #Memory Used# [2025-04-02 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:17:05 [end_date_ymd] => 2025-04-02 05:17:05 [RateCDR] => 1 ) [2025-04-02 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:17:05' and `end` < '2025-04-02 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:17:18] Production.INFO: count ==120 [2025-04-02 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:17:05 - End Time 2025-04-02 05:17:05 [2025-04-02 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815979', 'tblTempUsageDetail_20' ) start [2025-04-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815979', 'tblTempUsageDetail_20' ) end [2025-04-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815979', 'tblTempVendorCDR_20' ) start [2025-04-02 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815979', 'tblTempVendorCDR_20' ) end [2025-04-02 05:17:18] Production.INFO: ProcessCDR(1,14815979,1,1,2) [2025-04-02 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815979', 'tblTempUsageDetail_20' ) start [2025-04-02 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815979', 'tblTempUsageDetail_20' ) end [2025-04-02 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:17:21] Production.INFO: ==29685== Releasing lock... [2025-04-02 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:17:21] Production.INFO: 29 MB #Memory Used# [2025-04-02 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:18:05 [end_date_ymd] => 2025-04-02 05:18:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:18:05' and `end` < '2025-04-02 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-04-02 05:18:18] Production.INFO: count ==119 [2025-04-02 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:18:05 - End Time 2025-04-02 05:18:05 [2025-04-02 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815984', 'tblTempUsageDetail_20' ) start [2025-04-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815984', 'tblTempUsageDetail_20' ) end [2025-04-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815984', 'tblTempVendorCDR_20' ) start [2025-04-02 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815984', 'tblTempVendorCDR_20' ) end [2025-04-02 05:18:18] Production.INFO: ProcessCDR(1,14815984,1,1,2) [2025-04-02 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815984', 'tblTempUsageDetail_20' ) start [2025-04-02 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815984', 'tblTempUsageDetail_20' ) end [2025-04-02 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:18:21] Production.INFO: ==29773== Releasing lock... [2025-04-02 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-02 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:19:06 [end_date_ymd] => 2025-04-02 05:19:06 [RateCDR] => 1 ) [2025-04-02 05:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:19:06' and `end` < '2025-04-02 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-04-02 05:19:18] Production.INFO: count ==118 [2025-04-02 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:19:06 - End Time 2025-04-02 05:19:06 [2025-04-02 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815989', 'tblTempUsageDetail_20' ) start [2025-04-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815989', 'tblTempUsageDetail_20' ) end [2025-04-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815989', 'tblTempVendorCDR_20' ) start [2025-04-02 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815989', 'tblTempVendorCDR_20' ) end [2025-04-02 05:19:18] Production.INFO: ProcessCDR(1,14815989,1,1,2) [2025-04-02 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815989', 'tblTempUsageDetail_20' ) start [2025-04-02 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815989', 'tblTempUsageDetail_20' ) end [2025-04-02 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:19:22] Production.INFO: ==29852== Releasing lock... [2025-04-02 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:20:06 [end_date_ymd] => 2025-04-02 05:20:06 [RateCDR] => 1 ) [2025-04-02 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:20:06' and `end` < '2025-04-02 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:20:18] Production.INFO: count ==118 [2025-04-02 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:20:06 - End Time 2025-04-02 05:20:06 [2025-04-02 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815995', 'tblTempUsageDetail_20' ) start [2025-04-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14815995', 'tblTempUsageDetail_20' ) end [2025-04-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815995', 'tblTempVendorCDR_20' ) start [2025-04-02 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14815995', 'tblTempVendorCDR_20' ) end [2025-04-02 05:20:18] Production.INFO: ProcessCDR(1,14815995,1,1,2) [2025-04-02 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14815995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14815995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14815995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14815995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815995', 'tblTempUsageDetail_20' ) start [2025-04-02 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14815995', 'tblTempUsageDetail_20' ) end [2025-04-02 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:20:22] Production.INFO: ==29935== Releasing lock... [2025-04-02 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:21:05 [end_date_ymd] => 2025-04-02 05:21:05 [RateCDR] => 1 ) [2025-04-02 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:21:05' and `end` < '2025-04-02 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:21:18] Production.INFO: count ==118 [2025-04-02 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:21:05 - End Time 2025-04-02 05:21:05 [2025-04-02 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816000', 'tblTempUsageDetail_20' ) start [2025-04-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816000', 'tblTempUsageDetail_20' ) end [2025-04-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816000', 'tblTempVendorCDR_20' ) start [2025-04-02 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816000', 'tblTempVendorCDR_20' ) end [2025-04-02 05:21:18] Production.INFO: ProcessCDR(1,14816000,1,1,2) [2025-04-02 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816000', 'tblTempUsageDetail_20' ) start [2025-04-02 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816000', 'tblTempUsageDetail_20' ) end [2025-04-02 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:21:21] Production.INFO: ==30016== Releasing lock... [2025-04-02 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:22:05 [end_date_ymd] => 2025-04-02 05:22:05 [RateCDR] => 1 ) [2025-04-02 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:22:05' and `end` < '2025-04-02 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:22:17] Production.INFO: count ==118 [2025-04-02 05:22:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:22:05 - End Time 2025-04-02 05:22:05 [2025-04-02 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816005', 'tblTempUsageDetail_20' ) start [2025-04-02 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816005', 'tblTempUsageDetail_20' ) end [2025-04-02 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816005', 'tblTempVendorCDR_20' ) start [2025-04-02 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816005', 'tblTempVendorCDR_20' ) end [2025-04-02 05:22:17] Production.INFO: ProcessCDR(1,14816005,1,1,2) [2025-04-02 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816005', 'tblTempUsageDetail_20' ) start [2025-04-02 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816005', 'tblTempUsageDetail_20' ) end [2025-04-02 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:22:21] Production.INFO: ==30085== Releasing lock... [2025-04-02 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:23:05 [end_date_ymd] => 2025-04-02 05:23:05 [RateCDR] => 1 ) [2025-04-02 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:23:05' and `end` < '2025-04-02 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:23:18] Production.INFO: count ==118 [2025-04-02 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:23:05 - End Time 2025-04-02 05:23:05 [2025-04-02 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816010', 'tblTempUsageDetail_20' ) start [2025-04-02 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816010', 'tblTempUsageDetail_20' ) end [2025-04-02 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816010', 'tblTempVendorCDR_20' ) start [2025-04-02 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816010', 'tblTempVendorCDR_20' ) end [2025-04-02 05:23:18] Production.INFO: ProcessCDR(1,14816010,1,1,2) [2025-04-02 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816010', 'tblTempUsageDetail_20' ) start [2025-04-02 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816010', 'tblTempUsageDetail_20' ) end [2025-04-02 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:23:22] Production.INFO: ==30171== Releasing lock... [2025-04-02 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:24:06 [end_date_ymd] => 2025-04-02 05:24:06 [RateCDR] => 1 ) [2025-04-02 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:24:06' and `end` < '2025-04-02 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:24:18] Production.INFO: count ==118 [2025-04-02 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:24:06 - End Time 2025-04-02 05:24:06 [2025-04-02 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816015', 'tblTempUsageDetail_20' ) start [2025-04-02 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816015', 'tblTempUsageDetail_20' ) end [2025-04-02 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816015', 'tblTempVendorCDR_20' ) start [2025-04-02 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816015', 'tblTempVendorCDR_20' ) end [2025-04-02 05:24:19] Production.INFO: ProcessCDR(1,14816015,1,1,2) [2025-04-02 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816015', 'tblTempUsageDetail_20' ) start [2025-04-02 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816015', 'tblTempUsageDetail_20' ) end [2025-04-02 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:24:22] Production.INFO: ==30245== Releasing lock... [2025-04-02 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:25:05 [end_date_ymd] => 2025-04-02 05:25:05 [RateCDR] => 1 ) [2025-04-02 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:25:05' and `end` < '2025-04-02 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:25:18] Production.INFO: count ==118 [2025-04-02 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:25:05 - End Time 2025-04-02 05:25:05 [2025-04-02 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816020', 'tblTempUsageDetail_20' ) start [2025-04-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816020', 'tblTempUsageDetail_20' ) end [2025-04-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816020', 'tblTempVendorCDR_20' ) start [2025-04-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816020', 'tblTempVendorCDR_20' ) end [2025-04-02 05:25:18] Production.INFO: ProcessCDR(1,14816020,1,1,2) [2025-04-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816020', 'tblTempUsageDetail_20' ) start [2025-04-02 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816020', 'tblTempUsageDetail_20' ) end [2025-04-02 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:25:21] Production.INFO: ==30318== Releasing lock... [2025-04-02 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:26:06 [end_date_ymd] => 2025-04-02 05:26:06 [RateCDR] => 1 ) [2025-04-02 05:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:26:06' and `end` < '2025-04-02 05:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:26:18] Production.INFO: count ==118 [2025-04-02 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:26:06 - End Time 2025-04-02 05:26:06 [2025-04-02 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816025', 'tblTempUsageDetail_20' ) start [2025-04-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816025', 'tblTempUsageDetail_20' ) end [2025-04-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816025', 'tblTempVendorCDR_20' ) start [2025-04-02 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816025', 'tblTempVendorCDR_20' ) end [2025-04-02 05:26:18] Production.INFO: ProcessCDR(1,14816025,1,1,2) [2025-04-02 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816025', 'tblTempUsageDetail_20' ) start [2025-04-02 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816025', 'tblTempUsageDetail_20' ) end [2025-04-02 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:26:22] Production.INFO: ==30395== Releasing lock... [2025-04-02 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:27:05 [end_date_ymd] => 2025-04-02 05:27:05 [RateCDR] => 1 ) [2025-04-02 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:27:05' and `end` < '2025-04-02 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:27:18] Production.INFO: count ==118 [2025-04-02 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:27:05 - End Time 2025-04-02 05:27:05 [2025-04-02 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816030', 'tblTempUsageDetail_20' ) start [2025-04-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816030', 'tblTempUsageDetail_20' ) end [2025-04-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816030', 'tblTempVendorCDR_20' ) start [2025-04-02 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816030', 'tblTempVendorCDR_20' ) end [2025-04-02 05:27:18] Production.INFO: ProcessCDR(1,14816030,1,1,2) [2025-04-02 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816030', 'tblTempUsageDetail_20' ) start [2025-04-02 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816030', 'tblTempUsageDetail_20' ) end [2025-04-02 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:27:21] Production.INFO: ==30466== Releasing lock... [2025-04-02 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:28:06 [end_date_ymd] => 2025-04-02 05:28:06 [RateCDR] => 1 ) [2025-04-02 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:28:06' and `end` < '2025-04-02 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-04-02 05:28:19] Production.INFO: count ==118 [2025-04-02 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:28:06 - End Time 2025-04-02 05:28:06 [2025-04-02 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816035', 'tblTempUsageDetail_20' ) start [2025-04-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816035', 'tblTempUsageDetail_20' ) end [2025-04-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816035', 'tblTempVendorCDR_20' ) start [2025-04-02 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816035', 'tblTempVendorCDR_20' ) end [2025-04-02 05:28:19] Production.INFO: ProcessCDR(1,14816035,1,1,2) [2025-04-02 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816035', 'tblTempUsageDetail_20' ) start [2025-04-02 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816035', 'tblTempUsageDetail_20' ) end [2025-04-02 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:28:22] Production.INFO: ==30581== Releasing lock... [2025-04-02 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:29:06 [end_date_ymd] => 2025-04-02 05:29:06 [RateCDR] => 1 ) [2025-04-02 05:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:29:06' and `end` < '2025-04-02 05:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:29:18] Production.INFO: count ==118 [2025-04-02 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:29:06 - End Time 2025-04-02 05:29:06 [2025-04-02 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816040', 'tblTempUsageDetail_20' ) start [2025-04-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816040', 'tblTempUsageDetail_20' ) end [2025-04-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816040', 'tblTempVendorCDR_20' ) start [2025-04-02 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816040', 'tblTempVendorCDR_20' ) end [2025-04-02 05:29:18] Production.INFO: ProcessCDR(1,14816040,1,1,2) [2025-04-02 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816040', 'tblTempUsageDetail_20' ) start [2025-04-02 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816040', 'tblTempUsageDetail_20' ) end [2025-04-02 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:29:22] Production.INFO: ==30658== Releasing lock... [2025-04-02 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:30:07 [end_date_ymd] => 2025-04-02 05:30:07 [RateCDR] => 1 ) [2025-04-02 05:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:30:07' and `end` < '2025-04-02 05:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:30:19] Production.INFO: count ==108 [2025-04-02 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:30:07 - End Time 2025-04-02 05:30:07 [2025-04-02 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816046', 'tblTempUsageDetail_20' ) start [2025-04-02 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816046', 'tblTempUsageDetail_20' ) end [2025-04-02 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816046', 'tblTempVendorCDR_20' ) start [2025-04-02 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816046', 'tblTempVendorCDR_20' ) end [2025-04-02 05:30:19] Production.INFO: ProcessCDR(1,14816046,1,1,2) [2025-04-02 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816046', 'tblTempUsageDetail_20' ) start [2025-04-02 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816046', 'tblTempUsageDetail_20' ) end [2025-04-02 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:30:23] Production.INFO: ==30743== Releasing lock... [2025-04-02 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:31:05 [end_date_ymd] => 2025-04-02 05:31:05 [RateCDR] => 1 ) [2025-04-02 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:31:05' and `end` < '2025-04-02 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:31:18] Production.INFO: count ==108 [2025-04-02 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:31:05 - End Time 2025-04-02 05:31:05 [2025-04-02 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816051', 'tblTempUsageDetail_20' ) start [2025-04-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816051', 'tblTempUsageDetail_20' ) end [2025-04-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816051', 'tblTempVendorCDR_20' ) start [2025-04-02 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816051', 'tblTempVendorCDR_20' ) end [2025-04-02 05:31:18] Production.INFO: ProcessCDR(1,14816051,1,1,2) [2025-04-02 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816051', 'tblTempUsageDetail_20' ) start [2025-04-02 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816051', 'tblTempUsageDetail_20' ) end [2025-04-02 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:31:21] Production.INFO: ==30821== Releasing lock... [2025-04-02 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:32:05 [end_date_ymd] => 2025-04-02 05:32:05 [RateCDR] => 1 ) [2025-04-02 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:32:05' and `end` < '2025-04-02 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:32:18] Production.INFO: count ==108 [2025-04-02 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:32:05 - End Time 2025-04-02 05:32:05 [2025-04-02 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816056', 'tblTempUsageDetail_20' ) start [2025-04-02 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816056', 'tblTempUsageDetail_20' ) end [2025-04-02 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816056', 'tblTempVendorCDR_20' ) start [2025-04-02 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816056', 'tblTempVendorCDR_20' ) end [2025-04-02 05:32:18] Production.INFO: ProcessCDR(1,14816056,1,1,2) [2025-04-02 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816056', 'tblTempUsageDetail_20' ) start [2025-04-02 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816056', 'tblTempUsageDetail_20' ) end [2025-04-02 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:32:22] Production.INFO: ==30896== Releasing lock... [2025-04-02 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:33:05 [end_date_ymd] => 2025-04-02 05:33:05 [RateCDR] => 1 ) [2025-04-02 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:33:05' and `end` < '2025-04-02 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:33:18] Production.INFO: count ==103 [2025-04-02 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:33:05 - End Time 2025-04-02 05:33:05 [2025-04-02 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816061', 'tblTempUsageDetail_20' ) start [2025-04-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816061', 'tblTempUsageDetail_20' ) end [2025-04-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816061', 'tblTempVendorCDR_20' ) start [2025-04-02 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816061', 'tblTempVendorCDR_20' ) end [2025-04-02 05:33:18] Production.INFO: ProcessCDR(1,14816061,1,1,2) [2025-04-02 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816061', 'tblTempUsageDetail_20' ) start [2025-04-02 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816061', 'tblTempUsageDetail_20' ) end [2025-04-02 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:33:21] Production.INFO: ==30968== Releasing lock... [2025-04-02 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:34:06 [end_date_ymd] => 2025-04-02 05:34:06 [RateCDR] => 1 ) [2025-04-02 05:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:34:06' and `end` < '2025-04-02 05:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:34:18] Production.INFO: count ==103 [2025-04-02 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:34:06 - End Time 2025-04-02 05:34:06 [2025-04-02 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816066', 'tblTempUsageDetail_20' ) start [2025-04-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816066', 'tblTempUsageDetail_20' ) end [2025-04-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816066', 'tblTempVendorCDR_20' ) start [2025-04-02 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816066', 'tblTempVendorCDR_20' ) end [2025-04-02 05:34:18] Production.INFO: ProcessCDR(1,14816066,1,1,2) [2025-04-02 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816066', 'tblTempUsageDetail_20' ) start [2025-04-02 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816066', 'tblTempUsageDetail_20' ) end [2025-04-02 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:34:22] Production.INFO: ==31055== Releasing lock... [2025-04-02 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:35:05 [end_date_ymd] => 2025-04-02 05:35:05 [RateCDR] => 1 ) [2025-04-02 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:35:05' and `end` < '2025-04-02 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:35:18] Production.INFO: count ==103 [2025-04-02 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:35:05 - End Time 2025-04-02 05:35:05 [2025-04-02 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816071', 'tblTempUsageDetail_20' ) start [2025-04-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816071', 'tblTempUsageDetail_20' ) end [2025-04-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816071', 'tblTempVendorCDR_20' ) start [2025-04-02 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816071', 'tblTempVendorCDR_20' ) end [2025-04-02 05:35:18] Production.INFO: ProcessCDR(1,14816071,1,1,2) [2025-04-02 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816071', 'tblTempUsageDetail_20' ) start [2025-04-02 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816071', 'tblTempUsageDetail_20' ) end [2025-04-02 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:35:21] Production.INFO: ==31127== Releasing lock... [2025-04-02 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:36:06 [end_date_ymd] => 2025-04-02 05:36:06 [RateCDR] => 1 ) [2025-04-02 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:36:06' and `end` < '2025-04-02 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:36:18] Production.INFO: count ==103 [2025-04-02 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:36:06 - End Time 2025-04-02 05:36:06 [2025-04-02 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816076', 'tblTempUsageDetail_20' ) start [2025-04-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816076', 'tblTempUsageDetail_20' ) end [2025-04-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816076', 'tblTempVendorCDR_20' ) start [2025-04-02 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816076', 'tblTempVendorCDR_20' ) end [2025-04-02 05:36:18] Production.INFO: ProcessCDR(1,14816076,1,1,2) [2025-04-02 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816076', 'tblTempUsageDetail_20' ) start [2025-04-02 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816076', 'tblTempUsageDetail_20' ) end [2025-04-02 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:36:22] Production.INFO: ==31199== Releasing lock... [2025-04-02 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:37:05 [end_date_ymd] => 2025-04-02 05:37:05 [RateCDR] => 1 ) [2025-04-02 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:37:05' and `end` < '2025-04-02 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:37:17] Production.INFO: count ==99 [2025-04-02 05:37:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:37:05 - End Time 2025-04-02 05:37:05 [2025-04-02 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816081', 'tblTempUsageDetail_20' ) start [2025-04-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816081', 'tblTempUsageDetail_20' ) end [2025-04-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816081', 'tblTempVendorCDR_20' ) start [2025-04-02 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816081', 'tblTempVendorCDR_20' ) end [2025-04-02 05:37:17] Production.INFO: ProcessCDR(1,14816081,1,1,2) [2025-04-02 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816081', 'tblTempUsageDetail_20' ) start [2025-04-02 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816081', 'tblTempUsageDetail_20' ) end [2025-04-02 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:37:21] Production.INFO: ==31275== Releasing lock... [2025-04-02 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:38:05 [end_date_ymd] => 2025-04-02 05:38:05 [RateCDR] => 1 ) [2025-04-02 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:38:05' and `end` < '2025-04-02 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:38:18] Production.INFO: count ==99 [2025-04-02 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:38:05 - End Time 2025-04-02 05:38:05 [2025-04-02 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816086', 'tblTempUsageDetail_20' ) start [2025-04-02 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816086', 'tblTempUsageDetail_20' ) end [2025-04-02 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816086', 'tblTempVendorCDR_20' ) start [2025-04-02 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816086', 'tblTempVendorCDR_20' ) end [2025-04-02 05:38:18] Production.INFO: ProcessCDR(1,14816086,1,1,2) [2025-04-02 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816086', 'tblTempUsageDetail_20' ) start [2025-04-02 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816086', 'tblTempUsageDetail_20' ) end [2025-04-02 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:38:22] Production.INFO: ==31346== Releasing lock... [2025-04-02 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:39:05 [end_date_ymd] => 2025-04-02 05:39:05 [RateCDR] => 1 ) [2025-04-02 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:39:05' and `end` < '2025-04-02 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:39:18] Production.INFO: count ==99 [2025-04-02 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:39:05 - End Time 2025-04-02 05:39:05 [2025-04-02 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816091', 'tblTempUsageDetail_20' ) start [2025-04-02 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816091', 'tblTempUsageDetail_20' ) end [2025-04-02 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816091', 'tblTempVendorCDR_20' ) start [2025-04-02 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816091', 'tblTempVendorCDR_20' ) end [2025-04-02 05:39:18] Production.INFO: ProcessCDR(1,14816091,1,1,2) [2025-04-02 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816091', 'tblTempUsageDetail_20' ) start [2025-04-02 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816091', 'tblTempUsageDetail_20' ) end [2025-04-02 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:39:22] Production.INFO: ==31426== Releasing lock... [2025-04-02 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:40:07 [end_date_ymd] => 2025-04-02 05:40:07 [RateCDR] => 1 ) [2025-04-02 05:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:40:07' and `end` < '2025-04-02 05:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:40:19] Production.INFO: count ==89 [2025-04-02 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:40:07 - End Time 2025-04-02 05:40:07 [2025-04-02 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816096', 'tblTempUsageDetail_20' ) start [2025-04-02 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816096', 'tblTempUsageDetail_20' ) end [2025-04-02 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816096', 'tblTempVendorCDR_20' ) start [2025-04-02 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816096', 'tblTempVendorCDR_20' ) end [2025-04-02 05:40:19] Production.INFO: ProcessCDR(1,14816096,1,1,2) [2025-04-02 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816096', 'tblTempUsageDetail_20' ) start [2025-04-02 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816096', 'tblTempUsageDetail_20' ) end [2025-04-02 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:40:23] Production.INFO: ==31503== Releasing lock... [2025-04-02 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:41:05 [end_date_ymd] => 2025-04-02 05:41:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:41:05' and `end` < '2025-04-02 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:41:18] Production.INFO: count ==89 [2025-04-02 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:41:05 - End Time 2025-04-02 05:41:05 [2025-04-02 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816102', 'tblTempUsageDetail_20' ) start [2025-04-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816102', 'tblTempUsageDetail_20' ) end [2025-04-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816102', 'tblTempVendorCDR_20' ) start [2025-04-02 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816102', 'tblTempVendorCDR_20' ) end [2025-04-02 05:41:18] Production.INFO: ProcessCDR(1,14816102,1,1,2) [2025-04-02 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816102', 'tblTempUsageDetail_20' ) start [2025-04-02 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816102', 'tblTempUsageDetail_20' ) end [2025-04-02 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:41:21] Production.INFO: ==31579== Releasing lock... [2025-04-02 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:42:06 [end_date_ymd] => 2025-04-02 05:42:06 [RateCDR] => 1 ) [2025-04-02 05:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:42:06' and `end` < '2025-04-02 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-04-02 05:42:18] Production.INFO: count ==89 [2025-04-02 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:42:06 - End Time 2025-04-02 05:42:06 [2025-04-02 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816107', 'tblTempUsageDetail_20' ) start [2025-04-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816107', 'tblTempUsageDetail_20' ) end [2025-04-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816107', 'tblTempVendorCDR_20' ) start [2025-04-02 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816107', 'tblTempVendorCDR_20' ) end [2025-04-02 05:42:18] Production.INFO: ProcessCDR(1,14816107,1,1,2) [2025-04-02 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816107', 'tblTempUsageDetail_20' ) start [2025-04-02 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816107', 'tblTempUsageDetail_20' ) end [2025-04-02 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:42:22] Production.INFO: ==31653== Releasing lock... [2025-04-02 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:43:05 [end_date_ymd] => 2025-04-02 05:43:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 02:43:05' and `end` < '2025-04-02 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:43:18] Production.INFO: count ==89 [2025-04-02 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:43:05 - End Time 2025-04-02 05:43:05 [2025-04-02 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816112', 'tblTempUsageDetail_20' ) start [2025-04-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816112', 'tblTempUsageDetail_20' ) end [2025-04-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816112', 'tblTempVendorCDR_20' ) start [2025-04-02 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816112', 'tblTempVendorCDR_20' ) end [2025-04-02 05:43:18] Production.INFO: ProcessCDR(1,14816112,1,1,2) [2025-04-02 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816112', 'tblTempUsageDetail_20' ) start [2025-04-02 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816112', 'tblTempUsageDetail_20' ) end [2025-04-02 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:43:22] Production.INFO: ==31776== Releasing lock... [2025-04-02 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:44:06 [end_date_ymd] => 2025-04-02 05:44:06 [RateCDR] => 1 ) [2025-04-02 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:44:06' and `end` < '2025-04-02 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:44:19] Production.INFO: count ==89 [2025-04-02 05:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:44:06 - End Time 2025-04-02 05:44:06 [2025-04-02 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816117', 'tblTempUsageDetail_20' ) start [2025-04-02 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816117', 'tblTempUsageDetail_20' ) end [2025-04-02 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816117', 'tblTempVendorCDR_20' ) start [2025-04-02 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816117', 'tblTempVendorCDR_20' ) end [2025-04-02 05:44:19] Production.INFO: ProcessCDR(1,14816117,1,1,2) [2025-04-02 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816117', 'tblTempUsageDetail_20' ) start [2025-04-02 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816117', 'tblTempUsageDetail_20' ) end [2025-04-02 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:44:22] Production.INFO: ==31852== Releasing lock... [2025-04-02 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:45:05 [end_date_ymd] => 2025-04-02 05:45:05 [RateCDR] => 1 ) [2025-04-02 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:45:05' and `end` < '2025-04-02 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:45:18] Production.INFO: count ==89 [2025-04-02 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:45:05 - End Time 2025-04-02 05:45:05 [2025-04-02 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816122', 'tblTempUsageDetail_20' ) start [2025-04-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816122', 'tblTempUsageDetail_20' ) end [2025-04-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816122', 'tblTempVendorCDR_20' ) start [2025-04-02 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816122', 'tblTempVendorCDR_20' ) end [2025-04-02 05:45:18] Production.INFO: ProcessCDR(1,14816122,1,1,2) [2025-04-02 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816122', 'tblTempUsageDetail_20' ) start [2025-04-02 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816122', 'tblTempUsageDetail_20' ) end [2025-04-02 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:45:21] Production.INFO: ==31926== Releasing lock... [2025-04-02 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:46:06 [end_date_ymd] => 2025-04-02 05:46:06 [RateCDR] => 1 ) [2025-04-02 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:46:06' and `end` < '2025-04-02 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:46:18] Production.INFO: count ==100 [2025-04-02 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:46:06 - End Time 2025-04-02 05:46:06 [2025-04-02 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816127', 'tblTempUsageDetail_20' ) start [2025-04-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816127', 'tblTempUsageDetail_20' ) end [2025-04-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816127', 'tblTempVendorCDR_20' ) start [2025-04-02 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816127', 'tblTempVendorCDR_20' ) end [2025-04-02 05:46:18] Production.INFO: ProcessCDR(1,14816127,1,1,2) [2025-04-02 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816127', 'tblTempUsageDetail_20' ) start [2025-04-02 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816127', 'tblTempUsageDetail_20' ) end [2025-04-02 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:46:22] Production.INFO: ==32027== Releasing lock... [2025-04-02 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:47:05 [end_date_ymd] => 2025-04-02 05:47:05 [RateCDR] => 1 ) [2025-04-02 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:47:05' and `end` < '2025-04-02 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:47:17] Production.INFO: count ==100 [2025-04-02 05:47:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:47:05 - End Time 2025-04-02 05:47:05 [2025-04-02 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816132', 'tblTempUsageDetail_20' ) start [2025-04-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816132', 'tblTempUsageDetail_20' ) end [2025-04-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816132', 'tblTempVendorCDR_20' ) start [2025-04-02 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816132', 'tblTempVendorCDR_20' ) end [2025-04-02 05:47:17] Production.INFO: ProcessCDR(1,14816132,1,1,2) [2025-04-02 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816132', 'tblTempUsageDetail_20' ) start [2025-04-02 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816132', 'tblTempUsageDetail_20' ) end [2025-04-02 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:47:21] Production.INFO: ==32101== Releasing lock... [2025-04-02 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:48:06 [end_date_ymd] => 2025-04-02 05:48:06 [RateCDR] => 1 ) [2025-04-02 05:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:48:06' and `end` < '2025-04-02 05:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:48:18] Production.INFO: count ==100 [2025-04-02 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:48:06 - End Time 2025-04-02 05:48:06 [2025-04-02 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816137', 'tblTempUsageDetail_20' ) start [2025-04-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816137', 'tblTempUsageDetail_20' ) end [2025-04-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816137', 'tblTempVendorCDR_20' ) start [2025-04-02 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816137', 'tblTempVendorCDR_20' ) end [2025-04-02 05:48:18] Production.INFO: ProcessCDR(1,14816137,1,1,2) [2025-04-02 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816137', 'tblTempUsageDetail_20' ) start [2025-04-02 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816137', 'tblTempUsageDetail_20' ) end [2025-04-02 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:48:22] Production.INFO: ==32175== Releasing lock... [2025-04-02 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:49:06 [end_date_ymd] => 2025-04-02 05:49:06 [RateCDR] => 1 ) [2025-04-02 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:49:06' and `end` < '2025-04-02 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:49:19] Production.INFO: count ==97 [2025-04-02 05:49:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:49:06 - End Time 2025-04-02 05:49:06 [2025-04-02 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816142', 'tblTempUsageDetail_20' ) start [2025-04-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816142', 'tblTempUsageDetail_20' ) end [2025-04-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816142', 'tblTempVendorCDR_20' ) start [2025-04-02 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816142', 'tblTempVendorCDR_20' ) end [2025-04-02 05:49:19] Production.INFO: ProcessCDR(1,14816142,1,1,2) [2025-04-02 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816142', 'tblTempUsageDetail_20' ) start [2025-04-02 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816142', 'tblTempUsageDetail_20' ) end [2025-04-02 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:49:22] Production.INFO: ==32253== Releasing lock... [2025-04-02 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:50:06 [end_date_ymd] => 2025-04-02 05:50:06 [RateCDR] => 1 ) [2025-04-02 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:50:06' and `end` < '2025-04-02 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:50:18] Production.INFO: count ==97 [2025-04-02 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:50:06 - End Time 2025-04-02 05:50:06 [2025-04-02 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816147', 'tblTempUsageDetail_20' ) start [2025-04-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816147', 'tblTempUsageDetail_20' ) end [2025-04-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816147', 'tblTempVendorCDR_20' ) start [2025-04-02 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816147', 'tblTempVendorCDR_20' ) end [2025-04-02 05:50:18] Production.INFO: ProcessCDR(1,14816147,1,1,2) [2025-04-02 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816147', 'tblTempUsageDetail_20' ) start [2025-04-02 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816147', 'tblTempUsageDetail_20' ) end [2025-04-02 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:50:22] Production.INFO: ==32332== Releasing lock... [2025-04-02 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:51:06 [end_date_ymd] => 2025-04-02 05:51:06 [RateCDR] => 1 ) [2025-04-02 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:51:06' and `end` < '2025-04-02 05:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:51:18] Production.INFO: count ==97 [2025-04-02 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:51:06 - End Time 2025-04-02 05:51:06 [2025-04-02 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816153', 'tblTempUsageDetail_20' ) start [2025-04-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816153', 'tblTempUsageDetail_20' ) end [2025-04-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816153', 'tblTempVendorCDR_20' ) start [2025-04-02 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816153', 'tblTempVendorCDR_20' ) end [2025-04-02 05:51:18] Production.INFO: ProcessCDR(1,14816153,1,1,2) [2025-04-02 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816153', 'tblTempUsageDetail_20' ) start [2025-04-02 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816153', 'tblTempUsageDetail_20' ) end [2025-04-02 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:51:22] Production.INFO: ==32408== Releasing lock... [2025-04-02 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:52:05 [end_date_ymd] => 2025-04-02 05:52:05 [RateCDR] => 1 ) [2025-04-02 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:52:05' and `end` < '2025-04-02 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:52:17] Production.INFO: count ==97 [2025-04-02 05:52:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:52:05 - End Time 2025-04-02 05:52:05 [2025-04-02 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816158', 'tblTempUsageDetail_20' ) start [2025-04-02 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816158', 'tblTempUsageDetail_20' ) end [2025-04-02 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816158', 'tblTempVendorCDR_20' ) start [2025-04-02 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816158', 'tblTempVendorCDR_20' ) end [2025-04-02 05:52:17] Production.INFO: ProcessCDR(1,14816158,1,1,2) [2025-04-02 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816158', 'tblTempUsageDetail_20' ) start [2025-04-02 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816158', 'tblTempUsageDetail_20' ) end [2025-04-02 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:52:21] Production.INFO: ==32491== Releasing lock... [2025-04-02 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:53:06 [end_date_ymd] => 2025-04-02 05:53:06 [RateCDR] => 1 ) [2025-04-02 05:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:53:06' and `end` < '2025-04-02 05:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:53:19] Production.INFO: count ==97 [2025-04-02 05:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 02:53:06 - End Time 2025-04-02 05:53:06 [2025-04-02 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816163', 'tblTempUsageDetail_20' ) start [2025-04-02 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816163', 'tblTempUsageDetail_20' ) end [2025-04-02 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816163', 'tblTempVendorCDR_20' ) start [2025-04-02 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816163', 'tblTempVendorCDR_20' ) end [2025-04-02 05:53:19] Production.INFO: ProcessCDR(1,14816163,1,1,2) [2025-04-02 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816163', 'tblTempUsageDetail_20' ) start [2025-04-02 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816163', 'tblTempUsageDetail_20' ) end [2025-04-02 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:53:22] Production.INFO: ==32567== Releasing lock... [2025-04-02 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:54:05 [end_date_ymd] => 2025-04-02 05:54:05 [RateCDR] => 1 ) [2025-04-02 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:54:05' and `end` < '2025-04-02 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:54:18] Production.INFO: count ==97 [2025-04-02 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:54:05 - End Time 2025-04-02 05:54:05 [2025-04-02 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816168', 'tblTempUsageDetail_20' ) start [2025-04-02 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816168', 'tblTempUsageDetail_20' ) end [2025-04-02 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816168', 'tblTempVendorCDR_20' ) start [2025-04-02 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816168', 'tblTempVendorCDR_20' ) end [2025-04-02 05:54:18] Production.INFO: ProcessCDR(1,14816168,1,1,2) [2025-04-02 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816168', 'tblTempUsageDetail_20' ) start [2025-04-02 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816168', 'tblTempUsageDetail_20' ) end [2025-04-02 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:54:22] Production.INFO: ==32644== Releasing lock... [2025-04-02 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:55:05 [end_date_ymd] => 2025-04-02 05:55:05 [RateCDR] => 1 ) [2025-04-02 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:55:05' and `end` < '2025-04-02 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:55:18] Production.INFO: count ==98 [2025-04-02 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:55:05 - End Time 2025-04-02 05:55:05 [2025-04-02 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816173', 'tblTempUsageDetail_20' ) start [2025-04-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816173', 'tblTempUsageDetail_20' ) end [2025-04-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816173', 'tblTempVendorCDR_20' ) start [2025-04-02 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816173', 'tblTempVendorCDR_20' ) end [2025-04-02 05:55:18] Production.INFO: ProcessCDR(1,14816173,1,1,2) [2025-04-02 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816173', 'tblTempUsageDetail_20' ) start [2025-04-02 05:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816173', 'tblTempUsageDetail_20' ) end [2025-04-02 05:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:55:23] Production.INFO: ==32722== Releasing lock... [2025-04-02 05:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:55:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:56:05 [end_date_ymd] => 2025-04-02 05:56:05 [RateCDR] => 1 ) [2025-04-02 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:56:05' and `end` < '2025-04-02 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:56:18] Production.INFO: count ==98 [2025-04-02 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:56:05 - End Time 2025-04-02 05:56:05 [2025-04-02 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816178', 'tblTempUsageDetail_20' ) start [2025-04-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816178', 'tblTempUsageDetail_20' ) end [2025-04-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816178', 'tblTempVendorCDR_20' ) start [2025-04-02 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816178', 'tblTempVendorCDR_20' ) end [2025-04-02 05:56:18] Production.INFO: ProcessCDR(1,14816178,1,1,2) [2025-04-02 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816178', 'tblTempUsageDetail_20' ) start [2025-04-02 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816178', 'tblTempUsageDetail_20' ) end [2025-04-02 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:56:21] Production.INFO: ==355== Releasing lock... [2025-04-02 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-02 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:57:05 [end_date_ymd] => 2025-04-02 05:57:05 [RateCDR] => 1 ) [2025-04-02 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:57:05' and `end` < '2025-04-02 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:57:18] Production.INFO: count ==93 [2025-04-02 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:57:05 - End Time 2025-04-02 05:57:05 [2025-04-02 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816183', 'tblTempUsageDetail_20' ) start [2025-04-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816183', 'tblTempUsageDetail_20' ) end [2025-04-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816183', 'tblTempVendorCDR_20' ) start [2025-04-02 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816183', 'tblTempVendorCDR_20' ) end [2025-04-02 05:57:18] Production.INFO: ProcessCDR(1,14816183,1,1,2) [2025-04-02 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816183', 'tblTempUsageDetail_20' ) start [2025-04-02 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816183', 'tblTempUsageDetail_20' ) end [2025-04-02 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:57:22] Production.INFO: ==435== Releasing lock... [2025-04-02 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:58:05 [end_date_ymd] => 2025-04-02 05:58:05 [RateCDR] => 1 ) [2025-04-02 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:58:05' and `end` < '2025-04-02 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:58:17] Production.INFO: count ==93 [2025-04-02 05:58:17] Production.ERROR: pbx CDR StartTime 2025-04-02 02:58:05 - End Time 2025-04-02 05:58:05 [2025-04-02 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816188', 'tblTempUsageDetail_20' ) start [2025-04-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816188', 'tblTempUsageDetail_20' ) end [2025-04-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816188', 'tblTempVendorCDR_20' ) start [2025-04-02 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816188', 'tblTempVendorCDR_20' ) end [2025-04-02 05:58:17] Production.INFO: ProcessCDR(1,14816188,1,1,2) [2025-04-02 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816188', 'tblTempUsageDetail_20' ) start [2025-04-02 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816188', 'tblTempUsageDetail_20' ) end [2025-04-02 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:58:21] Production.INFO: ==560== Releasing lock... [2025-04-02 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 02:59:05 [end_date_ymd] => 2025-04-02 05:59:05 [RateCDR] => 1 ) [2025-04-02 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 02:59:05' and `end` < '2025-04-02 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 05:59:18] Production.INFO: count ==93 [2025-04-02 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 02:59:05 - End Time 2025-04-02 05:59:05 [2025-04-02 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816193', 'tblTempUsageDetail_20' ) start [2025-04-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816193', 'tblTempUsageDetail_20' ) end [2025-04-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816193', 'tblTempVendorCDR_20' ) start [2025-04-02 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816193', 'tblTempVendorCDR_20' ) end [2025-04-02 05:59:18] Production.INFO: ProcessCDR(1,14816193,1,1,2) [2025-04-02 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816193', 'tblTempUsageDetail_20' ) start [2025-04-02 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816193', 'tblTempUsageDetail_20' ) end [2025-04-02 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 05:59:22] Production.INFO: ==650== Releasing lock... [2025-04-02 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 05:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:00:07 [end_date_ymd] => 2025-04-02 06:00:07 [RateCDR] => 1 ) [2025-04-02 06:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:00:07' and `end` < '2025-04-02 06:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:00:19] Production.INFO: count ==99 [2025-04-02 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:00:07 - End Time 2025-04-02 06:00:07 [2025-04-02 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816199', 'tblTempUsageDetail_20' ) start [2025-04-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816199', 'tblTempUsageDetail_20' ) end [2025-04-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816199', 'tblTempVendorCDR_20' ) start [2025-04-02 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816199', 'tblTempVendorCDR_20' ) end [2025-04-02 06:00:19] Production.INFO: ProcessCDR(1,14816199,1,1,2) [2025-04-02 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816199', 'tblTempUsageDetail_20' ) start [2025-04-02 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816199', 'tblTempUsageDetail_20' ) end [2025-04-02 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:00:24] Production.INFO: ==761== Releasing lock... [2025-04-02 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:01:05 [end_date_ymd] => 2025-04-02 06:01:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 03:01:05' and `end` < '2025-04-02 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-04-02 06:01:18] Production.INFO: count ==99 [2025-04-02 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:01:05 - End Time 2025-04-02 06:01:05 [2025-04-02 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816204', 'tblTempUsageDetail_20' ) start [2025-04-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816204', 'tblTempUsageDetail_20' ) end [2025-04-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816204', 'tblTempVendorCDR_20' ) start [2025-04-02 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816204', 'tblTempVendorCDR_20' ) end [2025-04-02 06:01:18] Production.INFO: ProcessCDR(1,14816204,1,1,2) [2025-04-02 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816204', 'tblTempUsageDetail_20' ) start [2025-04-02 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816204', 'tblTempUsageDetail_20' ) end [2025-04-02 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:01:21] Production.INFO: ==855== Releasing lock... [2025-04-02 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:02:06 [end_date_ymd] => 2025-04-02 06:02:06 [RateCDR] => 1 ) [2025-04-02 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:02:06' and `end` < '2025-04-02 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:02:19] Production.INFO: count ==99 [2025-04-02 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:02:06 - End Time 2025-04-02 06:02:06 [2025-04-02 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816209', 'tblTempUsageDetail_20' ) start [2025-04-02 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816209', 'tblTempUsageDetail_20' ) end [2025-04-02 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816209', 'tblTempVendorCDR_20' ) start [2025-04-02 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816209', 'tblTempVendorCDR_20' ) end [2025-04-02 06:02:19] Production.INFO: ProcessCDR(1,14816209,1,1,2) [2025-04-02 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816209', 'tblTempUsageDetail_20' ) start [2025-04-02 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816209', 'tblTempUsageDetail_20' ) end [2025-04-02 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:02:22] Production.INFO: ==938== Releasing lock... [2025-04-02 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:03:05 [end_date_ymd] => 2025-04-02 06:03:05 [RateCDR] => 1 ) [2025-04-02 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:03:05' and `end` < '2025-04-02 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:03:18] Production.INFO: count ==99 [2025-04-02 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:03:05 - End Time 2025-04-02 06:03:05 [2025-04-02 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816214', 'tblTempUsageDetail_20' ) start [2025-04-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816214', 'tblTempUsageDetail_20' ) end [2025-04-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816214', 'tblTempVendorCDR_20' ) start [2025-04-02 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816214', 'tblTempVendorCDR_20' ) end [2025-04-02 06:03:18] Production.INFO: ProcessCDR(1,14816214,1,1,2) [2025-04-02 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816214', 'tblTempUsageDetail_20' ) start [2025-04-02 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816214', 'tblTempUsageDetail_20' ) end [2025-04-02 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:03:21] Production.INFO: ==1018== Releasing lock... [2025-04-02 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:04:06 [end_date_ymd] => 2025-04-02 06:04:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 03:04:06' and `end` < '2025-04-02 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-04-02 06:04:18] Production.INFO: count ==99 [2025-04-02 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:04:06 - End Time 2025-04-02 06:04:06 [2025-04-02 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816219', 'tblTempUsageDetail_20' ) start [2025-04-02 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816219', 'tblTempUsageDetail_20' ) end [2025-04-02 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816219', 'tblTempVendorCDR_20' ) start [2025-04-02 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816219', 'tblTempVendorCDR_20' ) end [2025-04-02 06:04:18] Production.INFO: ProcessCDR(1,14816219,1,1,2) [2025-04-02 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816219', 'tblTempUsageDetail_20' ) start [2025-04-02 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816219', 'tblTempUsageDetail_20' ) end [2025-04-02 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:04:22] Production.INFO: ==1100== Releasing lock... [2025-04-02 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:05:05 [end_date_ymd] => 2025-04-02 06:05:05 [RateCDR] => 1 ) [2025-04-02 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:05:05' and `end` < '2025-04-02 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:05:18] Production.INFO: count ==99 [2025-04-02 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:05:05 - End Time 2025-04-02 06:05:05 [2025-04-02 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816224', 'tblTempUsageDetail_20' ) start [2025-04-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816224', 'tblTempUsageDetail_20' ) end [2025-04-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816224', 'tblTempVendorCDR_20' ) start [2025-04-02 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816224', 'tblTempVendorCDR_20' ) end [2025-04-02 06:05:18] Production.INFO: ProcessCDR(1,14816224,1,1,2) [2025-04-02 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816224', 'tblTempUsageDetail_20' ) start [2025-04-02 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816224', 'tblTempUsageDetail_20' ) end [2025-04-02 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:05:21] Production.INFO: ==1185== Releasing lock... [2025-04-02 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:06:05 [end_date_ymd] => 2025-04-02 06:06:05 [RateCDR] => 1 ) [2025-04-02 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:06:05' and `end` < '2025-04-02 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:06:18] Production.INFO: count ==99 [2025-04-02 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:06:05 - End Time 2025-04-02 06:06:05 [2025-04-02 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816229', 'tblTempUsageDetail_20' ) start [2025-04-02 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816229', 'tblTempUsageDetail_20' ) end [2025-04-02 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816229', 'tblTempVendorCDR_20' ) start [2025-04-02 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816229', 'tblTempVendorCDR_20' ) end [2025-04-02 06:06:18] Production.INFO: ProcessCDR(1,14816229,1,1,2) [2025-04-02 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816229', 'tblTempUsageDetail_20' ) start [2025-04-02 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816229', 'tblTempUsageDetail_20' ) end [2025-04-02 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:06:21] Production.INFO: ==1273== Releasing lock... [2025-04-02 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:07:05 [end_date_ymd] => 2025-04-02 06:07:05 [RateCDR] => 1 ) [2025-04-02 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:07:05' and `end` < '2025-04-02 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:07:17] Production.INFO: count ==99 [2025-04-02 06:07:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:07:05 - End Time 2025-04-02 06:07:05 [2025-04-02 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816234', 'tblTempUsageDetail_20' ) start [2025-04-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816234', 'tblTempUsageDetail_20' ) end [2025-04-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816234', 'tblTempVendorCDR_20' ) start [2025-04-02 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816234', 'tblTempVendorCDR_20' ) end [2025-04-02 06:07:17] Production.INFO: ProcessCDR(1,14816234,1,1,2) [2025-04-02 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816234', 'tblTempUsageDetail_20' ) start [2025-04-02 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816234', 'tblTempUsageDetail_20' ) end [2025-04-02 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:07:21] Production.INFO: ==1351== Releasing lock... [2025-04-02 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:08:05 [end_date_ymd] => 2025-04-02 06:08:05 [RateCDR] => 1 ) [2025-04-02 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:08:05' and `end` < '2025-04-02 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:08:18] Production.INFO: count ==99 [2025-04-02 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:08:05 - End Time 2025-04-02 06:08:05 [2025-04-02 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816239', 'tblTempUsageDetail_20' ) start [2025-04-02 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816239', 'tblTempUsageDetail_20' ) end [2025-04-02 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816239', 'tblTempVendorCDR_20' ) start [2025-04-02 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816239', 'tblTempVendorCDR_20' ) end [2025-04-02 06:08:18] Production.INFO: ProcessCDR(1,14816239,1,1,2) [2025-04-02 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816239', 'tblTempUsageDetail_20' ) start [2025-04-02 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816239', 'tblTempUsageDetail_20' ) end [2025-04-02 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:08:21] Production.INFO: ==1433== Releasing lock... [2025-04-02 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:09:05 [end_date_ymd] => 2025-04-02 06:09:05 [RateCDR] => 1 ) [2025-04-02 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:09:05' and `end` < '2025-04-02 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:09:18] Production.INFO: count ==99 [2025-04-02 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:09:05 - End Time 2025-04-02 06:09:05 [2025-04-02 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816244', 'tblTempUsageDetail_20' ) start [2025-04-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816244', 'tblTempUsageDetail_20' ) end [2025-04-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816244', 'tblTempVendorCDR_20' ) start [2025-04-02 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816244', 'tblTempVendorCDR_20' ) end [2025-04-02 06:09:18] Production.INFO: ProcessCDR(1,14816244,1,1,2) [2025-04-02 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816244', 'tblTempUsageDetail_20' ) start [2025-04-02 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816244', 'tblTempUsageDetail_20' ) end [2025-04-02 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:09:21] Production.INFO: ==1546== Releasing lock... [2025-04-02 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:10:06 [end_date_ymd] => 2025-04-02 06:10:06 [RateCDR] => 1 ) [2025-04-02 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:10:06' and `end` < '2025-04-02 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:10:19] Production.INFO: count ==76 [2025-04-02 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:10:06 - End Time 2025-04-02 06:10:06 [2025-04-02 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816250', 'tblTempUsageDetail_20' ) start [2025-04-02 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816250', 'tblTempUsageDetail_20' ) end [2025-04-02 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816250', 'tblTempVendorCDR_20' ) start [2025-04-02 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816250', 'tblTempVendorCDR_20' ) end [2025-04-02 06:10:19] Production.INFO: ProcessCDR(1,14816250,1,1,2) [2025-04-02 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816250', 'tblTempUsageDetail_20' ) start [2025-04-02 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816250', 'tblTempUsageDetail_20' ) end [2025-04-02 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:10:22] Production.INFO: ==1630== Releasing lock... [2025-04-02 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:11:05 [end_date_ymd] => 2025-04-02 06:11:05 [RateCDR] => 1 ) [2025-04-02 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:11:05' and `end` < '2025-04-02 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:11:18] Production.INFO: count ==70 [2025-04-02 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:11:05 - End Time 2025-04-02 06:11:05 [2025-04-02 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816255', 'tblTempUsageDetail_20' ) start [2025-04-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816255', 'tblTempUsageDetail_20' ) end [2025-04-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816255', 'tblTempVendorCDR_20' ) start [2025-04-02 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816255', 'tblTempVendorCDR_20' ) end [2025-04-02 06:11:18] Production.INFO: ProcessCDR(1,14816255,1,1,2) [2025-04-02 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816255', 'tblTempUsageDetail_20' ) start [2025-04-02 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816255', 'tblTempUsageDetail_20' ) end [2025-04-02 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:11:21] Production.INFO: ==1719== Releasing lock... [2025-04-02 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:12:05 [end_date_ymd] => 2025-04-02 06:12:05 [RateCDR] => 1 ) [2025-04-02 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:12:05' and `end` < '2025-04-02 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:12:18] Production.INFO: count ==70 [2025-04-02 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:12:05 - End Time 2025-04-02 06:12:05 [2025-04-02 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816260', 'tblTempUsageDetail_20' ) start [2025-04-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816260', 'tblTempUsageDetail_20' ) end [2025-04-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816260', 'tblTempVendorCDR_20' ) start [2025-04-02 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816260', 'tblTempVendorCDR_20' ) end [2025-04-02 06:12:18] Production.INFO: ProcessCDR(1,14816260,1,1,2) [2025-04-02 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816260', 'tblTempUsageDetail_20' ) start [2025-04-02 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816260', 'tblTempUsageDetail_20' ) end [2025-04-02 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:12:21] Production.INFO: ==1801== Releasing lock... [2025-04-02 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:13:05 [end_date_ymd] => 2025-04-02 06:13:05 [RateCDR] => 1 ) [2025-04-02 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:13:05' and `end` < '2025-04-02 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:13:18] Production.INFO: count ==71 [2025-04-02 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:13:05 - End Time 2025-04-02 06:13:05 [2025-04-02 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816265', 'tblTempUsageDetail_20' ) start [2025-04-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816265', 'tblTempUsageDetail_20' ) end [2025-04-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816265', 'tblTempVendorCDR_20' ) start [2025-04-02 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816265', 'tblTempVendorCDR_20' ) end [2025-04-02 06:13:18] Production.INFO: ProcessCDR(1,14816265,1,1,2) [2025-04-02 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816265', 'tblTempUsageDetail_20' ) start [2025-04-02 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816265', 'tblTempUsageDetail_20' ) end [2025-04-02 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:13:21] Production.INFO: ==1899== Releasing lock... [2025-04-02 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:14:05 [end_date_ymd] => 2025-04-02 06:14:05 [RateCDR] => 1 ) [2025-04-02 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:14:05' and `end` < '2025-04-02 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:14:18] Production.INFO: count ==71 [2025-04-02 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:14:05 - End Time 2025-04-02 06:14:05 [2025-04-02 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816270', 'tblTempUsageDetail_20' ) start [2025-04-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816270', 'tblTempUsageDetail_20' ) end [2025-04-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816270', 'tblTempVendorCDR_20' ) start [2025-04-02 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816270', 'tblTempVendorCDR_20' ) end [2025-04-02 06:14:18] Production.INFO: ProcessCDR(1,14816270,1,1,2) [2025-04-02 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816270', 'tblTempUsageDetail_20' ) start [2025-04-02 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816270', 'tblTempUsageDetail_20' ) end [2025-04-02 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:14:21] Production.INFO: ==2018== Releasing lock... [2025-04-02 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:15:05 [end_date_ymd] => 2025-04-02 06:15:05 [RateCDR] => 1 ) [2025-04-02 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:15:05' and `end` < '2025-04-02 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:15:17] Production.INFO: count ==71 [2025-04-02 06:15:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:15:05 - End Time 2025-04-02 06:15:05 [2025-04-02 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816275', 'tblTempUsageDetail_20' ) start [2025-04-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816275', 'tblTempUsageDetail_20' ) end [2025-04-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816275', 'tblTempVendorCDR_20' ) start [2025-04-02 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816275', 'tblTempVendorCDR_20' ) end [2025-04-02 06:15:17] Production.INFO: ProcessCDR(1,14816275,1,1,2) [2025-04-02 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816275', 'tblTempUsageDetail_20' ) start [2025-04-02 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816275', 'tblTempUsageDetail_20' ) end [2025-04-02 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:15:21] Production.INFO: ==2096== Releasing lock... [2025-04-02 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:16:05 [end_date_ymd] => 2025-04-02 06:16:05 [RateCDR] => 1 ) [2025-04-02 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:16:05' and `end` < '2025-04-02 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:16:18] Production.INFO: count ==71 [2025-04-02 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:16:05 - End Time 2025-04-02 06:16:05 [2025-04-02 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816280', 'tblTempUsageDetail_20' ) start [2025-04-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816280', 'tblTempUsageDetail_20' ) end [2025-04-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816280', 'tblTempVendorCDR_20' ) start [2025-04-02 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816280', 'tblTempVendorCDR_20' ) end [2025-04-02 06:16:18] Production.INFO: ProcessCDR(1,14816280,1,1,2) [2025-04-02 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816280', 'tblTempUsageDetail_20' ) start [2025-04-02 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816280', 'tblTempUsageDetail_20' ) end [2025-04-02 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:16:21] Production.INFO: ==2173== Releasing lock... [2025-04-02 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:17:06 [end_date_ymd] => 2025-04-02 06:17:06 [RateCDR] => 1 ) [2025-04-02 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:17:06' and `end` < '2025-04-02 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:17:18] Production.INFO: count ==78 [2025-04-02 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:17:06 - End Time 2025-04-02 06:17:06 [2025-04-02 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816285', 'tblTempUsageDetail_20' ) start [2025-04-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816285', 'tblTempUsageDetail_20' ) end [2025-04-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816285', 'tblTempVendorCDR_20' ) start [2025-04-02 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816285', 'tblTempVendorCDR_20' ) end [2025-04-02 06:17:18] Production.INFO: ProcessCDR(1,14816285,1,1,2) [2025-04-02 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816285', 'tblTempUsageDetail_20' ) start [2025-04-02 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816285', 'tblTempUsageDetail_20' ) end [2025-04-02 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:17:22] Production.INFO: ==2260== Releasing lock... [2025-04-02 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:18:05 [end_date_ymd] => 2025-04-02 06:18:05 [RateCDR] => 1 ) [2025-04-02 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:18:05' and `end` < '2025-04-02 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:18:17] Production.INFO: count ==81 [2025-04-02 06:18:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:18:05 - End Time 2025-04-02 06:18:05 [2025-04-02 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816290', 'tblTempUsageDetail_20' ) start [2025-04-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816290', 'tblTempUsageDetail_20' ) end [2025-04-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816290', 'tblTempVendorCDR_20' ) start [2025-04-02 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816290', 'tblTempVendorCDR_20' ) end [2025-04-02 06:18:17] Production.INFO: ProcessCDR(1,14816290,1,1,2) [2025-04-02 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816290', 'tblTempUsageDetail_20' ) start [2025-04-02 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816290', 'tblTempUsageDetail_20' ) end [2025-04-02 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:18:21] Production.INFO: ==2339== Releasing lock... [2025-04-02 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:19:06 [end_date_ymd] => 2025-04-02 06:19:06 [RateCDR] => 1 ) [2025-04-02 06:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:19:06' and `end` < '2025-04-02 06:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:19:18] Production.INFO: count ==81 [2025-04-02 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:19:06 - End Time 2025-04-02 06:19:06 [2025-04-02 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816295', 'tblTempUsageDetail_20' ) start [2025-04-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816295', 'tblTempUsageDetail_20' ) end [2025-04-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816295', 'tblTempVendorCDR_20' ) start [2025-04-02 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816295', 'tblTempVendorCDR_20' ) end [2025-04-02 06:19:18] Production.INFO: ProcessCDR(1,14816295,1,1,2) [2025-04-02 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816295', 'tblTempUsageDetail_20' ) start [2025-04-02 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816295', 'tblTempUsageDetail_20' ) end [2025-04-02 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:19:22] Production.INFO: ==2416== Releasing lock... [2025-04-02 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:20:05 [end_date_ymd] => 2025-04-02 06:20:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 03:20:05' and `end` < '2025-04-02 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-04-02 06:20:18] Production.INFO: count ==81 [2025-04-02 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:20:05 - End Time 2025-04-02 06:20:05 [2025-04-02 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816300', 'tblTempUsageDetail_20' ) start [2025-04-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816300', 'tblTempUsageDetail_20' ) end [2025-04-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816300', 'tblTempVendorCDR_20' ) start [2025-04-02 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816300', 'tblTempVendorCDR_20' ) end [2025-04-02 06:20:18] Production.INFO: ProcessCDR(1,14816300,1,1,2) [2025-04-02 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816300', 'tblTempUsageDetail_20' ) start [2025-04-02 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816300', 'tblTempUsageDetail_20' ) end [2025-04-02 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:20:21] Production.INFO: ==2490== Releasing lock... [2025-04-02 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:21:06 [end_date_ymd] => 2025-04-02 06:21:06 [RateCDR] => 1 ) [2025-04-02 06:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:21:06' and `end` < '2025-04-02 06:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:21:18] Production.INFO: count ==81 [2025-04-02 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:21:06 - End Time 2025-04-02 06:21:06 [2025-04-02 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816306', 'tblTempUsageDetail_20' ) start [2025-04-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816306', 'tblTempUsageDetail_20' ) end [2025-04-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816306', 'tblTempVendorCDR_20' ) start [2025-04-02 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816306', 'tblTempVendorCDR_20' ) end [2025-04-02 06:21:18] Production.INFO: ProcessCDR(1,14816306,1,1,2) [2025-04-02 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816306', 'tblTempUsageDetail_20' ) start [2025-04-02 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816306', 'tblTempUsageDetail_20' ) end [2025-04-02 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:21:22] Production.INFO: ==2570== Releasing lock... [2025-04-02 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:22:05 [end_date_ymd] => 2025-04-02 06:22:05 [RateCDR] => 1 ) [2025-04-02 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:22:05' and `end` < '2025-04-02 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:22:18] Production.INFO: count ==81 [2025-04-02 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:22:05 - End Time 2025-04-02 06:22:05 [2025-04-02 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816311', 'tblTempUsageDetail_20' ) start [2025-04-02 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816311', 'tblTempUsageDetail_20' ) end [2025-04-02 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816311', 'tblTempVendorCDR_20' ) start [2025-04-02 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816311', 'tblTempVendorCDR_20' ) end [2025-04-02 06:22:18] Production.INFO: ProcessCDR(1,14816311,1,1,2) [2025-04-02 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816311', 'tblTempUsageDetail_20' ) start [2025-04-02 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816311', 'tblTempUsageDetail_20' ) end [2025-04-02 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:22:21] Production.INFO: ==2654== Releasing lock... [2025-04-02 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:23:06 [end_date_ymd] => 2025-04-02 06:23:06 [RateCDR] => 1 ) [2025-04-02 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:23:06' and `end` < '2025-04-02 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:23:18] Production.INFO: count ==81 [2025-04-02 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:23:06 - End Time 2025-04-02 06:23:06 [2025-04-02 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816316', 'tblTempUsageDetail_20' ) start [2025-04-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816316', 'tblTempUsageDetail_20' ) end [2025-04-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816316', 'tblTempVendorCDR_20' ) start [2025-04-02 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816316', 'tblTempVendorCDR_20' ) end [2025-04-02 06:23:18] Production.INFO: ProcessCDR(1,14816316,1,1,2) [2025-04-02 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816316', 'tblTempUsageDetail_20' ) start [2025-04-02 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816316', 'tblTempUsageDetail_20' ) end [2025-04-02 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:23:21] Production.INFO: ==2735== Releasing lock... [2025-04-02 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:24:05 [end_date_ymd] => 2025-04-02 06:24:05 [RateCDR] => 1 ) [2025-04-02 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:24:05' and `end` < '2025-04-02 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:24:18] Production.INFO: count ==81 [2025-04-02 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:24:05 - End Time 2025-04-02 06:24:05 [2025-04-02 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816321', 'tblTempUsageDetail_20' ) start [2025-04-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816321', 'tblTempUsageDetail_20' ) end [2025-04-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816321', 'tblTempVendorCDR_20' ) start [2025-04-02 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816321', 'tblTempVendorCDR_20' ) end [2025-04-02 06:24:18] Production.INFO: ProcessCDR(1,14816321,1,1,2) [2025-04-02 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816321', 'tblTempUsageDetail_20' ) start [2025-04-02 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816321', 'tblTempUsageDetail_20' ) end [2025-04-02 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:24:21] Production.INFO: ==2808== Releasing lock... [2025-04-02 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:25:05 [end_date_ymd] => 2025-04-02 06:25:05 [RateCDR] => 1 ) [2025-04-02 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:25:05' and `end` < '2025-04-02 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:25:18] Production.INFO: count ==81 [2025-04-02 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:25:05 - End Time 2025-04-02 06:25:05 [2025-04-02 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816326', 'tblTempUsageDetail_20' ) start [2025-04-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816326', 'tblTempUsageDetail_20' ) end [2025-04-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816326', 'tblTempVendorCDR_20' ) start [2025-04-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816326', 'tblTempVendorCDR_20' ) end [2025-04-02 06:25:18] Production.INFO: ProcessCDR(1,14816326,1,1,2) [2025-04-02 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816326', 'tblTempUsageDetail_20' ) start [2025-04-02 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816326', 'tblTempUsageDetail_20' ) end [2025-04-02 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:25:21] Production.INFO: ==2886== Releasing lock... [2025-04-02 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:26:05 [end_date_ymd] => 2025-04-02 06:26:05 [RateCDR] => 1 ) [2025-04-02 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:26:05' and `end` < '2025-04-02 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:26:18] Production.INFO: count ==81 [2025-04-02 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:26:05 - End Time 2025-04-02 06:26:05 [2025-04-02 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816330', 'tblTempUsageDetail_20' ) start [2025-04-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816330', 'tblTempUsageDetail_20' ) end [2025-04-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816330', 'tblTempVendorCDR_20' ) start [2025-04-02 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816330', 'tblTempVendorCDR_20' ) end [2025-04-02 06:26:18] Production.INFO: ProcessCDR(1,14816330,1,1,2) [2025-04-02 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816330', 'tblTempUsageDetail_20' ) start [2025-04-02 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816330', 'tblTempUsageDetail_20' ) end [2025-04-02 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:26:21] Production.INFO: ==2965== Releasing lock... [2025-04-02 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:27:06 [end_date_ymd] => 2025-04-02 06:27:06 [RateCDR] => 1 ) [2025-04-02 06:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:27:06' and `end` < '2025-04-02 06:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:27:18] Production.INFO: count ==81 [2025-04-02 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:27:06 - End Time 2025-04-02 06:27:06 [2025-04-02 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816336', 'tblTempUsageDetail_20' ) start [2025-04-02 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816336', 'tblTempUsageDetail_20' ) end [2025-04-02 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816336', 'tblTempVendorCDR_20' ) start [2025-04-02 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816336', 'tblTempVendorCDR_20' ) end [2025-04-02 06:27:18] Production.INFO: ProcessCDR(1,14816336,1,1,2) [2025-04-02 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816336', 'tblTempUsageDetail_20' ) start [2025-04-02 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816336', 'tblTempUsageDetail_20' ) end [2025-04-02 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:27:22] Production.INFO: ==3048== Releasing lock... [2025-04-02 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:28:05 [end_date_ymd] => 2025-04-02 06:28:05 [RateCDR] => 1 ) [2025-04-02 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:28:05' and `end` < '2025-04-02 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:28:18] Production.INFO: count ==85 [2025-04-02 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:28:05 - End Time 2025-04-02 06:28:05 [2025-04-02 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816341', 'tblTempUsageDetail_20' ) start [2025-04-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816341', 'tblTempUsageDetail_20' ) end [2025-04-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816341', 'tblTempVendorCDR_20' ) start [2025-04-02 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816341', 'tblTempVendorCDR_20' ) end [2025-04-02 06:28:18] Production.INFO: ProcessCDR(1,14816341,1,1,2) [2025-04-02 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816341', 'tblTempUsageDetail_20' ) start [2025-04-02 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816341', 'tblTempUsageDetail_20' ) end [2025-04-02 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:28:21] Production.INFO: ==3120== Releasing lock... [2025-04-02 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:29:06 [end_date_ymd] => 2025-04-02 06:29:06 [RateCDR] => 1 ) [2025-04-02 06:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:29:06' and `end` < '2025-04-02 06:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:29:19] Production.INFO: count ==85 [2025-04-02 06:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:29:06 - End Time 2025-04-02 06:29:06 [2025-04-02 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816346', 'tblTempUsageDetail_20' ) start [2025-04-02 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816346', 'tblTempUsageDetail_20' ) end [2025-04-02 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816346', 'tblTempVendorCDR_20' ) start [2025-04-02 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816346', 'tblTempVendorCDR_20' ) end [2025-04-02 06:29:19] Production.INFO: ProcessCDR(1,14816346,1,1,2) [2025-04-02 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816346', 'tblTempUsageDetail_20' ) start [2025-04-02 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816346', 'tblTempUsageDetail_20' ) end [2025-04-02 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:29:22] Production.INFO: ==3236== Releasing lock... [2025-04-02 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:30:06 [end_date_ymd] => 2025-04-02 06:30:06 [RateCDR] => 1 ) [2025-04-02 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:30:06' and `end` < '2025-04-02 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:30:19] Production.INFO: count ==87 [2025-04-02 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:30:06 - End Time 2025-04-02 06:30:06 [2025-04-02 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816352', 'tblTempUsageDetail_20' ) start [2025-04-02 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816352', 'tblTempUsageDetail_20' ) end [2025-04-02 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816352', 'tblTempVendorCDR_20' ) start [2025-04-02 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816352', 'tblTempVendorCDR_20' ) end [2025-04-02 06:30:19] Production.INFO: ProcessCDR(1,14816352,1,1,2) [2025-04-02 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816352', 'tblTempUsageDetail_20' ) start [2025-04-02 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816352', 'tblTempUsageDetail_20' ) end [2025-04-02 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:30:22] Production.INFO: ==3330== Releasing lock... [2025-04-02 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:31:06 [end_date_ymd] => 2025-04-02 06:31:06 [RateCDR] => 1 ) [2025-04-02 06:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:31:06' and `end` < '2025-04-02 06:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:31:18] Production.INFO: count ==87 [2025-04-02 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:31:06 - End Time 2025-04-02 06:31:06 [2025-04-02 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816357', 'tblTempUsageDetail_20' ) start [2025-04-02 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816357', 'tblTempUsageDetail_20' ) end [2025-04-02 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816357', 'tblTempVendorCDR_20' ) start [2025-04-02 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816357', 'tblTempVendorCDR_20' ) end [2025-04-02 06:31:18] Production.INFO: ProcessCDR(1,14816357,1,1,2) [2025-04-02 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816357', 'tblTempUsageDetail_20' ) start [2025-04-02 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816357', 'tblTempUsageDetail_20' ) end [2025-04-02 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:31:22] Production.INFO: ==3407== Releasing lock... [2025-04-02 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:32:05 [end_date_ymd] => 2025-04-02 06:32:05 [RateCDR] => 1 ) [2025-04-02 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:32:05' and `end` < '2025-04-02 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:32:17] Production.INFO: count ==87 [2025-04-02 06:32:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:32:05 - End Time 2025-04-02 06:32:05 [2025-04-02 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816362', 'tblTempUsageDetail_20' ) start [2025-04-02 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816362', 'tblTempUsageDetail_20' ) end [2025-04-02 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816362', 'tblTempVendorCDR_20' ) start [2025-04-02 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816362', 'tblTempVendorCDR_20' ) end [2025-04-02 06:32:17] Production.INFO: ProcessCDR(1,14816362,1,1,2) [2025-04-02 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816362', 'tblTempUsageDetail_20' ) start [2025-04-02 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816362', 'tblTempUsageDetail_20' ) end [2025-04-02 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:32:21] Production.INFO: ==3483== Releasing lock... [2025-04-02 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:33:06 [end_date_ymd] => 2025-04-02 06:33:06 [RateCDR] => 1 ) [2025-04-02 06:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:33:06' and `end` < '2025-04-02 06:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:33:18] Production.INFO: count ==87 [2025-04-02 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:33:06 - End Time 2025-04-02 06:33:06 [2025-04-02 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816367', 'tblTempUsageDetail_20' ) start [2025-04-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816367', 'tblTempUsageDetail_20' ) end [2025-04-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816367', 'tblTempVendorCDR_20' ) start [2025-04-02 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816367', 'tblTempVendorCDR_20' ) end [2025-04-02 06:33:18] Production.INFO: ProcessCDR(1,14816367,1,1,2) [2025-04-02 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816367', 'tblTempUsageDetail_20' ) start [2025-04-02 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816367', 'tblTempUsageDetail_20' ) end [2025-04-02 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:33:22] Production.INFO: ==3558== Releasing lock... [2025-04-02 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:34:05 [end_date_ymd] => 2025-04-02 06:34:05 [RateCDR] => 1 ) [2025-04-02 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:34:05' and `end` < '2025-04-02 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:34:17] Production.INFO: count ==87 [2025-04-02 06:34:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:34:05 - End Time 2025-04-02 06:34:05 [2025-04-02 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816372', 'tblTempUsageDetail_20' ) start [2025-04-02 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816372', 'tblTempUsageDetail_20' ) end [2025-04-02 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816372', 'tblTempVendorCDR_20' ) start [2025-04-02 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816372', 'tblTempVendorCDR_20' ) end [2025-04-02 06:34:18] Production.INFO: ProcessCDR(1,14816372,1,1,2) [2025-04-02 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816372', 'tblTempUsageDetail_20' ) start [2025-04-02 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816372', 'tblTempUsageDetail_20' ) end [2025-04-02 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:34:21] Production.INFO: ==3638== Releasing lock... [2025-04-02 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:35:06 [end_date_ymd] => 2025-04-02 06:35:06 [RateCDR] => 1 ) [2025-04-02 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:35:06' and `end` < '2025-04-02 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:35:18] Production.INFO: count ==87 [2025-04-02 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:35:06 - End Time 2025-04-02 06:35:06 [2025-04-02 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816377', 'tblTempUsageDetail_20' ) start [2025-04-02 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816377', 'tblTempUsageDetail_20' ) end [2025-04-02 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816377', 'tblTempVendorCDR_20' ) start [2025-04-02 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816377', 'tblTempVendorCDR_20' ) end [2025-04-02 06:35:18] Production.INFO: ProcessCDR(1,14816377,1,1,2) [2025-04-02 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816377', 'tblTempUsageDetail_20' ) start [2025-04-02 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816377', 'tblTempUsageDetail_20' ) end [2025-04-02 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:35:22] Production.INFO: ==3711== Releasing lock... [2025-04-02 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:36:05 [end_date_ymd] => 2025-04-02 06:36:05 [RateCDR] => 1 ) [2025-04-02 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:36:05' and `end` < '2025-04-02 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:36:18] Production.INFO: count ==87 [2025-04-02 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:36:05 - End Time 2025-04-02 06:36:05 [2025-04-02 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816382', 'tblTempUsageDetail_20' ) start [2025-04-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816382', 'tblTempUsageDetail_20' ) end [2025-04-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816382', 'tblTempVendorCDR_20' ) start [2025-04-02 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816382', 'tblTempVendorCDR_20' ) end [2025-04-02 06:36:18] Production.INFO: ProcessCDR(1,14816382,1,1,2) [2025-04-02 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816382', 'tblTempUsageDetail_20' ) start [2025-04-02 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816382', 'tblTempUsageDetail_20' ) end [2025-04-02 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:36:21] Production.INFO: ==3783== Releasing lock... [2025-04-02 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:37:06 [end_date_ymd] => 2025-04-02 06:37:06 [RateCDR] => 1 ) [2025-04-02 06:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:37:06' and `end` < '2025-04-02 06:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:37:18] Production.INFO: count ==87 [2025-04-02 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:37:06 - End Time 2025-04-02 06:37:06 [2025-04-02 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816387', 'tblTempUsageDetail_20' ) start [2025-04-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816387', 'tblTempUsageDetail_20' ) end [2025-04-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816387', 'tblTempVendorCDR_20' ) start [2025-04-02 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816387', 'tblTempVendorCDR_20' ) end [2025-04-02 06:37:18] Production.INFO: ProcessCDR(1,14816387,1,1,2) [2025-04-02 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816387', 'tblTempUsageDetail_20' ) start [2025-04-02 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816387', 'tblTempUsageDetail_20' ) end [2025-04-02 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:37:22] Production.INFO: ==3859== Releasing lock... [2025-04-02 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:38:05 [end_date_ymd] => 2025-04-02 06:38:05 [RateCDR] => 1 ) [2025-04-02 06:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:38:05' and `end` < '2025-04-02 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-04-02 06:38:18] Production.INFO: count ==87 [2025-04-02 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:38:05 - End Time 2025-04-02 06:38:05 [2025-04-02 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816392', 'tblTempUsageDetail_20' ) start [2025-04-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816392', 'tblTempUsageDetail_20' ) end [2025-04-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816392', 'tblTempVendorCDR_20' ) start [2025-04-02 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816392', 'tblTempVendorCDR_20' ) end [2025-04-02 06:38:18] Production.INFO: ProcessCDR(1,14816392,1,1,2) [2025-04-02 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816392', 'tblTempUsageDetail_20' ) start [2025-04-02 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816392', 'tblTempUsageDetail_20' ) end [2025-04-02 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:38:21] Production.INFO: ==3939== Releasing lock... [2025-04-02 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:39:05 [end_date_ymd] => 2025-04-02 06:39:05 [RateCDR] => 1 ) [2025-04-02 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:39:05' and `end` < '2025-04-02 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:39:18] Production.INFO: count ==87 [2025-04-02 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:39:05 - End Time 2025-04-02 06:39:05 [2025-04-02 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816397', 'tblTempUsageDetail_20' ) start [2025-04-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816397', 'tblTempUsageDetail_20' ) end [2025-04-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816397', 'tblTempVendorCDR_20' ) start [2025-04-02 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816397', 'tblTempVendorCDR_20' ) end [2025-04-02 06:39:18] Production.INFO: ProcessCDR(1,14816397,1,1,2) [2025-04-02 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816397', 'tblTempUsageDetail_20' ) start [2025-04-02 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816397', 'tblTempUsageDetail_20' ) end [2025-04-02 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:39:21] Production.INFO: ==4014== Releasing lock... [2025-04-02 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:40:06 [end_date_ymd] => 2025-04-02 06:40:06 [RateCDR] => 1 ) [2025-04-02 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:40:06' and `end` < '2025-04-02 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:40:19] Production.INFO: count ==87 [2025-04-02 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:40:06 - End Time 2025-04-02 06:40:06 [2025-04-02 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816403', 'tblTempUsageDetail_20' ) start [2025-04-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816403', 'tblTempUsageDetail_20' ) end [2025-04-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816403', 'tblTempVendorCDR_20' ) start [2025-04-02 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816403', 'tblTempVendorCDR_20' ) end [2025-04-02 06:40:19] Production.INFO: ProcessCDR(1,14816403,1,1,2) [2025-04-02 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816403', 'tblTempUsageDetail_20' ) start [2025-04-02 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816403', 'tblTempUsageDetail_20' ) end [2025-04-02 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:40:23] Production.INFO: ==4088== Releasing lock... [2025-04-02 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:41:06 [end_date_ymd] => 2025-04-02 06:41:06 [RateCDR] => 1 ) [2025-04-02 06:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:41:06' and `end` < '2025-04-02 06:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:41:19] Production.INFO: count ==87 [2025-04-02 06:41:19] Production.ERROR: pbx CDR StartTime 2025-04-02 03:41:06 - End Time 2025-04-02 06:41:06 [2025-04-02 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816408', 'tblTempUsageDetail_20' ) start [2025-04-02 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816408', 'tblTempUsageDetail_20' ) end [2025-04-02 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816408', 'tblTempVendorCDR_20' ) start [2025-04-02 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816408', 'tblTempVendorCDR_20' ) end [2025-04-02 06:41:19] Production.INFO: ProcessCDR(1,14816408,1,1,2) [2025-04-02 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816408', 'tblTempUsageDetail_20' ) start [2025-04-02 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816408', 'tblTempUsageDetail_20' ) end [2025-04-02 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:41:22] Production.INFO: ==4168== Releasing lock... [2025-04-02 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:42:05 [end_date_ymd] => 2025-04-02 06:42:05 [RateCDR] => 1 ) [2025-04-02 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:42:05' and `end` < '2025-04-02 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:42:18] Production.INFO: count ==87 [2025-04-02 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:42:05 - End Time 2025-04-02 06:42:05 [2025-04-02 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816413', 'tblTempUsageDetail_20' ) start [2025-04-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816413', 'tblTempUsageDetail_20' ) end [2025-04-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816413', 'tblTempVendorCDR_20' ) start [2025-04-02 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816413', 'tblTempVendorCDR_20' ) end [2025-04-02 06:42:18] Production.INFO: ProcessCDR(1,14816413,1,1,2) [2025-04-02 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816413', 'tblTempUsageDetail_20' ) start [2025-04-02 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816413', 'tblTempUsageDetail_20' ) end [2025-04-02 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:42:21] Production.INFO: ==4240== Releasing lock... [2025-04-02 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:43:05 [end_date_ymd] => 2025-04-02 06:43:05 [RateCDR] => 1 ) [2025-04-02 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:43:05' and `end` < '2025-04-02 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:43:18] Production.INFO: count ==87 [2025-04-02 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:43:05 - End Time 2025-04-02 06:43:05 [2025-04-02 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816418', 'tblTempUsageDetail_20' ) start [2025-04-02 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816418', 'tblTempUsageDetail_20' ) end [2025-04-02 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816418', 'tblTempVendorCDR_20' ) start [2025-04-02 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816418', 'tblTempVendorCDR_20' ) end [2025-04-02 06:43:18] Production.INFO: ProcessCDR(1,14816418,1,1,2) [2025-04-02 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816418', 'tblTempUsageDetail_20' ) start [2025-04-02 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816418', 'tblTempUsageDetail_20' ) end [2025-04-02 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:43:21] Production.INFO: ==4315== Releasing lock... [2025-04-02 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:44:05 [end_date_ymd] => 2025-04-02 06:44:05 [RateCDR] => 1 ) [2025-04-02 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:44:05' and `end` < '2025-04-02 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:44:18] Production.INFO: count ==87 [2025-04-02 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:44:05 - End Time 2025-04-02 06:44:05 [2025-04-02 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816423', 'tblTempUsageDetail_20' ) start [2025-04-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816423', 'tblTempUsageDetail_20' ) end [2025-04-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816423', 'tblTempVendorCDR_20' ) start [2025-04-02 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816423', 'tblTempVendorCDR_20' ) end [2025-04-02 06:44:18] Production.INFO: ProcessCDR(1,14816423,1,1,2) [2025-04-02 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816423', 'tblTempUsageDetail_20' ) start [2025-04-02 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816423', 'tblTempUsageDetail_20' ) end [2025-04-02 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:44:21] Production.INFO: ==4385== Releasing lock... [2025-04-02 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:45:05 [end_date_ymd] => 2025-04-02 06:45:05 [RateCDR] => 1 ) [2025-04-02 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:45:05' and `end` < '2025-04-02 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:45:18] Production.INFO: count ==87 [2025-04-02 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:45:05 - End Time 2025-04-02 06:45:05 [2025-04-02 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816428', 'tblTempUsageDetail_20' ) start [2025-04-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816428', 'tblTempUsageDetail_20' ) end [2025-04-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816428', 'tblTempVendorCDR_20' ) start [2025-04-02 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816428', 'tblTempVendorCDR_20' ) end [2025-04-02 06:45:18] Production.INFO: ProcessCDR(1,14816428,1,1,2) [2025-04-02 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816428', 'tblTempUsageDetail_20' ) start [2025-04-02 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816428', 'tblTempUsageDetail_20' ) end [2025-04-02 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:45:21] Production.INFO: ==4500== Releasing lock... [2025-04-02 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:46:05 [end_date_ymd] => 2025-04-02 06:46:05 [RateCDR] => 1 ) [2025-04-02 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:46:05' and `end` < '2025-04-02 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:46:18] Production.INFO: count ==87 [2025-04-02 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:46:05 - End Time 2025-04-02 06:46:05 [2025-04-02 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816433', 'tblTempUsageDetail_20' ) start [2025-04-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816433', 'tblTempUsageDetail_20' ) end [2025-04-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816433', 'tblTempVendorCDR_20' ) start [2025-04-02 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816433', 'tblTempVendorCDR_20' ) end [2025-04-02 06:46:18] Production.INFO: ProcessCDR(1,14816433,1,1,2) [2025-04-02 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816433', 'tblTempUsageDetail_20' ) start [2025-04-02 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816433', 'tblTempUsageDetail_20' ) end [2025-04-02 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:46:21] Production.INFO: ==4579== Releasing lock... [2025-04-02 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:47:06 [end_date_ymd] => 2025-04-02 06:47:06 [RateCDR] => 1 ) [2025-04-02 06:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:47:06' and `end` < '2025-04-02 06:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:47:18] Production.INFO: count ==87 [2025-04-02 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:47:06 - End Time 2025-04-02 06:47:06 [2025-04-02 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816438', 'tblTempUsageDetail_20' ) start [2025-04-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816438', 'tblTempUsageDetail_20' ) end [2025-04-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816438', 'tblTempVendorCDR_20' ) start [2025-04-02 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816438', 'tblTempVendorCDR_20' ) end [2025-04-02 06:47:18] Production.INFO: ProcessCDR(1,14816438,1,1,2) [2025-04-02 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816438', 'tblTempUsageDetail_20' ) start [2025-04-02 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816438', 'tblTempUsageDetail_20' ) end [2025-04-02 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:47:22] Production.INFO: ==4655== Releasing lock... [2025-04-02 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:48:05 [end_date_ymd] => 2025-04-02 06:48:05 [RateCDR] => 1 ) [2025-04-02 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:48:05' and `end` < '2025-04-02 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:48:18] Production.INFO: count ==87 [2025-04-02 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:48:05 - End Time 2025-04-02 06:48:05 [2025-04-02 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816443', 'tblTempUsageDetail_20' ) start [2025-04-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816443', 'tblTempUsageDetail_20' ) end [2025-04-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816443', 'tblTempVendorCDR_20' ) start [2025-04-02 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816443', 'tblTempVendorCDR_20' ) end [2025-04-02 06:48:18] Production.INFO: ProcessCDR(1,14816443,1,1,2) [2025-04-02 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816443', 'tblTempUsageDetail_20' ) start [2025-04-02 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816443', 'tblTempUsageDetail_20' ) end [2025-04-02 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:48:21] Production.INFO: ==4740== Releasing lock... [2025-04-02 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:49:06 [end_date_ymd] => 2025-04-02 06:49:06 [RateCDR] => 1 ) [2025-04-02 06:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:49:06' and `end` < '2025-04-02 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-04-02 06:49:18] Production.INFO: count ==87 [2025-04-02 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:49:06 - End Time 2025-04-02 06:49:06 [2025-04-02 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816448', 'tblTempUsageDetail_20' ) start [2025-04-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816448', 'tblTempUsageDetail_20' ) end [2025-04-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816448', 'tblTempVendorCDR_20' ) start [2025-04-02 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816448', 'tblTempVendorCDR_20' ) end [2025-04-02 06:49:18] Production.INFO: ProcessCDR(1,14816448,1,1,2) [2025-04-02 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816448', 'tblTempUsageDetail_20' ) start [2025-04-02 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816448', 'tblTempUsageDetail_20' ) end [2025-04-02 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:49:22] Production.INFO: ==4814== Releasing lock... [2025-04-02 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:50:05 [end_date_ymd] => 2025-04-02 06:50:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 03:50:05' and `end` < '2025-04-02 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-04-02 06:50:18] Production.INFO: count ==88 [2025-04-02 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:50:05 - End Time 2025-04-02 06:50:05 [2025-04-02 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816454', 'tblTempUsageDetail_20' ) start [2025-04-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816454', 'tblTempUsageDetail_20' ) end [2025-04-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816454', 'tblTempVendorCDR_20' ) start [2025-04-02 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816454', 'tblTempVendorCDR_20' ) end [2025-04-02 06:50:18] Production.INFO: ProcessCDR(1,14816454,1,1,2) [2025-04-02 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816454', 'tblTempUsageDetail_20' ) start [2025-04-02 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816454', 'tblTempUsageDetail_20' ) end [2025-04-02 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:50:23] Production.INFO: ==4889== Releasing lock... [2025-04-02 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:50:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:51:06 [end_date_ymd] => 2025-04-02 06:51:06 [RateCDR] => 1 ) [2025-04-02 06:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:51:06' and `end` < '2025-04-02 06:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:51:18] Production.INFO: count ==90 [2025-04-02 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:51:06 - End Time 2025-04-02 06:51:06 [2025-04-02 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816459', 'tblTempUsageDetail_20' ) start [2025-04-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816459', 'tblTempUsageDetail_20' ) end [2025-04-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816459', 'tblTempVendorCDR_20' ) start [2025-04-02 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816459', 'tblTempVendorCDR_20' ) end [2025-04-02 06:51:18] Production.INFO: ProcessCDR(1,14816459,1,1,2) [2025-04-02 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816459', 'tblTempUsageDetail_20' ) start [2025-04-02 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816459', 'tblTempUsageDetail_20' ) end [2025-04-02 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:51:21] Production.INFO: ==4965== Releasing lock... [2025-04-02 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-02 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:52:05 [end_date_ymd] => 2025-04-02 06:52:05 [RateCDR] => 1 ) [2025-04-02 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:52:05' and `end` < '2025-04-02 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:52:18] Production.INFO: count ==93 [2025-04-02 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:52:05 - End Time 2025-04-02 06:52:05 [2025-04-02 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816464', 'tblTempUsageDetail_20' ) start [2025-04-02 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816464', 'tblTempUsageDetail_20' ) end [2025-04-02 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816464', 'tblTempVendorCDR_20' ) start [2025-04-02 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816464', 'tblTempVendorCDR_20' ) end [2025-04-02 06:52:18] Production.INFO: ProcessCDR(1,14816464,1,1,2) [2025-04-02 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816464', 'tblTempUsageDetail_20' ) start [2025-04-02 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816464', 'tblTempUsageDetail_20' ) end [2025-04-02 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:52:22] Production.INFO: ==5038== Releasing lock... [2025-04-02 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:53:05 [end_date_ymd] => 2025-04-02 06:53:05 [RateCDR] => 1 ) [2025-04-02 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:53:05' and `end` < '2025-04-02 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:53:18] Production.INFO: count ==93 [2025-04-02 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:53:05 - End Time 2025-04-02 06:53:05 [2025-04-02 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816469', 'tblTempUsageDetail_20' ) start [2025-04-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816469', 'tblTempUsageDetail_20' ) end [2025-04-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816469', 'tblTempVendorCDR_20' ) start [2025-04-02 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816469', 'tblTempVendorCDR_20' ) end [2025-04-02 06:53:18] Production.INFO: ProcessCDR(1,14816469,1,1,2) [2025-04-02 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816469', 'tblTempUsageDetail_20' ) start [2025-04-02 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816469', 'tblTempUsageDetail_20' ) end [2025-04-02 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:53:21] Production.INFO: ==5113== Releasing lock... [2025-04-02 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:54:05 [end_date_ymd] => 2025-04-02 06:54:05 [RateCDR] => 1 ) [2025-04-02 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:54:05' and `end` < '2025-04-02 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:54:17] Production.INFO: count ==93 [2025-04-02 06:54:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:54:05 - End Time 2025-04-02 06:54:05 [2025-04-02 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816474', 'tblTempUsageDetail_20' ) start [2025-04-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816474', 'tblTempUsageDetail_20' ) end [2025-04-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816474', 'tblTempVendorCDR_20' ) start [2025-04-02 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816474', 'tblTempVendorCDR_20' ) end [2025-04-02 06:54:17] Production.INFO: ProcessCDR(1,14816474,1,1,2) [2025-04-02 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816474', 'tblTempUsageDetail_20' ) start [2025-04-02 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816474', 'tblTempUsageDetail_20' ) end [2025-04-02 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:54:21] Production.INFO: ==5191== Releasing lock... [2025-04-02 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:55:06 [end_date_ymd] => 2025-04-02 06:55:06 [RateCDR] => 1 ) [2025-04-02 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:55:06' and `end` < '2025-04-02 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:55:18] Production.INFO: count ==93 [2025-04-02 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:55:06 - End Time 2025-04-02 06:55:06 [2025-04-02 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816479', 'tblTempUsageDetail_20' ) start [2025-04-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816479', 'tblTempUsageDetail_20' ) end [2025-04-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816479', 'tblTempVendorCDR_20' ) start [2025-04-02 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816479', 'tblTempVendorCDR_20' ) end [2025-04-02 06:55:18] Production.INFO: ProcessCDR(1,14816479,1,1,2) [2025-04-02 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816479', 'tblTempUsageDetail_20' ) start [2025-04-02 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816479', 'tblTempUsageDetail_20' ) end [2025-04-02 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:55:22] Production.INFO: ==5261== Releasing lock... [2025-04-02 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:56:05 [end_date_ymd] => 2025-04-02 06:56:05 [RateCDR] => 1 ) [2025-04-02 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:56:05' and `end` < '2025-04-02 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:56:17] Production.INFO: count ==89 [2025-04-02 06:56:17] Production.ERROR: pbx CDR StartTime 2025-04-02 03:56:05 - End Time 2025-04-02 06:56:05 [2025-04-02 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816484', 'tblTempUsageDetail_20' ) start [2025-04-02 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816484', 'tblTempUsageDetail_20' ) end [2025-04-02 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816484', 'tblTempVendorCDR_20' ) start [2025-04-02 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816484', 'tblTempVendorCDR_20' ) end [2025-04-02 06:56:17] Production.INFO: ProcessCDR(1,14816484,1,1,2) [2025-04-02 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816484', 'tblTempUsageDetail_20' ) start [2025-04-02 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816484', 'tblTempUsageDetail_20' ) end [2025-04-02 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:56:22] Production.INFO: ==5333== Releasing lock... [2025-04-02 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:56:22] Production.INFO: 29 MB #Memory Used# [2025-04-02 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:57:05 [end_date_ymd] => 2025-04-02 06:57:05 [RateCDR] => 1 ) [2025-04-02 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:57:05' and `end` < '2025-04-02 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:57:18] Production.INFO: count ==89 [2025-04-02 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:57:05 - End Time 2025-04-02 06:57:05 [2025-04-02 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816489', 'tblTempUsageDetail_20' ) start [2025-04-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816489', 'tblTempUsageDetail_20' ) end [2025-04-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816489', 'tblTempVendorCDR_20' ) start [2025-04-02 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816489', 'tblTempVendorCDR_20' ) end [2025-04-02 06:57:18] Production.INFO: ProcessCDR(1,14816489,1,1,2) [2025-04-02 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816489', 'tblTempUsageDetail_20' ) start [2025-04-02 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816489', 'tblTempUsageDetail_20' ) end [2025-04-02 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:57:21] Production.INFO: ==5404== Releasing lock... [2025-04-02 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:58:05 [end_date_ymd] => 2025-04-02 06:58:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 03:58:05' and `end` < '2025-04-02 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-04-02 06:58:18] Production.INFO: count ==89 [2025-04-02 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:58:05 - End Time 2025-04-02 06:58:05 [2025-04-02 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816494', 'tblTempUsageDetail_20' ) start [2025-04-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816494', 'tblTempUsageDetail_20' ) end [2025-04-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816494', 'tblTempVendorCDR_20' ) start [2025-04-02 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816494', 'tblTempVendorCDR_20' ) end [2025-04-02 06:58:18] Production.INFO: ProcessCDR(1,14816494,1,1,2) [2025-04-02 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816494', 'tblTempUsageDetail_20' ) start [2025-04-02 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816494', 'tblTempUsageDetail_20' ) end [2025-04-02 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:58:21] Production.INFO: ==5474== Releasing lock... [2025-04-02 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-02 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 03:59:05 [end_date_ymd] => 2025-04-02 06:59:05 [RateCDR] => 1 ) [2025-04-02 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 03:59:05' and `end` < '2025-04-02 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 06:59:18] Production.INFO: count ==94 [2025-04-02 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 03:59:05 - End Time 2025-04-02 06:59:05 [2025-04-02 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816499', 'tblTempUsageDetail_20' ) start [2025-04-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816499', 'tblTempUsageDetail_20' ) end [2025-04-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816499', 'tblTempVendorCDR_20' ) start [2025-04-02 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816499', 'tblTempVendorCDR_20' ) end [2025-04-02 06:59:18] Production.INFO: ProcessCDR(1,14816499,1,1,2) [2025-04-02 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816499', 'tblTempUsageDetail_20' ) start [2025-04-02 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816499', 'tblTempUsageDetail_20' ) end [2025-04-02 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 06:59:21] Production.INFO: ==5551== Releasing lock... [2025-04-02 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 06:59:21] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:00:06 [end_date_ymd] => 2025-04-02 07:00:06 [RateCDR] => 1 ) [2025-04-02 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:00:06' and `end` < '2025-04-02 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:00:18] Production.INFO: count ==99 [2025-04-02 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:00:06 - End Time 2025-04-02 07:00:06 [2025-04-02 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816505', 'tblTempUsageDetail_20' ) start [2025-04-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816505', 'tblTempUsageDetail_20' ) end [2025-04-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816505', 'tblTempVendorCDR_20' ) start [2025-04-02 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816505', 'tblTempVendorCDR_20' ) end [2025-04-02 07:00:18] Production.INFO: ProcessCDR(1,14816505,1,1,2) [2025-04-02 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816505', 'tblTempUsageDetail_20' ) start [2025-04-02 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816505', 'tblTempUsageDetail_20' ) end [2025-04-02 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:00:22] Production.INFO: ==5667== Releasing lock... [2025-04-02 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:01:06 [end_date_ymd] => 2025-04-02 07:01:06 [RateCDR] => 1 ) [2025-04-02 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:01:06' and `end` < '2025-04-02 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:01:18] Production.INFO: count ==96 [2025-04-02 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:01:06 - End Time 2025-04-02 07:01:06 [2025-04-02 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816510', 'tblTempUsageDetail_20' ) start [2025-04-02 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816510', 'tblTempUsageDetail_20' ) end [2025-04-02 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816510', 'tblTempVendorCDR_20' ) start [2025-04-02 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816510', 'tblTempVendorCDR_20' ) end [2025-04-02 07:01:18] Production.INFO: ProcessCDR(1,14816510,1,1,2) [2025-04-02 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816510', 'tblTempUsageDetail_20' ) start [2025-04-02 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816510', 'tblTempUsageDetail_20' ) end [2025-04-02 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:01:22] Production.INFO: ==5829== Releasing lock... [2025-04-02 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:01:22] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:02:05 [end_date_ymd] => 2025-04-02 07:02:05 [RateCDR] => 1 ) [2025-04-02 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:02:05' and `end` < '2025-04-02 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:02:18] Production.INFO: count ==99 [2025-04-02 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:02:05 - End Time 2025-04-02 07:02:05 [2025-04-02 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816515', 'tblTempUsageDetail_20' ) start [2025-04-02 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816515', 'tblTempUsageDetail_20' ) end [2025-04-02 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816515', 'tblTempVendorCDR_20' ) start [2025-04-02 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816515', 'tblTempVendorCDR_20' ) end [2025-04-02 07:02:18] Production.INFO: ProcessCDR(1,14816515,1,1,2) [2025-04-02 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816515', 'tblTempUsageDetail_20' ) start [2025-04-02 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816515', 'tblTempUsageDetail_20' ) end [2025-04-02 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:02:22] Production.INFO: ==5907== Releasing lock... [2025-04-02 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:02:22] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:03:06 [end_date_ymd] => 2025-04-02 07:03:06 [RateCDR] => 1 ) [2025-04-02 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:03:06' and `end` < '2025-04-02 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:03:19] Production.INFO: count ==99 [2025-04-02 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:03:06 - End Time 2025-04-02 07:03:06 [2025-04-02 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816520', 'tblTempUsageDetail_20' ) start [2025-04-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816520', 'tblTempUsageDetail_20' ) end [2025-04-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816520', 'tblTempVendorCDR_20' ) start [2025-04-02 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816520', 'tblTempVendorCDR_20' ) end [2025-04-02 07:03:19] Production.INFO: ProcessCDR(1,14816520,1,1,2) [2025-04-02 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816520', 'tblTempUsageDetail_20' ) start [2025-04-02 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816520', 'tblTempUsageDetail_20' ) end [2025-04-02 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:03:23] Production.INFO: ==5980== Releasing lock... [2025-04-02 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:03:23] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:04:06 [end_date_ymd] => 2025-04-02 07:04:06 [RateCDR] => 1 ) [2025-04-02 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:04:06' and `end` < '2025-04-02 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:04:19] Production.INFO: count ==104 [2025-04-02 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:04:06 - End Time 2025-04-02 07:04:06 [2025-04-02 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816525', 'tblTempUsageDetail_20' ) start [2025-04-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816525', 'tblTempUsageDetail_20' ) end [2025-04-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816525', 'tblTempVendorCDR_20' ) start [2025-04-02 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816525', 'tblTempVendorCDR_20' ) end [2025-04-02 07:04:19] Production.INFO: ProcessCDR(1,14816525,1,1,2) [2025-04-02 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816525', 'tblTempUsageDetail_20' ) start [2025-04-02 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816525', 'tblTempUsageDetail_20' ) end [2025-04-02 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:04:23] Production.INFO: ==6053== Releasing lock... [2025-04-02 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:04:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:05:06 [end_date_ymd] => 2025-04-02 07:05:06 [RateCDR] => 1 ) [2025-04-02 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:05:06' and `end` < '2025-04-02 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:05:21] Production.INFO: count ==104 [2025-04-02 07:05:21] Production.ERROR: pbx CDR StartTime 2025-04-02 04:05:06 - End Time 2025-04-02 07:05:06 [2025-04-02 07:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816530', 'tblTempUsageDetail_20' ) start [2025-04-02 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816530', 'tblTempUsageDetail_20' ) end [2025-04-02 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816530', 'tblTempVendorCDR_20' ) start [2025-04-02 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816530', 'tblTempVendorCDR_20' ) end [2025-04-02 07:05:21] Production.INFO: ProcessCDR(1,14816530,1,1,2) [2025-04-02 07:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816530', 'tblTempUsageDetail_20' ) start [2025-04-02 07:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816530', 'tblTempUsageDetail_20' ) end [2025-04-02 07:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:05:25] Production.INFO: ==6210== Releasing lock... [2025-04-02 07:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:05:25] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:06:06 [end_date_ymd] => 2025-04-02 07:06:06 [RateCDR] => 1 ) [2025-04-02 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:06:06' and `end` < '2025-04-02 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:06:20] Production.INFO: count ==109 [2025-04-02 07:06:20] Production.ERROR: pbx CDR StartTime 2025-04-02 04:06:06 - End Time 2025-04-02 07:06:06 [2025-04-02 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816535', 'tblTempUsageDetail_20' ) start [2025-04-02 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816535', 'tblTempUsageDetail_20' ) end [2025-04-02 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816535', 'tblTempVendorCDR_20' ) start [2025-04-02 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816535', 'tblTempVendorCDR_20' ) end [2025-04-02 07:06:20] Production.INFO: ProcessCDR(1,14816535,1,1,2) [2025-04-02 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816535', 'tblTempUsageDetail_20' ) start [2025-04-02 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816535', 'tblTempUsageDetail_20' ) end [2025-04-02 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:06:24] Production.INFO: ==6285== Releasing lock... [2025-04-02 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:06:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:07:05 [end_date_ymd] => 2025-04-02 07:07:05 [RateCDR] => 1 ) [2025-04-02 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:07:05' and `end` < '2025-04-02 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-04-02 07:07:19] Production.INFO: count ==109 [2025-04-02 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:07:05 - End Time 2025-04-02 07:07:05 [2025-04-02 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816540', 'tblTempUsageDetail_20' ) start [2025-04-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816540', 'tblTempUsageDetail_20' ) end [2025-04-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816540', 'tblTempVendorCDR_20' ) start [2025-04-02 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816540', 'tblTempVendorCDR_20' ) end [2025-04-02 07:07:19] Production.INFO: ProcessCDR(1,14816540,1,1,2) [2025-04-02 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816540', 'tblTempUsageDetail_20' ) start [2025-04-02 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816540', 'tblTempUsageDetail_20' ) end [2025-04-02 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:07:23] Production.INFO: ==6356== Releasing lock... [2025-04-02 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:07:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:08:06 [end_date_ymd] => 2025-04-02 07:08:06 [RateCDR] => 1 ) [2025-04-02 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:08:06' and `end` < '2025-04-02 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:08:20] Production.INFO: count ==109 [2025-04-02 07:08:20] Production.ERROR: pbx CDR StartTime 2025-04-02 04:08:06 - End Time 2025-04-02 07:08:06 [2025-04-02 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816545', 'tblTempUsageDetail_20' ) start [2025-04-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816545', 'tblTempUsageDetail_20' ) end [2025-04-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816545', 'tblTempVendorCDR_20' ) start [2025-04-02 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816545', 'tblTempVendorCDR_20' ) end [2025-04-02 07:08:20] Production.INFO: ProcessCDR(1,14816545,1,1,2) [2025-04-02 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816545', 'tblTempUsageDetail_20' ) start [2025-04-02 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816545', 'tblTempUsageDetail_20' ) end [2025-04-02 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:08:24] Production.INFO: ==6519== Releasing lock... [2025-04-02 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:08:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:09:05 [end_date_ymd] => 2025-04-02 07:09:05 [RateCDR] => 1 ) [2025-04-02 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:09:05' and `end` < '2025-04-02 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:09:18] Production.INFO: count ==109 [2025-04-02 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:09:05 - End Time 2025-04-02 07:09:05 [2025-04-02 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816550', 'tblTempUsageDetail_20' ) start [2025-04-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816550', 'tblTempUsageDetail_20' ) end [2025-04-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816550', 'tblTempVendorCDR_20' ) start [2025-04-02 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816550', 'tblTempVendorCDR_20' ) end [2025-04-02 07:09:18] Production.INFO: ProcessCDR(1,14816550,1,1,2) [2025-04-02 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816550', 'tblTempUsageDetail_20' ) start [2025-04-02 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816550', 'tblTempUsageDetail_20' ) end [2025-04-02 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:09:22] Production.INFO: ==6591== Releasing lock... [2025-04-02 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:10:06 [end_date_ymd] => 2025-04-02 07:10:06 [RateCDR] => 1 ) [2025-04-02 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:10:06' and `end` < '2025-04-02 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:10:19] Production.INFO: count ==105 [2025-04-02 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:10:06 - End Time 2025-04-02 07:10:06 [2025-04-02 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816556', 'tblTempUsageDetail_20' ) start [2025-04-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816556', 'tblTempUsageDetail_20' ) end [2025-04-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816556', 'tblTempVendorCDR_20' ) start [2025-04-02 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816556', 'tblTempVendorCDR_20' ) end [2025-04-02 07:10:19] Production.INFO: ProcessCDR(1,14816556,1,1,2) [2025-04-02 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816556', 'tblTempUsageDetail_20' ) start [2025-04-02 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816556', 'tblTempUsageDetail_20' ) end [2025-04-02 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:10:24] Production.INFO: ==6665== Releasing lock... [2025-04-02 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:11:05 [end_date_ymd] => 2025-04-02 07:11:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:11:05' and `end` < '2025-04-02 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-04-02 07:11:18] Production.INFO: count ==105 [2025-04-02 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:11:05 - End Time 2025-04-02 07:11:05 [2025-04-02 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816561', 'tblTempUsageDetail_20' ) start [2025-04-02 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816561', 'tblTempUsageDetail_20' ) end [2025-04-02 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816561', 'tblTempVendorCDR_20' ) start [2025-04-02 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816561', 'tblTempVendorCDR_20' ) end [2025-04-02 07:11:18] Production.INFO: ProcessCDR(1,14816561,1,1,2) [2025-04-02 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816561', 'tblTempUsageDetail_20' ) start [2025-04-02 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816561', 'tblTempUsageDetail_20' ) end [2025-04-02 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:11:22] Production.INFO: ==6740== Releasing lock... [2025-04-02 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:12:06 [end_date_ymd] => 2025-04-02 07:12:06 [RateCDR] => 1 ) [2025-04-02 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:12:06' and `end` < '2025-04-02 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:12:19] Production.INFO: count ==105 [2025-04-02 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:12:06 - End Time 2025-04-02 07:12:06 [2025-04-02 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816566', 'tblTempUsageDetail_20' ) start [2025-04-02 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816566', 'tblTempUsageDetail_20' ) end [2025-04-02 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816566', 'tblTempVendorCDR_20' ) start [2025-04-02 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816566', 'tblTempVendorCDR_20' ) end [2025-04-02 07:12:19] Production.INFO: ProcessCDR(1,14816566,1,1,2) [2025-04-02 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816566', 'tblTempUsageDetail_20' ) start [2025-04-02 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816566', 'tblTempUsageDetail_20' ) end [2025-04-02 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:12:23] Production.INFO: ==6894== Releasing lock... [2025-04-02 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:13:05 [end_date_ymd] => 2025-04-02 07:13:05 [RateCDR] => 1 ) [2025-04-02 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:13:05' and `end` < '2025-04-02 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:13:18] Production.INFO: count ==105 [2025-04-02 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:13:05 - End Time 2025-04-02 07:13:05 [2025-04-02 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816571', 'tblTempUsageDetail_20' ) start [2025-04-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816571', 'tblTempUsageDetail_20' ) end [2025-04-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816571', 'tblTempVendorCDR_20' ) start [2025-04-02 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816571', 'tblTempVendorCDR_20' ) end [2025-04-02 07:13:18] Production.INFO: ProcessCDR(1,14816571,1,1,2) [2025-04-02 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816571', 'tblTempUsageDetail_20' ) start [2025-04-02 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816571', 'tblTempUsageDetail_20' ) end [2025-04-02 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:13:22] Production.INFO: ==6963== Releasing lock... [2025-04-02 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:14:06 [end_date_ymd] => 2025-04-02 07:14:06 [RateCDR] => 1 ) [2025-04-02 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:14:06' and `end` < '2025-04-02 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:14:18] Production.INFO: count ==105 [2025-04-02 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:14:06 - End Time 2025-04-02 07:14:06 [2025-04-02 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816576', 'tblTempUsageDetail_20' ) start [2025-04-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816576', 'tblTempUsageDetail_20' ) end [2025-04-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816576', 'tblTempVendorCDR_20' ) start [2025-04-02 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816576', 'tblTempVendorCDR_20' ) end [2025-04-02 07:14:18] Production.INFO: ProcessCDR(1,14816576,1,1,2) [2025-04-02 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816576', 'tblTempUsageDetail_20' ) start [2025-04-02 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816576', 'tblTempUsageDetail_20' ) end [2025-04-02 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:14:22] Production.INFO: ==7039== Releasing lock... [2025-04-02 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:15:05 [end_date_ymd] => 2025-04-02 07:15:05 [RateCDR] => 1 ) [2025-04-02 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:15:05' and `end` < '2025-04-02 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:15:20] Production.INFO: count ==105 [2025-04-02 07:15:20] Production.ERROR: pbx CDR StartTime 2025-04-02 04:15:05 - End Time 2025-04-02 07:15:05 [2025-04-02 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816581', 'tblTempUsageDetail_20' ) start [2025-04-02 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816581', 'tblTempUsageDetail_20' ) end [2025-04-02 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816581', 'tblTempVendorCDR_20' ) start [2025-04-02 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816581', 'tblTempVendorCDR_20' ) end [2025-04-02 07:15:20] Production.INFO: ProcessCDR(1,14816581,1,1,2) [2025-04-02 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816581', 'tblTempUsageDetail_20' ) start [2025-04-02 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816581', 'tblTempUsageDetail_20' ) end [2025-04-02 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:15:24] Production.INFO: ==7189== Releasing lock... [2025-04-02 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:15:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:16:06 [end_date_ymd] => 2025-04-02 07:16:06 [RateCDR] => 1 ) [2025-04-02 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:16:06' and `end` < '2025-04-02 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:16:19] Production.INFO: count ==105 [2025-04-02 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:16:06 - End Time 2025-04-02 07:16:06 [2025-04-02 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816586', 'tblTempUsageDetail_20' ) start [2025-04-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816586', 'tblTempUsageDetail_20' ) end [2025-04-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816586', 'tblTempVendorCDR_20' ) start [2025-04-02 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816586', 'tblTempVendorCDR_20' ) end [2025-04-02 07:16:19] Production.INFO: ProcessCDR(1,14816586,1,1,2) [2025-04-02 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816586', 'tblTempUsageDetail_20' ) start [2025-04-02 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816586', 'tblTempUsageDetail_20' ) end [2025-04-02 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:16:23] Production.INFO: ==7301== Releasing lock... [2025-04-02 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:16:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:17:06 [end_date_ymd] => 2025-04-02 07:17:06 [RateCDR] => 1 ) [2025-04-02 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:17:06' and `end` < '2025-04-02 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:17:19] Production.INFO: count ==105 [2025-04-02 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:17:06 - End Time 2025-04-02 07:17:06 [2025-04-02 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816591', 'tblTempUsageDetail_20' ) start [2025-04-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816591', 'tblTempUsageDetail_20' ) end [2025-04-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816591', 'tblTempVendorCDR_20' ) start [2025-04-02 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816591', 'tblTempVendorCDR_20' ) end [2025-04-02 07:17:19] Production.INFO: ProcessCDR(1,14816591,1,1,2) [2025-04-02 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816591', 'tblTempUsageDetail_20' ) start [2025-04-02 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816591', 'tblTempUsageDetail_20' ) end [2025-04-02 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:17:23] Production.INFO: ==7374== Releasing lock... [2025-04-02 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:17:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:18:06 [end_date_ymd] => 2025-04-02 07:18:06 [RateCDR] => 1 ) [2025-04-02 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:18:06' and `end` < '2025-04-02 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:18:19] Production.INFO: count ==105 [2025-04-02 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:18:06 - End Time 2025-04-02 07:18:06 [2025-04-02 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816596', 'tblTempUsageDetail_20' ) start [2025-04-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816596', 'tblTempUsageDetail_20' ) end [2025-04-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816596', 'tblTempVendorCDR_20' ) start [2025-04-02 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816596', 'tblTempVendorCDR_20' ) end [2025-04-02 07:18:19] Production.INFO: ProcessCDR(1,14816596,1,1,2) [2025-04-02 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816596', 'tblTempUsageDetail_20' ) start [2025-04-02 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816596', 'tblTempUsageDetail_20' ) end [2025-04-02 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:18:23] Production.INFO: ==7447== Releasing lock... [2025-04-02 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:18:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:19:06 [end_date_ymd] => 2025-04-02 07:19:06 [RateCDR] => 1 ) [2025-04-02 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:19:06' and `end` < '2025-04-02 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:19:18] Production.INFO: count ==106 [2025-04-02 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:19:06 - End Time 2025-04-02 07:19:06 [2025-04-02 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816601', 'tblTempUsageDetail_20' ) start [2025-04-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816601', 'tblTempUsageDetail_20' ) end [2025-04-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816601', 'tblTempVendorCDR_20' ) start [2025-04-02 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816601', 'tblTempVendorCDR_20' ) end [2025-04-02 07:19:18] Production.INFO: ProcessCDR(1,14816601,1,1,2) [2025-04-02 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816601', 'tblTempUsageDetail_20' ) start [2025-04-02 07:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816601', 'tblTempUsageDetail_20' ) end [2025-04-02 07:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:19:24] Production.INFO: ==7518== Releasing lock... [2025-04-02 07:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:19:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:20:07 [end_date_ymd] => 2025-04-02 07:20:07 [RateCDR] => 1 ) [2025-04-02 07:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:20:07' and `end` < '2025-04-02 07:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:20:20] Production.INFO: count ==106 [2025-04-02 07:20:20] Production.ERROR: pbx CDR StartTime 2025-04-02 04:20:07 - End Time 2025-04-02 07:20:07 [2025-04-02 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816606', 'tblTempUsageDetail_20' ) start [2025-04-02 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816606', 'tblTempUsageDetail_20' ) end [2025-04-02 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816606', 'tblTempVendorCDR_20' ) start [2025-04-02 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816606', 'tblTempVendorCDR_20' ) end [2025-04-02 07:20:20] Production.INFO: ProcessCDR(1,14816606,1,1,2) [2025-04-02 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816606', 'tblTempUsageDetail_20' ) start [2025-04-02 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816606', 'tblTempUsageDetail_20' ) end [2025-04-02 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:20:24] Production.INFO: ==7598== Releasing lock... [2025-04-02 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:20:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:21:06 [end_date_ymd] => 2025-04-02 07:21:06 [RateCDR] => 1 ) [2025-04-02 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:21:06' and `end` < '2025-04-02 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:21:18] Production.INFO: count ==105 [2025-04-02 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:21:06 - End Time 2025-04-02 07:21:06 [2025-04-02 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816612', 'tblTempUsageDetail_20' ) start [2025-04-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816612', 'tblTempUsageDetail_20' ) end [2025-04-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816612', 'tblTempVendorCDR_20' ) start [2025-04-02 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816612', 'tblTempVendorCDR_20' ) end [2025-04-02 07:21:18] Production.INFO: ProcessCDR(1,14816612,1,1,2) [2025-04-02 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816612', 'tblTempUsageDetail_20' ) start [2025-04-02 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816612', 'tblTempUsageDetail_20' ) end [2025-04-02 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:21:22] Production.INFO: ==7677== Releasing lock... [2025-04-02 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:22:06 [end_date_ymd] => 2025-04-02 07:22:06 [RateCDR] => 1 ) [2025-04-02 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:22:06' and `end` < '2025-04-02 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:22:19] Production.INFO: count ==105 [2025-04-02 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:22:06 - End Time 2025-04-02 07:22:06 [2025-04-02 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816617', 'tblTempUsageDetail_20' ) start [2025-04-02 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816617', 'tblTempUsageDetail_20' ) end [2025-04-02 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816617', 'tblTempVendorCDR_20' ) start [2025-04-02 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816617', 'tblTempVendorCDR_20' ) end [2025-04-02 07:22:19] Production.INFO: ProcessCDR(1,14816617,1,1,2) [2025-04-02 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816617', 'tblTempUsageDetail_20' ) start [2025-04-02 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816617', 'tblTempUsageDetail_20' ) end [2025-04-02 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:22:23] Production.INFO: ==7754== Releasing lock... [2025-04-02 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:22:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:23:06 [end_date_ymd] => 2025-04-02 07:23:06 [RateCDR] => 1 ) [2025-04-02 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:23:06' and `end` < '2025-04-02 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:23:19] Production.INFO: count ==105 [2025-04-02 07:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:23:06 - End Time 2025-04-02 07:23:06 [2025-04-02 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816622', 'tblTempUsageDetail_20' ) start [2025-04-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816622', 'tblTempUsageDetail_20' ) end [2025-04-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816622', 'tblTempVendorCDR_20' ) start [2025-04-02 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816622', 'tblTempVendorCDR_20' ) end [2025-04-02 07:23:19] Production.INFO: ProcessCDR(1,14816622,1,1,2) [2025-04-02 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816622', 'tblTempUsageDetail_20' ) start [2025-04-02 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816622', 'tblTempUsageDetail_20' ) end [2025-04-02 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:23:23] Production.INFO: ==7845== Releasing lock... [2025-04-02 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:24:05 [end_date_ymd] => 2025-04-02 07:24:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:24:05' and `end` < '2025-04-02 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-04-02 07:24:18] Production.INFO: count ==105 [2025-04-02 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:24:05 - End Time 2025-04-02 07:24:05 [2025-04-02 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816627', 'tblTempUsageDetail_20' ) start [2025-04-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816627', 'tblTempUsageDetail_20' ) end [2025-04-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816627', 'tblTempVendorCDR_20' ) start [2025-04-02 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816627', 'tblTempVendorCDR_20' ) end [2025-04-02 07:24:18] Production.INFO: ProcessCDR(1,14816627,1,1,2) [2025-04-02 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816627', 'tblTempUsageDetail_20' ) start [2025-04-02 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816627', 'tblTempUsageDetail_20' ) end [2025-04-02 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:24:22] Production.INFO: ==7919== Releasing lock... [2025-04-02 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:25:06 [end_date_ymd] => 2025-04-02 07:25:06 [RateCDR] => 1 ) [2025-04-02 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:25:06' and `end` < '2025-04-02 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:25:18] Production.INFO: count ==105 [2025-04-02 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:25:06 - End Time 2025-04-02 07:25:06 [2025-04-02 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816632', 'tblTempUsageDetail_20' ) start [2025-04-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816632', 'tblTempUsageDetail_20' ) end [2025-04-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816632', 'tblTempVendorCDR_20' ) start [2025-04-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816632', 'tblTempVendorCDR_20' ) end [2025-04-02 07:25:18] Production.INFO: ProcessCDR(1,14816632,1,1,2) [2025-04-02 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816632', 'tblTempUsageDetail_20' ) start [2025-04-02 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816632', 'tblTempUsageDetail_20' ) end [2025-04-02 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:25:22] Production.INFO: ==7993== Releasing lock... [2025-04-02 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:26:05 [end_date_ymd] => 2025-04-02 07:26:05 [RateCDR] => 1 ) [2025-04-02 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:26:05' and `end` < '2025-04-02 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:26:18] Production.INFO: count ==110 [2025-04-02 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:26:05 - End Time 2025-04-02 07:26:05 [2025-04-02 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816637', 'tblTempUsageDetail_20' ) start [2025-04-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816637', 'tblTempUsageDetail_20' ) end [2025-04-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816637', 'tblTempVendorCDR_20' ) start [2025-04-02 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816637', 'tblTempVendorCDR_20' ) end [2025-04-02 07:26:18] Production.INFO: ProcessCDR(1,14816637,1,1,2) [2025-04-02 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816637', 'tblTempUsageDetail_20' ) start [2025-04-02 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816637', 'tblTempUsageDetail_20' ) end [2025-04-02 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:26:22] Production.INFO: ==8070== Releasing lock... [2025-04-02 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:27:06 [end_date_ymd] => 2025-04-02 07:27:06 [RateCDR] => 1 ) [2025-04-02 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:27:06' and `end` < '2025-04-02 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:27:18] Production.INFO: count ==117 [2025-04-02 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:27:06 - End Time 2025-04-02 07:27:06 [2025-04-02 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816642', 'tblTempUsageDetail_20' ) start [2025-04-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816642', 'tblTempUsageDetail_20' ) end [2025-04-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816642', 'tblTempVendorCDR_20' ) start [2025-04-02 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816642', 'tblTempVendorCDR_20' ) end [2025-04-02 07:27:18] Production.INFO: ProcessCDR(1,14816642,1,1,2) [2025-04-02 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816642', 'tblTempUsageDetail_20' ) start [2025-04-02 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816642', 'tblTempUsageDetail_20' ) end [2025-04-02 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:27:22] Production.INFO: ==8145== Releasing lock... [2025-04-02 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:28:05 [end_date_ymd] => 2025-04-02 07:28:05 [RateCDR] => 1 ) [2025-04-02 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:28:05' and `end` < '2025-04-02 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:28:18] Production.INFO: count ==114 [2025-04-02 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:28:05 - End Time 2025-04-02 07:28:05 [2025-04-02 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816647', 'tblTempUsageDetail_20' ) start [2025-04-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816647', 'tblTempUsageDetail_20' ) end [2025-04-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816647', 'tblTempVendorCDR_20' ) start [2025-04-02 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816647', 'tblTempVendorCDR_20' ) end [2025-04-02 07:28:18] Production.INFO: ProcessCDR(1,14816647,1,1,2) [2025-04-02 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816647', 'tblTempUsageDetail_20' ) start [2025-04-02 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816647', 'tblTempUsageDetail_20' ) end [2025-04-02 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:28:22] Production.INFO: ==8218== Releasing lock... [2025-04-02 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:29:06 [end_date_ymd] => 2025-04-02 07:29:06 [RateCDR] => 1 ) [2025-04-02 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:29:06' and `end` < '2025-04-02 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:29:19] Production.INFO: count ==114 [2025-04-02 07:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:29:06 - End Time 2025-04-02 07:29:06 [2025-04-02 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816652', 'tblTempUsageDetail_20' ) start [2025-04-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816652', 'tblTempUsageDetail_20' ) end [2025-04-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816652', 'tblTempVendorCDR_20' ) start [2025-04-02 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816652', 'tblTempVendorCDR_20' ) end [2025-04-02 07:29:19] Production.INFO: ProcessCDR(1,14816652,1,1,2) [2025-04-02 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816652', 'tblTempUsageDetail_20' ) start [2025-04-02 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816652', 'tblTempUsageDetail_20' ) end [2025-04-02 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:29:22] Production.INFO: ==8296== Releasing lock... [2025-04-02 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:30:06 [end_date_ymd] => 2025-04-02 07:30:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:30:06' and `end` < '2025-04-02 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-04-02 07:30:19] Production.INFO: count ==120 [2025-04-02 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:30:06 - End Time 2025-04-02 07:30:06 [2025-04-02 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816658', 'tblTempUsageDetail_20' ) start [2025-04-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816658', 'tblTempUsageDetail_20' ) end [2025-04-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816658', 'tblTempVendorCDR_20' ) start [2025-04-02 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816658', 'tblTempVendorCDR_20' ) end [2025-04-02 07:30:19] Production.INFO: ProcessCDR(1,14816658,1,1,2) [2025-04-02 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816658', 'tblTempUsageDetail_20' ) start [2025-04-02 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816658', 'tblTempUsageDetail_20' ) end [2025-04-02 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:30:23] Production.INFO: ==8372== Releasing lock... [2025-04-02 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:31:06 [end_date_ymd] => 2025-04-02 07:31:06 [RateCDR] => 1 ) [2025-04-02 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:31:06' and `end` < '2025-04-02 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:31:19] Production.INFO: count ==120 [2025-04-02 07:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:31:06 - End Time 2025-04-02 07:31:06 [2025-04-02 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816663', 'tblTempUsageDetail_20' ) start [2025-04-02 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816663', 'tblTempUsageDetail_20' ) end [2025-04-02 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816663', 'tblTempVendorCDR_20' ) start [2025-04-02 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816663', 'tblTempVendorCDR_20' ) end [2025-04-02 07:31:19] Production.INFO: ProcessCDR(1,14816663,1,1,2) [2025-04-02 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816663', 'tblTempUsageDetail_20' ) start [2025-04-02 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816663', 'tblTempUsageDetail_20' ) end [2025-04-02 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:31:23] Production.INFO: ==8486== Releasing lock... [2025-04-02 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:31:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-02 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:32:05 [end_date_ymd] => 2025-04-02 07:32:05 [RateCDR] => 1 ) [2025-04-02 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:32:05' and `end` < '2025-04-02 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:32:18] Production.INFO: count ==135 [2025-04-02 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:32:05 - End Time 2025-04-02 07:32:05 [2025-04-02 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816668', 'tblTempUsageDetail_20' ) start [2025-04-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816668', 'tblTempUsageDetail_20' ) end [2025-04-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816668', 'tblTempVendorCDR_20' ) start [2025-04-02 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816668', 'tblTempVendorCDR_20' ) end [2025-04-02 07:32:18] Production.INFO: ProcessCDR(1,14816668,1,1,2) [2025-04-02 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816668', 'tblTempUsageDetail_20' ) start [2025-04-02 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816668', 'tblTempUsageDetail_20' ) end [2025-04-02 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:32:22] Production.INFO: ==8556== Releasing lock... [2025-04-02 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:33:06 [end_date_ymd] => 2025-04-02 07:33:06 [RateCDR] => 1 ) [2025-04-02 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:33:06' and `end` < '2025-04-02 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:33:19] Production.INFO: count ==135 [2025-04-02 07:33:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:33:06 - End Time 2025-04-02 07:33:06 [2025-04-02 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816673', 'tblTempUsageDetail_20' ) start [2025-04-02 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816673', 'tblTempUsageDetail_20' ) end [2025-04-02 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816673', 'tblTempVendorCDR_20' ) start [2025-04-02 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816673', 'tblTempVendorCDR_20' ) end [2025-04-02 07:33:19] Production.INFO: ProcessCDR(1,14816673,1,1,2) [2025-04-02 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816673', 'tblTempUsageDetail_20' ) start [2025-04-02 07:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816673', 'tblTempUsageDetail_20' ) end [2025-04-02 07:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:33:23] Production.INFO: ==8630== Releasing lock... [2025-04-02 07:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:33:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:34:05 [end_date_ymd] => 2025-04-02 07:34:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:34:05' and `end` < '2025-04-02 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-04-02 07:34:18] Production.INFO: count ==135 [2025-04-02 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:34:05 - End Time 2025-04-02 07:34:05 [2025-04-02 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816678', 'tblTempUsageDetail_20' ) start [2025-04-02 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816678', 'tblTempUsageDetail_20' ) end [2025-04-02 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816678', 'tblTempVendorCDR_20' ) start [2025-04-02 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816678', 'tblTempVendorCDR_20' ) end [2025-04-02 07:34:18] Production.INFO: ProcessCDR(1,14816678,1,1,2) [2025-04-02 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816678', 'tblTempUsageDetail_20' ) start [2025-04-02 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816678', 'tblTempUsageDetail_20' ) end [2025-04-02 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:34:22] Production.INFO: ==8705== Releasing lock... [2025-04-02 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:35:06 [end_date_ymd] => 2025-04-02 07:35:06 [RateCDR] => 1 ) [2025-04-02 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:35:06' and `end` < '2025-04-02 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:35:18] Production.INFO: count ==135 [2025-04-02 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:35:06 - End Time 2025-04-02 07:35:06 [2025-04-02 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816683', 'tblTempUsageDetail_20' ) start [2025-04-02 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816683', 'tblTempUsageDetail_20' ) end [2025-04-02 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816683', 'tblTempVendorCDR_20' ) start [2025-04-02 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816683', 'tblTempVendorCDR_20' ) end [2025-04-02 07:35:19] Production.INFO: ProcessCDR(1,14816683,1,1,2) [2025-04-02 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816683', 'tblTempUsageDetail_20' ) start [2025-04-02 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816683', 'tblTempUsageDetail_20' ) end [2025-04-02 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:35:22] Production.INFO: ==8777== Releasing lock... [2025-04-02 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:36:05 [end_date_ymd] => 2025-04-02 07:36:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:36:05' and `end` < '2025-04-02 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-04-02 07:36:18] Production.INFO: count ==135 [2025-04-02 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:36:05 - End Time 2025-04-02 07:36:05 [2025-04-02 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816688', 'tblTempUsageDetail_20' ) start [2025-04-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816688', 'tblTempUsageDetail_20' ) end [2025-04-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816688', 'tblTempVendorCDR_20' ) start [2025-04-02 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816688', 'tblTempVendorCDR_20' ) end [2025-04-02 07:36:18] Production.INFO: ProcessCDR(1,14816688,1,1,2) [2025-04-02 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816688', 'tblTempUsageDetail_20' ) start [2025-04-02 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816688', 'tblTempUsageDetail_20' ) end [2025-04-02 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:36:22] Production.INFO: ==8852== Releasing lock... [2025-04-02 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:37:06 [end_date_ymd] => 2025-04-02 07:37:06 [RateCDR] => 1 ) [2025-04-02 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:37:06' and `end` < '2025-04-02 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:37:19] Production.INFO: count ==142 [2025-04-02 07:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:37:06 - End Time 2025-04-02 07:37:06 [2025-04-02 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816693', 'tblTempUsageDetail_20' ) start [2025-04-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816693', 'tblTempUsageDetail_20' ) end [2025-04-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816693', 'tblTempVendorCDR_20' ) start [2025-04-02 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816693', 'tblTempVendorCDR_20' ) end [2025-04-02 07:37:19] Production.INFO: ProcessCDR(1,14816693,1,1,2) [2025-04-02 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816693', 'tblTempUsageDetail_20' ) start [2025-04-02 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816693', 'tblTempUsageDetail_20' ) end [2025-04-02 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:37:23] Production.INFO: ==8926== Releasing lock... [2025-04-02 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:37:23] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:38:06 [end_date_ymd] => 2025-04-02 07:38:06 [RateCDR] => 1 ) [2025-04-02 07:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:38:06' and `end` < '2025-04-02 07:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:38:19] Production.INFO: count ==142 [2025-04-02 07:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:38:06 - End Time 2025-04-02 07:38:06 [2025-04-02 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816698', 'tblTempUsageDetail_20' ) start [2025-04-02 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816698', 'tblTempUsageDetail_20' ) end [2025-04-02 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816698', 'tblTempVendorCDR_20' ) start [2025-04-02 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816698', 'tblTempVendorCDR_20' ) end [2025-04-02 07:38:19] Production.INFO: ProcessCDR(1,14816698,1,1,2) [2025-04-02 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816698', 'tblTempUsageDetail_20' ) start [2025-04-02 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816698', 'tblTempUsageDetail_20' ) end [2025-04-02 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:38:22] Production.INFO: ==9001== Releasing lock... [2025-04-02 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:38:22] Production.INFO: 29 MB #Memory Used# [2025-04-02 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:39:05 [end_date_ymd] => 2025-04-02 07:39:05 [RateCDR] => 1 ) [2025-04-02 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:39:05' and `end` < '2025-04-02 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:39:18] Production.INFO: count ==149 [2025-04-02 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:39:05 - End Time 2025-04-02 07:39:05 [2025-04-02 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816703', 'tblTempUsageDetail_20' ) start [2025-04-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816703', 'tblTempUsageDetail_20' ) end [2025-04-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816703', 'tblTempVendorCDR_20' ) start [2025-04-02 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816703', 'tblTempVendorCDR_20' ) end [2025-04-02 07:39:18] Production.INFO: ProcessCDR(1,14816703,1,1,2) [2025-04-02 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816703', 'tblTempUsageDetail_20' ) start [2025-04-02 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816703', 'tblTempUsageDetail_20' ) end [2025-04-02 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:39:22] Production.INFO: ==9079== Releasing lock... [2025-04-02 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:40:06 [end_date_ymd] => 2025-04-02 07:40:06 [RateCDR] => 1 ) [2025-04-02 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:40:06' and `end` < '2025-04-02 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:40:19] Production.INFO: count ==149 [2025-04-02 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:40:06 - End Time 2025-04-02 07:40:06 [2025-04-02 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816707', 'tblTempUsageDetail_20' ) start [2025-04-02 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816707', 'tblTempUsageDetail_20' ) end [2025-04-02 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816707', 'tblTempVendorCDR_20' ) start [2025-04-02 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816707', 'tblTempVendorCDR_20' ) end [2025-04-02 07:40:19] Production.INFO: ProcessCDR(1,14816707,1,1,2) [2025-04-02 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816707', 'tblTempUsageDetail_20' ) start [2025-04-02 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816707', 'tblTempUsageDetail_20' ) end [2025-04-02 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:40:23] Production.INFO: ==9159== Releasing lock... [2025-04-02 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:41:05 [end_date_ymd] => 2025-04-02 07:41:05 [RateCDR] => 1 ) [2025-04-02 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:41:05' and `end` < '2025-04-02 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:41:18] Production.INFO: count ==149 [2025-04-02 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:41:05 - End Time 2025-04-02 07:41:05 [2025-04-02 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816714', 'tblTempUsageDetail_20' ) start [2025-04-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816714', 'tblTempUsageDetail_20' ) end [2025-04-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816714', 'tblTempVendorCDR_20' ) start [2025-04-02 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816714', 'tblTempVendorCDR_20' ) end [2025-04-02 07:41:18] Production.INFO: ProcessCDR(1,14816714,1,1,2) [2025-04-02 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816714', 'tblTempUsageDetail_20' ) start [2025-04-02 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816714', 'tblTempUsageDetail_20' ) end [2025-04-02 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:41:22] Production.INFO: ==9246== Releasing lock... [2025-04-02 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:42:06 [end_date_ymd] => 2025-04-02 07:42:06 [RateCDR] => 1 ) [2025-04-02 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:42:06' and `end` < '2025-04-02 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:42:19] Production.INFO: count ==149 [2025-04-02 07:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:42:06 - End Time 2025-04-02 07:42:06 [2025-04-02 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816719', 'tblTempUsageDetail_20' ) start [2025-04-02 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816719', 'tblTempUsageDetail_20' ) end [2025-04-02 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816719', 'tblTempVendorCDR_20' ) start [2025-04-02 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816719', 'tblTempVendorCDR_20' ) end [2025-04-02 07:42:19] Production.INFO: ProcessCDR(1,14816719,1,1,2) [2025-04-02 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816719', 'tblTempUsageDetail_20' ) start [2025-04-02 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816719', 'tblTempUsageDetail_20' ) end [2025-04-02 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:42:23] Production.INFO: ==9321== Releasing lock... [2025-04-02 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:42:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:43:05 [end_date_ymd] => 2025-04-02 07:43:05 [RateCDR] => 1 ) [2025-04-02 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:43:05' and `end` < '2025-04-02 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:43:18] Production.INFO: count ==151 [2025-04-02 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:43:05 - End Time 2025-04-02 07:43:05 [2025-04-02 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816724', 'tblTempUsageDetail_20' ) start [2025-04-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816724', 'tblTempUsageDetail_20' ) end [2025-04-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816724', 'tblTempVendorCDR_20' ) start [2025-04-02 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816724', 'tblTempVendorCDR_20' ) end [2025-04-02 07:43:18] Production.INFO: ProcessCDR(1,14816724,1,1,2) [2025-04-02 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816724', 'tblTempUsageDetail_20' ) start [2025-04-02 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816724', 'tblTempUsageDetail_20' ) end [2025-04-02 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:43:22] Production.INFO: ==9402== Releasing lock... [2025-04-02 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:44:06 [end_date_ymd] => 2025-04-02 07:44:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:44:06' and `end` < '2025-04-02 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-04-02 07:44:18] Production.INFO: count ==154 [2025-04-02 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:44:06 - End Time 2025-04-02 07:44:06 [2025-04-02 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816729', 'tblTempUsageDetail_20' ) start [2025-04-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816729', 'tblTempUsageDetail_20' ) end [2025-04-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816729', 'tblTempVendorCDR_20' ) start [2025-04-02 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816729', 'tblTempVendorCDR_20' ) end [2025-04-02 07:44:18] Production.INFO: ProcessCDR(1,14816729,1,1,2) [2025-04-02 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816729', 'tblTempUsageDetail_20' ) start [2025-04-02 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816729', 'tblTempUsageDetail_20' ) end [2025-04-02 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:44:22] Production.INFO: ==9476== Releasing lock... [2025-04-02 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:45:06 [end_date_ymd] => 2025-04-02 07:45:06 [RateCDR] => 1 ) [2025-04-02 07:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:45:06' and `end` < '2025-04-02 07:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:45:18] Production.INFO: count ==155 [2025-04-02 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:45:06 - End Time 2025-04-02 07:45:06 [2025-04-02 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816734', 'tblTempUsageDetail_20' ) start [2025-04-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816734', 'tblTempUsageDetail_20' ) end [2025-04-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816734', 'tblTempVendorCDR_20' ) start [2025-04-02 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816734', 'tblTempVendorCDR_20' ) end [2025-04-02 07:45:18] Production.INFO: ProcessCDR(1,14816734,1,1,2) [2025-04-02 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816734', 'tblTempUsageDetail_20' ) start [2025-04-02 07:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816734', 'tblTempUsageDetail_20' ) end [2025-04-02 07:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:45:24] Production.INFO: ==9547== Releasing lock... [2025-04-02 07:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:45:24] Production.INFO: 29.5 MB #Memory Used# [2025-04-02 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:46:05 [end_date_ymd] => 2025-04-02 07:46:05 [RateCDR] => 1 ) [2025-04-02 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:46:05' and `end` < '2025-04-02 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:46:18] Production.INFO: count ==160 [2025-04-02 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:46:05 - End Time 2025-04-02 07:46:05 [2025-04-02 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816739', 'tblTempUsageDetail_20' ) start [2025-04-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816739', 'tblTempUsageDetail_20' ) end [2025-04-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816739', 'tblTempVendorCDR_20' ) start [2025-04-02 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816739', 'tblTempVendorCDR_20' ) end [2025-04-02 07:46:18] Production.INFO: ProcessCDR(1,14816739,1,1,2) [2025-04-02 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816739', 'tblTempUsageDetail_20' ) start [2025-04-02 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816739', 'tblTempUsageDetail_20' ) end [2025-04-02 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:46:22] Production.INFO: ==9622== Releasing lock... [2025-04-02 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:46:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:47:05 [end_date_ymd] => 2025-04-02 07:47:05 [RateCDR] => 1 ) [2025-04-02 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:47:05' and `end` < '2025-04-02 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:47:18] Production.INFO: count ==160 [2025-04-02 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:47:05 - End Time 2025-04-02 07:47:05 [2025-04-02 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816744', 'tblTempUsageDetail_20' ) start [2025-04-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816744', 'tblTempUsageDetail_20' ) end [2025-04-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816744', 'tblTempVendorCDR_20' ) start [2025-04-02 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816744', 'tblTempVendorCDR_20' ) end [2025-04-02 07:47:18] Production.INFO: ProcessCDR(1,14816744,1,1,2) [2025-04-02 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816744', 'tblTempUsageDetail_20' ) start [2025-04-02 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816744', 'tblTempUsageDetail_20' ) end [2025-04-02 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:47:22] Production.INFO: ==9735== Releasing lock... [2025-04-02 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:47:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:48:05 [end_date_ymd] => 2025-04-02 07:48:05 [RateCDR] => 1 ) [2025-04-02 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:48:05' and `end` < '2025-04-02 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:48:18] Production.INFO: count ==160 [2025-04-02 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:48:05 - End Time 2025-04-02 07:48:05 [2025-04-02 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816749', 'tblTempUsageDetail_20' ) start [2025-04-02 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816749', 'tblTempUsageDetail_20' ) end [2025-04-02 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816749', 'tblTempVendorCDR_20' ) start [2025-04-02 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816749', 'tblTempVendorCDR_20' ) end [2025-04-02 07:48:18] Production.INFO: ProcessCDR(1,14816749,1,1,2) [2025-04-02 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816749', 'tblTempUsageDetail_20' ) start [2025-04-02 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816749', 'tblTempUsageDetail_20' ) end [2025-04-02 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:48:22] Production.INFO: ==9807== Releasing lock... [2025-04-02 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:48:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:49:06 [end_date_ymd] => 2025-04-02 07:49:06 [RateCDR] => 1 ) [2025-04-02 07:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:49:06' and `end` < '2025-04-02 07:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:49:18] Production.INFO: count ==160 [2025-04-02 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:49:06 - End Time 2025-04-02 07:49:06 [2025-04-02 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816754', 'tblTempUsageDetail_20' ) start [2025-04-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816754', 'tblTempUsageDetail_20' ) end [2025-04-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816754', 'tblTempVendorCDR_20' ) start [2025-04-02 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816754', 'tblTempVendorCDR_20' ) end [2025-04-02 07:49:18] Production.INFO: ProcessCDR(1,14816754,1,1,2) [2025-04-02 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816754', 'tblTempUsageDetail_20' ) start [2025-04-02 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816754', 'tblTempUsageDetail_20' ) end [2025-04-02 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:49:22] Production.INFO: ==9879== Releasing lock... [2025-04-02 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:49:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:50:07 [end_date_ymd] => 2025-04-02 07:50:07 [RateCDR] => 1 ) [2025-04-02 07:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:50:07' and `end` < '2025-04-02 07:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:50:19] Production.INFO: count ==160 [2025-04-02 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:50:07 - End Time 2025-04-02 07:50:07 [2025-04-02 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816759', 'tblTempUsageDetail_20' ) start [2025-04-02 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816759', 'tblTempUsageDetail_20' ) end [2025-04-02 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816759', 'tblTempVendorCDR_20' ) start [2025-04-02 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816759', 'tblTempVendorCDR_20' ) end [2025-04-02 07:50:19] Production.INFO: ProcessCDR(1,14816759,1,1,2) [2025-04-02 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816759', 'tblTempUsageDetail_20' ) start [2025-04-02 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816759', 'tblTempUsageDetail_20' ) end [2025-04-02 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:50:23] Production.INFO: ==9956== Releasing lock... [2025-04-02 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:50:23] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:51:05 [end_date_ymd] => 2025-04-02 07:51:05 [RateCDR] => 1 ) [2025-04-02 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:51:05' and `end` < '2025-04-02 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:51:18] Production.INFO: count ==160 [2025-04-02 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:51:05 - End Time 2025-04-02 07:51:05 [2025-04-02 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816765', 'tblTempUsageDetail_20' ) start [2025-04-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816765', 'tblTempUsageDetail_20' ) end [2025-04-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816765', 'tblTempVendorCDR_20' ) start [2025-04-02 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816765', 'tblTempVendorCDR_20' ) end [2025-04-02 07:51:18] Production.INFO: ProcessCDR(1,14816765,1,1,2) [2025-04-02 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816765', 'tblTempUsageDetail_20' ) start [2025-04-02 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816765', 'tblTempUsageDetail_20' ) end [2025-04-02 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:51:22] Production.INFO: ==10035== Releasing lock... [2025-04-02 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:51:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:52:06 [end_date_ymd] => 2025-04-02 07:52:06 [RateCDR] => 1 ) [2025-04-02 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:52:06' and `end` < '2025-04-02 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:52:19] Production.INFO: count ==160 [2025-04-02 07:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:52:06 - End Time 2025-04-02 07:52:06 [2025-04-02 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816770', 'tblTempUsageDetail_20' ) start [2025-04-02 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816770', 'tblTempUsageDetail_20' ) end [2025-04-02 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816770', 'tblTempVendorCDR_20' ) start [2025-04-02 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816770', 'tblTempVendorCDR_20' ) end [2025-04-02 07:52:19] Production.INFO: ProcessCDR(1,14816770,1,1,2) [2025-04-02 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816770', 'tblTempUsageDetail_20' ) start [2025-04-02 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816770', 'tblTempUsageDetail_20' ) end [2025-04-02 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:52:22] Production.INFO: ==10110== Releasing lock... [2025-04-02 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:52:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:53:05 [end_date_ymd] => 2025-04-02 07:53:05 [RateCDR] => 1 ) [2025-04-02 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:53:05' and `end` < '2025-04-02 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:53:18] Production.INFO: count ==160 [2025-04-02 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:53:05 - End Time 2025-04-02 07:53:05 [2025-04-02 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816775', 'tblTempUsageDetail_20' ) start [2025-04-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816775', 'tblTempUsageDetail_20' ) end [2025-04-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816775', 'tblTempVendorCDR_20' ) start [2025-04-02 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816775', 'tblTempVendorCDR_20' ) end [2025-04-02 07:53:18] Production.INFO: ProcessCDR(1,14816775,1,1,2) [2025-04-02 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816775', 'tblTempUsageDetail_20' ) start [2025-04-02 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816775', 'tblTempUsageDetail_20' ) end [2025-04-02 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:53:22] Production.INFO: ==10188== Releasing lock... [2025-04-02 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:53:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:54:06 [end_date_ymd] => 2025-04-02 07:54:06 [RateCDR] => 1 ) [2025-04-02 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:54:06' and `end` < '2025-04-02 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:54:19] Production.INFO: count ==160 [2025-04-02 07:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:54:06 - End Time 2025-04-02 07:54:06 [2025-04-02 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816780', 'tblTempUsageDetail_20' ) start [2025-04-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816780', 'tblTempUsageDetail_20' ) end [2025-04-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816780', 'tblTempVendorCDR_20' ) start [2025-04-02 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816780', 'tblTempVendorCDR_20' ) end [2025-04-02 07:54:19] Production.INFO: ProcessCDR(1,14816780,1,1,2) [2025-04-02 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816780', 'tblTempUsageDetail_20' ) start [2025-04-02 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816780', 'tblTempUsageDetail_20' ) end [2025-04-02 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:54:22] Production.INFO: ==10259== Releasing lock... [2025-04-02 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:54:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:55:05 [end_date_ymd] => 2025-04-02 07:55:05 [RateCDR] => 1 ) [2025-04-02 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:55:05' and `end` < '2025-04-02 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:55:18] Production.INFO: count ==160 [2025-04-02 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:55:05 - End Time 2025-04-02 07:55:05 [2025-04-02 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816785', 'tblTempUsageDetail_20' ) start [2025-04-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816785', 'tblTempUsageDetail_20' ) end [2025-04-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816785', 'tblTempVendorCDR_20' ) start [2025-04-02 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816785', 'tblTempVendorCDR_20' ) end [2025-04-02 07:55:18] Production.INFO: ProcessCDR(1,14816785,1,1,2) [2025-04-02 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816785', 'tblTempUsageDetail_20' ) start [2025-04-02 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816785', 'tblTempUsageDetail_20' ) end [2025-04-02 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:55:22] Production.INFO: ==10334== Releasing lock... [2025-04-02 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:55:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:56:06 [end_date_ymd] => 2025-04-02 07:56:06 [RateCDR] => 1 ) [2025-04-02 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:56:06' and `end` < '2025-04-02 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:56:18] Production.INFO: count ==160 [2025-04-02 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:56:06 - End Time 2025-04-02 07:56:06 [2025-04-02 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816790', 'tblTempUsageDetail_20' ) start [2025-04-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816790', 'tblTempUsageDetail_20' ) end [2025-04-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816790', 'tblTempVendorCDR_20' ) start [2025-04-02 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816790', 'tblTempVendorCDR_20' ) end [2025-04-02 07:56:18] Production.INFO: ProcessCDR(1,14816790,1,1,2) [2025-04-02 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816790', 'tblTempUsageDetail_20' ) start [2025-04-02 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816790', 'tblTempUsageDetail_20' ) end [2025-04-02 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:56:22] Production.INFO: ==10408== Releasing lock... [2025-04-02 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:57:05 [end_date_ymd] => 2025-04-02 07:57:05 [RateCDR] => 1 ) [2025-04-02 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:57:05' and `end` < '2025-04-02 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:57:18] Production.INFO: count ==169 [2025-04-02 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:57:05 - End Time 2025-04-02 07:57:05 [2025-04-02 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816795', 'tblTempUsageDetail_20' ) start [2025-04-02 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816795', 'tblTempUsageDetail_20' ) end [2025-04-02 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816795', 'tblTempVendorCDR_20' ) start [2025-04-02 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816795', 'tblTempVendorCDR_20' ) end [2025-04-02 07:57:18] Production.INFO: ProcessCDR(1,14816795,1,1,2) [2025-04-02 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816795', 'tblTempUsageDetail_20' ) start [2025-04-02 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816795', 'tblTempUsageDetail_20' ) end [2025-04-02 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:57:22] Production.INFO: ==10479== Releasing lock... [2025-04-02 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:57:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:58:06 [end_date_ymd] => 2025-04-02 07:58:06 [RateCDR] => 1 ) [2025-04-02 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 04:58:06' and `end` < '2025-04-02 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 07:58:19] Production.INFO: count ==195 [2025-04-02 07:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 04:58:06 - End Time 2025-04-02 07:58:06 [2025-04-02 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816800', 'tblTempUsageDetail_20' ) start [2025-04-02 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816800', 'tblTempUsageDetail_20' ) end [2025-04-02 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816800', 'tblTempVendorCDR_20' ) start [2025-04-02 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816800', 'tblTempVendorCDR_20' ) end [2025-04-02 07:58:19] Production.INFO: ProcessCDR(1,14816800,1,1,2) [2025-04-02 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816800', 'tblTempUsageDetail_20' ) start [2025-04-02 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816800', 'tblTempUsageDetail_20' ) end [2025-04-02 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:58:23] Production.INFO: ==10557== Releasing lock... [2025-04-02 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:58:23] Production.INFO: 30 MB #Memory Used# [2025-04-02 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 04:59:05 [end_date_ymd] => 2025-04-02 07:59:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 04:59:05' and `end` < '2025-04-02 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-04-02 07:59:18] Production.INFO: count ==190 [2025-04-02 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 04:59:05 - End Time 2025-04-02 07:59:05 [2025-04-02 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816805', 'tblTempUsageDetail_20' ) start [2025-04-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816805', 'tblTempUsageDetail_20' ) end [2025-04-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816805', 'tblTempVendorCDR_20' ) start [2025-04-02 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816805', 'tblTempVendorCDR_20' ) end [2025-04-02 07:59:18] Production.INFO: ProcessCDR(1,14816805,1,1,2) [2025-04-02 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816805', 'tblTempUsageDetail_20' ) start [2025-04-02 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816805', 'tblTempUsageDetail_20' ) end [2025-04-02 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 07:59:22] Production.INFO: ==10636== Releasing lock... [2025-04-02 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 07:59:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:00:07 [end_date_ymd] => 2025-04-02 08:00:07 [RateCDR] => 1 ) [2025-04-02 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:00:07' and `end` < '2025-04-02 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:00:19] Production.INFO: count ==202 [2025-04-02 08:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 05:00:07 - End Time 2025-04-02 08:00:07 [2025-04-02 08:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816811', 'tblTempUsageDetail_20' ) start [2025-04-02 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816811', 'tblTempUsageDetail_20' ) end [2025-04-02 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816811', 'tblTempVendorCDR_20' ) start [2025-04-02 08:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816811', 'tblTempVendorCDR_20' ) end [2025-04-02 08:00:20] Production.INFO: ProcessCDR(1,14816811,1,1,2) [2025-04-02 08:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816811', 'tblTempUsageDetail_20' ) start [2025-04-02 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816811', 'tblTempUsageDetail_20' ) end [2025-04-02 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:00:23] Production.INFO: ==10725== Releasing lock... [2025-04-02 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:00:23] Production.INFO: 30 MB #Memory Used# [2025-04-02 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:01:06 [end_date_ymd] => 2025-04-02 08:01:06 [RateCDR] => 1 ) [2025-04-02 08:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:01:06' and `end` < '2025-04-02 08:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:01:18] Production.INFO: count ==205 [2025-04-02 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:01:06 - End Time 2025-04-02 08:01:06 [2025-04-02 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816816', 'tblTempUsageDetail_20' ) start [2025-04-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816816', 'tblTempUsageDetail_20' ) end [2025-04-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816816', 'tblTempVendorCDR_20' ) start [2025-04-02 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816816', 'tblTempVendorCDR_20' ) end [2025-04-02 08:01:18] Production.INFO: ProcessCDR(1,14816816,1,1,2) [2025-04-02 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816816', 'tblTempUsageDetail_20' ) start [2025-04-02 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816816', 'tblTempUsageDetail_20' ) end [2025-04-02 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:01:22] Production.INFO: ==10812== Releasing lock... [2025-04-02 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:02:06 [end_date_ymd] => 2025-04-02 08:02:06 [RateCDR] => 1 ) [2025-04-02 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:02:06' and `end` < '2025-04-02 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:02:18] Production.INFO: count ==217 [2025-04-02 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:02:06 - End Time 2025-04-02 08:02:06 [2025-04-02 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816821', 'tblTempUsageDetail_20' ) start [2025-04-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816821', 'tblTempUsageDetail_20' ) end [2025-04-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816821', 'tblTempVendorCDR_20' ) start [2025-04-02 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816821', 'tblTempVendorCDR_20' ) end [2025-04-02 08:02:18] Production.INFO: ProcessCDR(1,14816821,1,1,2) [2025-04-02 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816821', 'tblTempUsageDetail_20' ) start [2025-04-02 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816821', 'tblTempUsageDetail_20' ) end [2025-04-02 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:02:22] Production.INFO: ==10921== Releasing lock... [2025-04-02 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-02 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:03:06 [end_date_ymd] => 2025-04-02 08:03:06 [RateCDR] => 1 ) [2025-04-02 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:03:06' and `end` < '2025-04-02 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:03:18] Production.INFO: count ==225 [2025-04-02 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:03:06 - End Time 2025-04-02 08:03:06 [2025-04-02 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816826', 'tblTempUsageDetail_20' ) start [2025-04-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816826', 'tblTempUsageDetail_20' ) end [2025-04-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816826', 'tblTempVendorCDR_20' ) start [2025-04-02 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816826', 'tblTempVendorCDR_20' ) end [2025-04-02 08:03:18] Production.INFO: ProcessCDR(1,14816826,1,1,2) [2025-04-02 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816826', 'tblTempUsageDetail_20' ) start [2025-04-02 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816826', 'tblTempUsageDetail_20' ) end [2025-04-02 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:03:22] Production.INFO: ==10993== Releasing lock... [2025-04-02 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:03:22] Production.INFO: 30 MB #Memory Used# [2025-04-02 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:04:06 [end_date_ymd] => 2025-04-02 08:04:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 05:04:06' and `end` < '2025-04-02 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-04-02 08:04:18] Production.INFO: count ==235 [2025-04-02 08:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:04:06 - End Time 2025-04-02 08:04:06 [2025-04-02 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816831', 'tblTempUsageDetail_20' ) start [2025-04-02 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816831', 'tblTempUsageDetail_20' ) end [2025-04-02 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816831', 'tblTempVendorCDR_20' ) start [2025-04-02 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816831', 'tblTempVendorCDR_20' ) end [2025-04-02 08:04:19] Production.INFO: ProcessCDR(1,14816831,1,1,2) [2025-04-02 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816831', 'tblTempUsageDetail_20' ) start [2025-04-02 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816831', 'tblTempUsageDetail_20' ) end [2025-04-02 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:04:23] Production.INFO: ==11066== Releasing lock... [2025-04-02 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:05:06 [end_date_ymd] => 2025-04-02 08:05:06 [RateCDR] => 1 ) [2025-04-02 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:05:06' and `end` < '2025-04-02 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:05:18] Production.INFO: count ==235 [2025-04-02 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:05:06 - End Time 2025-04-02 08:05:06 [2025-04-02 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816836', 'tblTempUsageDetail_20' ) start [2025-04-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816836', 'tblTempUsageDetail_20' ) end [2025-04-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816836', 'tblTempVendorCDR_20' ) start [2025-04-02 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816836', 'tblTempVendorCDR_20' ) end [2025-04-02 08:05:18] Production.INFO: ProcessCDR(1,14816836,1,1,2) [2025-04-02 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816836', 'tblTempUsageDetail_20' ) start [2025-04-02 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816836', 'tblTempUsageDetail_20' ) end [2025-04-02 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:05:22] Production.INFO: ==11142== Releasing lock... [2025-04-02 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:06:05 [end_date_ymd] => 2025-04-02 08:06:05 [RateCDR] => 1 ) [2025-04-02 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:06:05' and `end` < '2025-04-02 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:06:18] Production.INFO: count ==235 [2025-04-02 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:06:05 - End Time 2025-04-02 08:06:05 [2025-04-02 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816841', 'tblTempUsageDetail_20' ) start [2025-04-02 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816841', 'tblTempUsageDetail_20' ) end [2025-04-02 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816841', 'tblTempVendorCDR_20' ) start [2025-04-02 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816841', 'tblTempVendorCDR_20' ) end [2025-04-02 08:06:18] Production.INFO: ProcessCDR(1,14816841,1,1,2) [2025-04-02 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816841', 'tblTempUsageDetail_20' ) start [2025-04-02 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816841', 'tblTempUsageDetail_20' ) end [2025-04-02 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:06:22] Production.INFO: ==11214== Releasing lock... [2025-04-02 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-02 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:07:06 [end_date_ymd] => 2025-04-02 08:07:06 [RateCDR] => 1 ) [2025-04-02 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:07:06' and `end` < '2025-04-02 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:07:19] Production.INFO: count ==250 [2025-04-02 08:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:07:06 - End Time 2025-04-02 08:07:06 [2025-04-02 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816846', 'tblTempUsageDetail_20' ) start [2025-04-02 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816846', 'tblTempUsageDetail_20' ) end [2025-04-02 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816846', 'tblTempVendorCDR_20' ) start [2025-04-02 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816846', 'tblTempVendorCDR_20' ) end [2025-04-02 08:07:19] Production.INFO: ProcessCDR(1,14816846,1,1,2) [2025-04-02 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816846', 'tblTempUsageDetail_20' ) start [2025-04-02 08:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816846', 'tblTempUsageDetail_20' ) end [2025-04-02 08:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:07:25] Production.INFO: ==11285== Releasing lock... [2025-04-02 08:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:07:25] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:08:06 [end_date_ymd] => 2025-04-02 08:08:06 [RateCDR] => 1 ) [2025-04-02 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:08:06' and `end` < '2025-04-02 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:08:18] Production.INFO: count ==269 [2025-04-02 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:08:06 - End Time 2025-04-02 08:08:06 [2025-04-02 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816851', 'tblTempUsageDetail_20' ) start [2025-04-02 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816851', 'tblTempUsageDetail_20' ) end [2025-04-02 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816851', 'tblTempVendorCDR_20' ) start [2025-04-02 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816851', 'tblTempVendorCDR_20' ) end [2025-04-02 08:08:18] Production.INFO: ProcessCDR(1,14816851,1,1,2) [2025-04-02 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816851', 'tblTempUsageDetail_20' ) start [2025-04-02 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816851', 'tblTempUsageDetail_20' ) end [2025-04-02 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:08:24] Production.INFO: ==11357== Releasing lock... [2025-04-02 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:08:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-02 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:09:06 [end_date_ymd] => 2025-04-02 08:09:06 [RateCDR] => 1 ) [2025-04-02 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:09:06' and `end` < '2025-04-02 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:09:19] Production.INFO: count ==271 [2025-04-02 08:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:09:06 - End Time 2025-04-02 08:09:06 [2025-04-02 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816856', 'tblTempUsageDetail_20' ) start [2025-04-02 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816856', 'tblTempUsageDetail_20' ) end [2025-04-02 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816856', 'tblTempVendorCDR_20' ) start [2025-04-02 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816856', 'tblTempVendorCDR_20' ) end [2025-04-02 08:09:19] Production.INFO: ProcessCDR(1,14816856,1,1,2) [2025-04-02 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816856', 'tblTempUsageDetail_20' ) start [2025-04-02 08:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816856', 'tblTempUsageDetail_20' ) end [2025-04-02 08:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:09:25] Production.INFO: ==11426== Releasing lock... [2025-04-02 08:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:09:25] Production.INFO: 30.75 MB #Memory Used# [2025-04-02 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:10:07 [end_date_ymd] => 2025-04-02 08:10:07 [RateCDR] => 1 ) [2025-04-02 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:10:07' and `end` < '2025-04-02 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:10:19] Production.INFO: count ==294 [2025-04-02 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:10:07 - End Time 2025-04-02 08:10:07 [2025-04-02 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816862', 'tblTempUsageDetail_20' ) start [2025-04-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816862', 'tblTempUsageDetail_20' ) end [2025-04-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816862', 'tblTempVendorCDR_20' ) start [2025-04-02 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816862', 'tblTempVendorCDR_20' ) end [2025-04-02 08:10:19] Production.INFO: ProcessCDR(1,14816862,1,1,2) [2025-04-02 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816862', 'tblTempUsageDetail_20' ) start [2025-04-02 08:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816862', 'tblTempUsageDetail_20' ) end [2025-04-02 08:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:10:25] Production.INFO: ==11499== Releasing lock... [2025-04-02 08:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:10:25] Production.INFO: 31 MB #Memory Used# [2025-04-02 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:11:06 [end_date_ymd] => 2025-04-02 08:11:06 [RateCDR] => 1 ) [2025-04-02 08:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:11:06' and `end` < '2025-04-02 08:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:11:18] Production.INFO: count ==350 [2025-04-02 08:11:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:11:06 - End Time 2025-04-02 08:11:06 [2025-04-02 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816867', 'tblTempUsageDetail_20' ) start [2025-04-02 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816867', 'tblTempUsageDetail_20' ) end [2025-04-02 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816867', 'tblTempVendorCDR_20' ) start [2025-04-02 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816867', 'tblTempVendorCDR_20' ) end [2025-04-02 08:11:19] Production.INFO: ProcessCDR(1,14816867,1,1,2) [2025-04-02 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816867', 'tblTempUsageDetail_20' ) start [2025-04-02 08:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816867', 'tblTempUsageDetail_20' ) end [2025-04-02 08:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:11:25] Production.INFO: ==11574== Releasing lock... [2025-04-02 08:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:11:25] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:12:06 [end_date_ymd] => 2025-04-02 08:12:06 [RateCDR] => 1 ) [2025-04-02 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:12:06' and `end` < '2025-04-02 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:12:18] Production.INFO: count ==360 [2025-04-02 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:12:06 - End Time 2025-04-02 08:12:06 [2025-04-02 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816872', 'tblTempUsageDetail_20' ) start [2025-04-02 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816872', 'tblTempUsageDetail_20' ) end [2025-04-02 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816872', 'tblTempVendorCDR_20' ) start [2025-04-02 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816872', 'tblTempVendorCDR_20' ) end [2025-04-02 08:12:19] Production.INFO: ProcessCDR(1,14816872,1,1,2) [2025-04-02 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816872', 'tblTempUsageDetail_20' ) start [2025-04-02 08:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816872', 'tblTempUsageDetail_20' ) end [2025-04-02 08:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:12:25] Production.INFO: ==11647== Releasing lock... [2025-04-02 08:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:12:25] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:13:06 [end_date_ymd] => 2025-04-02 08:13:06 [RateCDR] => 1 ) [2025-04-02 08:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:13:06' and `end` < '2025-04-02 08:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:13:18] Production.INFO: count ==362 [2025-04-02 08:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:13:06 - End Time 2025-04-02 08:13:06 [2025-04-02 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816877', 'tblTempUsageDetail_20' ) start [2025-04-02 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816877', 'tblTempUsageDetail_20' ) end [2025-04-02 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816877', 'tblTempVendorCDR_20' ) start [2025-04-02 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816877', 'tblTempVendorCDR_20' ) end [2025-04-02 08:13:19] Production.INFO: ProcessCDR(1,14816877,1,1,2) [2025-04-02 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816877', 'tblTempUsageDetail_20' ) start [2025-04-02 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816877', 'tblTempUsageDetail_20' ) end [2025-04-02 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:13:24] Production.INFO: ==11720== Releasing lock... [2025-04-02 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:13:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:14:06 [end_date_ymd] => 2025-04-02 08:14:06 [RateCDR] => 1 ) [2025-04-02 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:14:06' and `end` < '2025-04-02 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:14:18] Production.INFO: count ==367 [2025-04-02 08:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:14:06 - End Time 2025-04-02 08:14:06 [2025-04-02 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816882', 'tblTempUsageDetail_20' ) start [2025-04-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816882', 'tblTempUsageDetail_20' ) end [2025-04-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816882', 'tblTempVendorCDR_20' ) start [2025-04-02 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816882', 'tblTempVendorCDR_20' ) end [2025-04-02 08:14:19] Production.INFO: ProcessCDR(1,14816882,1,1,2) [2025-04-02 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816882', 'tblTempUsageDetail_20' ) start [2025-04-02 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816882', 'tblTempUsageDetail_20' ) end [2025-04-02 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:14:22] Production.INFO: ==11790== Releasing lock... [2025-04-02 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:15:06 [end_date_ymd] => 2025-04-02 08:15:06 [RateCDR] => 1 ) [2025-04-02 08:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:15:06' and `end` < '2025-04-02 08:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:15:18] Production.INFO: count ==371 [2025-04-02 08:15:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:15:06 - End Time 2025-04-02 08:15:06 [2025-04-02 08:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816887', 'tblTempUsageDetail_20' ) start [2025-04-02 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816887', 'tblTempUsageDetail_20' ) end [2025-04-02 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816887', 'tblTempVendorCDR_20' ) start [2025-04-02 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816887', 'tblTempVendorCDR_20' ) end [2025-04-02 08:15:19] Production.INFO: ProcessCDR(1,14816887,1,1,2) [2025-04-02 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816887', 'tblTempUsageDetail_20' ) start [2025-04-02 08:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816887', 'tblTempUsageDetail_20' ) end [2025-04-02 08:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:15:24] Production.INFO: ==11861== Releasing lock... [2025-04-02 08:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:15:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:16:05 [end_date_ymd] => 2025-04-02 08:16:05 [RateCDR] => 1 ) [2025-04-02 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:16:05' and `end` < '2025-04-02 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:16:18] Production.INFO: count ==389 [2025-04-02 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:16:05 - End Time 2025-04-02 08:16:05 [2025-04-02 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816892', 'tblTempUsageDetail_20' ) start [2025-04-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816892', 'tblTempUsageDetail_20' ) end [2025-04-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816892', 'tblTempVendorCDR_20' ) start [2025-04-02 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816892', 'tblTempVendorCDR_20' ) end [2025-04-02 08:16:18] Production.INFO: ProcessCDR(1,14816892,1,1,2) [2025-04-02 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816892', 'tblTempUsageDetail_20' ) start [2025-04-02 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816892', 'tblTempUsageDetail_20' ) end [2025-04-02 08:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:16:24] Production.INFO: ==11935== Releasing lock... [2025-04-02 08:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:16:24] Production.INFO: 32 MB #Memory Used# [2025-04-02 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:17:06 [end_date_ymd] => 2025-04-02 08:17:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 05:17:06' and `end` < '2025-04-02 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-04-02 08:17:19] Production.INFO: count ==401 [2025-04-02 08:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:17:06 - End Time 2025-04-02 08:17:06 [2025-04-02 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816897', 'tblTempUsageDetail_20' ) start [2025-04-02 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816897', 'tblTempUsageDetail_20' ) end [2025-04-02 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816897', 'tblTempVendorCDR_20' ) start [2025-04-02 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816897', 'tblTempVendorCDR_20' ) end [2025-04-02 08:17:19] Production.INFO: ProcessCDR(1,14816897,1,1,2) [2025-04-02 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816897', 'tblTempUsageDetail_20' ) start [2025-04-02 08:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816897', 'tblTempUsageDetail_20' ) end [2025-04-02 08:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:17:25] Production.INFO: ==12050== Releasing lock... [2025-04-02 08:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:17:25] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:18:05 [end_date_ymd] => 2025-04-02 08:18:05 [RateCDR] => 1 ) [2025-04-02 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:18:05' and `end` < '2025-04-02 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:18:18] Production.INFO: count ==403 [2025-04-02 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:18:05 - End Time 2025-04-02 08:18:05 [2025-04-02 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816902', 'tblTempUsageDetail_20' ) start [2025-04-02 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816902', 'tblTempUsageDetail_20' ) end [2025-04-02 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816902', 'tblTempVendorCDR_20' ) start [2025-04-02 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816902', 'tblTempVendorCDR_20' ) end [2025-04-02 08:18:18] Production.INFO: ProcessCDR(1,14816902,1,1,2) [2025-04-02 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816902', 'tblTempUsageDetail_20' ) start [2025-04-02 08:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816902', 'tblTempUsageDetail_20' ) end [2025-04-02 08:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:18:24] Production.INFO: ==12149== Releasing lock... [2025-04-02 08:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:18:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:19:06 [end_date_ymd] => 2025-04-02 08:19:06 [RateCDR] => 1 ) [2025-04-02 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:19:06' and `end` < '2025-04-02 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:19:19] Production.INFO: count ==409 [2025-04-02 08:19:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:19:06 - End Time 2025-04-02 08:19:06 [2025-04-02 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816907', 'tblTempUsageDetail_20' ) start [2025-04-02 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816907', 'tblTempUsageDetail_20' ) end [2025-04-02 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816907', 'tblTempVendorCDR_20' ) start [2025-04-02 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816907', 'tblTempVendorCDR_20' ) end [2025-04-02 08:19:19] Production.INFO: ProcessCDR(1,14816907,1,1,2) [2025-04-02 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816907', 'tblTempUsageDetail_20' ) start [2025-04-02 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816907', 'tblTempUsageDetail_20' ) end [2025-04-02 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:19:23] Production.INFO: ==12224== Releasing lock... [2025-04-02 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:19:23] Production.INFO: 32 MB #Memory Used# [2025-04-02 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:20:06 [end_date_ymd] => 2025-04-02 08:20:06 [RateCDR] => 1 ) [2025-04-02 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:20:06' and `end` < '2025-04-02 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:20:19] Production.INFO: count ==417 [2025-04-02 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:20:06 - End Time 2025-04-02 08:20:06 [2025-04-02 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816912', 'tblTempUsageDetail_20' ) start [2025-04-02 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816912', 'tblTempUsageDetail_20' ) end [2025-04-02 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816912', 'tblTempVendorCDR_20' ) start [2025-04-02 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816912', 'tblTempVendorCDR_20' ) end [2025-04-02 08:20:19] Production.INFO: ProcessCDR(1,14816912,1,1,2) [2025-04-02 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816912', 'tblTempUsageDetail_20' ) start [2025-04-02 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816912', 'tblTempUsageDetail_20' ) end [2025-04-02 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:20:23] Production.INFO: ==12297== Releasing lock... [2025-04-02 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:21:06 [end_date_ymd] => 2025-04-02 08:21:06 [RateCDR] => 1 ) [2025-04-02 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:21:06' and `end` < '2025-04-02 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:21:19] Production.INFO: count ==433 [2025-04-02 08:21:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:21:06 - End Time 2025-04-02 08:21:06 [2025-04-02 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816918', 'tblTempUsageDetail_20' ) start [2025-04-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816918', 'tblTempUsageDetail_20' ) end [2025-04-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816918', 'tblTempVendorCDR_20' ) start [2025-04-02 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816918', 'tblTempVendorCDR_20' ) end [2025-04-02 08:21:19] Production.INFO: ProcessCDR(1,14816918,1,1,2) [2025-04-02 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816918', 'tblTempUsageDetail_20' ) start [2025-04-02 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816918', 'tblTempUsageDetail_20' ) end [2025-04-02 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:21:23] Production.INFO: ==12371== Releasing lock... [2025-04-02 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:21:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:22:05 [end_date_ymd] => 2025-04-02 08:22:05 [RateCDR] => 1 ) [2025-04-02 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:22:05' and `end` < '2025-04-02 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:22:18] Production.INFO: count ==434 [2025-04-02 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:22:05 - End Time 2025-04-02 08:22:05 [2025-04-02 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816923', 'tblTempUsageDetail_20' ) start [2025-04-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816923', 'tblTempUsageDetail_20' ) end [2025-04-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816923', 'tblTempVendorCDR_20' ) start [2025-04-02 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816923', 'tblTempVendorCDR_20' ) end [2025-04-02 08:22:18] Production.INFO: ProcessCDR(1,14816923,1,1,2) [2025-04-02 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816923', 'tblTempUsageDetail_20' ) start [2025-04-02 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816923', 'tblTempUsageDetail_20' ) end [2025-04-02 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:22:24] Production.INFO: ==12444== Releasing lock... [2025-04-02 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:22:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:23:06 [end_date_ymd] => 2025-04-02 08:23:06 [RateCDR] => 1 ) [2025-04-02 08:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:23:06' and `end` < '2025-04-02 08:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:23:18] Production.INFO: count ==439 [2025-04-02 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:23:06 - End Time 2025-04-02 08:23:06 [2025-04-02 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816928', 'tblTempUsageDetail_20' ) start [2025-04-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816928', 'tblTempUsageDetail_20' ) end [2025-04-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816928', 'tblTempVendorCDR_20' ) start [2025-04-02 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816928', 'tblTempVendorCDR_20' ) end [2025-04-02 08:23:19] Production.INFO: ProcessCDR(1,14816928,1,1,2) [2025-04-02 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816928', 'tblTempUsageDetail_20' ) start [2025-04-02 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816928', 'tblTempUsageDetail_20' ) end [2025-04-02 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:23:23] Production.INFO: ==12516== Releasing lock... [2025-04-02 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:23:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:24:06 [end_date_ymd] => 2025-04-02 08:24:06 [RateCDR] => 1 ) [2025-04-02 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:24:06' and `end` < '2025-04-02 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:24:19] Production.INFO: count ==439 [2025-04-02 08:24:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:24:06 - End Time 2025-04-02 08:24:06 [2025-04-02 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816933', 'tblTempUsageDetail_20' ) start [2025-04-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816933', 'tblTempUsageDetail_20' ) end [2025-04-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816933', 'tblTempVendorCDR_20' ) start [2025-04-02 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816933', 'tblTempVendorCDR_20' ) end [2025-04-02 08:24:19] Production.INFO: ProcessCDR(1,14816933,1,1,2) [2025-04-02 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816933', 'tblTempUsageDetail_20' ) start [2025-04-02 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816933', 'tblTempUsageDetail_20' ) end [2025-04-02 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:24:23] Production.INFO: ==12587== Releasing lock... [2025-04-02 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:24:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-02 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:25:06 [end_date_ymd] => 2025-04-02 08:25:06 [RateCDR] => 1 ) [2025-04-02 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:25:06' and `end` < '2025-04-02 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:25:18] Production.INFO: count ==441 [2025-04-02 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:25:06 - End Time 2025-04-02 08:25:06 [2025-04-02 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816938', 'tblTempUsageDetail_20' ) start [2025-04-02 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816938', 'tblTempUsageDetail_20' ) end [2025-04-02 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816938', 'tblTempVendorCDR_20' ) start [2025-04-02 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816938', 'tblTempVendorCDR_20' ) end [2025-04-02 08:25:19] Production.INFO: ProcessCDR(1,14816938,1,1,2) [2025-04-02 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816938', 'tblTempUsageDetail_20' ) start [2025-04-02 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816938', 'tblTempUsageDetail_20' ) end [2025-04-02 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:25:25] Production.INFO: ==12660== Releasing lock... [2025-04-02 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-04-02 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:26:06 [end_date_ymd] => 2025-04-02 08:26:06 [RateCDR] => 1 ) [2025-04-02 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:26:06' and `end` < '2025-04-02 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:26:19] Production.INFO: count ==447 [2025-04-02 08:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:26:06 - End Time 2025-04-02 08:26:06 [2025-04-02 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816943', 'tblTempUsageDetail_20' ) start [2025-04-02 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816943', 'tblTempUsageDetail_20' ) end [2025-04-02 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816943', 'tblTempVendorCDR_20' ) start [2025-04-02 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816943', 'tblTempVendorCDR_20' ) end [2025-04-02 08:26:19] Production.INFO: ProcessCDR(1,14816943,1,1,2) [2025-04-02 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816943', 'tblTempUsageDetail_20' ) start [2025-04-02 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816943', 'tblTempUsageDetail_20' ) end [2025-04-02 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:26:25] Production.INFO: ==12731== Releasing lock... [2025-04-02 08:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:26:25] Production.INFO: 32.25 MB #Memory Used# [2025-04-02 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:27:06 [end_date_ymd] => 2025-04-02 08:27:06 [RateCDR] => 1 ) [2025-04-02 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:27:06' and `end` < '2025-04-02 08:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:27:19] Production.INFO: count ==452 [2025-04-02 08:27:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:27:06 - End Time 2025-04-02 08:27:06 [2025-04-02 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816948', 'tblTempUsageDetail_20' ) start [2025-04-02 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816948', 'tblTempUsageDetail_20' ) end [2025-04-02 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816948', 'tblTempVendorCDR_20' ) start [2025-04-02 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816948', 'tblTempVendorCDR_20' ) end [2025-04-02 08:27:19] Production.INFO: ProcessCDR(1,14816948,1,1,2) [2025-04-02 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816948', 'tblTempUsageDetail_20' ) start [2025-04-02 08:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816948', 'tblTempUsageDetail_20' ) end [2025-04-02 08:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:27:25] Production.INFO: ==12801== Releasing lock... [2025-04-02 08:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:27:25] Production.INFO: 31.25 MB #Memory Used# [2025-04-02 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:28:06 [end_date_ymd] => 2025-04-02 08:28:06 [RateCDR] => 1 ) [2025-04-02 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:28:06' and `end` < '2025-04-02 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:28:19] Production.INFO: count ==473 [2025-04-02 08:28:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:28:06 - End Time 2025-04-02 08:28:06 [2025-04-02 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816953', 'tblTempUsageDetail_20' ) start [2025-04-02 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816953', 'tblTempUsageDetail_20' ) end [2025-04-02 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816953', 'tblTempVendorCDR_20' ) start [2025-04-02 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816953', 'tblTempVendorCDR_20' ) end [2025-04-02 08:28:19] Production.INFO: ProcessCDR(1,14816953,1,1,2) [2025-04-02 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816953', 'tblTempUsageDetail_20' ) start [2025-04-02 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816953', 'tblTempUsageDetail_20' ) end [2025-04-02 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:28:23] Production.INFO: ==12871== Releasing lock... [2025-04-02 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:28:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:29:06 [end_date_ymd] => 2025-04-02 08:29:06 [RateCDR] => 1 ) [2025-04-02 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:29:06' and `end` < '2025-04-02 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:29:19] Production.INFO: count ==486 [2025-04-02 08:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:29:06 - End Time 2025-04-02 08:29:06 [2025-04-02 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816958', 'tblTempUsageDetail_20' ) start [2025-04-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816958', 'tblTempUsageDetail_20' ) end [2025-04-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816958', 'tblTempVendorCDR_20' ) start [2025-04-02 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816958', 'tblTempVendorCDR_20' ) end [2025-04-02 08:29:19] Production.INFO: ProcessCDR(1,14816958,1,1,2) [2025-04-02 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816958', 'tblTempUsageDetail_20' ) start [2025-04-02 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816958', 'tblTempUsageDetail_20' ) end [2025-04-02 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:29:23] Production.INFO: ==12945== Releasing lock... [2025-04-02 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:29:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-02 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:30:07 [end_date_ymd] => 2025-04-02 08:30:07 [RateCDR] => 1 ) [2025-04-02 08:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:30:07' and `end` < '2025-04-02 08:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:30:20] Production.INFO: count ==510 [2025-04-02 08:30:20] Production.ERROR: pbx CDR StartTime 2025-04-02 05:30:07 - End Time 2025-04-02 08:30:07 [2025-04-02 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816964', 'tblTempUsageDetail_20' ) start [2025-04-02 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816964', 'tblTempUsageDetail_20' ) end [2025-04-02 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816964', 'tblTempVendorCDR_20' ) start [2025-04-02 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816964', 'tblTempVendorCDR_20' ) end [2025-04-02 08:30:20] Production.INFO: ProcessCDR(1,14816964,1,1,2) [2025-04-02 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816964', 'tblTempUsageDetail_20' ) start [2025-04-02 08:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816964', 'tblTempUsageDetail_20' ) end [2025-04-02 08:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:30:26] Production.INFO: ==13020== Releasing lock... [2025-04-02 08:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:30:26] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:31:06 [end_date_ymd] => 2025-04-02 08:31:06 [RateCDR] => 1 ) [2025-04-02 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:31:06' and `end` < '2025-04-02 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:31:19] Production.INFO: count ==549 [2025-04-02 08:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:31:06 - End Time 2025-04-02 08:31:06 [2025-04-02 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816969', 'tblTempUsageDetail_20' ) start [2025-04-02 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816969', 'tblTempUsageDetail_20' ) end [2025-04-02 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816969', 'tblTempVendorCDR_20' ) start [2025-04-02 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816969', 'tblTempVendorCDR_20' ) end [2025-04-02 08:31:19] Production.INFO: ProcessCDR(1,14816969,1,1,2) [2025-04-02 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816969', 'tblTempUsageDetail_20' ) start [2025-04-02 08:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816969', 'tblTempUsageDetail_20' ) end [2025-04-02 08:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:31:25] Production.INFO: ==13096== Releasing lock... [2025-04-02 08:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:31:25] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:32:06 [end_date_ymd] => 2025-04-02 08:32:06 [RateCDR] => 1 ) [2025-04-02 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:32:06' and `end` < '2025-04-02 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:32:19] Production.INFO: count ==560 [2025-04-02 08:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:32:06 - End Time 2025-04-02 08:32:06 [2025-04-02 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816974', 'tblTempUsageDetail_20' ) start [2025-04-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816974', 'tblTempUsageDetail_20' ) end [2025-04-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816974', 'tblTempVendorCDR_20' ) start [2025-04-02 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816974', 'tblTempVendorCDR_20' ) end [2025-04-02 08:32:19] Production.INFO: ProcessCDR(1,14816974,1,1,2) [2025-04-02 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816974', 'tblTempUsageDetail_20' ) start [2025-04-02 08:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816974', 'tblTempUsageDetail_20' ) end [2025-04-02 08:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:32:25] Production.INFO: ==13169== Releasing lock... [2025-04-02 08:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:32:25] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:33:05 [end_date_ymd] => 2025-04-02 08:33:05 [RateCDR] => 1 ) [2025-04-02 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:33:05' and `end` < '2025-04-02 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:33:18] Production.INFO: count ==564 [2025-04-02 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:33:05 - End Time 2025-04-02 08:33:05 [2025-04-02 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816979', 'tblTempUsageDetail_20' ) start [2025-04-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816979', 'tblTempUsageDetail_20' ) end [2025-04-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816979', 'tblTempVendorCDR_20' ) start [2025-04-02 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816979', 'tblTempVendorCDR_20' ) end [2025-04-02 08:33:18] Production.INFO: ProcessCDR(1,14816979,1,1,2) [2025-04-02 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816979', 'tblTempUsageDetail_20' ) start [2025-04-02 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816979', 'tblTempUsageDetail_20' ) end [2025-04-02 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:33:22] Production.INFO: ==13280== Releasing lock... [2025-04-02 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:33:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-02 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:34:05 [end_date_ymd] => 2025-04-02 08:34:05 [RateCDR] => 1 ) [2025-04-02 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:34:05' and `end` < '2025-04-02 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:34:18] Production.INFO: count ==587 [2025-04-02 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:34:05 - End Time 2025-04-02 08:34:05 [2025-04-02 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816984', 'tblTempUsageDetail_20' ) start [2025-04-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816984', 'tblTempUsageDetail_20' ) end [2025-04-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816984', 'tblTempVendorCDR_20' ) start [2025-04-02 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816984', 'tblTempVendorCDR_20' ) end [2025-04-02 08:34:18] Production.INFO: ProcessCDR(1,14816984,1,1,2) [2025-04-02 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816984', 'tblTempUsageDetail_20' ) start [2025-04-02 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816984', 'tblTempUsageDetail_20' ) end [2025-04-02 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:34:24] Production.INFO: ==13356== Releasing lock... [2025-04-02 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:35:06 [end_date_ymd] => 2025-04-02 08:35:06 [RateCDR] => 1 ) [2025-04-02 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:35:06' and `end` < '2025-04-02 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:35:19] Production.INFO: count ==605 [2025-04-02 08:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:35:06 - End Time 2025-04-02 08:35:06 [2025-04-02 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816989', 'tblTempUsageDetail_20' ) start [2025-04-02 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816989', 'tblTempUsageDetail_20' ) end [2025-04-02 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816989', 'tblTempVendorCDR_20' ) start [2025-04-02 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816989', 'tblTempVendorCDR_20' ) end [2025-04-02 08:35:19] Production.INFO: ProcessCDR(1,14816989,1,1,2) [2025-04-02 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816989', 'tblTempUsageDetail_20' ) start [2025-04-02 08:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816989', 'tblTempUsageDetail_20' ) end [2025-04-02 08:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:35:25] Production.INFO: ==13431== Releasing lock... [2025-04-02 08:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:35:25] Production.INFO: 33.25 MB #Memory Used# [2025-04-02 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:36:06 [end_date_ymd] => 2025-04-02 08:36:06 [RateCDR] => 1 ) [2025-04-02 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:36:06' and `end` < '2025-04-02 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:36:19] Production.INFO: count ==607 [2025-04-02 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:36:06 - End Time 2025-04-02 08:36:06 [2025-04-02 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816994', 'tblTempUsageDetail_20' ) start [2025-04-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816994', 'tblTempUsageDetail_20' ) end [2025-04-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816994', 'tblTempVendorCDR_20' ) start [2025-04-02 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816994', 'tblTempVendorCDR_20' ) end [2025-04-02 08:36:19] Production.INFO: ProcessCDR(1,14816994,1,1,2) [2025-04-02 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816994', 'tblTempUsageDetail_20' ) start [2025-04-02 08:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816994', 'tblTempUsageDetail_20' ) end [2025-04-02 08:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:36:25] Production.INFO: ==13512== Releasing lock... [2025-04-02 08:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:36:25] Production.INFO: 33 MB #Memory Used# [2025-04-02 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:37:06 [end_date_ymd] => 2025-04-02 08:37:06 [RateCDR] => 1 ) [2025-04-02 08:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:37:06' and `end` < '2025-04-02 08:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:37:19] Production.INFO: count ==607 [2025-04-02 08:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:37:06 - End Time 2025-04-02 08:37:06 [2025-04-02 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816999', 'tblTempUsageDetail_20' ) start [2025-04-02 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14816999', 'tblTempUsageDetail_20' ) end [2025-04-02 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816999', 'tblTempVendorCDR_20' ) start [2025-04-02 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14816999', 'tblTempVendorCDR_20' ) end [2025-04-02 08:37:19] Production.INFO: ProcessCDR(1,14816999,1,1,2) [2025-04-02 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14816999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14816999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14816999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14816999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816999', 'tblTempUsageDetail_20' ) start [2025-04-02 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14816999', 'tblTempUsageDetail_20' ) end [2025-04-02 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:37:23] Production.INFO: ==13598== Releasing lock... [2025-04-02 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:37:23] Production.INFO: 33 MB #Memory Used# [2025-04-02 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:38:05 [end_date_ymd] => 2025-04-02 08:38:05 [RateCDR] => 1 ) [2025-04-02 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:38:05' and `end` < '2025-04-02 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:38:18] Production.INFO: count ==613 [2025-04-02 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:38:05 - End Time 2025-04-02 08:38:05 [2025-04-02 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817004', 'tblTempUsageDetail_20' ) start [2025-04-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817004', 'tblTempUsageDetail_20' ) end [2025-04-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817004', 'tblTempVendorCDR_20' ) start [2025-04-02 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817004', 'tblTempVendorCDR_20' ) end [2025-04-02 08:38:18] Production.INFO: ProcessCDR(1,14817004,1,1,2) [2025-04-02 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817004', 'tblTempUsageDetail_20' ) start [2025-04-02 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817004', 'tblTempUsageDetail_20' ) end [2025-04-02 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:38:24] Production.INFO: ==13669== Releasing lock... [2025-04-02 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:38:24] Production.INFO: 33 MB #Memory Used# [2025-04-02 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:39:05 [end_date_ymd] => 2025-04-02 08:39:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 05:39:05' and `end` < '2025-04-02 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-04-02 08:39:18] Production.INFO: count ==613 [2025-04-02 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:39:05 - End Time 2025-04-02 08:39:05 [2025-04-02 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817009', 'tblTempUsageDetail_20' ) start [2025-04-02 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817009', 'tblTempUsageDetail_20' ) end [2025-04-02 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817009', 'tblTempVendorCDR_20' ) start [2025-04-02 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817009', 'tblTempVendorCDR_20' ) end [2025-04-02 08:39:19] Production.INFO: ProcessCDR(1,14817009,1,1,2) [2025-04-02 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817009', 'tblTempUsageDetail_20' ) start [2025-04-02 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817009', 'tblTempUsageDetail_20' ) end [2025-04-02 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:39:22] Production.INFO: ==13740== Releasing lock... [2025-04-02 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:39:22] Production.INFO: 33 MB #Memory Used# [2025-04-02 08:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:40:07 [end_date_ymd] => 2025-04-02 08:40:07 [RateCDR] => 1 ) [2025-04-02 08:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:40:07' and `end` < '2025-04-02 08:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:40:20] Production.INFO: count ==632 [2025-04-02 08:40:21] Production.ERROR: pbx CDR StartTime 2025-04-02 05:40:07 - End Time 2025-04-02 08:40:07 [2025-04-02 08:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817015', 'tblTempUsageDetail_20' ) start [2025-04-02 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817015', 'tblTempUsageDetail_20' ) end [2025-04-02 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817015', 'tblTempVendorCDR_20' ) start [2025-04-02 08:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817015', 'tblTempVendorCDR_20' ) end [2025-04-02 08:40:21] Production.INFO: ProcessCDR(1,14817015,1,1,2) [2025-04-02 08:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817015', 'tblTempUsageDetail_20' ) start [2025-04-02 08:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817015', 'tblTempUsageDetail_20' ) end [2025-04-02 08:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:40:27] Production.INFO: ==13814== Releasing lock... [2025-04-02 08:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:40:27] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:41:06 [end_date_ymd] => 2025-04-02 08:41:06 [RateCDR] => 1 ) [2025-04-02 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:41:06' and `end` < '2025-04-02 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:41:18] Production.INFO: count ==664 [2025-04-02 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:41:06 - End Time 2025-04-02 08:41:06 [2025-04-02 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817020', 'tblTempUsageDetail_20' ) start [2025-04-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817020', 'tblTempUsageDetail_20' ) end [2025-04-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817020', 'tblTempVendorCDR_20' ) start [2025-04-02 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817020', 'tblTempVendorCDR_20' ) end [2025-04-02 08:41:18] Production.INFO: ProcessCDR(1,14817020,1,1,2) [2025-04-02 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817020', 'tblTempUsageDetail_20' ) start [2025-04-02 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817020', 'tblTempUsageDetail_20' ) end [2025-04-02 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:41:23] Production.INFO: ==13889== Releasing lock... [2025-04-02 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:41:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:42:06 [end_date_ymd] => 2025-04-02 08:42:06 [RateCDR] => 1 ) [2025-04-02 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:42:06' and `end` < '2025-04-02 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:42:19] Production.INFO: count ==677 [2025-04-02 08:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:42:06 - End Time 2025-04-02 08:42:06 [2025-04-02 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817025', 'tblTempUsageDetail_20' ) start [2025-04-02 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817025', 'tblTempUsageDetail_20' ) end [2025-04-02 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817025', 'tblTempVendorCDR_20' ) start [2025-04-02 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817025', 'tblTempVendorCDR_20' ) end [2025-04-02 08:42:19] Production.INFO: ProcessCDR(1,14817025,1,1,2) [2025-04-02 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817025', 'tblTempUsageDetail_20' ) start [2025-04-02 08:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817025', 'tblTempUsageDetail_20' ) end [2025-04-02 08:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:42:25] Production.INFO: ==13960== Releasing lock... [2025-04-02 08:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:42:25] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:43:06 [end_date_ymd] => 2025-04-02 08:43:06 [RateCDR] => 1 ) [2025-04-02 08:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:43:06' and `end` < '2025-04-02 08:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:43:18] Production.INFO: count ==681 [2025-04-02 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:43:06 - End Time 2025-04-02 08:43:06 [2025-04-02 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817030', 'tblTempUsageDetail_20' ) start [2025-04-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817030', 'tblTempUsageDetail_20' ) end [2025-04-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817030', 'tblTempVendorCDR_20' ) start [2025-04-02 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817030', 'tblTempVendorCDR_20' ) end [2025-04-02 08:43:18] Production.INFO: ProcessCDR(1,14817030,1,1,2) [2025-04-02 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817030', 'tblTempUsageDetail_20' ) start [2025-04-02 08:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817030', 'tblTempUsageDetail_20' ) end [2025-04-02 08:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:43:24] Production.INFO: ==14034== Releasing lock... [2025-04-02 08:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:43:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:44:06 [end_date_ymd] => 2025-04-02 08:44:06 [RateCDR] => 1 ) [2025-04-02 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:44:06' and `end` < '2025-04-02 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:44:19] Production.INFO: count ==684 [2025-04-02 08:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:44:06 - End Time 2025-04-02 08:44:06 [2025-04-02 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817035', 'tblTempUsageDetail_20' ) start [2025-04-02 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817035', 'tblTempUsageDetail_20' ) end [2025-04-02 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817035', 'tblTempVendorCDR_20' ) start [2025-04-02 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817035', 'tblTempVendorCDR_20' ) end [2025-04-02 08:44:19] Production.INFO: ProcessCDR(1,14817035,1,1,2) [2025-04-02 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817035', 'tblTempUsageDetail_20' ) start [2025-04-02 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817035', 'tblTempUsageDetail_20' ) end [2025-04-02 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:44:23] Production.INFO: ==14106== Releasing lock... [2025-04-02 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:45:05 [end_date_ymd] => 2025-04-02 08:45:05 [RateCDR] => 1 ) [2025-04-02 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:45:05' and `end` < '2025-04-02 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:45:18] Production.INFO: count ==693 [2025-04-02 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:45:05 - End Time 2025-04-02 08:45:05 [2025-04-02 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817040', 'tblTempUsageDetail_20' ) start [2025-04-02 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817040', 'tblTempUsageDetail_20' ) end [2025-04-02 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817040', 'tblTempVendorCDR_20' ) start [2025-04-02 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817040', 'tblTempVendorCDR_20' ) end [2025-04-02 08:45:19] Production.INFO: ProcessCDR(1,14817040,1,1,2) [2025-04-02 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817040', 'tblTempUsageDetail_20' ) start [2025-04-02 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817040', 'tblTempUsageDetail_20' ) end [2025-04-02 08:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:45:24] Production.INFO: ==14180== Releasing lock... [2025-04-02 08:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:45:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:46:06 [end_date_ymd] => 2025-04-02 08:46:06 [RateCDR] => 1 ) [2025-04-02 08:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:46:06' and `end` < '2025-04-02 08:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:46:19] Production.INFO: count ==687 [2025-04-02 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:46:06 - End Time 2025-04-02 08:46:06 [2025-04-02 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817045', 'tblTempUsageDetail_20' ) start [2025-04-02 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817045', 'tblTempUsageDetail_20' ) end [2025-04-02 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817045', 'tblTempVendorCDR_20' ) start [2025-04-02 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817045', 'tblTempVendorCDR_20' ) end [2025-04-02 08:46:19] Production.INFO: ProcessCDR(1,14817045,1,1,2) [2025-04-02 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817045', 'tblTempUsageDetail_20' ) start [2025-04-02 08:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817045', 'tblTempUsageDetail_20' ) end [2025-04-02 08:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:46:25] Production.INFO: ==14249== Releasing lock... [2025-04-02 08:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:46:25] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:47:06 [end_date_ymd] => 2025-04-02 08:47:06 [RateCDR] => 1 ) [2025-04-02 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:47:06' and `end` < '2025-04-02 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:47:18] Production.INFO: count ==706 [2025-04-02 08:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:47:06 - End Time 2025-04-02 08:47:06 [2025-04-02 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817050', 'tblTempUsageDetail_20' ) start [2025-04-02 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817050', 'tblTempUsageDetail_20' ) end [2025-04-02 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817050', 'tblTempVendorCDR_20' ) start [2025-04-02 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817050', 'tblTempVendorCDR_20' ) end [2025-04-02 08:47:19] Production.INFO: ProcessCDR(1,14817050,1,1,2) [2025-04-02 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817050', 'tblTempUsageDetail_20' ) start [2025-04-02 08:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817050', 'tblTempUsageDetail_20' ) end [2025-04-02 08:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:47:25] Production.INFO: ==14322== Releasing lock... [2025-04-02 08:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:47:25] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:48:06 [end_date_ymd] => 2025-04-02 08:48:06 [RateCDR] => 1 ) [2025-04-02 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:48:06' and `end` < '2025-04-02 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:48:19] Production.INFO: count ==706 [2025-04-02 08:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:48:06 - End Time 2025-04-02 08:48:06 [2025-04-02 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817055', 'tblTempUsageDetail_20' ) start [2025-04-02 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817055', 'tblTempUsageDetail_20' ) end [2025-04-02 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817055', 'tblTempVendorCDR_20' ) start [2025-04-02 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817055', 'tblTempVendorCDR_20' ) end [2025-04-02 08:48:19] Production.INFO: ProcessCDR(1,14817055,1,1,2) [2025-04-02 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817055', 'tblTempUsageDetail_20' ) start [2025-04-02 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817055', 'tblTempUsageDetail_20' ) end [2025-04-02 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:48:23] Production.INFO: ==14436== Releasing lock... [2025-04-02 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:48:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:49:06 [end_date_ymd] => 2025-04-02 08:49:06 [RateCDR] => 1 ) [2025-04-02 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:49:06' and `end` < '2025-04-02 08:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:49:18] Production.INFO: count ==715 [2025-04-02 08:49:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:49:06 - End Time 2025-04-02 08:49:06 [2025-04-02 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817060', 'tblTempUsageDetail_20' ) start [2025-04-02 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817060', 'tblTempUsageDetail_20' ) end [2025-04-02 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817060', 'tblTempVendorCDR_20' ) start [2025-04-02 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817060', 'tblTempVendorCDR_20' ) end [2025-04-02 08:49:19] Production.INFO: ProcessCDR(1,14817060,1,1,2) [2025-04-02 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817060', 'tblTempUsageDetail_20' ) start [2025-04-02 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817060', 'tblTempUsageDetail_20' ) end [2025-04-02 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:49:22] Production.INFO: ==14508== Releasing lock... [2025-04-02 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:49:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-02 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:50:07 [end_date_ymd] => 2025-04-02 08:50:07 [RateCDR] => 1 ) [2025-04-02 08:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:50:07' and `end` < '2025-04-02 08:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:50:19] Production.INFO: count ==731 [2025-04-02 08:50:20] Production.ERROR: pbx CDR StartTime 2025-04-02 05:50:07 - End Time 2025-04-02 08:50:07 [2025-04-02 08:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817065', 'tblTempUsageDetail_20' ) start [2025-04-02 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817065', 'tblTempUsageDetail_20' ) end [2025-04-02 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817065', 'tblTempVendorCDR_20' ) start [2025-04-02 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817065', 'tblTempVendorCDR_20' ) end [2025-04-02 08:50:20] Production.INFO: ProcessCDR(1,14817065,1,1,2) [2025-04-02 08:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817065', 'tblTempUsageDetail_20' ) start [2025-04-02 08:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817065', 'tblTempUsageDetail_20' ) end [2025-04-02 08:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:50:25] Production.INFO: ==14583== Releasing lock... [2025-04-02 08:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:50:25] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:51:05 [end_date_ymd] => 2025-04-02 08:51:05 [RateCDR] => 1 ) [2025-04-02 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:51:05' and `end` < '2025-04-02 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:51:18] Production.INFO: count ==759 [2025-04-02 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:51:05 - End Time 2025-04-02 08:51:05 [2025-04-02 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817071', 'tblTempUsageDetail_20' ) start [2025-04-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817071', 'tblTempUsageDetail_20' ) end [2025-04-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817071', 'tblTempVendorCDR_20' ) start [2025-04-02 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817071', 'tblTempVendorCDR_20' ) end [2025-04-02 08:51:18] Production.INFO: ProcessCDR(1,14817071,1,1,2) [2025-04-02 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817071', 'tblTempUsageDetail_20' ) start [2025-04-02 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817071', 'tblTempUsageDetail_20' ) end [2025-04-02 08:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:51:24] Production.INFO: ==14657== Releasing lock... [2025-04-02 08:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:51:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:52:06 [end_date_ymd] => 2025-04-02 08:52:06 [RateCDR] => 1 ) [2025-04-02 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:52:06' and `end` < '2025-04-02 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:52:18] Production.INFO: count ==760 [2025-04-02 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:52:06 - End Time 2025-04-02 08:52:06 [2025-04-02 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817076', 'tblTempUsageDetail_20' ) start [2025-04-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817076', 'tblTempUsageDetail_20' ) end [2025-04-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817076', 'tblTempVendorCDR_20' ) start [2025-04-02 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817076', 'tblTempVendorCDR_20' ) end [2025-04-02 08:52:19] Production.INFO: ProcessCDR(1,14817076,1,1,2) [2025-04-02 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817076', 'tblTempUsageDetail_20' ) start [2025-04-02 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817076', 'tblTempUsageDetail_20' ) end [2025-04-02 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:52:24] Production.INFO: ==14727== Releasing lock... [2025-04-02 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:52:24] Production.INFO: 34 MB #Memory Used# [2025-04-02 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:53:06 [end_date_ymd] => 2025-04-02 08:53:06 [RateCDR] => 1 ) [2025-04-02 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:53:06' and `end` < '2025-04-02 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:53:18] Production.INFO: count ==763 [2025-04-02 08:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:53:06 - End Time 2025-04-02 08:53:06 [2025-04-02 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817081', 'tblTempUsageDetail_20' ) start [2025-04-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817081', 'tblTempUsageDetail_20' ) end [2025-04-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817081', 'tblTempVendorCDR_20' ) start [2025-04-02 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817081', 'tblTempVendorCDR_20' ) end [2025-04-02 08:53:19] Production.INFO: ProcessCDR(1,14817081,1,1,2) [2025-04-02 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817081', 'tblTempUsageDetail_20' ) start [2025-04-02 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817081', 'tblTempUsageDetail_20' ) end [2025-04-02 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:53:24] Production.INFO: ==14804== Releasing lock... [2025-04-02 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:53:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:54:06 [end_date_ymd] => 2025-04-02 08:54:06 [RateCDR] => 1 ) [2025-04-02 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:54:06' and `end` < '2025-04-02 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:54:19] Production.INFO: count ==770 [2025-04-02 08:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:54:06 - End Time 2025-04-02 08:54:06 [2025-04-02 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817086', 'tblTempUsageDetail_20' ) start [2025-04-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817086', 'tblTempUsageDetail_20' ) end [2025-04-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817086', 'tblTempVendorCDR_20' ) start [2025-04-02 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817086', 'tblTempVendorCDR_20' ) end [2025-04-02 08:54:19] Production.INFO: ProcessCDR(1,14817086,1,1,2) [2025-04-02 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817086', 'tblTempUsageDetail_20' ) start [2025-04-02 08:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817086', 'tblTempUsageDetail_20' ) end [2025-04-02 08:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:54:25] Production.INFO: ==14878== Releasing lock... [2025-04-02 08:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:54:25] Production.INFO: 33.75 MB #Memory Used# [2025-04-02 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:55:05 [end_date_ymd] => 2025-04-02 08:55:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 05:55:05' and `end` < '2025-04-02 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-04-02 08:55:18] Production.INFO: count ==781 [2025-04-02 08:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:55:05 - End Time 2025-04-02 08:55:05 [2025-04-02 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817091', 'tblTempUsageDetail_20' ) start [2025-04-02 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817091', 'tblTempUsageDetail_20' ) end [2025-04-02 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817091', 'tblTempVendorCDR_20' ) start [2025-04-02 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817091', 'tblTempVendorCDR_20' ) end [2025-04-02 08:55:19] Production.INFO: ProcessCDR(1,14817091,1,1,2) [2025-04-02 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817091', 'tblTempUsageDetail_20' ) start [2025-04-02 08:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817091', 'tblTempUsageDetail_20' ) end [2025-04-02 08:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:55:25] Production.INFO: ==14957== Releasing lock... [2025-04-02 08:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:55:25] Production.INFO: 34.25 MB #Memory Used# [2025-04-02 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:56:06 [end_date_ymd] => 2025-04-02 08:56:06 [RateCDR] => 1 ) [2025-04-02 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:56:06' and `end` < '2025-04-02 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:56:19] Production.INFO: count ==811 [2025-04-02 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:56:06 - End Time 2025-04-02 08:56:06 [2025-04-02 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817096', 'tblTempUsageDetail_20' ) start [2025-04-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817096', 'tblTempUsageDetail_20' ) end [2025-04-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817096', 'tblTempVendorCDR_20' ) start [2025-04-02 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817096', 'tblTempVendorCDR_20' ) end [2025-04-02 08:56:19] Production.INFO: ProcessCDR(1,14817096,1,1,2) [2025-04-02 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817096', 'tblTempUsageDetail_20' ) start [2025-04-02 08:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817096', 'tblTempUsageDetail_20' ) end [2025-04-02 08:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:56:25] Production.INFO: ==15037== Releasing lock... [2025-04-02 08:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:56:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-02 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:57:06 [end_date_ymd] => 2025-04-02 08:57:06 [RateCDR] => 1 ) [2025-04-02 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:57:06' and `end` < '2025-04-02 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:57:18] Production.INFO: count ==828 [2025-04-02 08:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:57:06 - End Time 2025-04-02 08:57:06 [2025-04-02 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817101', 'tblTempUsageDetail_20' ) start [2025-04-02 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817101', 'tblTempUsageDetail_20' ) end [2025-04-02 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817101', 'tblTempVendorCDR_20' ) start [2025-04-02 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817101', 'tblTempVendorCDR_20' ) end [2025-04-02 08:57:19] Production.INFO: ProcessCDR(1,14817101,1,1,2) [2025-04-02 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817101', 'tblTempUsageDetail_20' ) start [2025-04-02 08:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817101', 'tblTempUsageDetail_20' ) end [2025-04-02 08:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:57:25] Production.INFO: ==15107== Releasing lock... [2025-04-02 08:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:57:25] Production.INFO: 34 MB #Memory Used# [2025-04-02 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:58:06 [end_date_ymd] => 2025-04-02 08:58:06 [RateCDR] => 1 ) [2025-04-02 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:58:06' and `end` < '2025-04-02 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:58:19] Production.INFO: count ==828 [2025-04-02 08:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 05:58:06 - End Time 2025-04-02 08:58:06 [2025-04-02 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817106', 'tblTempUsageDetail_20' ) start [2025-04-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817106', 'tblTempUsageDetail_20' ) end [2025-04-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817106', 'tblTempVendorCDR_20' ) start [2025-04-02 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817106', 'tblTempVendorCDR_20' ) end [2025-04-02 08:58:19] Production.INFO: ProcessCDR(1,14817106,1,1,2) [2025-04-02 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817106', 'tblTempUsageDetail_20' ) start [2025-04-02 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817106', 'tblTempUsageDetail_20' ) end [2025-04-02 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:58:23] Production.INFO: ==15179== Releasing lock... [2025-04-02 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:58:23] Production.INFO: 34 MB #Memory Used# [2025-04-02 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 05:59:05 [end_date_ymd] => 2025-04-02 08:59:05 [RateCDR] => 1 ) [2025-04-02 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 05:59:05' and `end` < '2025-04-02 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 08:59:18] Production.INFO: count ==844 [2025-04-02 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 05:59:05 - End Time 2025-04-02 08:59:05 [2025-04-02 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817111', 'tblTempUsageDetail_20' ) start [2025-04-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817111', 'tblTempUsageDetail_20' ) end [2025-04-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817111', 'tblTempVendorCDR_20' ) start [2025-04-02 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817111', 'tblTempVendorCDR_20' ) end [2025-04-02 08:59:18] Production.INFO: ProcessCDR(1,14817111,1,1,2) [2025-04-02 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817111', 'tblTempUsageDetail_20' ) start [2025-04-02 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817111', 'tblTempUsageDetail_20' ) end [2025-04-02 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 08:59:24] Production.INFO: ==15252== Releasing lock... [2025-04-02 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 08:59:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-02 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:00:06 [end_date_ymd] => 2025-04-02 09:00:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:00:06' and `end` < '2025-04-02 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-04-02 09:00:19] Production.INFO: count ==851 [2025-04-02 09:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:00:06 - End Time 2025-04-02 09:00:06 [2025-04-02 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817116', 'tblTempUsageDetail_20' ) start [2025-04-02 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817116', 'tblTempUsageDetail_20' ) end [2025-04-02 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817116', 'tblTempVendorCDR_20' ) start [2025-04-02 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817116', 'tblTempVendorCDR_20' ) end [2025-04-02 09:00:20] Production.INFO: ProcessCDR(1,14817116,1,1,2) [2025-04-02 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817116', 'tblTempUsageDetail_20' ) start [2025-04-02 09:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817116', 'tblTempUsageDetail_20' ) end [2025-04-02 09:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:00:26] Production.INFO: ==15327== Releasing lock... [2025-04-02 09:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:00:26] Production.INFO: 34.5 MB #Memory Used# [2025-04-02 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:01:05 [end_date_ymd] => 2025-04-02 09:01:05 [RateCDR] => 1 ) [2025-04-02 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:01:05' and `end` < '2025-04-02 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:01:18] Production.INFO: count ==896 [2025-04-02 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:01:05 - End Time 2025-04-02 09:01:05 [2025-04-02 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817122', 'tblTempUsageDetail_20' ) start [2025-04-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817122', 'tblTempUsageDetail_20' ) end [2025-04-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817122', 'tblTempVendorCDR_20' ) start [2025-04-02 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817122', 'tblTempVendorCDR_20' ) end [2025-04-02 09:01:18] Production.INFO: ProcessCDR(1,14817122,1,1,2) [2025-04-02 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817122', 'tblTempUsageDetail_20' ) start [2025-04-02 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817122', 'tblTempUsageDetail_20' ) end [2025-04-02 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:01:22] Production.INFO: ==15414== Releasing lock... [2025-04-02 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:01:22] Production.INFO: 35 MB #Memory Used# [2025-04-02 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:02:06 [end_date_ymd] => 2025-04-02 09:02:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:02:06' and `end` < '2025-04-02 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-04-02 09:02:19] Production.INFO: count ==922 [2025-04-02 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:02:06 - End Time 2025-04-02 09:02:06 [2025-04-02 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817127', 'tblTempUsageDetail_20' ) start [2025-04-02 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817127', 'tblTempUsageDetail_20' ) end [2025-04-02 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817127', 'tblTempVendorCDR_20' ) start [2025-04-02 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817127', 'tblTempVendorCDR_20' ) end [2025-04-02 09:02:19] Production.INFO: ProcessCDR(1,14817127,1,1,2) [2025-04-02 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817127', 'tblTempUsageDetail_20' ) start [2025-04-02 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817127', 'tblTempUsageDetail_20' ) end [2025-04-02 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:02:25] Production.INFO: ==15490== Releasing lock... [2025-04-02 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:02:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-02 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:03:05 [end_date_ymd] => 2025-04-02 09:03:05 [RateCDR] => 1 ) [2025-04-02 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:03:05' and `end` < '2025-04-02 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:03:18] Production.INFO: count ==923 [2025-04-02 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:03:05 - End Time 2025-04-02 09:03:05 [2025-04-02 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817132', 'tblTempUsageDetail_20' ) start [2025-04-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817132', 'tblTempUsageDetail_20' ) end [2025-04-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817132', 'tblTempVendorCDR_20' ) start [2025-04-02 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817132', 'tblTempVendorCDR_20' ) end [2025-04-02 09:03:19] Production.INFO: ProcessCDR(1,14817132,1,1,2) [2025-04-02 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817132', 'tblTempUsageDetail_20' ) start [2025-04-02 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817132', 'tblTempUsageDetail_20' ) end [2025-04-02 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:03:22] Production.INFO: ==15564== Releasing lock... [2025-04-02 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:03:22] Production.INFO: 35 MB #Memory Used# [2025-04-02 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:04:06 [end_date_ymd] => 2025-04-02 09:04:06 [RateCDR] => 1 ) [2025-04-02 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:04:06' and `end` < '2025-04-02 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:04:19] Production.INFO: count ==931 [2025-04-02 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:04:06 - End Time 2025-04-02 09:04:06 [2025-04-02 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817137', 'tblTempUsageDetail_20' ) start [2025-04-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817137', 'tblTempUsageDetail_20' ) end [2025-04-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817137', 'tblTempVendorCDR_20' ) start [2025-04-02 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817137', 'tblTempVendorCDR_20' ) end [2025-04-02 09:04:19] Production.INFO: ProcessCDR(1,14817137,1,1,2) [2025-04-02 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817137', 'tblTempUsageDetail_20' ) start [2025-04-02 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817137', 'tblTempUsageDetail_20' ) end [2025-04-02 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:04:25] Production.INFO: ==15675== Releasing lock... [2025-04-02 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:04:25] Production.INFO: 36 MB #Memory Used# [2025-04-02 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:05:06 [end_date_ymd] => 2025-04-02 09:05:06 [RateCDR] => 1 ) [2025-04-02 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:05:06' and `end` < '2025-04-02 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:05:19] Production.INFO: count ==937 [2025-04-02 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:05:06 - End Time 2025-04-02 09:05:06 [2025-04-02 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817142', 'tblTempUsageDetail_20' ) start [2025-04-02 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817142', 'tblTempUsageDetail_20' ) end [2025-04-02 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817142', 'tblTempVendorCDR_20' ) start [2025-04-02 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817142', 'tblTempVendorCDR_20' ) end [2025-04-02 09:05:19] Production.INFO: ProcessCDR(1,14817142,1,1,2) [2025-04-02 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817142', 'tblTempUsageDetail_20' ) start [2025-04-02 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817142', 'tblTempUsageDetail_20' ) end [2025-04-02 09:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:05:25] Production.INFO: ==15747== Releasing lock... [2025-04-02 09:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:05:25] Production.INFO: 35.25 MB #Memory Used# [2025-04-02 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:06:06 [end_date_ymd] => 2025-04-02 09:06:06 [RateCDR] => 1 ) [2025-04-02 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:06:06' and `end` < '2025-04-02 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:06:19] Production.INFO: count ==939 [2025-04-02 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:06:06 - End Time 2025-04-02 09:06:06 [2025-04-02 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817147', 'tblTempUsageDetail_20' ) start [2025-04-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817147', 'tblTempUsageDetail_20' ) end [2025-04-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817147', 'tblTempVendorCDR_20' ) start [2025-04-02 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817147', 'tblTempVendorCDR_20' ) end [2025-04-02 09:06:19] Production.INFO: ProcessCDR(1,14817147,1,1,2) [2025-04-02 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817147', 'tblTempUsageDetail_20' ) start [2025-04-02 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817147', 'tblTempUsageDetail_20' ) end [2025-04-02 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:06:25] Production.INFO: ==15817== Releasing lock... [2025-04-02 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:06:25] Production.INFO: 35.5 MB #Memory Used# [2025-04-02 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:07:06 [end_date_ymd] => 2025-04-02 09:07:06 [RateCDR] => 1 ) [2025-04-02 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:07:06' and `end` < '2025-04-02 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:07:18] Production.INFO: count ==955 [2025-04-02 09:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:07:06 - End Time 2025-04-02 09:07:06 [2025-04-02 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817152', 'tblTempUsageDetail_20' ) start [2025-04-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817152', 'tblTempUsageDetail_20' ) end [2025-04-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817152', 'tblTempVendorCDR_20' ) start [2025-04-02 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817152', 'tblTempVendorCDR_20' ) end [2025-04-02 09:07:19] Production.INFO: ProcessCDR(1,14817152,1,1,2) [2025-04-02 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817152', 'tblTempUsageDetail_20' ) start [2025-04-02 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817152', 'tblTempUsageDetail_20' ) end [2025-04-02 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:07:25] Production.INFO: ==15886== Releasing lock... [2025-04-02 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:07:25] Production.INFO: 35.5 MB #Memory Used# [2025-04-02 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:08:05 [end_date_ymd] => 2025-04-02 09:08:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:08:05' and `end` < '2025-04-02 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-04-02 09:08:18] Production.INFO: count ==973 [2025-04-02 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:08:05 - End Time 2025-04-02 09:08:05 [2025-04-02 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817157', 'tblTempUsageDetail_20' ) start [2025-04-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817157', 'tblTempUsageDetail_20' ) end [2025-04-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817157', 'tblTempVendorCDR_20' ) start [2025-04-02 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817157', 'tblTempVendorCDR_20' ) end [2025-04-02 09:08:19] Production.INFO: ProcessCDR(1,14817157,1,1,2) [2025-04-02 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817157', 'tblTempUsageDetail_20' ) start [2025-04-02 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817157', 'tblTempUsageDetail_20' ) end [2025-04-02 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:08:25] Production.INFO: ==15957== Releasing lock... [2025-04-02 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:08:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-02 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:09:05 [end_date_ymd] => 2025-04-02 09:09:05 [RateCDR] => 1 ) [2025-04-02 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:09:05' and `end` < '2025-04-02 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:09:18] Production.INFO: count ==983 [2025-04-02 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:09:05 - End Time 2025-04-02 09:09:05 [2025-04-02 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817162', 'tblTempUsageDetail_20' ) start [2025-04-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817162', 'tblTempUsageDetail_20' ) end [2025-04-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817162', 'tblTempVendorCDR_20' ) start [2025-04-02 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817162', 'tblTempVendorCDR_20' ) end [2025-04-02 09:09:19] Production.INFO: ProcessCDR(1,14817162,1,1,2) [2025-04-02 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817162', 'tblTempUsageDetail_20' ) start [2025-04-02 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817162', 'tblTempUsageDetail_20' ) end [2025-04-02 09:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:09:25] Production.INFO: ==16031== Releasing lock... [2025-04-02 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:09:25] Production.INFO: 36 MB #Memory Used# [2025-04-02 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:10:06 [end_date_ymd] => 2025-04-02 09:10:06 [RateCDR] => 1 ) [2025-04-02 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:10:06' and `end` < '2025-04-02 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:10:19] Production.INFO: count ==994 [2025-04-02 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:10:06 - End Time 2025-04-02 09:10:06 [2025-04-02 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817168', 'tblTempUsageDetail_20' ) start [2025-04-02 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817168', 'tblTempUsageDetail_20' ) end [2025-04-02 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817168', 'tblTempVendorCDR_20' ) start [2025-04-02 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817168', 'tblTempVendorCDR_20' ) end [2025-04-02 09:10:20] Production.INFO: ProcessCDR(1,14817168,1,1,2) [2025-04-02 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817168', 'tblTempUsageDetail_20' ) start [2025-04-02 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817168', 'tblTempUsageDetail_20' ) end [2025-04-02 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:10:25] Production.INFO: ==16106== Releasing lock... [2025-04-02 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:10:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-02 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:11:05 [end_date_ymd] => 2025-04-02 09:11:05 [RateCDR] => 1 ) [2025-04-02 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:11:05' and `end` < '2025-04-02 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:11:18] Production.INFO: count ==1058 [2025-04-02 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:11:05 - End Time 2025-04-02 09:11:05 [2025-04-02 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817173', 'tblTempUsageDetail_20' ) start [2025-04-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817173', 'tblTempUsageDetail_20' ) end [2025-04-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817173', 'tblTempVendorCDR_20' ) start [2025-04-02 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817173', 'tblTempVendorCDR_20' ) end [2025-04-02 09:11:18] Production.INFO: ProcessCDR(1,14817173,1,1,2) [2025-04-02 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817173', 'tblTempUsageDetail_20' ) start [2025-04-02 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817173', 'tblTempUsageDetail_20' ) end [2025-04-02 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:11:24] Production.INFO: ==16187== Releasing lock... [2025-04-02 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:11:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-02 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:12:06 [end_date_ymd] => 2025-04-02 09:12:06 [RateCDR] => 1 ) [2025-04-02 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:12:06' and `end` < '2025-04-02 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:12:19] Production.INFO: count ==1065 [2025-04-02 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:12:06 - End Time 2025-04-02 09:12:06 [2025-04-02 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817177', 'tblTempUsageDetail_20' ) start [2025-04-02 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817177', 'tblTempUsageDetail_20' ) end [2025-04-02 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817177', 'tblTempVendorCDR_20' ) start [2025-04-02 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817177', 'tblTempVendorCDR_20' ) end [2025-04-02 09:12:19] Production.INFO: ProcessCDR(1,14817177,1,1,2) [2025-04-02 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817177', 'tblTempUsageDetail_20' ) start [2025-04-02 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817177', 'tblTempUsageDetail_20' ) end [2025-04-02 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:12:25] Production.INFO: ==16258== Releasing lock... [2025-04-02 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:12:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-02 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:13:05 [end_date_ymd] => 2025-04-02 09:13:05 [RateCDR] => 1 ) [2025-04-02 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:13:05' and `end` < '2025-04-02 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:13:18] Production.INFO: count ==1077 [2025-04-02 09:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:13:05 - End Time 2025-04-02 09:13:05 [2025-04-02 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817183', 'tblTempUsageDetail_20' ) start [2025-04-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817183', 'tblTempUsageDetail_20' ) end [2025-04-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817183', 'tblTempVendorCDR_20' ) start [2025-04-02 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817183', 'tblTempVendorCDR_20' ) end [2025-04-02 09:13:19] Production.INFO: ProcessCDR(1,14817183,1,1,2) [2025-04-02 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817183', 'tblTempUsageDetail_20' ) start [2025-04-02 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817183', 'tblTempUsageDetail_20' ) end [2025-04-02 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:13:22] Production.INFO: ==16330== Releasing lock... [2025-04-02 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:13:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-02 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:14:06 [end_date_ymd] => 2025-04-02 09:14:06 [RateCDR] => 1 ) [2025-04-02 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:14:06' and `end` < '2025-04-02 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:14:18] Production.INFO: count ==1089 [2025-04-02 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:14:06 - End Time 2025-04-02 09:14:06 [2025-04-02 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817188', 'tblTempUsageDetail_20' ) start [2025-04-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817188', 'tblTempUsageDetail_20' ) end [2025-04-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817188', 'tblTempVendorCDR_20' ) start [2025-04-02 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817188', 'tblTempVendorCDR_20' ) end [2025-04-02 09:14:19] Production.INFO: ProcessCDR(1,14817188,1,1,2) [2025-04-02 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817188', 'tblTempUsageDetail_20' ) start [2025-04-02 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817188', 'tblTempUsageDetail_20' ) end [2025-04-02 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:14:23] Production.INFO: ==16404== Releasing lock... [2025-04-02 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:14:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-02 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:15:06 [end_date_ymd] => 2025-04-02 09:15:06 [RateCDR] => 1 ) [2025-04-02 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:15:06' and `end` < '2025-04-02 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:15:18] Production.INFO: count ==1097 [2025-04-02 09:15:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:15:06 - End Time 2025-04-02 09:15:06 [2025-04-02 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817193', 'tblTempUsageDetail_20' ) start [2025-04-02 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817193', 'tblTempUsageDetail_20' ) end [2025-04-02 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817193', 'tblTempVendorCDR_20' ) start [2025-04-02 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817193', 'tblTempVendorCDR_20' ) end [2025-04-02 09:15:19] Production.INFO: ProcessCDR(1,14817193,1,1,2) [2025-04-02 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817193', 'tblTempUsageDetail_20' ) start [2025-04-02 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817193', 'tblTempUsageDetail_20' ) end [2025-04-02 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:15:24] Production.INFO: ==16484== Releasing lock... [2025-04-02 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:15:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-02 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:16:05 [end_date_ymd] => 2025-04-02 09:16:05 [RateCDR] => 1 ) [2025-04-02 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:16:05' and `end` < '2025-04-02 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:16:18] Production.INFO: count ==1109 [2025-04-02 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:16:05 - End Time 2025-04-02 09:16:05 [2025-04-02 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817198', 'tblTempUsageDetail_20' ) start [2025-04-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817198', 'tblTempUsageDetail_20' ) end [2025-04-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817198', 'tblTempVendorCDR_20' ) start [2025-04-02 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817198', 'tblTempVendorCDR_20' ) end [2025-04-02 09:16:18] Production.INFO: ProcessCDR(1,14817198,1,1,2) [2025-04-02 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817198', 'tblTempUsageDetail_20' ) start [2025-04-02 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817198', 'tblTempUsageDetail_20' ) end [2025-04-02 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:16:22] Production.INFO: ==16567== Releasing lock... [2025-04-02 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:16:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-02 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:17:05 [end_date_ymd] => 2025-04-02 09:17:05 [RateCDR] => 1 ) [2025-04-02 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:17:05' and `end` < '2025-04-02 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:17:18] Production.INFO: count ==1110 [2025-04-02 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:17:05 - End Time 2025-04-02 09:17:05 [2025-04-02 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817203', 'tblTempUsageDetail_20' ) start [2025-04-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817203', 'tblTempUsageDetail_20' ) end [2025-04-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817203', 'tblTempVendorCDR_20' ) start [2025-04-02 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817203', 'tblTempVendorCDR_20' ) end [2025-04-02 09:17:19] Production.INFO: ProcessCDR(1,14817203,1,1,2) [2025-04-02 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817203', 'tblTempUsageDetail_20' ) start [2025-04-02 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817203', 'tblTempUsageDetail_20' ) end [2025-04-02 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:17:22] Production.INFO: ==16637== Releasing lock... [2025-04-02 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:17:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-02 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:18:05 [end_date_ymd] => 2025-04-02 09:18:05 [RateCDR] => 1 ) [2025-04-02 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:18:05' and `end` < '2025-04-02 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:18:18] Production.INFO: count ==1124 [2025-04-02 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:18:05 - End Time 2025-04-02 09:18:05 [2025-04-02 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817208', 'tblTempUsageDetail_20' ) start [2025-04-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817208', 'tblTempUsageDetail_20' ) end [2025-04-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817208', 'tblTempVendorCDR_20' ) start [2025-04-02 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817208', 'tblTempVendorCDR_20' ) end [2025-04-02 09:18:18] Production.INFO: ProcessCDR(1,14817208,1,1,2) [2025-04-02 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817208', 'tblTempUsageDetail_20' ) start [2025-04-02 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817208', 'tblTempUsageDetail_20' ) end [2025-04-02 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:18:22] Production.INFO: ==16718== Releasing lock... [2025-04-02 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-02 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:19:06 [end_date_ymd] => 2025-04-02 09:19:06 [RateCDR] => 1 ) [2025-04-02 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:19:06' and `end` < '2025-04-02 09:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:19:18] Production.INFO: count ==1135 [2025-04-02 09:19:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:19:06 - End Time 2025-04-02 09:19:06 [2025-04-02 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817213', 'tblTempUsageDetail_20' ) start [2025-04-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817213', 'tblTempUsageDetail_20' ) end [2025-04-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817213', 'tblTempVendorCDR_20' ) start [2025-04-02 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817213', 'tblTempVendorCDR_20' ) end [2025-04-02 09:19:19] Production.INFO: ProcessCDR(1,14817213,1,1,2) [2025-04-02 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817213', 'tblTempUsageDetail_20' ) start [2025-04-02 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817213', 'tblTempUsageDetail_20' ) end [2025-04-02 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:19:24] Production.INFO: ==16831== Releasing lock... [2025-04-02 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:19:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-02 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:20:06 [end_date_ymd] => 2025-04-02 09:20:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:20:06' and `end` < '2025-04-02 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-04-02 09:20:19] Production.INFO: count ==1151 [2025-04-02 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:20:06 - End Time 2025-04-02 09:20:06 [2025-04-02 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817219', 'tblTempUsageDetail_20' ) start [2025-04-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817219', 'tblTempUsageDetail_20' ) end [2025-04-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817219', 'tblTempVendorCDR_20' ) start [2025-04-02 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817219', 'tblTempVendorCDR_20' ) end [2025-04-02 09:20:19] Production.INFO: ProcessCDR(1,14817219,1,1,2) [2025-04-02 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817219', 'tblTempUsageDetail_20' ) start [2025-04-02 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817219', 'tblTempUsageDetail_20' ) end [2025-04-02 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:20:25] Production.INFO: ==16908== Releasing lock... [2025-04-02 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:20:25] Production.INFO: 37 MB #Memory Used# [2025-04-02 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:21:06 [end_date_ymd] => 2025-04-02 09:21:06 [RateCDR] => 1 ) [2025-04-02 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:21:06' and `end` < '2025-04-02 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:21:19] Production.INFO: count ==1275 [2025-04-02 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:21:06 - End Time 2025-04-02 09:21:06 [2025-04-02 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817224', 'tblTempUsageDetail_20' ) start [2025-04-02 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817224', 'tblTempUsageDetail_20' ) end [2025-04-02 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817224', 'tblTempVendorCDR_20' ) start [2025-04-02 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817224', 'tblTempVendorCDR_20' ) end [2025-04-02 09:21:20] Production.INFO: ProcessCDR(1,14817224,1,1,2) [2025-04-02 09:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817224', 'tblTempUsageDetail_20' ) start [2025-04-02 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817224', 'tblTempUsageDetail_20' ) end [2025-04-02 09:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:21:25] Production.INFO: ==16980== Releasing lock... [2025-04-02 09:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:21:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:22:05 [end_date_ymd] => 2025-04-02 09:22:05 [RateCDR] => 1 ) [2025-04-02 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:22:05' and `end` < '2025-04-02 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:22:18] Production.INFO: count ==1288 [2025-04-02 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:22:05 - End Time 2025-04-02 09:22:05 [2025-04-02 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817229', 'tblTempUsageDetail_20' ) start [2025-04-02 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817229', 'tblTempUsageDetail_20' ) end [2025-04-02 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817229', 'tblTempVendorCDR_20' ) start [2025-04-02 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817229', 'tblTempVendorCDR_20' ) end [2025-04-02 09:22:19] Production.INFO: ProcessCDR(1,14817229,1,1,2) [2025-04-02 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817229', 'tblTempUsageDetail_20' ) start [2025-04-02 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817229', 'tblTempUsageDetail_20' ) end [2025-04-02 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:22:24] Production.INFO: ==17052== Releasing lock... [2025-04-02 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:22:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:23:05 [end_date_ymd] => 2025-04-02 09:23:05 [RateCDR] => 1 ) [2025-04-02 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:23:05' and `end` < '2025-04-02 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:23:18] Production.INFO: count ==1309 [2025-04-02 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:23:05 - End Time 2025-04-02 09:23:05 [2025-04-02 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817234', 'tblTempUsageDetail_20' ) start [2025-04-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817234', 'tblTempUsageDetail_20' ) end [2025-04-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817234', 'tblTempVendorCDR_20' ) start [2025-04-02 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817234', 'tblTempVendorCDR_20' ) end [2025-04-02 09:23:19] Production.INFO: ProcessCDR(1,14817234,1,1,2) [2025-04-02 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817234', 'tblTempUsageDetail_20' ) start [2025-04-02 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817234', 'tblTempUsageDetail_20' ) end [2025-04-02 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:23:24] Production.INFO: ==17123== Releasing lock... [2025-04-02 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:23:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:24:05 [end_date_ymd] => 2025-04-02 09:24:05 [RateCDR] => 1 ) [2025-04-02 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:24:05' and `end` < '2025-04-02 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:24:18] Production.INFO: count ==1343 [2025-04-02 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:24:05 - End Time 2025-04-02 09:24:05 [2025-04-02 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817239', 'tblTempUsageDetail_20' ) start [2025-04-02 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817239', 'tblTempUsageDetail_20' ) end [2025-04-02 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817239', 'tblTempVendorCDR_20' ) start [2025-04-02 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817239', 'tblTempVendorCDR_20' ) end [2025-04-02 09:24:19] Production.INFO: ProcessCDR(1,14817239,1,1,2) [2025-04-02 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817239', 'tblTempUsageDetail_20' ) start [2025-04-02 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817239', 'tblTempUsageDetail_20' ) end [2025-04-02 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:24:25] Production.INFO: ==17193== Releasing lock... [2025-04-02 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:24:25] Production.INFO: 38 MB #Memory Used# [2025-04-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:25:05 [end_date_ymd] => 2025-04-02 09:25:05 [RateCDR] => 1 ) [2025-04-02 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:25:05' and `end` < '2025-04-02 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:25:18] Production.INFO: count ==1357 [2025-04-02 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:25:05 - End Time 2025-04-02 09:25:05 [2025-04-02 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817244', 'tblTempUsageDetail_20' ) start [2025-04-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817244', 'tblTempUsageDetail_20' ) end [2025-04-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817244', 'tblTempVendorCDR_20' ) start [2025-04-02 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817244', 'tblTempVendorCDR_20' ) end [2025-04-02 09:25:18] Production.INFO: ProcessCDR(1,14817244,1,1,2) [2025-04-02 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817244', 'tblTempUsageDetail_20' ) start [2025-04-02 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817244', 'tblTempUsageDetail_20' ) end [2025-04-02 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:25:24] Production.INFO: ==17264== Releasing lock... [2025-04-02 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:25:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:26:05 [end_date_ymd] => 2025-04-02 09:26:05 [RateCDR] => 1 ) [2025-04-02 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:26:05' and `end` < '2025-04-02 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:26:18] Production.INFO: count ==1383 [2025-04-02 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:26:05 - End Time 2025-04-02 09:26:05 [2025-04-02 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817249', 'tblTempUsageDetail_20' ) start [2025-04-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817249', 'tblTempUsageDetail_20' ) end [2025-04-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817249', 'tblTempVendorCDR_20' ) start [2025-04-02 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817249', 'tblTempVendorCDR_20' ) end [2025-04-02 09:26:19] Production.INFO: ProcessCDR(1,14817249,1,1,2) [2025-04-02 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817249', 'tblTempUsageDetail_20' ) start [2025-04-02 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817249', 'tblTempUsageDetail_20' ) end [2025-04-02 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:26:24] Production.INFO: ==17334== Releasing lock... [2025-04-02 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:26:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:27:06 [end_date_ymd] => 2025-04-02 09:27:06 [RateCDR] => 1 ) [2025-04-02 09:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:27:06' and `end` < '2025-04-02 09:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:27:18] Production.INFO: count ==1386 [2025-04-02 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:27:06 - End Time 2025-04-02 09:27:06 [2025-04-02 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817254', 'tblTempUsageDetail_20' ) start [2025-04-02 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817254', 'tblTempUsageDetail_20' ) end [2025-04-02 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817254', 'tblTempVendorCDR_20' ) start [2025-04-02 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817254', 'tblTempVendorCDR_20' ) end [2025-04-02 09:27:19] Production.INFO: ProcessCDR(1,14817254,1,1,2) [2025-04-02 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817254', 'tblTempUsageDetail_20' ) start [2025-04-02 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817254', 'tblTempUsageDetail_20' ) end [2025-04-02 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:27:24] Production.INFO: ==17404== Releasing lock... [2025-04-02 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:27:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:28:05 [end_date_ymd] => 2025-04-02 09:28:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:28:05' and `end` < '2025-04-02 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-04-02 09:28:18] Production.INFO: count ==1405 [2025-04-02 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:28:05 - End Time 2025-04-02 09:28:05 [2025-04-02 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817259', 'tblTempUsageDetail_20' ) start [2025-04-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817259', 'tblTempUsageDetail_20' ) end [2025-04-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817259', 'tblTempVendorCDR_20' ) start [2025-04-02 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817259', 'tblTempVendorCDR_20' ) end [2025-04-02 09:28:18] Production.INFO: ProcessCDR(1,14817259,1,1,2) [2025-04-02 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817259', 'tblTempUsageDetail_20' ) start [2025-04-02 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817259', 'tblTempUsageDetail_20' ) end [2025-04-02 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:28:22] Production.INFO: ==17477== Releasing lock... [2025-04-02 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:29:05 [end_date_ymd] => 2025-04-02 09:29:05 [RateCDR] => 1 ) [2025-04-02 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:29:05' and `end` < '2025-04-02 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:29:18] Production.INFO: count ==1441 [2025-04-02 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:29:05 - End Time 2025-04-02 09:29:05 [2025-04-02 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817264', 'tblTempUsageDetail_20' ) start [2025-04-02 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817264', 'tblTempUsageDetail_20' ) end [2025-04-02 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817264', 'tblTempVendorCDR_20' ) start [2025-04-02 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817264', 'tblTempVendorCDR_20' ) end [2025-04-02 09:29:19] Production.INFO: ProcessCDR(1,14817264,1,1,2) [2025-04-02 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817264', 'tblTempUsageDetail_20' ) start [2025-04-02 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817264', 'tblTempUsageDetail_20' ) end [2025-04-02 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:29:25] Production.INFO: ==17557== Releasing lock... [2025-04-02 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:29:25] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:30:06 [end_date_ymd] => 2025-04-02 09:30:06 [RateCDR] => 1 ) [2025-04-02 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:30:06' and `end` < '2025-04-02 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:30:19] Production.INFO: count ==1459 [2025-04-02 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:30:06 - End Time 2025-04-02 09:30:06 [2025-04-02 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817270', 'tblTempUsageDetail_20' ) start [2025-04-02 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817270', 'tblTempUsageDetail_20' ) end [2025-04-02 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817270', 'tblTempVendorCDR_20' ) start [2025-04-02 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817270', 'tblTempVendorCDR_20' ) end [2025-04-02 09:30:20] Production.INFO: ProcessCDR(1,14817270,1,1,2) [2025-04-02 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817270', 'tblTempUsageDetail_20' ) start [2025-04-02 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817270', 'tblTempUsageDetail_20' ) end [2025-04-02 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:30:25] Production.INFO: ==17636== Releasing lock... [2025-04-02 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:30:25] Production.INFO: 39 MB #Memory Used# [2025-04-02 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:31:06 [end_date_ymd] => 2025-04-02 09:31:06 [RateCDR] => 1 ) [2025-04-02 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:31:06' and `end` < '2025-04-02 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:31:19] Production.INFO: count ==1501 [2025-04-02 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:31:06 - End Time 2025-04-02 09:31:06 [2025-04-02 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817275', 'tblTempUsageDetail_20' ) start [2025-04-02 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817275', 'tblTempUsageDetail_20' ) end [2025-04-02 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817275', 'tblTempVendorCDR_20' ) start [2025-04-02 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817275', 'tblTempVendorCDR_20' ) end [2025-04-02 09:31:19] Production.INFO: ProcessCDR(1,14817275,1,1,2) [2025-04-02 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817275', 'tblTempUsageDetail_20' ) start [2025-04-02 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817275', 'tblTempUsageDetail_20' ) end [2025-04-02 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:31:25] Production.INFO: ==17709== Releasing lock... [2025-04-02 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:31:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-02 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:32:05 [end_date_ymd] => 2025-04-02 09:32:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:32:05' and `end` < '2025-04-02 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-04-02 09:32:18] Production.INFO: count ==1510 [2025-04-02 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:32:05 - End Time 2025-04-02 09:32:05 [2025-04-02 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817280', 'tblTempUsageDetail_20' ) start [2025-04-02 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817280', 'tblTempUsageDetail_20' ) end [2025-04-02 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817280', 'tblTempVendorCDR_20' ) start [2025-04-02 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817280', 'tblTempVendorCDR_20' ) end [2025-04-02 09:32:19] Production.INFO: ProcessCDR(1,14817280,1,1,2) [2025-04-02 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817280', 'tblTempUsageDetail_20' ) start [2025-04-02 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817280', 'tblTempUsageDetail_20' ) end [2025-04-02 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:32:25] Production.INFO: ==17787== Releasing lock... [2025-04-02 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:32:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-02 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:33:06 [end_date_ymd] => 2025-04-02 09:33:06 [RateCDR] => 1 ) [2025-04-02 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:33:06' and `end` < '2025-04-02 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:33:19] Production.INFO: count ==1513 [2025-04-02 09:33:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:33:06 - End Time 2025-04-02 09:33:06 [2025-04-02 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817285', 'tblTempUsageDetail_20' ) start [2025-04-02 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817285', 'tblTempUsageDetail_20' ) end [2025-04-02 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817285', 'tblTempVendorCDR_20' ) start [2025-04-02 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817285', 'tblTempVendorCDR_20' ) end [2025-04-02 09:33:20] Production.INFO: ProcessCDR(1,14817285,1,1,2) [2025-04-02 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817285', 'tblTempUsageDetail_20' ) start [2025-04-02 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817285', 'tblTempUsageDetail_20' ) end [2025-04-02 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:33:25] Production.INFO: ==17857== Releasing lock... [2025-04-02 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:33:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-02 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:34:05 [end_date_ymd] => 2025-04-02 09:34:05 [RateCDR] => 1 ) [2025-04-02 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:34:05' and `end` < '2025-04-02 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:34:18] Production.INFO: count ==1524 [2025-04-02 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:34:05 - End Time 2025-04-02 09:34:05 [2025-04-02 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817290', 'tblTempUsageDetail_20' ) start [2025-04-02 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817290', 'tblTempUsageDetail_20' ) end [2025-04-02 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817290', 'tblTempVendorCDR_20' ) start [2025-04-02 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817290', 'tblTempVendorCDR_20' ) end [2025-04-02 09:34:19] Production.INFO: ProcessCDR(1,14817290,1,1,2) [2025-04-02 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817290', 'tblTempUsageDetail_20' ) start [2025-04-02 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817290', 'tblTempUsageDetail_20' ) end [2025-04-02 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:34:22] Production.INFO: ==17940== Releasing lock... [2025-04-02 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:34:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-02 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:35:05 [end_date_ymd] => 2025-04-02 09:35:05 [RateCDR] => 1 ) [2025-04-02 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:35:05' and `end` < '2025-04-02 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:35:18] Production.INFO: count ==1546 [2025-04-02 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:35:05 - End Time 2025-04-02 09:35:05 [2025-04-02 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817295', 'tblTempUsageDetail_20' ) start [2025-04-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817295', 'tblTempUsageDetail_20' ) end [2025-04-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817295', 'tblTempVendorCDR_20' ) start [2025-04-02 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817295', 'tblTempVendorCDR_20' ) end [2025-04-02 09:35:19] Production.INFO: ProcessCDR(1,14817295,1,1,2) [2025-04-02 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817295', 'tblTempUsageDetail_20' ) start [2025-04-02 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817295', 'tblTempUsageDetail_20' ) end [2025-04-02 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:35:25] Production.INFO: ==18056== Releasing lock... [2025-04-02 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:35:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-02 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:36:05 [end_date_ymd] => 2025-04-02 09:36:05 [RateCDR] => 1 ) [2025-04-02 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:36:05' and `end` < '2025-04-02 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:36:18] Production.INFO: count ==1565 [2025-04-02 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:36:05 - End Time 2025-04-02 09:36:05 [2025-04-02 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817300', 'tblTempUsageDetail_20' ) start [2025-04-02 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817300', 'tblTempUsageDetail_20' ) end [2025-04-02 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817300', 'tblTempVendorCDR_20' ) start [2025-04-02 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817300', 'tblTempVendorCDR_20' ) end [2025-04-02 09:36:19] Production.INFO: ProcessCDR(1,14817300,1,1,2) [2025-04-02 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817300', 'tblTempUsageDetail_20' ) start [2025-04-02 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817300', 'tblTempUsageDetail_20' ) end [2025-04-02 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:36:24] Production.INFO: ==18128== Releasing lock... [2025-04-02 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:37:05 [end_date_ymd] => 2025-04-02 09:37:05 [RateCDR] => 1 ) [2025-04-02 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:37:05' and `end` < '2025-04-02 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:37:18] Production.INFO: count ==1587 [2025-04-02 09:37:18] Production.ERROR: pbx CDR StartTime 2025-04-02 06:37:05 - End Time 2025-04-02 09:37:05 [2025-04-02 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817305', 'tblTempUsageDetail_20' ) start [2025-04-02 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817305', 'tblTempUsageDetail_20' ) end [2025-04-02 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817305', 'tblTempVendorCDR_20' ) start [2025-04-02 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817305', 'tblTempVendorCDR_20' ) end [2025-04-02 09:37:19] Production.INFO: ProcessCDR(1,14817305,1,1,2) [2025-04-02 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817305', 'tblTempUsageDetail_20' ) start [2025-04-02 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817305', 'tblTempUsageDetail_20' ) end [2025-04-02 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:37:24] Production.INFO: ==18198== Releasing lock... [2025-04-02 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:37:24] Production.INFO: 40 MB #Memory Used# [2025-04-02 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:38:06 [end_date_ymd] => 2025-04-02 09:38:06 [RateCDR] => 1 ) [2025-04-02 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:38:06' and `end` < '2025-04-02 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:38:19] Production.INFO: count ==1596 [2025-04-02 09:38:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:38:06 - End Time 2025-04-02 09:38:06 [2025-04-02 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817310', 'tblTempUsageDetail_20' ) start [2025-04-02 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817310', 'tblTempUsageDetail_20' ) end [2025-04-02 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817310', 'tblTempVendorCDR_20' ) start [2025-04-02 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817310', 'tblTempVendorCDR_20' ) end [2025-04-02 09:38:20] Production.INFO: ProcessCDR(1,14817310,1,1,2) [2025-04-02 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817310', 'tblTempUsageDetail_20' ) start [2025-04-02 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817310', 'tblTempUsageDetail_20' ) end [2025-04-02 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:38:25] Production.INFO: ==18272== Releasing lock... [2025-04-02 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:38:25] Production.INFO: 40 MB #Memory Used# [2025-04-02 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:39:05 [end_date_ymd] => 2025-04-02 09:39:05 [RateCDR] => 1 ) [2025-04-02 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:39:05' and `end` < '2025-04-02 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:39:18] Production.INFO: count ==1614 [2025-04-02 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:39:05 - End Time 2025-04-02 09:39:05 [2025-04-02 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817315', 'tblTempUsageDetail_20' ) start [2025-04-02 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817315', 'tblTempUsageDetail_20' ) end [2025-04-02 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817315', 'tblTempVendorCDR_20' ) start [2025-04-02 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817315', 'tblTempVendorCDR_20' ) end [2025-04-02 09:39:19] Production.INFO: ProcessCDR(1,14817315,1,1,2) [2025-04-02 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817315', 'tblTempUsageDetail_20' ) start [2025-04-02 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817315', 'tblTempUsageDetail_20' ) end [2025-04-02 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:39:24] Production.INFO: ==18344== Releasing lock... [2025-04-02 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:39:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-02 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:40:07 [end_date_ymd] => 2025-04-02 09:40:07 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:40:07' and `end` < '2025-04-02 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-04-02 09:40:20] Production.INFO: count ==1633 [2025-04-02 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:40:07 - End Time 2025-04-02 09:40:07 [2025-04-02 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817320', 'tblTempUsageDetail_20' ) start [2025-04-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817320', 'tblTempUsageDetail_20' ) end [2025-04-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817320', 'tblTempVendorCDR_20' ) start [2025-04-02 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817320', 'tblTempVendorCDR_20' ) end [2025-04-02 09:40:20] Production.INFO: ProcessCDR(1,14817320,1,1,2) [2025-04-02 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817320', 'tblTempUsageDetail_20' ) start [2025-04-02 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817320', 'tblTempUsageDetail_20' ) end [2025-04-02 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:40:26] Production.INFO: ==18420== Releasing lock... [2025-04-02 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:40:26] Production.INFO: 40.5 MB #Memory Used# [2025-04-02 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:41:05 [end_date_ymd] => 2025-04-02 09:41:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:41:05' and `end` < '2025-04-02 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-04-02 09:41:18] Production.INFO: count ==1729 [2025-04-02 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:41:05 - End Time 2025-04-02 09:41:05 [2025-04-02 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817326', 'tblTempUsageDetail_20' ) start [2025-04-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817326', 'tblTempUsageDetail_20' ) end [2025-04-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817326', 'tblTempVendorCDR_20' ) start [2025-04-02 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817326', 'tblTempVendorCDR_20' ) end [2025-04-02 09:41:19] Production.INFO: ProcessCDR(1,14817326,1,1,2) [2025-04-02 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817326', 'tblTempUsageDetail_20' ) start [2025-04-02 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817326', 'tblTempUsageDetail_20' ) end [2025-04-02 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:41:23] Production.INFO: ==18492== Releasing lock... [2025-04-02 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:41:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-02 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:42:06 [end_date_ymd] => 2025-04-02 09:42:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:42:06' and `end` < '2025-04-02 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-04-02 09:42:19] Production.INFO: count ==1768 [2025-04-02 09:42:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:42:06 - End Time 2025-04-02 09:42:06 [2025-04-02 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817331', 'tblTempUsageDetail_20' ) start [2025-04-02 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817331', 'tblTempUsageDetail_20' ) end [2025-04-02 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817331', 'tblTempVendorCDR_20' ) start [2025-04-02 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817331', 'tblTempVendorCDR_20' ) end [2025-04-02 09:42:20] Production.INFO: ProcessCDR(1,14817331,1,1,2) [2025-04-02 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817331', 'tblTempUsageDetail_20' ) start [2025-04-02 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817331', 'tblTempUsageDetail_20' ) end [2025-04-02 09:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:42:26] Production.INFO: ==18562== Releasing lock... [2025-04-02 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:42:26] Production.INFO: 41.25 MB #Memory Used# [2025-04-02 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:43:05 [end_date_ymd] => 2025-04-02 09:43:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:43:05' and `end` < '2025-04-02 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-04-02 09:43:18] Production.INFO: count ==1770 [2025-04-02 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:43:05 - End Time 2025-04-02 09:43:05 [2025-04-02 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817336', 'tblTempUsageDetail_20' ) start [2025-04-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817336', 'tblTempUsageDetail_20' ) end [2025-04-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817336', 'tblTempVendorCDR_20' ) start [2025-04-02 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817336', 'tblTempVendorCDR_20' ) end [2025-04-02 09:43:19] Production.INFO: ProcessCDR(1,14817336,1,1,2) [2025-04-02 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817336', 'tblTempUsageDetail_20' ) start [2025-04-02 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817336', 'tblTempUsageDetail_20' ) end [2025-04-02 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:43:24] Production.INFO: ==18638== Releasing lock... [2025-04-02 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-02 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:44:05 [end_date_ymd] => 2025-04-02 09:44:05 [RateCDR] => 1 ) [2025-04-02 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:44:05' and `end` < '2025-04-02 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:44:19] Production.INFO: count ==1782 [2025-04-02 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:44:05 - End Time 2025-04-02 09:44:05 [2025-04-02 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817341', 'tblTempUsageDetail_20' ) start [2025-04-02 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817341', 'tblTempUsageDetail_20' ) end [2025-04-02 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817341', 'tblTempVendorCDR_20' ) start [2025-04-02 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817341', 'tblTempVendorCDR_20' ) end [2025-04-02 09:44:19] Production.INFO: ProcessCDR(1,14817341,1,1,2) [2025-04-02 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817341', 'tblTempUsageDetail_20' ) start [2025-04-02 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817341', 'tblTempUsageDetail_20' ) end [2025-04-02 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:44:25] Production.INFO: ==18710== Releasing lock... [2025-04-02 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:44:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-02 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:45:05 [end_date_ymd] => 2025-04-02 09:45:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 06:45:05' and `end` < '2025-04-02 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-04-02 09:45:18] Production.INFO: count ==1792 [2025-04-02 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:45:05 - End Time 2025-04-02 09:45:05 [2025-04-02 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817346', 'tblTempUsageDetail_20' ) start [2025-04-02 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817346', 'tblTempUsageDetail_20' ) end [2025-04-02 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817346', 'tblTempVendorCDR_20' ) start [2025-04-02 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817346', 'tblTempVendorCDR_20' ) end [2025-04-02 09:45:19] Production.INFO: ProcessCDR(1,14817346,1,1,2) [2025-04-02 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817346', 'tblTempUsageDetail_20' ) start [2025-04-02 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817346', 'tblTempUsageDetail_20' ) end [2025-04-02 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:45:24] Production.INFO: ==18784== Releasing lock... [2025-04-02 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:45:24] Production.INFO: 42 MB #Memory Used# [2025-04-02 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:46:06 [end_date_ymd] => 2025-04-02 09:46:06 [RateCDR] => 1 ) [2025-04-02 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:46:06' and `end` < '2025-04-02 09:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:46:19] Production.INFO: count ==1799 [2025-04-02 09:46:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:46:06 - End Time 2025-04-02 09:46:06 [2025-04-02 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817351', 'tblTempUsageDetail_20' ) start [2025-04-02 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817351', 'tblTempUsageDetail_20' ) end [2025-04-02 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817351', 'tblTempVendorCDR_20' ) start [2025-04-02 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817351', 'tblTempVendorCDR_20' ) end [2025-04-02 09:46:20] Production.INFO: ProcessCDR(1,14817351,1,1,2) [2025-04-02 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817351', 'tblTempUsageDetail_20' ) start [2025-04-02 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817351', 'tblTempUsageDetail_20' ) end [2025-04-02 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:46:25] Production.INFO: ==18856== Releasing lock... [2025-04-02 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:46:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-02 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:47:05 [end_date_ymd] => 2025-04-02 09:47:05 [RateCDR] => 1 ) [2025-04-02 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:47:05' and `end` < '2025-04-02 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:47:18] Production.INFO: count ==1815 [2025-04-02 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:47:05 - End Time 2025-04-02 09:47:05 [2025-04-02 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817356', 'tblTempUsageDetail_20' ) start [2025-04-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817356', 'tblTempUsageDetail_20' ) end [2025-04-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817356', 'tblTempVendorCDR_20' ) start [2025-04-02 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817356', 'tblTempVendorCDR_20' ) end [2025-04-02 09:47:19] Production.INFO: ProcessCDR(1,14817356,1,1,2) [2025-04-02 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817356', 'tblTempUsageDetail_20' ) start [2025-04-02 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817356', 'tblTempUsageDetail_20' ) end [2025-04-02 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:47:24] Production.INFO: ==18931== Releasing lock... [2025-04-02 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:48:05 [end_date_ymd] => 2025-04-02 09:48:05 [RateCDR] => 1 ) [2025-04-02 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:48:05' and `end` < '2025-04-02 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:48:18] Production.INFO: count ==1824 [2025-04-02 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:48:05 - End Time 2025-04-02 09:48:05 [2025-04-02 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817361', 'tblTempUsageDetail_20' ) start [2025-04-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817361', 'tblTempUsageDetail_20' ) end [2025-04-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817361', 'tblTempVendorCDR_20' ) start [2025-04-02 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817361', 'tblTempVendorCDR_20' ) end [2025-04-02 09:48:19] Production.INFO: ProcessCDR(1,14817361,1,1,2) [2025-04-02 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817361', 'tblTempUsageDetail_20' ) start [2025-04-02 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817361', 'tblTempUsageDetail_20' ) end [2025-04-02 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:48:24] Production.INFO: ==19005== Releasing lock... [2025-04-02 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:48:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:49:05 [end_date_ymd] => 2025-04-02 09:49:05 [RateCDR] => 1 ) [2025-04-02 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:49:05' and `end` < '2025-04-02 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:49:18] Production.INFO: count ==1843 [2025-04-02 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:49:05 - End Time 2025-04-02 09:49:05 [2025-04-02 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817366', 'tblTempUsageDetail_20' ) start [2025-04-02 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817366', 'tblTempUsageDetail_20' ) end [2025-04-02 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817366', 'tblTempVendorCDR_20' ) start [2025-04-02 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817366', 'tblTempVendorCDR_20' ) end [2025-04-02 09:49:19] Production.INFO: ProcessCDR(1,14817366,1,1,2) [2025-04-02 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817366', 'tblTempUsageDetail_20' ) start [2025-04-02 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817366', 'tblTempUsageDetail_20' ) end [2025-04-02 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:49:22] Production.INFO: ==19076== Releasing lock... [2025-04-02 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:49:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:50:06 [end_date_ymd] => 2025-04-02 09:50:06 [RateCDR] => 1 ) [2025-04-02 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:50:06' and `end` < '2025-04-02 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:50:19] Production.INFO: count ==1869 [2025-04-02 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:50:06 - End Time 2025-04-02 09:50:06 [2025-04-02 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817372', 'tblTempUsageDetail_20' ) start [2025-04-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817372', 'tblTempUsageDetail_20' ) end [2025-04-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817372', 'tblTempVendorCDR_20' ) start [2025-04-02 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817372', 'tblTempVendorCDR_20' ) end [2025-04-02 09:50:20] Production.INFO: ProcessCDR(1,14817372,1,1,2) [2025-04-02 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817372', 'tblTempUsageDetail_20' ) start [2025-04-02 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817372', 'tblTempUsageDetail_20' ) end [2025-04-02 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:50:24] Production.INFO: ==19195== Releasing lock... [2025-04-02 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:50:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-02 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:51:05 [end_date_ymd] => 2025-04-02 09:51:05 [RateCDR] => 1 ) [2025-04-02 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:51:05' and `end` < '2025-04-02 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:51:18] Production.INFO: count ==1951 [2025-04-02 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:51:05 - End Time 2025-04-02 09:51:05 [2025-04-02 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817377', 'tblTempUsageDetail_20' ) start [2025-04-02 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817377', 'tblTempUsageDetail_20' ) end [2025-04-02 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817377', 'tblTempVendorCDR_20' ) start [2025-04-02 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817377', 'tblTempVendorCDR_20' ) end [2025-04-02 09:51:19] Production.INFO: ProcessCDR(1,14817377,1,1,2) [2025-04-02 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817377', 'tblTempUsageDetail_20' ) start [2025-04-02 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817377', 'tblTempUsageDetail_20' ) end [2025-04-02 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:51:24] Production.INFO: ==19277== Releasing lock... [2025-04-02 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:51:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-02 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:52:05 [end_date_ymd] => 2025-04-02 09:52:05 [RateCDR] => 1 ) [2025-04-02 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:52:05' and `end` < '2025-04-02 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:52:18] Production.INFO: count ==1970 [2025-04-02 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:52:05 - End Time 2025-04-02 09:52:05 [2025-04-02 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817382', 'tblTempUsageDetail_20' ) start [2025-04-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817382', 'tblTempUsageDetail_20' ) end [2025-04-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817382', 'tblTempVendorCDR_20' ) start [2025-04-02 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817382', 'tblTempVendorCDR_20' ) end [2025-04-02 09:52:19] Production.INFO: ProcessCDR(1,14817382,1,1,2) [2025-04-02 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817382', 'tblTempUsageDetail_20' ) start [2025-04-02 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817382', 'tblTempUsageDetail_20' ) end [2025-04-02 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:52:25] Production.INFO: ==19350== Releasing lock... [2025-04-02 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:52:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-02 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:53:05 [end_date_ymd] => 2025-04-02 09:53:05 [RateCDR] => 1 ) [2025-04-02 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:53:05' and `end` < '2025-04-02 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:53:18] Production.INFO: count ==1987 [2025-04-02 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:53:05 - End Time 2025-04-02 09:53:05 [2025-04-02 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817387', 'tblTempUsageDetail_20' ) start [2025-04-02 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817387', 'tblTempUsageDetail_20' ) end [2025-04-02 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817387', 'tblTempVendorCDR_20' ) start [2025-04-02 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817387', 'tblTempVendorCDR_20' ) end [2025-04-02 09:53:19] Production.INFO: ProcessCDR(1,14817387,1,1,2) [2025-04-02 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817387', 'tblTempUsageDetail_20' ) start [2025-04-02 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817387', 'tblTempUsageDetail_20' ) end [2025-04-02 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:53:24] Production.INFO: ==19435== Releasing lock... [2025-04-02 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:53:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:54:06 [end_date_ymd] => 2025-04-02 09:54:06 [RateCDR] => 1 ) [2025-04-02 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:54:06' and `end` < '2025-04-02 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:54:19] Production.INFO: count ==2027 [2025-04-02 09:54:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:54:06 - End Time 2025-04-02 09:54:06 [2025-04-02 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817392', 'tblTempUsageDetail_20' ) start [2025-04-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817392', 'tblTempUsageDetail_20' ) end [2025-04-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817392', 'tblTempVendorCDR_20' ) start [2025-04-02 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817392', 'tblTempVendorCDR_20' ) end [2025-04-02 09:54:20] Production.INFO: ProcessCDR(1,14817392,1,1,2) [2025-04-02 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817392', 'tblTempUsageDetail_20' ) start [2025-04-02 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817392', 'tblTempUsageDetail_20' ) end [2025-04-02 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:54:25] Production.INFO: ==19506== Releasing lock... [2025-04-02 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:54:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:55:05 [end_date_ymd] => 2025-04-02 09:55:05 [RateCDR] => 1 ) [2025-04-02 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:55:05' and `end` < '2025-04-02 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:55:18] Production.INFO: count ==2061 [2025-04-02 09:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:55:05 - End Time 2025-04-02 09:55:05 [2025-04-02 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817397', 'tblTempUsageDetail_20' ) start [2025-04-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817397', 'tblTempUsageDetail_20' ) end [2025-04-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817397', 'tblTempVendorCDR_20' ) start [2025-04-02 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817397', 'tblTempVendorCDR_20' ) end [2025-04-02 09:55:19] Production.INFO: ProcessCDR(1,14817397,1,1,2) [2025-04-02 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817397', 'tblTempUsageDetail_20' ) start [2025-04-02 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817397', 'tblTempUsageDetail_20' ) end [2025-04-02 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:55:24] Production.INFO: ==19581== Releasing lock... [2025-04-02 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:55:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-02 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:56:06 [end_date_ymd] => 2025-04-02 09:56:06 [RateCDR] => 1 ) [2025-04-02 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:56:06' and `end` < '2025-04-02 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:56:19] Production.INFO: count ==2077 [2025-04-02 09:56:20] Production.ERROR: pbx CDR StartTime 2025-04-02 06:56:06 - End Time 2025-04-02 09:56:06 [2025-04-02 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817402', 'tblTempUsageDetail_20' ) start [2025-04-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817402', 'tblTempUsageDetail_20' ) end [2025-04-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817402', 'tblTempVendorCDR_20' ) start [2025-04-02 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817402', 'tblTempVendorCDR_20' ) end [2025-04-02 09:56:20] Production.INFO: ProcessCDR(1,14817402,1,1,2) [2025-04-02 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817402', 'tblTempUsageDetail_20' ) start [2025-04-02 09:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817402', 'tblTempUsageDetail_20' ) end [2025-04-02 09:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:56:26] Production.INFO: ==19653== Releasing lock... [2025-04-02 09:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:56:26] Production.INFO: 44 MB #Memory Used# [2025-04-02 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:57:05 [end_date_ymd] => 2025-04-02 09:57:05 [RateCDR] => 1 ) [2025-04-02 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:57:05' and `end` < '2025-04-02 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:57:19] Production.INFO: count ==2097 [2025-04-02 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:57:05 - End Time 2025-04-02 09:57:05 [2025-04-02 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817407', 'tblTempUsageDetail_20' ) start [2025-04-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817407', 'tblTempUsageDetail_20' ) end [2025-04-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817407', 'tblTempVendorCDR_20' ) start [2025-04-02 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817407', 'tblTempVendorCDR_20' ) end [2025-04-02 09:57:19] Production.INFO: ProcessCDR(1,14817407,1,1,2) [2025-04-02 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817407', 'tblTempUsageDetail_20' ) start [2025-04-02 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817407', 'tblTempUsageDetail_20' ) end [2025-04-02 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:57:25] Production.INFO: ==19724== Releasing lock... [2025-04-02 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:57:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-02 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:58:05 [end_date_ymd] => 2025-04-02 09:58:05 [RateCDR] => 1 ) [2025-04-02 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:58:05' and `end` < '2025-04-02 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:58:18] Production.INFO: count ==2108 [2025-04-02 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:58:05 - End Time 2025-04-02 09:58:05 [2025-04-02 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817412', 'tblTempUsageDetail_20' ) start [2025-04-02 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817412', 'tblTempUsageDetail_20' ) end [2025-04-02 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817412', 'tblTempVendorCDR_20' ) start [2025-04-02 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817412', 'tblTempVendorCDR_20' ) end [2025-04-02 09:58:19] Production.INFO: ProcessCDR(1,14817412,1,1,2) [2025-04-02 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817412', 'tblTempUsageDetail_20' ) start [2025-04-02 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817412', 'tblTempUsageDetail_20' ) end [2025-04-02 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:58:25] Production.INFO: ==19797== Releasing lock... [2025-04-02 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:58:25] Production.INFO: 44 MB #Memory Used# [2025-04-02 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 06:59:05 [end_date_ymd] => 2025-04-02 09:59:05 [RateCDR] => 1 ) [2025-04-02 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 06:59:05' and `end` < '2025-04-02 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 09:59:18] Production.INFO: count ==2116 [2025-04-02 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-02 06:59:05 - End Time 2025-04-02 09:59:05 [2025-04-02 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817417', 'tblTempUsageDetail_20' ) start [2025-04-02 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817417', 'tblTempUsageDetail_20' ) end [2025-04-02 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817417', 'tblTempVendorCDR_20' ) start [2025-04-02 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817417', 'tblTempVendorCDR_20' ) end [2025-04-02 09:59:19] Production.INFO: ProcessCDR(1,14817417,1,1,2) [2025-04-02 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817417', 'tblTempUsageDetail_20' ) start [2025-04-02 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817417', 'tblTempUsageDetail_20' ) end [2025-04-02 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 09:59:23] Production.INFO: ==19872== Releasing lock... [2025-04-02 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 09:59:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:00:07 [end_date_ymd] => 2025-04-02 10:00:07 [RateCDR] => 1 ) [2025-04-02 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:00:07' and `end` < '2025-04-02 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:00:20] Production.INFO: count ==2127 [2025-04-02 10:00:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:00:07 - End Time 2025-04-02 10:00:07 [2025-04-02 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817423', 'tblTempUsageDetail_20' ) start [2025-04-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817423', 'tblTempUsageDetail_20' ) end [2025-04-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817423', 'tblTempVendorCDR_20' ) start [2025-04-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817423', 'tblTempVendorCDR_20' ) end [2025-04-02 10:00:21] Production.INFO: ProcessCDR(1,14817423,1,1,2) [2025-04-02 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817423', 'tblTempUsageDetail_20' ) start [2025-04-02 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817423', 'tblTempUsageDetail_20' ) end [2025-04-02 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:00:27] Production.INFO: ==19948== Releasing lock... [2025-04-02 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:00:27] Production.INFO: 44 MB #Memory Used# [2025-04-02 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:01:06 [end_date_ymd] => 2025-04-02 10:01:06 [RateCDR] => 1 ) [2025-04-02 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:01:06' and `end` < '2025-04-02 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:01:19] Production.INFO: count ==2200 [2025-04-02 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-02 07:01:06 - End Time 2025-04-02 10:01:06 [2025-04-02 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817428', 'tblTempUsageDetail_20' ) start [2025-04-02 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817428', 'tblTempUsageDetail_20' ) end [2025-04-02 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817428', 'tblTempVendorCDR_20' ) start [2025-04-02 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817428', 'tblTempVendorCDR_20' ) end [2025-04-02 10:01:20] Production.INFO: ProcessCDR(1,14817428,1,1,2) [2025-04-02 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817428', 'tblTempUsageDetail_20' ) start [2025-04-02 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817428', 'tblTempUsageDetail_20' ) end [2025-04-02 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:01:25] Production.INFO: ==20031== Releasing lock... [2025-04-02 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:01:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-02 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:02:06 [end_date_ymd] => 2025-04-02 10:02:06 [RateCDR] => 1 ) [2025-04-02 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:02:06' and `end` < '2025-04-02 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:02:19] Production.INFO: count ==2209 [2025-04-02 10:02:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:02:06 - End Time 2025-04-02 10:02:06 [2025-04-02 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817433', 'tblTempUsageDetail_20' ) start [2025-04-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817433', 'tblTempUsageDetail_20' ) end [2025-04-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817433', 'tblTempVendorCDR_20' ) start [2025-04-02 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817433', 'tblTempVendorCDR_20' ) end [2025-04-02 10:02:20] Production.INFO: ProcessCDR(1,14817433,1,1,2) [2025-04-02 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817433', 'tblTempUsageDetail_20' ) start [2025-04-02 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817433', 'tblTempUsageDetail_20' ) end [2025-04-02 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:02:26] Production.INFO: ==20103== Releasing lock... [2025-04-02 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:02:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-02 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:03:05 [end_date_ymd] => 2025-04-02 10:03:05 [RateCDR] => 1 ) [2025-04-02 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:03:05' and `end` < '2025-04-02 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:03:19] Production.INFO: count ==2225 [2025-04-02 10:03:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:03:05 - End Time 2025-04-02 10:03:05 [2025-04-02 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817438', 'tblTempUsageDetail_20' ) start [2025-04-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817438', 'tblTempUsageDetail_20' ) end [2025-04-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817438', 'tblTempVendorCDR_20' ) start [2025-04-02 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817438', 'tblTempVendorCDR_20' ) end [2025-04-02 10:03:20] Production.INFO: ProcessCDR(1,14817438,1,1,2) [2025-04-02 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817438', 'tblTempUsageDetail_20' ) start [2025-04-02 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817438', 'tblTempUsageDetail_20' ) end [2025-04-02 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:03:26] Production.INFO: ==20175== Releasing lock... [2025-04-02 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:03:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-02 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:04:06 [end_date_ymd] => 2025-04-02 10:04:06 [RateCDR] => 1 ) [2025-04-02 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:04:06' and `end` < '2025-04-02 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:04:19] Production.INFO: count ==2261 [2025-04-02 10:04:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:04:06 - End Time 2025-04-02 10:04:06 [2025-04-02 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817443', 'tblTempUsageDetail_20' ) start [2025-04-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817443', 'tblTempUsageDetail_20' ) end [2025-04-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817443', 'tblTempVendorCDR_20' ) start [2025-04-02 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817443', 'tblTempVendorCDR_20' ) end [2025-04-02 10:04:20] Production.INFO: ProcessCDR(1,14817443,1,1,2) [2025-04-02 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817443', 'tblTempUsageDetail_20' ) start [2025-04-02 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817443', 'tblTempUsageDetail_20' ) end [2025-04-02 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:04:26] Production.INFO: ==20248== Releasing lock... [2025-04-02 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:04:26] Production.INFO: 45 MB #Memory Used# [2025-04-02 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:05:05 [end_date_ymd] => 2025-04-02 10:05:05 [RateCDR] => 1 ) [2025-04-02 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:05:05' and `end` < '2025-04-02 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:05:18] Production.INFO: count ==2268 [2025-04-02 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-02 07:05:05 - End Time 2025-04-02 10:05:05 [2025-04-02 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817448', 'tblTempUsageDetail_20' ) start [2025-04-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817448', 'tblTempUsageDetail_20' ) end [2025-04-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817448', 'tblTempVendorCDR_20' ) start [2025-04-02 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817448', 'tblTempVendorCDR_20' ) end [2025-04-02 10:05:19] Production.INFO: ProcessCDR(1,14817448,1,1,2) [2025-04-02 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817448', 'tblTempUsageDetail_20' ) start [2025-04-02 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817448', 'tblTempUsageDetail_20' ) end [2025-04-02 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:05:25] Production.INFO: ==20319== Releasing lock... [2025-04-02 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:05:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:06:06 [end_date_ymd] => 2025-04-02 10:06:06 [RateCDR] => 1 ) [2025-04-02 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:06:06' and `end` < '2025-04-02 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:06:20] Production.INFO: count ==2281 [2025-04-02 10:06:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:06:06 - End Time 2025-04-02 10:06:06 [2025-04-02 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817453', 'tblTempUsageDetail_20' ) start [2025-04-02 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817453', 'tblTempUsageDetail_20' ) end [2025-04-02 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817453', 'tblTempVendorCDR_20' ) start [2025-04-02 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817453', 'tblTempVendorCDR_20' ) end [2025-04-02 10:06:21] Production.INFO: ProcessCDR(1,14817453,1,1,2) [2025-04-02 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817453', 'tblTempUsageDetail_20' ) start [2025-04-02 10:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817453', 'tblTempUsageDetail_20' ) end [2025-04-02 10:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:06:27] Production.INFO: ==20437== Releasing lock... [2025-04-02 10:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:06:27] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:07:06 [end_date_ymd] => 2025-04-02 10:07:06 [RateCDR] => 1 ) [2025-04-02 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:07:06' and `end` < '2025-04-02 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:07:19] Production.INFO: count ==2311 [2025-04-02 10:07:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:07:06 - End Time 2025-04-02 10:07:06 [2025-04-02 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817458', 'tblTempUsageDetail_20' ) start [2025-04-02 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817458', 'tblTempUsageDetail_20' ) end [2025-04-02 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817458', 'tblTempVendorCDR_20' ) start [2025-04-02 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817458', 'tblTempVendorCDR_20' ) end [2025-04-02 10:07:20] Production.INFO: ProcessCDR(1,14817458,1,1,2) [2025-04-02 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817458', 'tblTempUsageDetail_20' ) start [2025-04-02 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817458', 'tblTempUsageDetail_20' ) end [2025-04-02 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:07:26] Production.INFO: ==20508== Releasing lock... [2025-04-02 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:07:26] Production.INFO: 45.5 MB #Memory Used# [2025-04-02 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:08:06 [end_date_ymd] => 2025-04-02 10:08:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:08:06' and `end` < '2025-04-02 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-04-02 10:08:19] Production.INFO: count ==2327 [2025-04-02 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:08:06 - End Time 2025-04-02 10:08:06 [2025-04-02 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817463', 'tblTempUsageDetail_20' ) start [2025-04-02 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817463', 'tblTempUsageDetail_20' ) end [2025-04-02 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817463', 'tblTempVendorCDR_20' ) start [2025-04-02 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817463', 'tblTempVendorCDR_20' ) end [2025-04-02 10:08:20] Production.INFO: ProcessCDR(1,14817463,1,1,2) [2025-04-02 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817463', 'tblTempUsageDetail_20' ) start [2025-04-02 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817463', 'tblTempUsageDetail_20' ) end [2025-04-02 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:08:26] Production.INFO: ==20579== Releasing lock... [2025-04-02 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:08:26] Production.INFO: 45.5 MB #Memory Used# [2025-04-02 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:09:05 [end_date_ymd] => 2025-04-02 10:09:05 [RateCDR] => 1 ) [2025-04-02 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:09:05' and `end` < '2025-04-02 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:09:18] Production.INFO: count ==2341 [2025-04-02 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 07:09:05 - End Time 2025-04-02 10:09:05 [2025-04-02 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817468', 'tblTempUsageDetail_20' ) start [2025-04-02 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817468', 'tblTempUsageDetail_20' ) end [2025-04-02 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817468', 'tblTempVendorCDR_20' ) start [2025-04-02 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817468', 'tblTempVendorCDR_20' ) end [2025-04-02 10:09:19] Production.INFO: ProcessCDR(1,14817468,1,1,2) [2025-04-02 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817468', 'tblTempUsageDetail_20' ) start [2025-04-02 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817468', 'tblTempUsageDetail_20' ) end [2025-04-02 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:09:25] Production.INFO: ==20655== Releasing lock... [2025-04-02 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:09:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:10:06 [end_date_ymd] => 2025-04-02 10:10:06 [RateCDR] => 1 ) [2025-04-02 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:10:06' and `end` < '2025-04-02 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:10:19] Production.INFO: count ==2386 [2025-04-02 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:10:06 - End Time 2025-04-02 10:10:06 [2025-04-02 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817473', 'tblTempUsageDetail_20' ) start [2025-04-02 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817473', 'tblTempUsageDetail_20' ) end [2025-04-02 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817473', 'tblTempVendorCDR_20' ) start [2025-04-02 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817473', 'tblTempVendorCDR_20' ) end [2025-04-02 10:10:21] Production.INFO: ProcessCDR(1,14817473,1,1,2) [2025-04-02 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817473', 'tblTempUsageDetail_20' ) start [2025-04-02 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817473', 'tblTempUsageDetail_20' ) end [2025-04-02 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:10:26] Production.INFO: ==20733== Releasing lock... [2025-04-02 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:10:26] Production.INFO: 46 MB #Memory Used# [2025-04-02 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:11:05 [end_date_ymd] => 2025-04-02 10:11:05 [RateCDR] => 1 ) [2025-04-02 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:11:05' and `end` < '2025-04-02 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:11:19] Production.INFO: count ==2491 [2025-04-02 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:11:05 - End Time 2025-04-02 10:11:05 [2025-04-02 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817479', 'tblTempUsageDetail_20' ) start [2025-04-02 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817479', 'tblTempUsageDetail_20' ) end [2025-04-02 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817479', 'tblTempVendorCDR_20' ) start [2025-04-02 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817479', 'tblTempVendorCDR_20' ) end [2025-04-02 10:11:20] Production.INFO: ProcessCDR(1,14817479,1,1,2) [2025-04-02 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817479', 'tblTempUsageDetail_20' ) start [2025-04-02 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817479', 'tblTempUsageDetail_20' ) end [2025-04-02 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:11:25] Production.INFO: ==20809== Releasing lock... [2025-04-02 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:11:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:12:06 [end_date_ymd] => 2025-04-02 10:12:06 [RateCDR] => 1 ) [2025-04-02 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:12:06' and `end` < '2025-04-02 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:12:19] Production.INFO: count ==2505 [2025-04-02 10:12:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:12:06 - End Time 2025-04-02 10:12:06 [2025-04-02 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817484', 'tblTempUsageDetail_20' ) start [2025-04-02 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817484', 'tblTempUsageDetail_20' ) end [2025-04-02 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817484', 'tblTempVendorCDR_20' ) start [2025-04-02 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817484', 'tblTempVendorCDR_20' ) end [2025-04-02 10:12:20] Production.INFO: ProcessCDR(1,14817484,1,1,2) [2025-04-02 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817484', 'tblTempUsageDetail_20' ) start [2025-04-02 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817484', 'tblTempUsageDetail_20' ) end [2025-04-02 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:12:26] Production.INFO: ==20885== Releasing lock... [2025-04-02 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:12:26] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:13:05 [end_date_ymd] => 2025-04-02 10:13:05 [RateCDR] => 1 ) [2025-04-02 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:13:05' and `end` < '2025-04-02 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:13:18] Production.INFO: count ==2530 [2025-04-02 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 07:13:05 - End Time 2025-04-02 10:13:05 [2025-04-02 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817487', 'tblTempUsageDetail_20' ) start [2025-04-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817487', 'tblTempUsageDetail_20' ) end [2025-04-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817487', 'tblTempVendorCDR_20' ) start [2025-04-02 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817487', 'tblTempVendorCDR_20' ) end [2025-04-02 10:13:19] Production.INFO: ProcessCDR(1,14817487,1,1,2) [2025-04-02 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817487', 'tblTempUsageDetail_20' ) start [2025-04-02 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817487', 'tblTempUsageDetail_20' ) end [2025-04-02 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:13:25] Production.INFO: ==20961== Releasing lock... [2025-04-02 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:13:25] Production.INFO: 47 MB #Memory Used# [2025-04-02 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:14:06 [end_date_ymd] => 2025-04-02 10:14:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:14:06' and `end` < '2025-04-02 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-04-02 10:14:19] Production.INFO: count ==2536 [2025-04-02 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:14:06 - End Time 2025-04-02 10:14:06 [2025-04-02 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817494', 'tblTempUsageDetail_20' ) start [2025-04-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817494', 'tblTempUsageDetail_20' ) end [2025-04-02 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817494', 'tblTempVendorCDR_20' ) start [2025-04-02 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817494', 'tblTempVendorCDR_20' ) end [2025-04-02 10:14:21] Production.INFO: ProcessCDR(1,14817494,1,1,2) [2025-04-02 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817494', 'tblTempUsageDetail_20' ) start [2025-04-02 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817494', 'tblTempUsageDetail_20' ) end [2025-04-02 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:14:26] Production.INFO: ==21038== Releasing lock... [2025-04-02 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:14:26] Production.INFO: 47 MB #Memory Used# [2025-04-02 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:15:05 [end_date_ymd] => 2025-04-02 10:15:05 [RateCDR] => 1 ) [2025-04-02 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:15:05' and `end` < '2025-04-02 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:15:19] Production.INFO: count ==2554 [2025-04-02 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:15:05 - End Time 2025-04-02 10:15:05 [2025-04-02 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817499', 'tblTempUsageDetail_20' ) start [2025-04-02 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817499', 'tblTempUsageDetail_20' ) end [2025-04-02 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817499', 'tblTempVendorCDR_20' ) start [2025-04-02 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817499', 'tblTempVendorCDR_20' ) end [2025-04-02 10:15:20] Production.INFO: ProcessCDR(1,14817499,1,1,2) [2025-04-02 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817499', 'tblTempUsageDetail_20' ) start [2025-04-02 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817499', 'tblTempUsageDetail_20' ) end [2025-04-02 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:15:26] Production.INFO: ==21110== Releasing lock... [2025-04-02 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:15:26] Production.INFO: 47.25 MB #Memory Used# [2025-04-02 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:16:06 [end_date_ymd] => 2025-04-02 10:16:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:16:06' and `end` < '2025-04-02 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-04-02 10:16:19] Production.INFO: count ==2573 [2025-04-02 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:16:06 - End Time 2025-04-02 10:16:06 [2025-04-02 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817504', 'tblTempUsageDetail_20' ) start [2025-04-02 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817504', 'tblTempUsageDetail_20' ) end [2025-04-02 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817504', 'tblTempVendorCDR_20' ) start [2025-04-02 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817504', 'tblTempVendorCDR_20' ) end [2025-04-02 10:16:20] Production.INFO: ProcessCDR(1,14817504,1,1,2) [2025-04-02 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817504', 'tblTempUsageDetail_20' ) start [2025-04-02 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817504', 'tblTempUsageDetail_20' ) end [2025-04-02 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:16:27] Production.INFO: ==21182== Releasing lock... [2025-04-02 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:16:27] Production.INFO: 47.5 MB #Memory Used# [2025-04-02 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:17:06 [end_date_ymd] => 2025-04-02 10:17:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:17:06' and `end` < '2025-04-02 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:17:19] Production.INFO: count ==2609 [2025-04-02 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:17:06 - End Time 2025-04-02 10:17:06 [2025-04-02 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817509', 'tblTempUsageDetail_20' ) start [2025-04-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817509', 'tblTempUsageDetail_20' ) end [2025-04-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817509', 'tblTempVendorCDR_20' ) start [2025-04-02 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817509', 'tblTempVendorCDR_20' ) end [2025-04-02 10:17:20] Production.INFO: ProcessCDR(1,14817509,1,1,2) [2025-04-02 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817509', 'tblTempUsageDetail_20' ) start [2025-04-02 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817509', 'tblTempUsageDetail_20' ) end [2025-04-02 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:17:26] Production.INFO: ==21255== Releasing lock... [2025-04-02 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:17:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-02 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:18:06 [end_date_ymd] => 2025-04-02 10:18:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:18:06' and `end` < '2025-04-02 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-04-02 10:18:19] Production.INFO: count ==2618 [2025-04-02 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:18:06 - End Time 2025-04-02 10:18:06 [2025-04-02 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817514', 'tblTempUsageDetail_20' ) start [2025-04-02 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817514', 'tblTempUsageDetail_20' ) end [2025-04-02 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817514', 'tblTempVendorCDR_20' ) start [2025-04-02 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817514', 'tblTempVendorCDR_20' ) end [2025-04-02 10:18:20] Production.INFO: ProcessCDR(1,14817514,1,1,2) [2025-04-02 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817514', 'tblTempUsageDetail_20' ) start [2025-04-02 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817514', 'tblTempUsageDetail_20' ) end [2025-04-02 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:18:26] Production.INFO: ==21328== Releasing lock... [2025-04-02 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:18:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-02 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:19:05 [end_date_ymd] => 2025-04-02 10:19:05 [RateCDR] => 1 ) [2025-04-02 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:19:05' and `end` < '2025-04-02 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:19:19] Production.INFO: count ==2654 [2025-04-02 10:19:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:19:05 - End Time 2025-04-02 10:19:05 [2025-04-02 10:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817519', 'tblTempUsageDetail_20' ) start [2025-04-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817519', 'tblTempUsageDetail_20' ) end [2025-04-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817519', 'tblTempVendorCDR_20' ) start [2025-04-02 10:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817519', 'tblTempVendorCDR_20' ) end [2025-04-02 10:19:21] Production.INFO: ProcessCDR(1,14817519,1,1,2) [2025-04-02 10:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817519', 'tblTempUsageDetail_20' ) start [2025-04-02 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817519', 'tblTempUsageDetail_20' ) end [2025-04-02 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:19:27] Production.INFO: ==21401== Releasing lock... [2025-04-02 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:19:27] Production.INFO: 48 MB #Memory Used# [2025-04-02 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:20:06 [end_date_ymd] => 2025-04-02 10:20:06 [RateCDR] => 1 ) [2025-04-02 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:20:06' and `end` < '2025-04-02 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:20:20] Production.INFO: count ==2690 [2025-04-02 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:20:06 - End Time 2025-04-02 10:20:06 [2025-04-02 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817525', 'tblTempUsageDetail_20' ) start [2025-04-02 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817525', 'tblTempUsageDetail_20' ) end [2025-04-02 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817525', 'tblTempVendorCDR_20' ) start [2025-04-02 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817525', 'tblTempVendorCDR_20' ) end [2025-04-02 10:20:21] Production.INFO: ProcessCDR(1,14817525,1,1,2) [2025-04-02 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817525', 'tblTempUsageDetail_20' ) start [2025-04-02 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817525', 'tblTempUsageDetail_20' ) end [2025-04-02 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:20:27] Production.INFO: ==21482== Releasing lock... [2025-04-02 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:20:27] Production.INFO: 48.25 MB #Memory Used# [2025-04-02 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:21:05 [end_date_ymd] => 2025-04-02 10:21:05 [RateCDR] => 1 ) [2025-04-02 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:21:05' and `end` < '2025-04-02 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:21:18] Production.INFO: count ==2825 [2025-04-02 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:21:05 - End Time 2025-04-02 10:21:05 [2025-04-02 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817530', 'tblTempUsageDetail_20' ) start [2025-04-02 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817530', 'tblTempUsageDetail_20' ) end [2025-04-02 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817530', 'tblTempVendorCDR_20' ) start [2025-04-02 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817530', 'tblTempVendorCDR_20' ) end [2025-04-02 10:21:20] Production.INFO: ProcessCDR(1,14817530,1,1,2) [2025-04-02 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817530', 'tblTempUsageDetail_20' ) start [2025-04-02 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817530', 'tblTempUsageDetail_20' ) end [2025-04-02 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:21:26] Production.INFO: ==21594== Releasing lock... [2025-04-02 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:21:26] Production.INFO: 49 MB #Memory Used# [2025-04-02 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:22:06 [end_date_ymd] => 2025-04-02 10:22:06 [RateCDR] => 1 ) [2025-04-02 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:22:06' and `end` < '2025-04-02 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:22:19] Production.INFO: count ==2838 [2025-04-02 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:22:06 - End Time 2025-04-02 10:22:06 [2025-04-02 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817535', 'tblTempUsageDetail_20' ) start [2025-04-02 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817535', 'tblTempUsageDetail_20' ) end [2025-04-02 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817535', 'tblTempVendorCDR_20' ) start [2025-04-02 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817535', 'tblTempVendorCDR_20' ) end [2025-04-02 10:22:21] Production.INFO: ProcessCDR(1,14817535,1,1,2) [2025-04-02 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817535', 'tblTempUsageDetail_20' ) start [2025-04-02 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817535', 'tblTempUsageDetail_20' ) end [2025-04-02 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:22:26] Production.INFO: ==21665== Releasing lock... [2025-04-02 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:22:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:23:05 [end_date_ymd] => 2025-04-02 10:23:05 [RateCDR] => 1 ) [2025-04-02 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:23:05' and `end` < '2025-04-02 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:23:19] Production.INFO: count ==2850 [2025-04-02 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:23:05 - End Time 2025-04-02 10:23:05 [2025-04-02 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817540', 'tblTempUsageDetail_20' ) start [2025-04-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817540', 'tblTempUsageDetail_20' ) end [2025-04-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817540', 'tblTempVendorCDR_20' ) start [2025-04-02 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817540', 'tblTempVendorCDR_20' ) end [2025-04-02 10:23:20] Production.INFO: ProcessCDR(1,14817540,1,1,2) [2025-04-02 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817540', 'tblTempUsageDetail_20' ) start [2025-04-02 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817540', 'tblTempUsageDetail_20' ) end [2025-04-02 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:23:26] Production.INFO: ==21735== Releasing lock... [2025-04-02 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:23:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:24:05 [end_date_ymd] => 2025-04-02 10:24:05 [RateCDR] => 1 ) [2025-04-02 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:24:05' and `end` < '2025-04-02 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:24:19] Production.INFO: count ==2891 [2025-04-02 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:24:05 - End Time 2025-04-02 10:24:05 [2025-04-02 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817545', 'tblTempUsageDetail_20' ) start [2025-04-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817545', 'tblTempUsageDetail_20' ) end [2025-04-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817545', 'tblTempVendorCDR_20' ) start [2025-04-02 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817545', 'tblTempVendorCDR_20' ) end [2025-04-02 10:24:20] Production.INFO: ProcessCDR(1,14817545,1,1,2) [2025-04-02 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817545', 'tblTempUsageDetail_20' ) start [2025-04-02 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817545', 'tblTempUsageDetail_20' ) end [2025-04-02 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:24:26] Production.INFO: ==21805== Releasing lock... [2025-04-02 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:24:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-02 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:25:06 [end_date_ymd] => 2025-04-02 10:25:06 [RateCDR] => 1 ) [2025-04-02 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:25:06' and `end` < '2025-04-02 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:25:19] Production.INFO: count ==2925 [2025-04-02 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:25:06 - End Time 2025-04-02 10:25:06 [2025-04-02 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817550', 'tblTempUsageDetail_20' ) start [2025-04-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817550', 'tblTempUsageDetail_20' ) end [2025-04-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817550', 'tblTempVendorCDR_20' ) start [2025-04-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817550', 'tblTempVendorCDR_20' ) end [2025-04-02 10:25:20] Production.INFO: ProcessCDR(1,14817550,1,1,2) [2025-04-02 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817550', 'tblTempUsageDetail_20' ) start [2025-04-02 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817550', 'tblTempUsageDetail_20' ) end [2025-04-02 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:25:27] Production.INFO: ==21876== Releasing lock... [2025-04-02 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:25:27] Production.INFO: 50.5 MB #Memory Used# [2025-04-02 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:26:06 [end_date_ymd] => 2025-04-02 10:26:06 [RateCDR] => 1 ) [2025-04-02 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:26:06' and `end` < '2025-04-02 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:26:19] Production.INFO: count ==2941 [2025-04-02 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:26:06 - End Time 2025-04-02 10:26:06 [2025-04-02 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817555', 'tblTempUsageDetail_20' ) start [2025-04-02 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817555', 'tblTempUsageDetail_20' ) end [2025-04-02 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817555', 'tblTempVendorCDR_20' ) start [2025-04-02 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817555', 'tblTempVendorCDR_20' ) end [2025-04-02 10:26:20] Production.INFO: ProcessCDR(1,14817555,1,1,2) [2025-04-02 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817555', 'tblTempUsageDetail_20' ) start [2025-04-02 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817555', 'tblTempUsageDetail_20' ) end [2025-04-02 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:26:26] Production.INFO: ==21953== Releasing lock... [2025-04-02 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:26:26] Production.INFO: 50.25 MB #Memory Used# [2025-04-02 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:27:05 [end_date_ymd] => 2025-04-02 10:27:05 [RateCDR] => 1 ) [2025-04-02 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:27:05' and `end` < '2025-04-02 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:27:18] Production.INFO: count ==2965 [2025-04-02 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:27:05 - End Time 2025-04-02 10:27:05 [2025-04-02 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817560', 'tblTempUsageDetail_20' ) start [2025-04-02 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817560', 'tblTempUsageDetail_20' ) end [2025-04-02 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817560', 'tblTempVendorCDR_20' ) start [2025-04-02 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817560', 'tblTempVendorCDR_20' ) end [2025-04-02 10:27:20] Production.INFO: ProcessCDR(1,14817560,1,1,2) [2025-04-02 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817560', 'tblTempUsageDetail_20' ) start [2025-04-02 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817560', 'tblTempUsageDetail_20' ) end [2025-04-02 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:27:26] Production.INFO: ==22023== Releasing lock... [2025-04-02 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:27:26] Production.INFO: 50.75 MB #Memory Used# [2025-04-02 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:28:06 [end_date_ymd] => 2025-04-02 10:28:06 [RateCDR] => 1 ) [2025-04-02 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:28:06' and `end` < '2025-04-02 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:28:19] Production.INFO: count ==2976 [2025-04-02 10:28:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:28:06 - End Time 2025-04-02 10:28:06 [2025-04-02 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817565', 'tblTempUsageDetail_20' ) start [2025-04-02 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817565', 'tblTempUsageDetail_20' ) end [2025-04-02 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817565', 'tblTempVendorCDR_20' ) start [2025-04-02 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817565', 'tblTempVendorCDR_20' ) end [2025-04-02 10:28:21] Production.INFO: ProcessCDR(1,14817565,1,1,2) [2025-04-02 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817565', 'tblTempUsageDetail_20' ) start [2025-04-02 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817565', 'tblTempUsageDetail_20' ) end [2025-04-02 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:28:27] Production.INFO: ==22096== Releasing lock... [2025-04-02 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:28:27] Production.INFO: 50.25 MB #Memory Used# [2025-04-02 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:29:05 [end_date_ymd] => 2025-04-02 10:29:05 [RateCDR] => 1 ) [2025-04-02 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:29:05' and `end` < '2025-04-02 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:29:19] Production.INFO: count ==2999 [2025-04-02 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:29:05 - End Time 2025-04-02 10:29:05 [2025-04-02 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817570', 'tblTempUsageDetail_20' ) start [2025-04-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817570', 'tblTempUsageDetail_20' ) end [2025-04-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817570', 'tblTempVendorCDR_20' ) start [2025-04-02 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817570', 'tblTempVendorCDR_20' ) end [2025-04-02 10:29:20] Production.INFO: ProcessCDR(1,14817570,1,1,2) [2025-04-02 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817570', 'tblTempUsageDetail_20' ) start [2025-04-02 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817570', 'tblTempUsageDetail_20' ) end [2025-04-02 10:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:29:26] Production.INFO: ==22170== Releasing lock... [2025-04-02 10:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:29:26] Production.INFO: 50.25 MB #Memory Used# [2025-04-02 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:30:06 [end_date_ymd] => 2025-04-02 10:30:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:30:06' and `end` < '2025-04-02 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-04-02 10:30:20] Production.INFO: count ==3044 [2025-04-02 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:30:06 - End Time 2025-04-02 10:30:06 [2025-04-02 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817576', 'tblTempUsageDetail_20' ) start [2025-04-02 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817576', 'tblTempUsageDetail_20' ) end [2025-04-02 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817576', 'tblTempVendorCDR_20' ) start [2025-04-02 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817576', 'tblTempVendorCDR_20' ) end [2025-04-02 10:30:21] Production.INFO: ProcessCDR(1,14817576,1,1,2) [2025-04-02 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817576', 'tblTempUsageDetail_20' ) start [2025-04-02 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817576', 'tblTempUsageDetail_20' ) end [2025-04-02 10:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:30:28] Production.INFO: ==22244== Releasing lock... [2025-04-02 10:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:30:28] Production.INFO: 51 MB #Memory Used# [2025-04-02 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:31:06 [end_date_ymd] => 2025-04-02 10:31:06 [RateCDR] => 1 ) [2025-04-02 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:31:06' and `end` < '2025-04-02 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:31:19] Production.INFO: count ==3174 [2025-04-02 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:31:06 - End Time 2025-04-02 10:31:06 [2025-04-02 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817581', 'tblTempUsageDetail_20' ) start [2025-04-02 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817581', 'tblTempUsageDetail_20' ) end [2025-04-02 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817581', 'tblTempVendorCDR_20' ) start [2025-04-02 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817581', 'tblTempVendorCDR_20' ) end [2025-04-02 10:31:21] Production.INFO: ProcessCDR(1,14817581,1,1,2) [2025-04-02 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817581', 'tblTempUsageDetail_20' ) start [2025-04-02 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817581', 'tblTempUsageDetail_20' ) end [2025-04-02 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:31:26] Production.INFO: ==22318== Releasing lock... [2025-04-02 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:31:26] Production.INFO: 52 MB #Memory Used# [2025-04-02 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:32:06 [end_date_ymd] => 2025-04-02 10:32:06 [RateCDR] => 1 ) [2025-04-02 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:32:06' and `end` < '2025-04-02 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:32:19] Production.INFO: count ==3184 [2025-04-02 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:32:06 - End Time 2025-04-02 10:32:06 [2025-04-02 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817586', 'tblTempUsageDetail_20' ) start [2025-04-02 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817586', 'tblTempUsageDetail_20' ) end [2025-04-02 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817586', 'tblTempVendorCDR_20' ) start [2025-04-02 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817586', 'tblTempVendorCDR_20' ) end [2025-04-02 10:32:20] Production.INFO: ProcessCDR(1,14817586,1,1,2) [2025-04-02 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817586', 'tblTempUsageDetail_20' ) start [2025-04-02 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817586', 'tblTempUsageDetail_20' ) end [2025-04-02 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:32:26] Production.INFO: ==22392== Releasing lock... [2025-04-02 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:32:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-02 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:33:06 [end_date_ymd] => 2025-04-02 10:33:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:33:06' and `end` < '2025-04-02 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-04-02 10:33:20] Production.INFO: count ==3228 [2025-04-02 10:33:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:33:06 - End Time 2025-04-02 10:33:06 [2025-04-02 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817591', 'tblTempUsageDetail_20' ) start [2025-04-02 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817591', 'tblTempUsageDetail_20' ) end [2025-04-02 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817591', 'tblTempVendorCDR_20' ) start [2025-04-02 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817591', 'tblTempVendorCDR_20' ) end [2025-04-02 10:33:21] Production.INFO: ProcessCDR(1,14817591,1,1,2) [2025-04-02 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817591', 'tblTempUsageDetail_20' ) start [2025-04-02 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817591', 'tblTempUsageDetail_20' ) end [2025-04-02 10:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:33:27] Production.INFO: ==22484== Releasing lock... [2025-04-02 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:33:27] Production.INFO: 52.25 MB #Memory Used# [2025-04-02 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:34:06 [end_date_ymd] => 2025-04-02 10:34:06 [RateCDR] => 1 ) [2025-04-02 10:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:34:06' and `end` < '2025-04-02 10:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:34:19] Production.INFO: count ==3250 [2025-04-02 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:34:06 - End Time 2025-04-02 10:34:06 [2025-04-02 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817596', 'tblTempUsageDetail_20' ) start [2025-04-02 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817596', 'tblTempUsageDetail_20' ) end [2025-04-02 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817596', 'tblTempVendorCDR_20' ) start [2025-04-02 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817596', 'tblTempVendorCDR_20' ) end [2025-04-02 10:34:21] Production.INFO: ProcessCDR(1,14817596,1,1,2) [2025-04-02 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817596', 'tblTempUsageDetail_20' ) start [2025-04-02 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817596', 'tblTempUsageDetail_20' ) end [2025-04-02 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:34:27] Production.INFO: ==22554== Releasing lock... [2025-04-02 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:34:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-02 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:35:05 [end_date_ymd] => 2025-04-02 10:35:05 [RateCDR] => 1 ) [2025-04-02 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:35:05' and `end` < '2025-04-02 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:35:19] Production.INFO: count ==3280 [2025-04-02 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:35:05 - End Time 2025-04-02 10:35:05 [2025-04-02 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817601', 'tblTempUsageDetail_20' ) start [2025-04-02 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817601', 'tblTempUsageDetail_20' ) end [2025-04-02 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817601', 'tblTempVendorCDR_20' ) start [2025-04-02 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817601', 'tblTempVendorCDR_20' ) end [2025-04-02 10:35:20] Production.INFO: ProcessCDR(1,14817601,1,1,2) [2025-04-02 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817601', 'tblTempUsageDetail_20' ) start [2025-04-02 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817601', 'tblTempUsageDetail_20' ) end [2025-04-02 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:35:27] Production.INFO: ==22626== Releasing lock... [2025-04-02 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:35:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-02 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:36:06 [end_date_ymd] => 2025-04-02 10:36:06 [RateCDR] => 1 ) [2025-04-02 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:36:06' and `end` < '2025-04-02 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:36:19] Production.INFO: count ==3311 [2025-04-02 10:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:36:06 - End Time 2025-04-02 10:36:06 [2025-04-02 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817606', 'tblTempUsageDetail_20' ) start [2025-04-02 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817606', 'tblTempUsageDetail_20' ) end [2025-04-02 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817606', 'tblTempVendorCDR_20' ) start [2025-04-02 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817606', 'tblTempVendorCDR_20' ) end [2025-04-02 10:36:21] Production.INFO: ProcessCDR(1,14817606,1,1,2) [2025-04-02 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817606', 'tblTempUsageDetail_20' ) start [2025-04-02 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817606', 'tblTempUsageDetail_20' ) end [2025-04-02 10:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:36:27] Production.INFO: ==22738== Releasing lock... [2025-04-02 10:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:36:27] Production.INFO: 53 MB #Memory Used# [2025-04-02 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:37:06 [end_date_ymd] => 2025-04-02 10:37:06 [RateCDR] => 1 ) [2025-04-02 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:37:06' and `end` < '2025-04-02 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:37:19] Production.INFO: count ==3321 [2025-04-02 10:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:37:06 - End Time 2025-04-02 10:37:06 [2025-04-02 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817611', 'tblTempUsageDetail_20' ) start [2025-04-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817611', 'tblTempUsageDetail_20' ) end [2025-04-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817611', 'tblTempVendorCDR_20' ) start [2025-04-02 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817611', 'tblTempVendorCDR_20' ) end [2025-04-02 10:37:21] Production.INFO: ProcessCDR(1,14817611,1,1,2) [2025-04-02 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817611', 'tblTempUsageDetail_20' ) start [2025-04-02 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817611', 'tblTempUsageDetail_20' ) end [2025-04-02 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:37:27] Production.INFO: ==22812== Releasing lock... [2025-04-02 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:37:27] Production.INFO: 52.75 MB #Memory Used# [2025-04-02 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:38:06 [end_date_ymd] => 2025-04-02 10:38:06 [RateCDR] => 1 ) [2025-04-02 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:38:06' and `end` < '2025-04-02 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:38:19] Production.INFO: count ==3334 [2025-04-02 10:38:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:38:06 - End Time 2025-04-02 10:38:06 [2025-04-02 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817616', 'tblTempUsageDetail_20' ) start [2025-04-02 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817616', 'tblTempUsageDetail_20' ) end [2025-04-02 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817616', 'tblTempVendorCDR_20' ) start [2025-04-02 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817616', 'tblTempVendorCDR_20' ) end [2025-04-02 10:38:21] Production.INFO: ProcessCDR(1,14817616,1,1,2) [2025-04-02 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817616', 'tblTempUsageDetail_20' ) start [2025-04-02 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817616', 'tblTempUsageDetail_20' ) end [2025-04-02 10:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:38:27] Production.INFO: ==22884== Releasing lock... [2025-04-02 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:38:27] Production.INFO: 53.25 MB #Memory Used# [2025-04-02 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:39:05 [end_date_ymd] => 2025-04-02 10:39:05 [RateCDR] => 1 ) [2025-04-02 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:39:05' and `end` < '2025-04-02 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:39:19] Production.INFO: count ==3355 [2025-04-02 10:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:39:05 - End Time 2025-04-02 10:39:05 [2025-04-02 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817621', 'tblTempUsageDetail_20' ) start [2025-04-02 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817621', 'tblTempUsageDetail_20' ) end [2025-04-02 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817621', 'tblTempVendorCDR_20' ) start [2025-04-02 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817621', 'tblTempVendorCDR_20' ) end [2025-04-02 10:39:21] Production.INFO: ProcessCDR(1,14817621,1,1,2) [2025-04-02 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817621', 'tblTempUsageDetail_20' ) start [2025-04-02 10:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817621', 'tblTempUsageDetail_20' ) end [2025-04-02 10:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:39:27] Production.INFO: ==22958== Releasing lock... [2025-04-02 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:39:27] Production.INFO: 53.5 MB #Memory Used# [2025-04-02 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:40:06 [end_date_ymd] => 2025-04-02 10:40:06 [RateCDR] => 1 ) [2025-04-02 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:40:06' and `end` < '2025-04-02 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:40:20] Production.INFO: count ==3387 [2025-04-02 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:40:06 - End Time 2025-04-02 10:40:06 [2025-04-02 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817627', 'tblTempUsageDetail_20' ) start [2025-04-02 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817627', 'tblTempUsageDetail_20' ) end [2025-04-02 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817627', 'tblTempVendorCDR_20' ) start [2025-04-02 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817627', 'tblTempVendorCDR_20' ) end [2025-04-02 10:40:21] Production.INFO: ProcessCDR(1,14817627,1,1,2) [2025-04-02 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817627', 'tblTempUsageDetail_20' ) start [2025-04-02 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817627', 'tblTempUsageDetail_20' ) end [2025-04-02 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:40:27] Production.INFO: ==23034== Releasing lock... [2025-04-02 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:40:27] Production.INFO: 53.75 MB #Memory Used# [2025-04-02 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:41:06 [end_date_ymd] => 2025-04-02 10:41:06 [RateCDR] => 1 ) [2025-04-02 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:41:06' and `end` < '2025-04-02 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:41:19] Production.INFO: count ==3537 [2025-04-02 10:41:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:41:06 - End Time 2025-04-02 10:41:06 [2025-04-02 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817632', 'tblTempUsageDetail_20' ) start [2025-04-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817632', 'tblTempUsageDetail_20' ) end [2025-04-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817632', 'tblTempVendorCDR_20' ) start [2025-04-02 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817632', 'tblTempVendorCDR_20' ) end [2025-04-02 10:41:21] Production.INFO: ProcessCDR(1,14817632,1,1,2) [2025-04-02 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817632', 'tblTempUsageDetail_20' ) start [2025-04-02 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817632', 'tblTempUsageDetail_20' ) end [2025-04-02 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:41:26] Production.INFO: ==23109== Releasing lock... [2025-04-02 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:41:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-02 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:42:06 [end_date_ymd] => 2025-04-02 10:42:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:42:06' and `end` < '2025-04-02 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-04-02 10:42:19] Production.INFO: count ==3556 [2025-04-02 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:42:06 - End Time 2025-04-02 10:42:06 [2025-04-02 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817637', 'tblTempUsageDetail_20' ) start [2025-04-02 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817637', 'tblTempUsageDetail_20' ) end [2025-04-02 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817637', 'tblTempVendorCDR_20' ) start [2025-04-02 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817637', 'tblTempVendorCDR_20' ) end [2025-04-02 10:42:21] Production.INFO: ProcessCDR(1,14817637,1,1,2) [2025-04-02 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817637', 'tblTempUsageDetail_20' ) start [2025-04-02 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817637', 'tblTempUsageDetail_20' ) end [2025-04-02 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:42:26] Production.INFO: ==23191== Releasing lock... [2025-04-02 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:42:26] Production.INFO: 55 MB #Memory Used# [2025-04-02 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:43:06 [end_date_ymd] => 2025-04-02 10:43:06 [RateCDR] => 1 ) [2025-04-02 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:43:06' and `end` < '2025-04-02 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:43:19] Production.INFO: count ==3560 [2025-04-02 10:43:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:43:06 - End Time 2025-04-02 10:43:06 [2025-04-02 10:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817642', 'tblTempUsageDetail_20' ) start [2025-04-02 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817642', 'tblTempUsageDetail_20' ) end [2025-04-02 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817642', 'tblTempVendorCDR_20' ) start [2025-04-02 10:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817642', 'tblTempVendorCDR_20' ) end [2025-04-02 10:43:21] Production.INFO: ProcessCDR(1,14817642,1,1,2) [2025-04-02 10:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817642', 'tblTempUsageDetail_20' ) start [2025-04-02 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817642', 'tblTempUsageDetail_20' ) end [2025-04-02 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:43:26] Production.INFO: ==23275== Releasing lock... [2025-04-02 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:43:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-02 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:44:05 [end_date_ymd] => 2025-04-02 10:44:05 [RateCDR] => 1 ) [2025-04-02 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:44:05' and `end` < '2025-04-02 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:44:18] Production.INFO: count ==3586 [2025-04-02 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:44:05 - End Time 2025-04-02 10:44:05 [2025-04-02 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817647', 'tblTempUsageDetail_20' ) start [2025-04-02 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817647', 'tblTempUsageDetail_20' ) end [2025-04-02 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817647', 'tblTempVendorCDR_20' ) start [2025-04-02 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817647', 'tblTempVendorCDR_20' ) end [2025-04-02 10:44:20] Production.INFO: ProcessCDR(1,14817647,1,1,2) [2025-04-02 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817647', 'tblTempUsageDetail_20' ) start [2025-04-02 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817647', 'tblTempUsageDetail_20' ) end [2025-04-02 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:44:26] Production.INFO: ==23362== Releasing lock... [2025-04-02 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:44:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-02 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:45:06 [end_date_ymd] => 2025-04-02 10:45:06 [RateCDR] => 1 ) [2025-04-02 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:45:06' and `end` < '2025-04-02 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:45:20] Production.INFO: count ==3628 [2025-04-02 10:45:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:45:06 - End Time 2025-04-02 10:45:06 [2025-04-02 10:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817652', 'tblTempUsageDetail_20' ) start [2025-04-02 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817652', 'tblTempUsageDetail_20' ) end [2025-04-02 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817652', 'tblTempVendorCDR_20' ) start [2025-04-02 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817652', 'tblTempVendorCDR_20' ) end [2025-04-02 10:45:21] Production.INFO: ProcessCDR(1,14817652,1,1,2) [2025-04-02 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817652', 'tblTempUsageDetail_20' ) start [2025-04-02 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817652', 'tblTempUsageDetail_20' ) end [2025-04-02 10:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:45:28] Production.INFO: ==23448== Releasing lock... [2025-04-02 10:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:45:28] Production.INFO: 55.75 MB #Memory Used# [2025-04-02 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:46:06 [end_date_ymd] => 2025-04-02 10:46:06 [RateCDR] => 1 ) [2025-04-02 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:46:06' and `end` < '2025-04-02 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:46:19] Production.INFO: count ==3638 [2025-04-02 10:46:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:46:06 - End Time 2025-04-02 10:46:06 [2025-04-02 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817657', 'tblTempUsageDetail_20' ) start [2025-04-02 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817657', 'tblTempUsageDetail_20' ) end [2025-04-02 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817657', 'tblTempVendorCDR_20' ) start [2025-04-02 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817657', 'tblTempVendorCDR_20' ) end [2025-04-02 10:46:21] Production.INFO: ProcessCDR(1,14817657,1,1,2) [2025-04-02 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817657', 'tblTempUsageDetail_20' ) start [2025-04-02 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817657', 'tblTempUsageDetail_20' ) end [2025-04-02 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:46:27] Production.INFO: ==23528== Releasing lock... [2025-04-02 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:46:27] Production.INFO: 55.25 MB #Memory Used# [2025-04-02 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:47:06 [end_date_ymd] => 2025-04-02 10:47:06 [RateCDR] => 1 ) [2025-04-02 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:47:06' and `end` < '2025-04-02 10:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:47:19] Production.INFO: count ==3666 [2025-04-02 10:47:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:47:06 - End Time 2025-04-02 10:47:06 [2025-04-02 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817662', 'tblTempUsageDetail_20' ) start [2025-04-02 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817662', 'tblTempUsageDetail_20' ) end [2025-04-02 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817662', 'tblTempVendorCDR_20' ) start [2025-04-02 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817662', 'tblTempVendorCDR_20' ) end [2025-04-02 10:47:21] Production.INFO: ProcessCDR(1,14817662,1,1,2) [2025-04-02 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817662', 'tblTempUsageDetail_20' ) start [2025-04-02 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817662', 'tblTempUsageDetail_20' ) end [2025-04-02 10:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:47:27] Production.INFO: ==23609== Releasing lock... [2025-04-02 10:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:47:27] Production.INFO: 55.5 MB #Memory Used# [2025-04-02 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:48:05 [end_date_ymd] => 2025-04-02 10:48:05 [RateCDR] => 1 ) [2025-04-02 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:48:05' and `end` < '2025-04-02 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:48:19] Production.INFO: count ==3681 [2025-04-02 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:48:05 - End Time 2025-04-02 10:48:05 [2025-04-02 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817667', 'tblTempUsageDetail_20' ) start [2025-04-02 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817667', 'tblTempUsageDetail_20' ) end [2025-04-02 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817667', 'tblTempVendorCDR_20' ) start [2025-04-02 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817667', 'tblTempVendorCDR_20' ) end [2025-04-02 10:48:21] Production.INFO: ProcessCDR(1,14817667,1,1,2) [2025-04-02 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817667', 'tblTempUsageDetail_20' ) start [2025-04-02 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817667', 'tblTempUsageDetail_20' ) end [2025-04-02 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:48:27] Production.INFO: ==23687== Releasing lock... [2025-04-02 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:48:27] Production.INFO: 56 MB #Memory Used# [2025-04-02 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:49:06 [end_date_ymd] => 2025-04-02 10:49:06 [RateCDR] => 1 ) [2025-04-02 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:49:06' and `end` < '2025-04-02 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:49:20] Production.INFO: count ==3708 [2025-04-02 10:49:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:49:06 - End Time 2025-04-02 10:49:06 [2025-04-02 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817672', 'tblTempUsageDetail_20' ) start [2025-04-02 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817672', 'tblTempUsageDetail_20' ) end [2025-04-02 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817672', 'tblTempVendorCDR_20' ) start [2025-04-02 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817672', 'tblTempVendorCDR_20' ) end [2025-04-02 10:49:22] Production.INFO: ProcessCDR(1,14817672,1,1,2) [2025-04-02 10:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817672', 'tblTempUsageDetail_20' ) start [2025-04-02 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817672', 'tblTempUsageDetail_20' ) end [2025-04-02 10:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:49:28] Production.INFO: ==23771== Releasing lock... [2025-04-02 10:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:49:28] Production.INFO: 55.75 MB #Memory Used# [2025-04-02 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:50:06 [end_date_ymd] => 2025-04-02 10:50:06 [RateCDR] => 1 ) [2025-04-02 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:50:06' and `end` < '2025-04-02 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:50:20] Production.INFO: count ==3729 [2025-04-02 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:50:06 - End Time 2025-04-02 10:50:06 [2025-04-02 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817678', 'tblTempUsageDetail_20' ) start [2025-04-02 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817678', 'tblTempUsageDetail_20' ) end [2025-04-02 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817678', 'tblTempVendorCDR_20' ) start [2025-04-02 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817678', 'tblTempVendorCDR_20' ) end [2025-04-02 10:50:21] Production.INFO: ProcessCDR(1,14817678,1,1,2) [2025-04-02 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817678', 'tblTempUsageDetail_20' ) start [2025-04-02 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817678', 'tblTempUsageDetail_20' ) end [2025-04-02 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:50:27] Production.INFO: ==23852== Releasing lock... [2025-04-02 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:50:27] Production.INFO: 56 MB #Memory Used# [2025-04-02 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:51:06 [end_date_ymd] => 2025-04-02 10:51:06 [RateCDR] => 1 ) [2025-04-02 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:51:06' and `end` < '2025-04-02 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:51:20] Production.INFO: count ==3851 [2025-04-02 10:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:51:06 - End Time 2025-04-02 10:51:06 [2025-04-02 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817683', 'tblTempUsageDetail_20' ) start [2025-04-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817683', 'tblTempUsageDetail_20' ) end [2025-04-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817683', 'tblTempVendorCDR_20' ) start [2025-04-02 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817683', 'tblTempVendorCDR_20' ) end [2025-04-02 10:51:21] Production.INFO: ProcessCDR(1,14817683,1,1,2) [2025-04-02 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817683', 'tblTempUsageDetail_20' ) start [2025-04-02 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817683', 'tblTempUsageDetail_20' ) end [2025-04-02 10:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:51:28] Production.INFO: ==23942== Releasing lock... [2025-04-02 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:51:28] Production.INFO: 56.75 MB #Memory Used# [2025-04-02 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:52:05 [end_date_ymd] => 2025-04-02 10:52:05 [RateCDR] => 1 ) [2025-04-02 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:52:05' and `end` < '2025-04-02 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:52:19] Production.INFO: count ==3866 [2025-04-02 10:52:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:52:05 - End Time 2025-04-02 10:52:05 [2025-04-02 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817688', 'tblTempUsageDetail_20' ) start [2025-04-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817688', 'tblTempUsageDetail_20' ) end [2025-04-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817688', 'tblTempVendorCDR_20' ) start [2025-04-02 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817688', 'tblTempVendorCDR_20' ) end [2025-04-02 10:52:21] Production.INFO: ProcessCDR(1,14817688,1,1,2) [2025-04-02 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817688', 'tblTempUsageDetail_20' ) start [2025-04-02 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817688', 'tblTempUsageDetail_20' ) end [2025-04-02 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:52:26] Production.INFO: ==24073== Releasing lock... [2025-04-02 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:52:26] Production.INFO: 57 MB #Memory Used# [2025-04-02 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:53:06 [end_date_ymd] => 2025-04-02 10:53:06 [RateCDR] => 1 ) [2025-04-02 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:53:06' and `end` < '2025-04-02 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:53:19] Production.INFO: count ==3891 [2025-04-02 10:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:53:06 - End Time 2025-04-02 10:53:06 [2025-04-02 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817693', 'tblTempUsageDetail_20' ) start [2025-04-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817693', 'tblTempUsageDetail_20' ) end [2025-04-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817693', 'tblTempVendorCDR_20' ) start [2025-04-02 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817693', 'tblTempVendorCDR_20' ) end [2025-04-02 10:53:21] Production.INFO: ProcessCDR(1,14817693,1,1,2) [2025-04-02 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817693', 'tblTempUsageDetail_20' ) start [2025-04-02 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817693', 'tblTempUsageDetail_20' ) end [2025-04-02 10:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:53:27] Production.INFO: ==24163== Releasing lock... [2025-04-02 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:53:27] Production.INFO: 57 MB #Memory Used# [2025-04-02 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:54:05 [end_date_ymd] => 2025-04-02 10:54:05 [RateCDR] => 1 ) [2025-04-02 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:54:05' and `end` < '2025-04-02 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:54:18] Production.INFO: count ==3905 [2025-04-02 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-02 07:54:05 - End Time 2025-04-02 10:54:05 [2025-04-02 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817698', 'tblTempUsageDetail_20' ) start [2025-04-02 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817698', 'tblTempUsageDetail_20' ) end [2025-04-02 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817698', 'tblTempVendorCDR_20' ) start [2025-04-02 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817698', 'tblTempVendorCDR_20' ) end [2025-04-02 10:54:20] Production.INFO: ProcessCDR(1,14817698,1,1,2) [2025-04-02 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817698', 'tblTempUsageDetail_20' ) start [2025-04-02 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817698', 'tblTempUsageDetail_20' ) end [2025-04-02 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:54:25] Production.INFO: ==24242== Releasing lock... [2025-04-02 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:54:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-02 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:55:05 [end_date_ymd] => 2025-04-02 10:55:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 07:55:05' and `end` < '2025-04-02 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-04-02 10:55:19] Production.INFO: count ==3926 [2025-04-02 10:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:55:05 - End Time 2025-04-02 10:55:05 [2025-04-02 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817703', 'tblTempUsageDetail_20' ) start [2025-04-02 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817703', 'tblTempUsageDetail_20' ) end [2025-04-02 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817703', 'tblTempVendorCDR_20' ) start [2025-04-02 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817703', 'tblTempVendorCDR_20' ) end [2025-04-02 10:55:21] Production.INFO: ProcessCDR(1,14817703,1,1,2) [2025-04-02 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817703', 'tblTempUsageDetail_20' ) start [2025-04-02 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817703', 'tblTempUsageDetail_20' ) end [2025-04-02 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:55:27] Production.INFO: ==24329== Releasing lock... [2025-04-02 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:55:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-02 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:56:06 [end_date_ymd] => 2025-04-02 10:56:06 [RateCDR] => 1 ) [2025-04-02 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:56:06' and `end` < '2025-04-02 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:56:19] Production.INFO: count ==3930 [2025-04-02 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:56:06 - End Time 2025-04-02 10:56:06 [2025-04-02 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817707', 'tblTempUsageDetail_20' ) start [2025-04-02 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817707', 'tblTempUsageDetail_20' ) end [2025-04-02 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817707', 'tblTempVendorCDR_20' ) start [2025-04-02 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817707', 'tblTempVendorCDR_20' ) end [2025-04-02 10:56:21] Production.INFO: ProcessCDR(1,14817707,1,1,2) [2025-04-02 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817707', 'tblTempUsageDetail_20' ) start [2025-04-02 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817707', 'tblTempUsageDetail_20' ) end [2025-04-02 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:56:27] Production.INFO: ==24415== Releasing lock... [2025-04-02 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:56:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:57:06 [end_date_ymd] => 2025-04-02 10:57:06 [RateCDR] => 1 ) [2025-04-02 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:57:06' and `end` < '2025-04-02 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:57:20] Production.INFO: count ==3944 [2025-04-02 10:57:22] Production.ERROR: pbx CDR StartTime 2025-04-02 07:57:06 - End Time 2025-04-02 10:57:06 [2025-04-02 10:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817713', 'tblTempUsageDetail_20' ) start [2025-04-02 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817713', 'tblTempUsageDetail_20' ) end [2025-04-02 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817713', 'tblTempVendorCDR_20' ) start [2025-04-02 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817713', 'tblTempVendorCDR_20' ) end [2025-04-02 10:57:22] Production.INFO: ProcessCDR(1,14817713,1,1,2) [2025-04-02 10:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817713', 'tblTempUsageDetail_20' ) start [2025-04-02 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817713', 'tblTempUsageDetail_20' ) end [2025-04-02 10:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:57:28] Production.INFO: ==24501== Releasing lock... [2025-04-02 10:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:57:28] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:58:05 [end_date_ymd] => 2025-04-02 10:58:05 [RateCDR] => 1 ) [2025-04-02 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:58:05' and `end` < '2025-04-02 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:58:19] Production.INFO: count ==3943 [2025-04-02 10:58:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:58:05 - End Time 2025-04-02 10:58:05 [2025-04-02 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817718', 'tblTempUsageDetail_20' ) start [2025-04-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817718', 'tblTempUsageDetail_20' ) end [2025-04-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817718', 'tblTempVendorCDR_20' ) start [2025-04-02 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817718', 'tblTempVendorCDR_20' ) end [2025-04-02 10:58:21] Production.INFO: ProcessCDR(1,14817718,1,1,2) [2025-04-02 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817718', 'tblTempUsageDetail_20' ) start [2025-04-02 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817718', 'tblTempUsageDetail_20' ) end [2025-04-02 10:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:58:27] Production.INFO: ==24586== Releasing lock... [2025-04-02 10:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:58:27] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 07:59:06 [end_date_ymd] => 2025-04-02 10:59:06 [RateCDR] => 1 ) [2025-04-02 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 07:59:06' and `end` < '2025-04-02 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 10:59:19] Production.INFO: count ==3964 [2025-04-02 10:59:21] Production.ERROR: pbx CDR StartTime 2025-04-02 07:59:06 - End Time 2025-04-02 10:59:06 [2025-04-02 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817723', 'tblTempUsageDetail_20' ) start [2025-04-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817723', 'tblTempUsageDetail_20' ) end [2025-04-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817723', 'tblTempVendorCDR_20' ) start [2025-04-02 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817723', 'tblTempVendorCDR_20' ) end [2025-04-02 10:59:21] Production.INFO: ProcessCDR(1,14817723,1,1,2) [2025-04-02 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817723', 'tblTempUsageDetail_20' ) start [2025-04-02 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817723', 'tblTempUsageDetail_20' ) end [2025-04-02 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 10:59:27] Production.INFO: ==24674== Releasing lock... [2025-04-02 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 10:59:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-02 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:00:07 [end_date_ymd] => 2025-04-02 11:00:07 [RateCDR] => 1 ) [2025-04-02 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:00:07' and `end` < '2025-04-02 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:00:20] Production.INFO: count ==3970 [2025-04-02 11:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:00:07 - End Time 2025-04-02 11:00:07 [2025-04-02 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817729', 'tblTempUsageDetail_20' ) start [2025-04-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817729', 'tblTempUsageDetail_20' ) end [2025-04-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817729', 'tblTempVendorCDR_20' ) start [2025-04-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817729', 'tblTempVendorCDR_20' ) end [2025-04-02 11:00:22] Production.INFO: ProcessCDR(1,14817729,1,1,2) [2025-04-02 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817729', 'tblTempUsageDetail_20' ) start [2025-04-02 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817729', 'tblTempUsageDetail_20' ) end [2025-04-02 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:00:28] Production.INFO: ==24760== Releasing lock... [2025-04-02 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:00:28] Production.INFO: 57.75 MB #Memory Used# [2025-04-02 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:01:06 [end_date_ymd] => 2025-04-02 11:01:06 [RateCDR] => 1 ) [2025-04-02 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:01:06' and `end` < '2025-04-02 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:01:19] Production.INFO: count ==4069 [2025-04-02 11:01:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:01:06 - End Time 2025-04-02 11:01:06 [2025-04-02 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817734', 'tblTempUsageDetail_20' ) start [2025-04-02 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817734', 'tblTempUsageDetail_20' ) end [2025-04-02 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817734', 'tblTempVendorCDR_20' ) start [2025-04-02 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817734', 'tblTempVendorCDR_20' ) end [2025-04-02 11:01:21] Production.INFO: ProcessCDR(1,14817734,1,1,2) [2025-04-02 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817734', 'tblTempUsageDetail_20' ) start [2025-04-02 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817734', 'tblTempUsageDetail_20' ) end [2025-04-02 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:01:27] Production.INFO: ==24894== Releasing lock... [2025-04-02 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:01:27] Production.INFO: 58.5 MB #Memory Used# [2025-04-02 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:02:05 [end_date_ymd] => 2025-04-02 11:02:05 [RateCDR] => 1 ) [2025-04-02 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:02:05' and `end` < '2025-04-02 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:02:19] Production.INFO: count ==4058 [2025-04-02 11:02:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:02:05 - End Time 2025-04-02 11:02:05 [2025-04-02 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817739', 'tblTempUsageDetail_20' ) start [2025-04-02 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817739', 'tblTempUsageDetail_20' ) end [2025-04-02 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817739', 'tblTempVendorCDR_20' ) start [2025-04-02 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817739', 'tblTempVendorCDR_20' ) end [2025-04-02 11:02:21] Production.INFO: ProcessCDR(1,14817739,1,1,2) [2025-04-02 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817739', 'tblTempUsageDetail_20' ) start [2025-04-02 11:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817739', 'tblTempUsageDetail_20' ) end [2025-04-02 11:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:02:27] Production.INFO: ==25014== Releasing lock... [2025-04-02 11:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:02:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-02 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:03:06 [end_date_ymd] => 2025-04-02 11:03:06 [RateCDR] => 1 ) [2025-04-02 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:03:06' and `end` < '2025-04-02 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:03:20] Production.INFO: count ==4085 [2025-04-02 11:03:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:03:06 - End Time 2025-04-02 11:03:06 [2025-04-02 11:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817744', 'tblTempUsageDetail_20' ) start [2025-04-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817744', 'tblTempUsageDetail_20' ) end [2025-04-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817744', 'tblTempVendorCDR_20' ) start [2025-04-02 11:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817744', 'tblTempVendorCDR_20' ) end [2025-04-02 11:03:22] Production.INFO: ProcessCDR(1,14817744,1,1,2) [2025-04-02 11:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817744', 'tblTempUsageDetail_20' ) start [2025-04-02 11:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817744', 'tblTempUsageDetail_20' ) end [2025-04-02 11:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:03:28] Production.INFO: ==25093== Releasing lock... [2025-04-02 11:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:03:28] Production.INFO: 58.5 MB #Memory Used# [2025-04-02 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:04:05 [end_date_ymd] => 2025-04-02 11:04:05 [RateCDR] => 1 ) [2025-04-02 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:04:05' and `end` < '2025-04-02 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:04:20] Production.INFO: count ==4119 [2025-04-02 11:04:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:04:05 - End Time 2025-04-02 11:04:05 [2025-04-02 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817749', 'tblTempUsageDetail_20' ) start [2025-04-02 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817749', 'tblTempUsageDetail_20' ) end [2025-04-02 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817749', 'tblTempVendorCDR_20' ) start [2025-04-02 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817749', 'tblTempVendorCDR_20' ) end [2025-04-02 11:04:21] Production.INFO: ProcessCDR(1,14817749,1,1,2) [2025-04-02 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817749', 'tblTempUsageDetail_20' ) start [2025-04-02 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817749', 'tblTempUsageDetail_20' ) end [2025-04-02 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:04:27] Production.INFO: ==25193== Releasing lock... [2025-04-02 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:04:27] Production.INFO: 58.75 MB #Memory Used# [2025-04-02 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:05:06 [end_date_ymd] => 2025-04-02 11:05:06 [RateCDR] => 1 ) [2025-04-02 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:05:06' and `end` < '2025-04-02 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:05:22] Production.INFO: count ==4141 [2025-04-02 11:05:23] Production.ERROR: pbx CDR StartTime 2025-04-02 08:05:06 - End Time 2025-04-02 11:05:06 [2025-04-02 11:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817754', 'tblTempUsageDetail_20' ) start [2025-04-02 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817754', 'tblTempUsageDetail_20' ) end [2025-04-02 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817754', 'tblTempVendorCDR_20' ) start [2025-04-02 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817754', 'tblTempVendorCDR_20' ) end [2025-04-02 11:05:23] Production.INFO: ProcessCDR(1,14817754,1,1,2) [2025-04-02 11:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817754', 'tblTempUsageDetail_20' ) start [2025-04-02 11:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817754', 'tblTempUsageDetail_20' ) end [2025-04-02 11:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:05:30] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:05:30] Production.INFO: ==25354== Releasing lock... [2025-04-02 11:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:05:30] Production.INFO: 59.25 MB #Memory Used# [2025-04-02 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:06:05 [end_date_ymd] => 2025-04-02 11:06:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:06:05' and `end` < '2025-04-02 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-04-02 11:06:20] Production.INFO: count ==4158 [2025-04-02 11:06:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:06:05 - End Time 2025-04-02 11:06:05 [2025-04-02 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817759', 'tblTempUsageDetail_20' ) start [2025-04-02 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817759', 'tblTempUsageDetail_20' ) end [2025-04-02 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817759', 'tblTempVendorCDR_20' ) start [2025-04-02 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817759', 'tblTempVendorCDR_20' ) end [2025-04-02 11:06:22] Production.INFO: ProcessCDR(1,14817759,1,1,2) [2025-04-02 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817759', 'tblTempUsageDetail_20' ) start [2025-04-02 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817759', 'tblTempUsageDetail_20' ) end [2025-04-02 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:06:26] Production.INFO: ==25442== Releasing lock... [2025-04-02 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:06:26] Production.INFO: 59 MB #Memory Used# [2025-04-02 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:07:05 [end_date_ymd] => 2025-04-02 11:07:05 [RateCDR] => 1 ) [2025-04-02 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:07:05' and `end` < '2025-04-02 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:07:20] Production.INFO: count ==4149 [2025-04-02 11:07:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:07:05 - End Time 2025-04-02 11:07:05 [2025-04-02 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817764', 'tblTempUsageDetail_20' ) start [2025-04-02 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817764', 'tblTempUsageDetail_20' ) end [2025-04-02 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817764', 'tblTempVendorCDR_20' ) start [2025-04-02 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817764', 'tblTempVendorCDR_20' ) end [2025-04-02 11:07:22] Production.INFO: ProcessCDR(1,14817764,1,1,2) [2025-04-02 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817764', 'tblTempUsageDetail_20' ) start [2025-04-02 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817764', 'tblTempUsageDetail_20' ) end [2025-04-02 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:07:27] Production.INFO: ==25560== Releasing lock... [2025-04-02 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:07:27] Production.INFO: 59 MB #Memory Used# [2025-04-02 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:08:05 [end_date_ymd] => 2025-04-02 11:08:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:08:05' and `end` < '2025-04-02 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-04-02 11:08:19] Production.INFO: count ==4156 [2025-04-02 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:08:05 - End Time 2025-04-02 11:08:05 [2025-04-02 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817769', 'tblTempUsageDetail_20' ) start [2025-04-02 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817769', 'tblTempUsageDetail_20' ) end [2025-04-02 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817769', 'tblTempVendorCDR_20' ) start [2025-04-02 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817769', 'tblTempVendorCDR_20' ) end [2025-04-02 11:08:21] Production.INFO: ProcessCDR(1,14817769,1,1,2) [2025-04-02 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817769', 'tblTempUsageDetail_20' ) start [2025-04-02 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817769', 'tblTempUsageDetail_20' ) end [2025-04-02 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:08:27] Production.INFO: ==25723== Releasing lock... [2025-04-02 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:08:27] Production.INFO: 59 MB #Memory Used# [2025-04-02 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:09:05 [end_date_ymd] => 2025-04-02 11:09:05 [RateCDR] => 1 ) [2025-04-02 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:09:05' and `end` < '2025-04-02 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:09:19] Production.INFO: count ==4170 [2025-04-02 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:09:05 - End Time 2025-04-02 11:09:05 [2025-04-02 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817774', 'tblTempUsageDetail_20' ) start [2025-04-02 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817774', 'tblTempUsageDetail_20' ) end [2025-04-02 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817774', 'tblTempVendorCDR_20' ) start [2025-04-02 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817774', 'tblTempVendorCDR_20' ) end [2025-04-02 11:09:21] Production.INFO: ProcessCDR(1,14817774,1,1,2) [2025-04-02 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817774', 'tblTempUsageDetail_20' ) start [2025-04-02 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817774', 'tblTempUsageDetail_20' ) end [2025-04-02 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:09:27] Production.INFO: ==25810== Releasing lock... [2025-04-02 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:09:27] Production.INFO: 59.25 MB #Memory Used# [2025-04-02 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:10:07 [end_date_ymd] => 2025-04-02 11:10:07 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:10:07' and `end` < '2025-04-02 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-04-02 11:10:21] Production.INFO: count ==4183 [2025-04-02 11:10:23] Production.ERROR: pbx CDR StartTime 2025-04-02 08:10:07 - End Time 2025-04-02 11:10:07 [2025-04-02 11:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817780', 'tblTempUsageDetail_20' ) start [2025-04-02 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817780', 'tblTempUsageDetail_20' ) end [2025-04-02 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817780', 'tblTempVendorCDR_20' ) start [2025-04-02 11:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817780', 'tblTempVendorCDR_20' ) end [2025-04-02 11:10:23] Production.INFO: ProcessCDR(1,14817780,1,1,2) [2025-04-02 11:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817780', 'tblTempUsageDetail_20' ) start [2025-04-02 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817780', 'tblTempUsageDetail_20' ) end [2025-04-02 11:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:10:29] Production.INFO: ==25906== Releasing lock... [2025-04-02 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:10:29] Production.INFO: 59.25 MB #Memory Used# [2025-04-02 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:11:06 [end_date_ymd] => 2025-04-02 11:11:06 [RateCDR] => 1 ) [2025-04-02 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:11:06' and `end` < '2025-04-02 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:11:19] Production.INFO: count ==4233 [2025-04-02 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:11:06 - End Time 2025-04-02 11:11:06 [2025-04-02 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817785', 'tblTempUsageDetail_20' ) start [2025-04-02 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817785', 'tblTempUsageDetail_20' ) end [2025-04-02 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817785', 'tblTempVendorCDR_20' ) start [2025-04-02 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817785', 'tblTempVendorCDR_20' ) end [2025-04-02 11:11:21] Production.INFO: ProcessCDR(1,14817785,1,1,2) [2025-04-02 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817785', 'tblTempUsageDetail_20' ) start [2025-04-02 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817785', 'tblTempUsageDetail_20' ) end [2025-04-02 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:11:25] Production.INFO: ==25991== Releasing lock... [2025-04-02 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:11:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-02 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:12:06 [end_date_ymd] => 2025-04-02 11:12:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:12:06' and `end` < '2025-04-02 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-04-02 11:12:20] Production.INFO: count ==4229 [2025-04-02 11:12:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:12:06 - End Time 2025-04-02 11:12:06 [2025-04-02 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817790', 'tblTempUsageDetail_20' ) start [2025-04-02 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817790', 'tblTempUsageDetail_20' ) end [2025-04-02 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817790', 'tblTempVendorCDR_20' ) start [2025-04-02 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817790', 'tblTempVendorCDR_20' ) end [2025-04-02 11:12:22] Production.INFO: ProcessCDR(1,14817790,1,1,2) [2025-04-02 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817790', 'tblTempUsageDetail_20' ) start [2025-04-02 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817790', 'tblTempUsageDetail_20' ) end [2025-04-02 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:12:27] Production.INFO: ==26164== Releasing lock... [2025-04-02 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:12:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-02 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:13:06 [end_date_ymd] => 2025-04-02 11:13:06 [RateCDR] => 1 ) [2025-04-02 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:13:06' and `end` < '2025-04-02 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:13:20] Production.INFO: count ==4239 [2025-04-02 11:13:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:13:06 - End Time 2025-04-02 11:13:06 [2025-04-02 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817795', 'tblTempUsageDetail_20' ) start [2025-04-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817795', 'tblTempUsageDetail_20' ) end [2025-04-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817795', 'tblTempVendorCDR_20' ) start [2025-04-02 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817795', 'tblTempVendorCDR_20' ) end [2025-04-02 11:13:22] Production.INFO: ProcessCDR(1,14817795,1,1,2) [2025-04-02 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817795', 'tblTempUsageDetail_20' ) start [2025-04-02 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817795', 'tblTempUsageDetail_20' ) end [2025-04-02 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:13:28] Production.INFO: ==26242== Releasing lock... [2025-04-02 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:13:28] Production.INFO: 59.75 MB #Memory Used# [2025-04-02 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:14:06 [end_date_ymd] => 2025-04-02 11:14:06 [RateCDR] => 1 ) [2025-04-02 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:14:06' and `end` < '2025-04-02 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:14:20] Production.INFO: count ==4256 [2025-04-02 11:14:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:14:06 - End Time 2025-04-02 11:14:06 [2025-04-02 11:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817800', 'tblTempUsageDetail_20' ) start [2025-04-02 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817800', 'tblTempUsageDetail_20' ) end [2025-04-02 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817800', 'tblTempVendorCDR_20' ) start [2025-04-02 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817800', 'tblTempVendorCDR_20' ) end [2025-04-02 11:14:22] Production.INFO: ProcessCDR(1,14817800,1,1,2) [2025-04-02 11:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817800', 'tblTempUsageDetail_20' ) start [2025-04-02 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817800', 'tblTempUsageDetail_20' ) end [2025-04-02 11:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:14:27] Production.INFO: ==26330== Releasing lock... [2025-04-02 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:14:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-02 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:15:05 [end_date_ymd] => 2025-04-02 11:15:05 [RateCDR] => 1 ) [2025-04-02 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:15:05' and `end` < '2025-04-02 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:15:18] Production.INFO: count ==4275 [2025-04-02 11:15:20] Production.ERROR: pbx CDR StartTime 2025-04-02 08:15:05 - End Time 2025-04-02 11:15:05 [2025-04-02 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817805', 'tblTempUsageDetail_20' ) start [2025-04-02 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817805', 'tblTempUsageDetail_20' ) end [2025-04-02 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817805', 'tblTempVendorCDR_20' ) start [2025-04-02 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817805', 'tblTempVendorCDR_20' ) end [2025-04-02 11:15:20] Production.INFO: ProcessCDR(1,14817805,1,1,2) [2025-04-02 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817805', 'tblTempUsageDetail_20' ) start [2025-04-02 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817805', 'tblTempUsageDetail_20' ) end [2025-04-02 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:15:27] Production.INFO: ==26491== Releasing lock... [2025-04-02 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:15:27] Production.INFO: 60 MB #Memory Used# [2025-04-02 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:16:06 [end_date_ymd] => 2025-04-02 11:16:06 [RateCDR] => 1 ) [2025-04-02 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:16:06' and `end` < '2025-04-02 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:16:19] Production.INFO: count ==4292 [2025-04-02 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:16:06 - End Time 2025-04-02 11:16:06 [2025-04-02 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817810', 'tblTempUsageDetail_20' ) start [2025-04-02 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817810', 'tblTempUsageDetail_20' ) end [2025-04-02 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817810', 'tblTempVendorCDR_20' ) start [2025-04-02 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817810', 'tblTempVendorCDR_20' ) end [2025-04-02 11:16:21] Production.INFO: ProcessCDR(1,14817810,1,1,2) [2025-04-02 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817810', 'tblTempUsageDetail_20' ) start [2025-04-02 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817810', 'tblTempUsageDetail_20' ) end [2025-04-02 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:16:27] Production.INFO: ==26576== Releasing lock... [2025-04-02 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:16:27] Production.INFO: 60 MB #Memory Used# [2025-04-02 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:17:05 [end_date_ymd] => 2025-04-02 11:17:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:17:05' and `end` < '2025-04-02 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-04-02 11:17:19] Production.INFO: count ==4294 [2025-04-02 11:17:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:17:05 - End Time 2025-04-02 11:17:05 [2025-04-02 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817815', 'tblTempUsageDetail_20' ) start [2025-04-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817815', 'tblTempUsageDetail_20' ) end [2025-04-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817815', 'tblTempVendorCDR_20' ) start [2025-04-02 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817815', 'tblTempVendorCDR_20' ) end [2025-04-02 11:17:21] Production.INFO: ProcessCDR(1,14817815,1,1,2) [2025-04-02 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817815', 'tblTempUsageDetail_20' ) start [2025-04-02 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817815', 'tblTempUsageDetail_20' ) end [2025-04-02 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:17:26] Production.INFO: ==26654== Releasing lock... [2025-04-02 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:17:26] Production.INFO: 60 MB #Memory Used# [2025-04-02 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:18:05 [end_date_ymd] => 2025-04-02 11:18:05 [RateCDR] => 1 ) [2025-04-02 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:18:05' and `end` < '2025-04-02 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:18:19] Production.INFO: count ==4308 [2025-04-02 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:18:05 - End Time 2025-04-02 11:18:05 [2025-04-02 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817820', 'tblTempUsageDetail_20' ) start [2025-04-02 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817820', 'tblTempUsageDetail_20' ) end [2025-04-02 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817820', 'tblTempVendorCDR_20' ) start [2025-04-02 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817820', 'tblTempVendorCDR_20' ) end [2025-04-02 11:18:21] Production.INFO: ProcessCDR(1,14817820,1,1,2) [2025-04-02 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817820', 'tblTempUsageDetail_20' ) start [2025-04-02 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817820', 'tblTempUsageDetail_20' ) end [2025-04-02 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:18:27] Production.INFO: ==26740== Releasing lock... [2025-04-02 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:18:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-02 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:19:06 [end_date_ymd] => 2025-04-02 11:19:06 [RateCDR] => 1 ) [2025-04-02 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:19:06' and `end` < '2025-04-02 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:19:20] Production.INFO: count ==4323 [2025-04-02 11:19:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:19:06 - End Time 2025-04-02 11:19:06 [2025-04-02 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817825', 'tblTempUsageDetail_20' ) start [2025-04-02 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817825', 'tblTempUsageDetail_20' ) end [2025-04-02 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817825', 'tblTempVendorCDR_20' ) start [2025-04-02 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817825', 'tblTempVendorCDR_20' ) end [2025-04-02 11:19:22] Production.INFO: ProcessCDR(1,14817825,1,1,2) [2025-04-02 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817825', 'tblTempUsageDetail_20' ) start [2025-04-02 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817825', 'tblTempUsageDetail_20' ) end [2025-04-02 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:19:28] Production.INFO: ==26828== Releasing lock... [2025-04-02 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:19:28] Production.INFO: 60.25 MB #Memory Used# [2025-04-02 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:20:06 [end_date_ymd] => 2025-04-02 11:20:06 [RateCDR] => 1 ) [2025-04-02 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:20:06' and `end` < '2025-04-02 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:20:20] Production.INFO: count ==4334 [2025-04-02 11:20:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:20:06 - End Time 2025-04-02 11:20:06 [2025-04-02 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817831', 'tblTempUsageDetail_20' ) start [2025-04-02 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817831', 'tblTempUsageDetail_20' ) end [2025-04-02 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817831', 'tblTempVendorCDR_20' ) start [2025-04-02 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817831', 'tblTempVendorCDR_20' ) end [2025-04-02 11:20:22] Production.INFO: ProcessCDR(1,14817831,1,1,2) [2025-04-02 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817831', 'tblTempUsageDetail_20' ) start [2025-04-02 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817831', 'tblTempUsageDetail_20' ) end [2025-04-02 11:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:20:28] Production.INFO: ==26913== Releasing lock... [2025-04-02 11:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:20:28] Production.INFO: 60.5 MB #Memory Used# [2025-04-02 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:21:06 [end_date_ymd] => 2025-04-02 11:21:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:21:06' and `end` < '2025-04-02 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-04-02 11:21:20] Production.INFO: count ==4457 [2025-04-02 11:21:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:21:06 - End Time 2025-04-02 11:21:06 [2025-04-02 11:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817836', 'tblTempUsageDetail_20' ) start [2025-04-02 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817836', 'tblTempUsageDetail_20' ) end [2025-04-02 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817836', 'tblTempVendorCDR_20' ) start [2025-04-02 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817836', 'tblTempVendorCDR_20' ) end [2025-04-02 11:21:22] Production.INFO: ProcessCDR(1,14817836,1,1,2) [2025-04-02 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817836', 'tblTempUsageDetail_20' ) start [2025-04-02 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817836', 'tblTempUsageDetail_20' ) end [2025-04-02 11:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:21:28] Production.INFO: ==27000== Releasing lock... [2025-04-02 11:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:21:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-02 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:22:05 [end_date_ymd] => 2025-04-02 11:22:05 [RateCDR] => 1 ) [2025-04-02 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:22:05' and `end` < '2025-04-02 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:22:19] Production.INFO: count ==4473 [2025-04-02 11:22:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:22:05 - End Time 2025-04-02 11:22:05 [2025-04-02 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817841', 'tblTempUsageDetail_20' ) start [2025-04-02 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817841', 'tblTempUsageDetail_20' ) end [2025-04-02 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817841', 'tblTempVendorCDR_20' ) start [2025-04-02 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817841', 'tblTempVendorCDR_20' ) end [2025-04-02 11:22:21] Production.INFO: ProcessCDR(1,14817841,1,1,2) [2025-04-02 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817841', 'tblTempUsageDetail_20' ) start [2025-04-02 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817841', 'tblTempUsageDetail_20' ) end [2025-04-02 11:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:22:27] Production.INFO: ==27087== Releasing lock... [2025-04-02 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:22:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-02 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:23:05 [end_date_ymd] => 2025-04-02 11:23:05 [RateCDR] => 1 ) [2025-04-02 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:23:05' and `end` < '2025-04-02 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:23:19] Production.INFO: count ==4490 [2025-04-02 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:23:05 - End Time 2025-04-02 11:23:05 [2025-04-02 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817846', 'tblTempUsageDetail_20' ) start [2025-04-02 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817846', 'tblTempUsageDetail_20' ) end [2025-04-02 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817846', 'tblTempVendorCDR_20' ) start [2025-04-02 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817846', 'tblTempVendorCDR_20' ) end [2025-04-02 11:23:22] Production.INFO: ProcessCDR(1,14817846,1,1,2) [2025-04-02 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817846', 'tblTempUsageDetail_20' ) start [2025-04-02 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817846', 'tblTempUsageDetail_20' ) end [2025-04-02 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:23:27] Production.INFO: ==27223== Releasing lock... [2025-04-02 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:23:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-02 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:24:05 [end_date_ymd] => 2025-04-02 11:24:05 [RateCDR] => 1 ) [2025-04-02 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:24:05' and `end` < '2025-04-02 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:24:19] Production.INFO: count ==4533 [2025-04-02 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:24:05 - End Time 2025-04-02 11:24:05 [2025-04-02 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817851', 'tblTempUsageDetail_20' ) start [2025-04-02 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817851', 'tblTempUsageDetail_20' ) end [2025-04-02 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817851', 'tblTempVendorCDR_20' ) start [2025-04-02 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817851', 'tblTempVendorCDR_20' ) end [2025-04-02 11:24:21] Production.INFO: ProcessCDR(1,14817851,1,1,2) [2025-04-02 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817851', 'tblTempUsageDetail_20' ) start [2025-04-02 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817851', 'tblTempUsageDetail_20' ) end [2025-04-02 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:24:27] Production.INFO: ==27308== Releasing lock... [2025-04-02 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:24:27] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:25:06 [end_date_ymd] => 2025-04-02 11:25:06 [RateCDR] => 1 ) [2025-04-02 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:25:06' and `end` < '2025-04-02 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:25:19] Production.INFO: count ==4531 [2025-04-02 11:25:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:25:06 - End Time 2025-04-02 11:25:06 [2025-04-02 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817856', 'tblTempUsageDetail_20' ) start [2025-04-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817856', 'tblTempUsageDetail_20' ) end [2025-04-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817856', 'tblTempVendorCDR_20' ) start [2025-04-02 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817856', 'tblTempVendorCDR_20' ) end [2025-04-02 11:25:22] Production.INFO: ProcessCDR(1,14817856,1,1,2) [2025-04-02 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817856', 'tblTempUsageDetail_20' ) start [2025-04-02 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817856', 'tblTempUsageDetail_20' ) end [2025-04-02 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:25:27] Production.INFO: ==27398== Releasing lock... [2025-04-02 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:25:27] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:26:06 [end_date_ymd] => 2025-04-02 11:26:06 [RateCDR] => 1 ) [2025-04-02 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:26:06' and `end` < '2025-04-02 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:26:20] Production.INFO: count ==4540 [2025-04-02 11:26:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:26:06 - End Time 2025-04-02 11:26:06 [2025-04-02 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817861', 'tblTempUsageDetail_20' ) start [2025-04-02 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817861', 'tblTempUsageDetail_20' ) end [2025-04-02 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817861', 'tblTempVendorCDR_20' ) start [2025-04-02 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817861', 'tblTempVendorCDR_20' ) end [2025-04-02 11:26:22] Production.INFO: ProcessCDR(1,14817861,1,1,2) [2025-04-02 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817861', 'tblTempUsageDetail_20' ) start [2025-04-02 11:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817861', 'tblTempUsageDetail_20' ) end [2025-04-02 11:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:26:28] Production.INFO: ==27486== Releasing lock... [2025-04-02 11:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:26:28] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:27:06 [end_date_ymd] => 2025-04-02 11:27:06 [RateCDR] => 1 ) [2025-04-02 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:27:06' and `end` < '2025-04-02 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:27:20] Production.INFO: count ==4551 [2025-04-02 11:27:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:27:06 - End Time 2025-04-02 11:27:06 [2025-04-02 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817866', 'tblTempUsageDetail_20' ) start [2025-04-02 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817866', 'tblTempUsageDetail_20' ) end [2025-04-02 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817866', 'tblTempVendorCDR_20' ) start [2025-04-02 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817866', 'tblTempVendorCDR_20' ) end [2025-04-02 11:27:22] Production.INFO: ProcessCDR(1,14817866,1,1,2) [2025-04-02 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817866', 'tblTempUsageDetail_20' ) start [2025-04-02 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817866', 'tblTempUsageDetail_20' ) end [2025-04-02 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:27:28] Production.INFO: ==27570== Releasing lock... [2025-04-02 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:27:28] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:28:06 [end_date_ymd] => 2025-04-02 11:28:06 [RateCDR] => 1 ) [2025-04-02 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:28:06' and `end` < '2025-04-02 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:28:20] Production.INFO: count ==4547 [2025-04-02 11:28:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:28:06 - End Time 2025-04-02 11:28:06 [2025-04-02 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817871', 'tblTempUsageDetail_20' ) start [2025-04-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817871', 'tblTempUsageDetail_20' ) end [2025-04-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817871', 'tblTempVendorCDR_20' ) start [2025-04-02 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817871', 'tblTempVendorCDR_20' ) end [2025-04-02 11:28:22] Production.INFO: ProcessCDR(1,14817871,1,1,2) [2025-04-02 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817871', 'tblTempUsageDetail_20' ) start [2025-04-02 11:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817871', 'tblTempUsageDetail_20' ) end [2025-04-02 11:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:28:28] Production.INFO: ==27654== Releasing lock... [2025-04-02 11:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:28:28] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:29:05 [end_date_ymd] => 2025-04-02 11:29:05 [RateCDR] => 1 ) [2025-04-02 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:29:05' and `end` < '2025-04-02 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:29:19] Production.INFO: count ==4553 [2025-04-02 11:29:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:29:05 - End Time 2025-04-02 11:29:05 [2025-04-02 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817876', 'tblTempUsageDetail_20' ) start [2025-04-02 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817876', 'tblTempUsageDetail_20' ) end [2025-04-02 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817876', 'tblTempVendorCDR_20' ) start [2025-04-02 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817876', 'tblTempVendorCDR_20' ) end [2025-04-02 11:29:21] Production.INFO: ProcessCDR(1,14817876,1,1,2) [2025-04-02 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817876', 'tblTempUsageDetail_20' ) start [2025-04-02 11:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817876', 'tblTempUsageDetail_20' ) end [2025-04-02 11:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:29:27] Production.INFO: ==27749== Releasing lock... [2025-04-02 11:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:29:27] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:30:07 [end_date_ymd] => 2025-04-02 11:30:07 [RateCDR] => 1 ) [2025-04-02 11:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:30:07' and `end` < '2025-04-02 11:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:30:21] Production.INFO: count ==4560 [2025-04-02 11:30:23] Production.ERROR: pbx CDR StartTime 2025-04-02 08:30:07 - End Time 2025-04-02 11:30:07 [2025-04-02 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817882', 'tblTempUsageDetail_20' ) start [2025-04-02 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817882', 'tblTempUsageDetail_20' ) end [2025-04-02 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817882', 'tblTempVendorCDR_20' ) start [2025-04-02 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817882', 'tblTempVendorCDR_20' ) end [2025-04-02 11:30:23] Production.INFO: ProcessCDR(1,14817882,1,1,2) [2025-04-02 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817882', 'tblTempUsageDetail_20' ) start [2025-04-02 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817882', 'tblTempUsageDetail_20' ) end [2025-04-02 11:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:30:29] Production.INFO: ==27839== Releasing lock... [2025-04-02 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:30:29] Production.INFO: 62 MB #Memory Used# [2025-04-02 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:31:06 [end_date_ymd] => 2025-04-02 11:31:06 [RateCDR] => 1 ) [2025-04-02 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:31:06' and `end` < '2025-04-02 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:31:19] Production.INFO: count ==4661 [2025-04-02 11:31:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:31:06 - End Time 2025-04-02 11:31:06 [2025-04-02 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817887', 'tblTempUsageDetail_20' ) start [2025-04-02 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817887', 'tblTempUsageDetail_20' ) end [2025-04-02 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817887', 'tblTempVendorCDR_20' ) start [2025-04-02 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817887', 'tblTempVendorCDR_20' ) end [2025-04-02 11:31:22] Production.INFO: ProcessCDR(1,14817887,1,1,2) [2025-04-02 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817887', 'tblTempUsageDetail_20' ) start [2025-04-02 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817887', 'tblTempUsageDetail_20' ) end [2025-04-02 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:31:28] Production.INFO: ==27926== Releasing lock... [2025-04-02 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:31:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:32:06 [end_date_ymd] => 2025-04-02 11:32:06 [RateCDR] => 1 ) [2025-04-02 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:32:06' and `end` < '2025-04-02 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:32:20] Production.INFO: count ==4661 [2025-04-02 11:32:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:32:06 - End Time 2025-04-02 11:32:06 [2025-04-02 11:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817892', 'tblTempUsageDetail_20' ) start [2025-04-02 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817892', 'tblTempUsageDetail_20' ) end [2025-04-02 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817892', 'tblTempVendorCDR_20' ) start [2025-04-02 11:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817892', 'tblTempVendorCDR_20' ) end [2025-04-02 11:32:22] Production.INFO: ProcessCDR(1,14817892,1,1,2) [2025-04-02 11:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817892', 'tblTempUsageDetail_20' ) start [2025-04-02 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817892', 'tblTempUsageDetail_20' ) end [2025-04-02 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:32:28] Production.INFO: ==28008== Releasing lock... [2025-04-02 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:32:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:33:06 [end_date_ymd] => 2025-04-02 11:33:06 [RateCDR] => 1 ) [2025-04-02 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:33:06' and `end` < '2025-04-02 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:33:19] Production.INFO: count ==4675 [2025-04-02 11:33:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:33:06 - End Time 2025-04-02 11:33:06 [2025-04-02 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817897', 'tblTempUsageDetail_20' ) start [2025-04-02 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817897', 'tblTempUsageDetail_20' ) end [2025-04-02 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817897', 'tblTempVendorCDR_20' ) start [2025-04-02 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817897', 'tblTempVendorCDR_20' ) end [2025-04-02 11:33:22] Production.INFO: ProcessCDR(1,14817897,1,1,2) [2025-04-02 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817897', 'tblTempUsageDetail_20' ) start [2025-04-02 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817897', 'tblTempUsageDetail_20' ) end [2025-04-02 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:33:28] Production.INFO: ==28088== Releasing lock... [2025-04-02 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:33:28] Production.INFO: 63 MB #Memory Used# [2025-04-02 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:34:05 [end_date_ymd] => 2025-04-02 11:34:05 [RateCDR] => 1 ) [2025-04-02 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:34:05' and `end` < '2025-04-02 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:34:19] Production.INFO: count ==4667 [2025-04-02 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:34:05 - End Time 2025-04-02 11:34:05 [2025-04-02 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817900', 'tblTempUsageDetail_20' ) start [2025-04-02 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817900', 'tblTempUsageDetail_20' ) end [2025-04-02 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817900', 'tblTempVendorCDR_20' ) start [2025-04-02 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817900', 'tblTempVendorCDR_20' ) end [2025-04-02 11:34:21] Production.INFO: ProcessCDR(1,14817900,1,1,2) [2025-04-02 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817900', 'tblTempUsageDetail_20' ) start [2025-04-02 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817900', 'tblTempUsageDetail_20' ) end [2025-04-02 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:34:27] Production.INFO: ==28170== Releasing lock... [2025-04-02 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:34:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:35:05 [end_date_ymd] => 2025-04-02 11:35:05 [RateCDR] => 1 ) [2025-04-02 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:35:05' and `end` < '2025-04-02 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:35:19] Production.INFO: count ==4665 [2025-04-02 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:35:05 - End Time 2025-04-02 11:35:05 [2025-04-02 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817907', 'tblTempUsageDetail_20' ) start [2025-04-02 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817907', 'tblTempUsageDetail_20' ) end [2025-04-02 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817907', 'tblTempVendorCDR_20' ) start [2025-04-02 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817907', 'tblTempVendorCDR_20' ) end [2025-04-02 11:35:21] Production.INFO: ProcessCDR(1,14817907,1,1,2) [2025-04-02 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817907', 'tblTempUsageDetail_20' ) start [2025-04-02 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817907', 'tblTempUsageDetail_20' ) end [2025-04-02 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:35:27] Production.INFO: ==28255== Releasing lock... [2025-04-02 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:35:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:36:06 [end_date_ymd] => 2025-04-02 11:36:06 [RateCDR] => 1 ) [2025-04-02 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:36:06' and `end` < '2025-04-02 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:36:19] Production.INFO: count ==4686 [2025-04-02 11:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:36:06 - End Time 2025-04-02 11:36:06 [2025-04-02 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817912', 'tblTempUsageDetail_20' ) start [2025-04-02 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817912', 'tblTempUsageDetail_20' ) end [2025-04-02 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817912', 'tblTempVendorCDR_20' ) start [2025-04-02 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817912', 'tblTempVendorCDR_20' ) end [2025-04-02 11:36:21] Production.INFO: ProcessCDR(1,14817912,1,1,2) [2025-04-02 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817912', 'tblTempUsageDetail_20' ) start [2025-04-02 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817912', 'tblTempUsageDetail_20' ) end [2025-04-02 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:36:27] Production.INFO: ==28338== Releasing lock... [2025-04-02 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:36:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:37:05 [end_date_ymd] => 2025-04-02 11:37:05 [RateCDR] => 1 ) [2025-04-02 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:37:05' and `end` < '2025-04-02 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:37:19] Production.INFO: count ==4729 [2025-04-02 11:37:20] Production.ERROR: pbx CDR StartTime 2025-04-02 08:37:05 - End Time 2025-04-02 11:37:05 [2025-04-02 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817917', 'tblTempUsageDetail_20' ) start [2025-04-02 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817917', 'tblTempUsageDetail_20' ) end [2025-04-02 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817917', 'tblTempVendorCDR_20' ) start [2025-04-02 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817917', 'tblTempVendorCDR_20' ) end [2025-04-02 11:37:21] Production.INFO: ProcessCDR(1,14817917,1,1,2) [2025-04-02 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817917', 'tblTempUsageDetail_20' ) start [2025-04-02 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817917', 'tblTempUsageDetail_20' ) end [2025-04-02 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:37:26] Production.INFO: ==28415== Releasing lock... [2025-04-02 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:37:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:38:06 [end_date_ymd] => 2025-04-02 11:38:06 [RateCDR] => 1 ) [2025-04-02 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:38:06' and `end` < '2025-04-02 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:38:19] Production.INFO: count ==4749 [2025-04-02 11:38:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:38:06 - End Time 2025-04-02 11:38:06 [2025-04-02 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817922', 'tblTempUsageDetail_20' ) start [2025-04-02 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817922', 'tblTempUsageDetail_20' ) end [2025-04-02 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817922', 'tblTempVendorCDR_20' ) start [2025-04-02 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817922', 'tblTempVendorCDR_20' ) end [2025-04-02 11:38:22] Production.INFO: ProcessCDR(1,14817922,1,1,2) [2025-04-02 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817922', 'tblTempUsageDetail_20' ) start [2025-04-02 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817922', 'tblTempUsageDetail_20' ) end [2025-04-02 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:38:28] Production.INFO: ==28534== Releasing lock... [2025-04-02 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:38:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:39:05 [end_date_ymd] => 2025-04-02 11:39:05 [RateCDR] => 1 ) [2025-04-02 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:39:05' and `end` < '2025-04-02 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:39:19] Production.INFO: count ==4755 [2025-04-02 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:39:05 - End Time 2025-04-02 11:39:05 [2025-04-02 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817927', 'tblTempUsageDetail_20' ) start [2025-04-02 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817927', 'tblTempUsageDetail_20' ) end [2025-04-02 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817927', 'tblTempVendorCDR_20' ) start [2025-04-02 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817927', 'tblTempVendorCDR_20' ) end [2025-04-02 11:39:21] Production.INFO: ProcessCDR(1,14817927,1,1,2) [2025-04-02 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817927', 'tblTempUsageDetail_20' ) start [2025-04-02 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817927', 'tblTempUsageDetail_20' ) end [2025-04-02 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:39:27] Production.INFO: ==28615== Releasing lock... [2025-04-02 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:39:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:40:06 [end_date_ymd] => 2025-04-02 11:40:06 [RateCDR] => 1 ) [2025-04-02 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:40:06' and `end` < '2025-04-02 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:40:19] Production.INFO: count ==4756 [2025-04-02 11:40:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:40:06 - End Time 2025-04-02 11:40:06 [2025-04-02 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817932', 'tblTempUsageDetail_20' ) start [2025-04-02 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817932', 'tblTempUsageDetail_20' ) end [2025-04-02 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817932', 'tblTempVendorCDR_20' ) start [2025-04-02 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817932', 'tblTempVendorCDR_20' ) end [2025-04-02 11:40:21] Production.INFO: ProcessCDR(1,14817932,1,1,2) [2025-04-02 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817932', 'tblTempUsageDetail_20' ) start [2025-04-02 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817932', 'tblTempUsageDetail_20' ) end [2025-04-02 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:40:27] Production.INFO: ==28694== Releasing lock... [2025-04-02 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:40:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:41:06 [end_date_ymd] => 2025-04-02 11:41:06 [RateCDR] => 1 ) [2025-04-02 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:41:06' and `end` < '2025-04-02 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:41:20] Production.INFO: count ==4794 [2025-04-02 11:41:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:41:06 - End Time 2025-04-02 11:41:06 [2025-04-02 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817938', 'tblTempUsageDetail_20' ) start [2025-04-02 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817938', 'tblTempUsageDetail_20' ) end [2025-04-02 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817938', 'tblTempVendorCDR_20' ) start [2025-04-02 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817938', 'tblTempVendorCDR_20' ) end [2025-04-02 11:41:22] Production.INFO: ProcessCDR(1,14817938,1,1,2) [2025-04-02 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817938', 'tblTempUsageDetail_20' ) start [2025-04-02 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817938', 'tblTempUsageDetail_20' ) end [2025-04-02 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:41:27] Production.INFO: ==28782== Releasing lock... [2025-04-02 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:41:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:42:05 [end_date_ymd] => 2025-04-02 11:42:05 [RateCDR] => 1 ) [2025-04-02 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:42:05' and `end` < '2025-04-02 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:42:18] Production.INFO: count ==4827 [2025-04-02 11:42:20] Production.ERROR: pbx CDR StartTime 2025-04-02 08:42:05 - End Time 2025-04-02 11:42:05 [2025-04-02 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817943', 'tblTempUsageDetail_20' ) start [2025-04-02 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817943', 'tblTempUsageDetail_20' ) end [2025-04-02 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817943', 'tblTempVendorCDR_20' ) start [2025-04-02 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817943', 'tblTempVendorCDR_20' ) end [2025-04-02 11:42:21] Production.INFO: ProcessCDR(1,14817943,1,1,2) [2025-04-02 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817943', 'tblTempUsageDetail_20' ) start [2025-04-02 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817943', 'tblTempUsageDetail_20' ) end [2025-04-02 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:42:26] Production.INFO: ==28863== Releasing lock... [2025-04-02 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:42:26] Production.INFO: 64 MB #Memory Used# [2025-04-02 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:43:06 [end_date_ymd] => 2025-04-02 11:43:06 [RateCDR] => 1 ) [2025-04-02 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:43:06' and `end` < '2025-04-02 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:43:20] Production.INFO: count ==4844 [2025-04-02 11:43:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:43:06 - End Time 2025-04-02 11:43:06 [2025-04-02 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817948', 'tblTempUsageDetail_20' ) start [2025-04-02 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817948', 'tblTempUsageDetail_20' ) end [2025-04-02 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817948', 'tblTempVendorCDR_20' ) start [2025-04-02 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817948', 'tblTempVendorCDR_20' ) end [2025-04-02 11:43:22] Production.INFO: ProcessCDR(1,14817948,1,1,2) [2025-04-02 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817948', 'tblTempUsageDetail_20' ) start [2025-04-02 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817948', 'tblTempUsageDetail_20' ) end [2025-04-02 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:43:27] Production.INFO: ==28946== Releasing lock... [2025-04-02 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:43:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:44:05 [end_date_ymd] => 2025-04-02 11:44:05 [RateCDR] => 1 ) [2025-04-02 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:44:05' and `end` < '2025-04-02 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:44:18] Production.INFO: count ==4864 [2025-04-02 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:44:05 - End Time 2025-04-02 11:44:05 [2025-04-02 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817953', 'tblTempUsageDetail_20' ) start [2025-04-02 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817953', 'tblTempUsageDetail_20' ) end [2025-04-02 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817953', 'tblTempVendorCDR_20' ) start [2025-04-02 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817953', 'tblTempVendorCDR_20' ) end [2025-04-02 11:44:21] Production.INFO: ProcessCDR(1,14817953,1,1,2) [2025-04-02 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817953', 'tblTempUsageDetail_20' ) start [2025-04-02 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817953', 'tblTempUsageDetail_20' ) end [2025-04-02 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:44:27] Production.INFO: ==29019== Releasing lock... [2025-04-02 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:44:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:45:06 [end_date_ymd] => 2025-04-02 11:45:06 [RateCDR] => 1 ) [2025-04-02 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:45:06' and `end` < '2025-04-02 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:45:19] Production.INFO: count ==4870 [2025-04-02 11:45:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:45:06 - End Time 2025-04-02 11:45:06 [2025-04-02 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817958', 'tblTempUsageDetail_20' ) start [2025-04-02 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817958', 'tblTempUsageDetail_20' ) end [2025-04-02 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817958', 'tblTempVendorCDR_20' ) start [2025-04-02 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817958', 'tblTempVendorCDR_20' ) end [2025-04-02 11:45:22] Production.INFO: ProcessCDR(1,14817958,1,1,2) [2025-04-02 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817958', 'tblTempUsageDetail_20' ) start [2025-04-02 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817958', 'tblTempUsageDetail_20' ) end [2025-04-02 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:45:28] Production.INFO: ==29099== Releasing lock... [2025-04-02 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:45:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:46:05 [end_date_ymd] => 2025-04-02 11:46:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:46:05' and `end` < '2025-04-02 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-04-02 11:46:19] Production.INFO: count ==4873 [2025-04-02 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:46:05 - End Time 2025-04-02 11:46:05 [2025-04-02 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817963', 'tblTempUsageDetail_20' ) start [2025-04-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817963', 'tblTempUsageDetail_20' ) end [2025-04-02 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817963', 'tblTempVendorCDR_20' ) start [2025-04-02 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817963', 'tblTempVendorCDR_20' ) end [2025-04-02 11:46:22] Production.INFO: ProcessCDR(1,14817963,1,1,2) [2025-04-02 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817963', 'tblTempUsageDetail_20' ) start [2025-04-02 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817963', 'tblTempUsageDetail_20' ) end [2025-04-02 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:46:28] Production.INFO: ==29186== Releasing lock... [2025-04-02 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:46:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:47:06 [end_date_ymd] => 2025-04-02 11:47:06 [RateCDR] => 1 ) [2025-04-02 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:47:06' and `end` < '2025-04-02 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:47:20] Production.INFO: count ==4864 [2025-04-02 11:47:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:47:06 - End Time 2025-04-02 11:47:06 [2025-04-02 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817968', 'tblTempUsageDetail_20' ) start [2025-04-02 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817968', 'tblTempUsageDetail_20' ) end [2025-04-02 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817968', 'tblTempVendorCDR_20' ) start [2025-04-02 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817968', 'tblTempVendorCDR_20' ) end [2025-04-02 11:47:22] Production.INFO: ProcessCDR(1,14817968,1,1,2) [2025-04-02 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817968', 'tblTempUsageDetail_20' ) start [2025-04-02 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817968', 'tblTempUsageDetail_20' ) end [2025-04-02 11:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:47:28] Production.INFO: ==29276== Releasing lock... [2025-04-02 11:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:47:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:48:05 [end_date_ymd] => 2025-04-02 11:48:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:48:05' and `end` < '2025-04-02 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-04-02 11:48:19] Production.INFO: count ==4864 [2025-04-02 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:48:05 - End Time 2025-04-02 11:48:05 [2025-04-02 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817973', 'tblTempUsageDetail_20' ) start [2025-04-02 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817973', 'tblTempUsageDetail_20' ) end [2025-04-02 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817973', 'tblTempVendorCDR_20' ) start [2025-04-02 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817973', 'tblTempVendorCDR_20' ) end [2025-04-02 11:48:22] Production.INFO: ProcessCDR(1,14817973,1,1,2) [2025-04-02 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817973', 'tblTempUsageDetail_20' ) start [2025-04-02 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817973', 'tblTempUsageDetail_20' ) end [2025-04-02 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:48:27] Production.INFO: ==29353== Releasing lock... [2025-04-02 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:48:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:49:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:49:07 [end_date_ymd] => 2025-04-02 11:49:07 [RateCDR] => 1 ) [2025-04-02 11:49:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:49:07' and `end` < '2025-04-02 11:49:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:49:20] Production.INFO: count ==4870 [2025-04-02 11:49:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:49:07 - End Time 2025-04-02 11:49:07 [2025-04-02 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817978', 'tblTempUsageDetail_20' ) start [2025-04-02 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817978', 'tblTempUsageDetail_20' ) end [2025-04-02 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817978', 'tblTempVendorCDR_20' ) start [2025-04-02 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817978', 'tblTempVendorCDR_20' ) end [2025-04-02 11:49:23] Production.INFO: ProcessCDR(1,14817978,1,1,2) [2025-04-02 11:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817978', 'tblTempUsageDetail_20' ) start [2025-04-02 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817978', 'tblTempUsageDetail_20' ) end [2025-04-02 11:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:49:28] Production.INFO: ==29431== Releasing lock... [2025-04-02 11:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:49:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:50:06 [end_date_ymd] => 2025-04-02 11:50:06 [RateCDR] => 1 ) [2025-04-02 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:50:06' and `end` < '2025-04-02 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:50:20] Production.INFO: count ==4874 [2025-04-02 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:50:06 - End Time 2025-04-02 11:50:06 [2025-04-02 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817984', 'tblTempUsageDetail_20' ) start [2025-04-02 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817984', 'tblTempUsageDetail_20' ) end [2025-04-02 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817984', 'tblTempVendorCDR_20' ) start [2025-04-02 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817984', 'tblTempVendorCDR_20' ) end [2025-04-02 11:50:22] Production.INFO: ProcessCDR(1,14817984,1,1,2) [2025-04-02 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817984', 'tblTempUsageDetail_20' ) start [2025-04-02 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817984', 'tblTempUsageDetail_20' ) end [2025-04-02 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:50:28] Production.INFO: ==29511== Releasing lock... [2025-04-02 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:50:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:51:06 [end_date_ymd] => 2025-04-02 11:51:06 [RateCDR] => 1 ) [2025-04-02 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:51:06' and `end` < '2025-04-02 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:51:19] Production.INFO: count ==4914 [2025-04-02 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:51:06 - End Time 2025-04-02 11:51:06 [2025-04-02 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817989', 'tblTempUsageDetail_20' ) start [2025-04-02 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817989', 'tblTempUsageDetail_20' ) end [2025-04-02 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817989', 'tblTempVendorCDR_20' ) start [2025-04-02 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817989', 'tblTempVendorCDR_20' ) end [2025-04-02 11:51:22] Production.INFO: ProcessCDR(1,14817989,1,1,2) [2025-04-02 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817989', 'tblTempUsageDetail_20' ) start [2025-04-02 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817989', 'tblTempUsageDetail_20' ) end [2025-04-02 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:51:27] Production.INFO: ==29597== Releasing lock... [2025-04-02 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:51:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:52:05 [end_date_ymd] => 2025-04-02 11:52:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:52:05' and `end` < '2025-04-02 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-04-02 11:52:19] Production.INFO: count ==4916 [2025-04-02 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:52:05 - End Time 2025-04-02 11:52:05 [2025-04-02 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817994', 'tblTempUsageDetail_20' ) start [2025-04-02 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817994', 'tblTempUsageDetail_20' ) end [2025-04-02 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817994', 'tblTempVendorCDR_20' ) start [2025-04-02 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817994', 'tblTempVendorCDR_20' ) end [2025-04-02 11:52:21] Production.INFO: ProcessCDR(1,14817994,1,1,2) [2025-04-02 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817994', 'tblTempUsageDetail_20' ) start [2025-04-02 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817994', 'tblTempUsageDetail_20' ) end [2025-04-02 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:52:27] Production.INFO: ==29679== Releasing lock... [2025-04-02 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:52:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:53:06 [end_date_ymd] => 2025-04-02 11:53:06 [RateCDR] => 1 ) [2025-04-02 11:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:53:06' and `end` < '2025-04-02 11:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:53:19] Production.INFO: count ==4922 [2025-04-02 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:53:06 - End Time 2025-04-02 11:53:06 [2025-04-02 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817999', 'tblTempUsageDetail_20' ) start [2025-04-02 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14817999', 'tblTempUsageDetail_20' ) end [2025-04-02 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817999', 'tblTempVendorCDR_20' ) start [2025-04-02 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14817999', 'tblTempVendorCDR_20' ) end [2025-04-02 11:53:22] Production.INFO: ProcessCDR(1,14817999,1,1,2) [2025-04-02 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14817999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14817999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14817999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14817999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817999', 'tblTempUsageDetail_20' ) start [2025-04-02 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14817999', 'tblTempUsageDetail_20' ) end [2025-04-02 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:53:26] Production.INFO: ==29761== Releasing lock... [2025-04-02 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:53:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:54:05 [end_date_ymd] => 2025-04-02 11:54:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 08:54:05' and `end` < '2025-04-02 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-04-02 11:54:19] Production.INFO: count ==4920 [2025-04-02 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:54:05 - End Time 2025-04-02 11:54:05 [2025-04-02 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818004', 'tblTempUsageDetail_20' ) start [2025-04-02 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818004', 'tblTempUsageDetail_20' ) end [2025-04-02 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818004', 'tblTempVendorCDR_20' ) start [2025-04-02 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818004', 'tblTempVendorCDR_20' ) end [2025-04-02 11:54:21] Production.INFO: ProcessCDR(1,14818004,1,1,2) [2025-04-02 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818004', 'tblTempUsageDetail_20' ) start [2025-04-02 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818004', 'tblTempUsageDetail_20' ) end [2025-04-02 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:54:26] Production.INFO: ==29880== Releasing lock... [2025-04-02 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:54:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:55:05 [end_date_ymd] => 2025-04-02 11:55:05 [RateCDR] => 1 ) [2025-04-02 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:55:05' and `end` < '2025-04-02 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:55:19] Production.INFO: count ==4917 [2025-04-02 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:55:05 - End Time 2025-04-02 11:55:05 [2025-04-02 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818009', 'tblTempUsageDetail_20' ) start [2025-04-02 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818009', 'tblTempUsageDetail_20' ) end [2025-04-02 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818009', 'tblTempVendorCDR_20' ) start [2025-04-02 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818009', 'tblTempVendorCDR_20' ) end [2025-04-02 11:55:21] Production.INFO: ProcessCDR(1,14818009,1,1,2) [2025-04-02 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818009', 'tblTempUsageDetail_20' ) start [2025-04-02 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818009', 'tblTempUsageDetail_20' ) end [2025-04-02 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:55:27] Production.INFO: ==29956== Releasing lock... [2025-04-02 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:55:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:56:06 [end_date_ymd] => 2025-04-02 11:56:06 [RateCDR] => 1 ) [2025-04-02 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:56:06' and `end` < '2025-04-02 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:56:19] Production.INFO: count ==4904 [2025-04-02 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:56:06 - End Time 2025-04-02 11:56:06 [2025-04-02 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818014', 'tblTempUsageDetail_20' ) start [2025-04-02 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818014', 'tblTempUsageDetail_20' ) end [2025-04-02 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818014', 'tblTempVendorCDR_20' ) start [2025-04-02 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818014', 'tblTempVendorCDR_20' ) end [2025-04-02 11:56:22] Production.INFO: ProcessCDR(1,14818014,1,1,2) [2025-04-02 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818014', 'tblTempUsageDetail_20' ) start [2025-04-02 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818014', 'tblTempUsageDetail_20' ) end [2025-04-02 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:56:27] Production.INFO: ==30033== Releasing lock... [2025-04-02 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:56:27] Production.INFO: 65 MB #Memory Used# [2025-04-02 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:57:06 [end_date_ymd] => 2025-04-02 11:57:06 [RateCDR] => 1 ) [2025-04-02 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:57:06' and `end` < '2025-04-02 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:57:20] Production.INFO: count ==4903 [2025-04-02 11:57:22] Production.ERROR: pbx CDR StartTime 2025-04-02 08:57:06 - End Time 2025-04-02 11:57:06 [2025-04-02 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818019', 'tblTempUsageDetail_20' ) start [2025-04-02 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818019', 'tblTempUsageDetail_20' ) end [2025-04-02 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818019', 'tblTempVendorCDR_20' ) start [2025-04-02 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818019', 'tblTempVendorCDR_20' ) end [2025-04-02 11:57:22] Production.INFO: ProcessCDR(1,14818019,1,1,2) [2025-04-02 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818019', 'tblTempUsageDetail_20' ) start [2025-04-02 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818019', 'tblTempUsageDetail_20' ) end [2025-04-02 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:57:26] Production.INFO: ==30110== Releasing lock... [2025-04-02 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:57:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:58:05 [end_date_ymd] => 2025-04-02 11:58:05 [RateCDR] => 1 ) [2025-04-02 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:58:05' and `end` < '2025-04-02 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:58:19] Production.INFO: count ==4909 [2025-04-02 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:58:05 - End Time 2025-04-02 11:58:05 [2025-04-02 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818024', 'tblTempUsageDetail_20' ) start [2025-04-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818024', 'tblTempUsageDetail_20' ) end [2025-04-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818024', 'tblTempVendorCDR_20' ) start [2025-04-02 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818024', 'tblTempVendorCDR_20' ) end [2025-04-02 11:58:21] Production.INFO: ProcessCDR(1,14818024,1,1,2) [2025-04-02 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818024', 'tblTempUsageDetail_20' ) start [2025-04-02 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818024', 'tblTempUsageDetail_20' ) end [2025-04-02 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:58:27] Production.INFO: ==30188== Releasing lock... [2025-04-02 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:58:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 08:59:05 [end_date_ymd] => 2025-04-02 11:59:05 [RateCDR] => 1 ) [2025-04-02 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 08:59:05' and `end` < '2025-04-02 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 11:59:19] Production.INFO: count ==4908 [2025-04-02 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-02 08:59:05 - End Time 2025-04-02 11:59:05 [2025-04-02 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818029', 'tblTempUsageDetail_20' ) start [2025-04-02 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818029', 'tblTempUsageDetail_20' ) end [2025-04-02 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818029', 'tblTempVendorCDR_20' ) start [2025-04-02 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818029', 'tblTempVendorCDR_20' ) end [2025-04-02 11:59:21] Production.INFO: ProcessCDR(1,14818029,1,1,2) [2025-04-02 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818029', 'tblTempUsageDetail_20' ) start [2025-04-02 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818029', 'tblTempUsageDetail_20' ) end [2025-04-02 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 11:59:26] Production.INFO: ==30265== Releasing lock... [2025-04-02 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 11:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:00:06 [end_date_ymd] => 2025-04-02 12:00:06 [RateCDR] => 1 ) [2025-04-02 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:00:06' and `end` < '2025-04-02 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:00:19] Production.INFO: count ==4909 [2025-04-02 12:00:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:00:06 - End Time 2025-04-02 12:00:06 [2025-04-02 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818034', 'tblTempUsageDetail_20' ) start [2025-04-02 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818034', 'tblTempUsageDetail_20' ) end [2025-04-02 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818034', 'tblTempVendorCDR_20' ) start [2025-04-02 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818034', 'tblTempVendorCDR_20' ) end [2025-04-02 12:00:21] Production.INFO: ProcessCDR(1,14818034,1,1,2) [2025-04-02 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818034', 'tblTempUsageDetail_20' ) start [2025-04-02 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818034', 'tblTempUsageDetail_20' ) end [2025-04-02 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:00:27] Production.INFO: ==30346== Releasing lock... [2025-04-02 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:00:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:01:06 [end_date_ymd] => 2025-04-02 12:01:06 [RateCDR] => 1 ) [2025-04-02 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:01:06' and `end` < '2025-04-02 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:01:19] Production.INFO: count ==4989 [2025-04-02 12:01:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:01:06 - End Time 2025-04-02 12:01:06 [2025-04-02 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818040', 'tblTempUsageDetail_20' ) start [2025-04-02 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818040', 'tblTempUsageDetail_20' ) end [2025-04-02 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818040', 'tblTempVendorCDR_20' ) start [2025-04-02 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818040', 'tblTempVendorCDR_20' ) end [2025-04-02 12:01:22] Production.INFO: ProcessCDR(1,14818040,1,1,2) [2025-04-02 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818040', 'tblTempUsageDetail_20' ) start [2025-04-02 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818040', 'tblTempUsageDetail_20' ) end [2025-04-02 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:01:27] Production.INFO: ==30437== Releasing lock... [2025-04-02 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:01:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-02 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:02:05 [end_date_ymd] => 2025-04-02 12:02:05 [RateCDR] => 1 ) [2025-04-02 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:02:05' and `end` < '2025-04-02 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:02:19] Production.INFO: count ==4995 [2025-04-02 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:02:05 - End Time 2025-04-02 12:02:05 [2025-04-02 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818045', 'tblTempUsageDetail_20' ) start [2025-04-02 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818045', 'tblTempUsageDetail_20' ) end [2025-04-02 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818045', 'tblTempVendorCDR_20' ) start [2025-04-02 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818045', 'tblTempVendorCDR_20' ) end [2025-04-02 12:02:21] Production.INFO: ProcessCDR(1,14818045,1,1,2) [2025-04-02 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818045', 'tblTempUsageDetail_20' ) start [2025-04-02 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818045', 'tblTempUsageDetail_20' ) end [2025-04-02 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:02:27] Production.INFO: ==30513== Releasing lock... [2025-04-02 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:02:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:03:06 [end_date_ymd] => 2025-04-02 12:03:06 [RateCDR] => 1 ) [2025-04-02 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:03:06' and `end` < '2025-04-02 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:03:20] Production.INFO: count ==5004 [2025-04-02 12:03:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:03:06 - End Time 2025-04-02 12:03:06 [2025-04-02 12:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818050', 'tblTempUsageDetail_20' ) start [2025-04-02 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818050', 'tblTempUsageDetail_20' ) end [2025-04-02 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818050', 'tblTempVendorCDR_20' ) start [2025-04-02 12:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818050', 'tblTempVendorCDR_20' ) end [2025-04-02 12:03:22] Production.INFO: ProcessCDR(1,14818050,1,1,2) [2025-04-02 12:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818050', 'tblTempUsageDetail_20' ) start [2025-04-02 12:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818050', 'tblTempUsageDetail_20' ) end [2025-04-02 12:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:03:28] Production.INFO: ==30586== Releasing lock... [2025-04-02 12:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:03:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:04:05 [end_date_ymd] => 2025-04-02 12:04:05 [RateCDR] => 1 ) [2025-04-02 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:04:05' and `end` < '2025-04-02 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:04:19] Production.INFO: count ==5008 [2025-04-02 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:04:05 - End Time 2025-04-02 12:04:05 [2025-04-02 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818055', 'tblTempUsageDetail_20' ) start [2025-04-02 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818055', 'tblTempUsageDetail_20' ) end [2025-04-02 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818055', 'tblTempVendorCDR_20' ) start [2025-04-02 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818055', 'tblTempVendorCDR_20' ) end [2025-04-02 12:04:21] Production.INFO: ProcessCDR(1,14818055,1,1,2) [2025-04-02 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818055', 'tblTempUsageDetail_20' ) start [2025-04-02 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818055', 'tblTempUsageDetail_20' ) end [2025-04-02 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:04:27] Production.INFO: ==30660== Releasing lock... [2025-04-02 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:04:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:05:06 [end_date_ymd] => 2025-04-02 12:05:06 [RateCDR] => 1 ) [2025-04-02 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:05:06' and `end` < '2025-04-02 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:05:19] Production.INFO: count ==5012 [2025-04-02 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:05:06 - End Time 2025-04-02 12:05:06 [2025-04-02 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818060', 'tblTempUsageDetail_20' ) start [2025-04-02 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818060', 'tblTempUsageDetail_20' ) end [2025-04-02 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818060', 'tblTempVendorCDR_20' ) start [2025-04-02 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818060', 'tblTempVendorCDR_20' ) end [2025-04-02 12:05:22] Production.INFO: ProcessCDR(1,14818060,1,1,2) [2025-04-02 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818060', 'tblTempUsageDetail_20' ) start [2025-04-02 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818060', 'tblTempUsageDetail_20' ) end [2025-04-02 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:05:27] Production.INFO: ==30734== Releasing lock... [2025-04-02 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:05:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:06:05 [end_date_ymd] => 2025-04-02 12:06:05 [RateCDR] => 1 ) [2025-04-02 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:06:05' and `end` < '2025-04-02 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:06:19] Production.INFO: count ==5008 [2025-04-02 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:06:05 - End Time 2025-04-02 12:06:05 [2025-04-02 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818065', 'tblTempUsageDetail_20' ) start [2025-04-02 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818065', 'tblTempUsageDetail_20' ) end [2025-04-02 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818065', 'tblTempVendorCDR_20' ) start [2025-04-02 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818065', 'tblTempVendorCDR_20' ) end [2025-04-02 12:06:21] Production.INFO: ProcessCDR(1,14818065,1,1,2) [2025-04-02 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818065', 'tblTempUsageDetail_20' ) start [2025-04-02 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818065', 'tblTempUsageDetail_20' ) end [2025-04-02 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:06:27] Production.INFO: ==30809== Releasing lock... [2025-04-02 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:06:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:07:06 [end_date_ymd] => 2025-04-02 12:07:06 [RateCDR] => 1 ) [2025-04-02 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:07:06' and `end` < '2025-04-02 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:07:20] Production.INFO: count ==5014 [2025-04-02 12:07:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:07:06 - End Time 2025-04-02 12:07:06 [2025-04-02 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818070', 'tblTempUsageDetail_20' ) start [2025-04-02 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818070', 'tblTempUsageDetail_20' ) end [2025-04-02 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818070', 'tblTempVendorCDR_20' ) start [2025-04-02 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818070', 'tblTempVendorCDR_20' ) end [2025-04-02 12:07:23] Production.INFO: ProcessCDR(1,14818070,1,1,2) [2025-04-02 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818070', 'tblTempUsageDetail_20' ) start [2025-04-02 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818070', 'tblTempUsageDetail_20' ) end [2025-04-02 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:07:28] Production.INFO: ==30882== Releasing lock... [2025-04-02 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:07:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:08:05 [end_date_ymd] => 2025-04-02 12:08:05 [RateCDR] => 1 ) [2025-04-02 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:08:05' and `end` < '2025-04-02 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:08:19] Production.INFO: count ==5008 [2025-04-02 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:08:05 - End Time 2025-04-02 12:08:05 [2025-04-02 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818075', 'tblTempUsageDetail_20' ) start [2025-04-02 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818075', 'tblTempUsageDetail_20' ) end [2025-04-02 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818075', 'tblTempVendorCDR_20' ) start [2025-04-02 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818075', 'tblTempVendorCDR_20' ) end [2025-04-02 12:08:21] Production.INFO: ProcessCDR(1,14818075,1,1,2) [2025-04-02 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818075', 'tblTempUsageDetail_20' ) start [2025-04-02 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818075', 'tblTempUsageDetail_20' ) end [2025-04-02 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:08:27] Production.INFO: ==30955== Releasing lock... [2025-04-02 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:08:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:09:05 [end_date_ymd] => 2025-04-02 12:09:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:09:05' and `end` < '2025-04-02 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-04-02 12:09:19] Production.INFO: count ==5041 [2025-04-02 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:09:05 - End Time 2025-04-02 12:09:05 [2025-04-02 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818080', 'tblTempUsageDetail_20' ) start [2025-04-02 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818080', 'tblTempUsageDetail_20' ) end [2025-04-02 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818080', 'tblTempVendorCDR_20' ) start [2025-04-02 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818080', 'tblTempVendorCDR_20' ) end [2025-04-02 12:09:21] Production.INFO: ProcessCDR(1,14818080,1,1,2) [2025-04-02 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818080', 'tblTempUsageDetail_20' ) start [2025-04-02 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818080', 'tblTempUsageDetail_20' ) end [2025-04-02 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:09:26] Production.INFO: ==31071== Releasing lock... [2025-04-02 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:09:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:10:06 [end_date_ymd] => 2025-04-02 12:10:06 [RateCDR] => 1 ) [2025-04-02 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:10:06' and `end` < '2025-04-02 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:10:19] Production.INFO: count ==5058 [2025-04-02 12:10:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:10:06 - End Time 2025-04-02 12:10:06 [2025-04-02 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818086', 'tblTempUsageDetail_20' ) start [2025-04-02 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818086', 'tblTempUsageDetail_20' ) end [2025-04-02 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818086', 'tblTempVendorCDR_20' ) start [2025-04-02 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818086', 'tblTempVendorCDR_20' ) end [2025-04-02 12:10:21] Production.INFO: ProcessCDR(1,14818086,1,1,2) [2025-04-02 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818086', 'tblTempUsageDetail_20' ) start [2025-04-02 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818086', 'tblTempUsageDetail_20' ) end [2025-04-02 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:10:27] Production.INFO: ==31152== Releasing lock... [2025-04-02 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:10:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:11:06 [end_date_ymd] => 2025-04-02 12:11:06 [RateCDR] => 1 ) [2025-04-02 12:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:11:06' and `end` < '2025-04-02 12:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:11:20] Production.INFO: count ==5082 [2025-04-02 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:11:06 - End Time 2025-04-02 12:11:06 [2025-04-02 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818091', 'tblTempUsageDetail_20' ) start [2025-04-02 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818091', 'tblTempUsageDetail_20' ) end [2025-04-02 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818091', 'tblTempVendorCDR_20' ) start [2025-04-02 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818091', 'tblTempVendorCDR_20' ) end [2025-04-02 12:11:22] Production.INFO: ProcessCDR(1,14818091,1,1,2) [2025-04-02 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818091', 'tblTempUsageDetail_20' ) start [2025-04-02 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818091', 'tblTempUsageDetail_20' ) end [2025-04-02 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:11:27] Production.INFO: ==31229== Releasing lock... [2025-04-02 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:11:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:12:05 [end_date_ymd] => 2025-04-02 12:12:05 [RateCDR] => 1 ) [2025-04-02 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:12:05' and `end` < '2025-04-02 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:12:18] Production.INFO: count ==5092 [2025-04-02 12:12:20] Production.ERROR: pbx CDR StartTime 2025-04-02 09:12:05 - End Time 2025-04-02 12:12:05 [2025-04-02 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818096', 'tblTempUsageDetail_20' ) start [2025-04-02 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818096', 'tblTempUsageDetail_20' ) end [2025-04-02 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818096', 'tblTempVendorCDR_20' ) start [2025-04-02 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818096', 'tblTempVendorCDR_20' ) end [2025-04-02 12:12:21] Production.INFO: ProcessCDR(1,14818096,1,1,2) [2025-04-02 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818096', 'tblTempUsageDetail_20' ) start [2025-04-02 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818096', 'tblTempUsageDetail_20' ) end [2025-04-02 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:12:26] Production.INFO: ==31298== Releasing lock... [2025-04-02 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:12:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:13:05 [end_date_ymd] => 2025-04-02 12:13:05 [RateCDR] => 1 ) [2025-04-02 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:13:05' and `end` < '2025-04-02 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:13:19] Production.INFO: count ==5100 [2025-04-02 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:13:05 - End Time 2025-04-02 12:13:05 [2025-04-02 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818101', 'tblTempUsageDetail_20' ) start [2025-04-02 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818101', 'tblTempUsageDetail_20' ) end [2025-04-02 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818101', 'tblTempVendorCDR_20' ) start [2025-04-02 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818101', 'tblTempVendorCDR_20' ) end [2025-04-02 12:13:21] Production.INFO: ProcessCDR(1,14818101,1,1,2) [2025-04-02 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818101', 'tblTempUsageDetail_20' ) start [2025-04-02 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818101', 'tblTempUsageDetail_20' ) end [2025-04-02 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:13:25] Production.INFO: ==31368== Releasing lock... [2025-04-02 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:13:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:14:05 [end_date_ymd] => 2025-04-02 12:14:05 [RateCDR] => 1 ) [2025-04-02 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:14:05' and `end` < '2025-04-02 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:14:19] Production.INFO: count ==5116 [2025-04-02 12:14:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:14:05 - End Time 2025-04-02 12:14:05 [2025-04-02 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818106', 'tblTempUsageDetail_20' ) start [2025-04-02 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818106', 'tblTempUsageDetail_20' ) end [2025-04-02 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818106', 'tblTempVendorCDR_20' ) start [2025-04-02 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818106', 'tblTempVendorCDR_20' ) end [2025-04-02 12:14:21] Production.INFO: ProcessCDR(1,14818106,1,1,2) [2025-04-02 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818106', 'tblTempUsageDetail_20' ) start [2025-04-02 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818106', 'tblTempUsageDetail_20' ) end [2025-04-02 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:14:27] Production.INFO: ==31441== Releasing lock... [2025-04-02 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:14:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:15:06 [end_date_ymd] => 2025-04-02 12:15:06 [RateCDR] => 1 ) [2025-04-02 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:15:06' and `end` < '2025-04-02 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:15:20] Production.INFO: count ==5117 [2025-04-02 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:15:06 - End Time 2025-04-02 12:15:06 [2025-04-02 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818111', 'tblTempUsageDetail_20' ) start [2025-04-02 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818111', 'tblTempUsageDetail_20' ) end [2025-04-02 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818111', 'tblTempVendorCDR_20' ) start [2025-04-02 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818111', 'tblTempVendorCDR_20' ) end [2025-04-02 12:15:22] Production.INFO: ProcessCDR(1,14818111,1,1,2) [2025-04-02 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818111', 'tblTempUsageDetail_20' ) start [2025-04-02 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818111', 'tblTempUsageDetail_20' ) end [2025-04-02 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:15:28] Production.INFO: ==31512== Releasing lock... [2025-04-02 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:15:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:16:05 [end_date_ymd] => 2025-04-02 12:16:05 [RateCDR] => 1 ) [2025-04-02 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:16:05' and `end` < '2025-04-02 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:16:19] Production.INFO: count ==5118 [2025-04-02 12:16:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:16:05 - End Time 2025-04-02 12:16:05 [2025-04-02 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818116', 'tblTempUsageDetail_20' ) start [2025-04-02 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818116', 'tblTempUsageDetail_20' ) end [2025-04-02 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818116', 'tblTempVendorCDR_20' ) start [2025-04-02 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818116', 'tblTempVendorCDR_20' ) end [2025-04-02 12:16:22] Production.INFO: ProcessCDR(1,14818116,1,1,2) [2025-04-02 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818116', 'tblTempUsageDetail_20' ) start [2025-04-02 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818116', 'tblTempUsageDetail_20' ) end [2025-04-02 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:16:27] Production.INFO: ==31582== Releasing lock... [2025-04-02 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:16:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:17:06 [end_date_ymd] => 2025-04-02 12:17:06 [RateCDR] => 1 ) [2025-04-02 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:17:06' and `end` < '2025-04-02 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:17:20] Production.INFO: count ==5140 [2025-04-02 12:17:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:17:06 - End Time 2025-04-02 12:17:06 [2025-04-02 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818121', 'tblTempUsageDetail_20' ) start [2025-04-02 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818121', 'tblTempUsageDetail_20' ) end [2025-04-02 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818121', 'tblTempVendorCDR_20' ) start [2025-04-02 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818121', 'tblTempVendorCDR_20' ) end [2025-04-02 12:17:22] Production.INFO: ProcessCDR(1,14818121,1,1,2) [2025-04-02 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818121', 'tblTempUsageDetail_20' ) start [2025-04-02 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818121', 'tblTempUsageDetail_20' ) end [2025-04-02 12:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:17:28] Production.INFO: ==31654== Releasing lock... [2025-04-02 12:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:17:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:18:05 [end_date_ymd] => 2025-04-02 12:18:05 [RateCDR] => 1 ) [2025-04-02 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:18:05' and `end` < '2025-04-02 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:18:19] Production.INFO: count ==5155 [2025-04-02 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:18:05 - End Time 2025-04-02 12:18:05 [2025-04-02 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818126', 'tblTempUsageDetail_20' ) start [2025-04-02 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818126', 'tblTempUsageDetail_20' ) end [2025-04-02 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818126', 'tblTempVendorCDR_20' ) start [2025-04-02 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818126', 'tblTempVendorCDR_20' ) end [2025-04-02 12:18:21] Production.INFO: ProcessCDR(1,14818126,1,1,2) [2025-04-02 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818126', 'tblTempUsageDetail_20' ) start [2025-04-02 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818126', 'tblTempUsageDetail_20' ) end [2025-04-02 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:18:26] Production.INFO: ==31726== Releasing lock... [2025-04-02 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:18:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:19:05 [end_date_ymd] => 2025-04-02 12:19:05 [RateCDR] => 1 ) [2025-04-02 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:19:05' and `end` < '2025-04-02 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:19:19] Production.INFO: count ==5151 [2025-04-02 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:19:05 - End Time 2025-04-02 12:19:05 [2025-04-02 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818131', 'tblTempUsageDetail_20' ) start [2025-04-02 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818131', 'tblTempUsageDetail_20' ) end [2025-04-02 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818131', 'tblTempVendorCDR_20' ) start [2025-04-02 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818131', 'tblTempVendorCDR_20' ) end [2025-04-02 12:19:22] Production.INFO: ProcessCDR(1,14818131,1,1,2) [2025-04-02 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818131', 'tblTempUsageDetail_20' ) start [2025-04-02 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818131', 'tblTempUsageDetail_20' ) end [2025-04-02 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:19:27] Production.INFO: ==31800== Releasing lock... [2025-04-02 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:19:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:20:06 [end_date_ymd] => 2025-04-02 12:20:06 [RateCDR] => 1 ) [2025-04-02 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:20:06' and `end` < '2025-04-02 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:20:20] Production.INFO: count ==5164 [2025-04-02 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:20:06 - End Time 2025-04-02 12:20:06 [2025-04-02 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818137', 'tblTempUsageDetail_20' ) start [2025-04-02 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818137', 'tblTempUsageDetail_20' ) end [2025-04-02 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818137', 'tblTempVendorCDR_20' ) start [2025-04-02 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818137', 'tblTempVendorCDR_20' ) end [2025-04-02 12:20:22] Production.INFO: ProcessCDR(1,14818137,1,1,2) [2025-04-02 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818137', 'tblTempUsageDetail_20' ) start [2025-04-02 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818137', 'tblTempUsageDetail_20' ) end [2025-04-02 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:20:28] Production.INFO: ==31875== Releasing lock... [2025-04-02 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:20:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:21:06 [end_date_ymd] => 2025-04-02 12:21:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:21:06' and `end` < '2025-04-02 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-04-02 12:21:19] Production.INFO: count ==5187 [2025-04-02 12:21:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:21:06 - End Time 2025-04-02 12:21:06 [2025-04-02 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818142', 'tblTempUsageDetail_20' ) start [2025-04-02 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818142', 'tblTempUsageDetail_20' ) end [2025-04-02 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818142', 'tblTempVendorCDR_20' ) start [2025-04-02 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818142', 'tblTempVendorCDR_20' ) end [2025-04-02 12:21:22] Production.INFO: ProcessCDR(1,14818142,1,1,2) [2025-04-02 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818142', 'tblTempUsageDetail_20' ) start [2025-04-02 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818142', 'tblTempUsageDetail_20' ) end [2025-04-02 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:21:27] Production.INFO: ==31949== Releasing lock... [2025-04-02 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:21:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:22:04 [end_date_ymd] => 2025-04-02 12:22:04 [RateCDR] => 1 ) [2025-04-02 12: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-04-02 09:22:04' and `end` < '2025-04-02 12: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-04-02 12:22:18] Production.INFO: count ==5203 [2025-04-02 12:22:20] Production.ERROR: pbx CDR StartTime 2025-04-02 09:22:04 - End Time 2025-04-02 12:22:04 [2025-04-02 12:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818147', 'tblTempUsageDetail_20' ) start [2025-04-02 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818147', 'tblTempUsageDetail_20' ) end [2025-04-02 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818147', 'tblTempVendorCDR_20' ) start [2025-04-02 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818147', 'tblTempVendorCDR_20' ) end [2025-04-02 12:22:20] Production.INFO: ProcessCDR(1,14818147,1,1,2) [2025-04-02 12:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818147', 'tblTempUsageDetail_20' ) start [2025-04-02 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818147', 'tblTempUsageDetail_20' ) end [2025-04-02 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:22:26] Production.INFO: ==32018== Releasing lock... [2025-04-02 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:22:26] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:23:05 [end_date_ymd] => 2025-04-02 12:23:05 [RateCDR] => 1 ) [2025-04-02 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:23:05' and `end` < '2025-04-02 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:23:19] Production.INFO: count ==5186 [2025-04-02 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:23:05 - End Time 2025-04-02 12:23:05 [2025-04-02 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818152', 'tblTempUsageDetail_20' ) start [2025-04-02 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818152', 'tblTempUsageDetail_20' ) end [2025-04-02 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818152', 'tblTempVendorCDR_20' ) start [2025-04-02 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818152', 'tblTempVendorCDR_20' ) end [2025-04-02 12:23:21] Production.INFO: ProcessCDR(1,14818152,1,1,2) [2025-04-02 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818152', 'tblTempUsageDetail_20' ) start [2025-04-02 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818152', 'tblTempUsageDetail_20' ) end [2025-04-02 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:23:27] Production.INFO: ==32091== Releasing lock... [2025-04-02 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:23:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:24:05 [end_date_ymd] => 2025-04-02 12:24:05 [RateCDR] => 1 ) [2025-04-02 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:24:05' and `end` < '2025-04-02 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:24:19] Production.INFO: count ==5184 [2025-04-02 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:24:05 - End Time 2025-04-02 12:24:05 [2025-04-02 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818157', 'tblTempUsageDetail_20' ) start [2025-04-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818157', 'tblTempUsageDetail_20' ) end [2025-04-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818157', 'tblTempVendorCDR_20' ) start [2025-04-02 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818157', 'tblTempVendorCDR_20' ) end [2025-04-02 12:24:21] Production.INFO: ProcessCDR(1,14818157,1,1,2) [2025-04-02 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818157', 'tblTempUsageDetail_20' ) start [2025-04-02 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818157', 'tblTempUsageDetail_20' ) end [2025-04-02 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:24:27] Production.INFO: ==32165== Releasing lock... [2025-04-02 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:24:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:25:06 [end_date_ymd] => 2025-04-02 12:25:06 [RateCDR] => 1 ) [2025-04-02 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:25:06' and `end` < '2025-04-02 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:25:19] Production.INFO: count ==5178 [2025-04-02 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:25:06 - End Time 2025-04-02 12:25:06 [2025-04-02 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818162', 'tblTempUsageDetail_20' ) start [2025-04-02 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818162', 'tblTempUsageDetail_20' ) end [2025-04-02 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818162', 'tblTempVendorCDR_20' ) start [2025-04-02 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818162', 'tblTempVendorCDR_20' ) end [2025-04-02 12:25:21] Production.INFO: ProcessCDR(1,14818162,1,1,2) [2025-04-02 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818162', 'tblTempUsageDetail_20' ) start [2025-04-02 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818162', 'tblTempUsageDetail_20' ) end [2025-04-02 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:25:27] Production.INFO: ==32279== Releasing lock... [2025-04-02 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:25:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:26:05 [end_date_ymd] => 2025-04-02 12:26:05 [RateCDR] => 1 ) [2025-04-02 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:26:05' and `end` < '2025-04-02 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:26:18] Production.INFO: count ==5173 [2025-04-02 12:26:20] Production.ERROR: pbx CDR StartTime 2025-04-02 09:26:05 - End Time 2025-04-02 12:26:05 [2025-04-02 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818167', 'tblTempUsageDetail_20' ) start [2025-04-02 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818167', 'tblTempUsageDetail_20' ) end [2025-04-02 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818167', 'tblTempVendorCDR_20' ) start [2025-04-02 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818167', 'tblTempVendorCDR_20' ) end [2025-04-02 12:26:21] Production.INFO: ProcessCDR(1,14818167,1,1,2) [2025-04-02 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818167', 'tblTempUsageDetail_20' ) start [2025-04-02 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818167', 'tblTempUsageDetail_20' ) end [2025-04-02 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:26:26] Production.INFO: ==32350== Releasing lock... [2025-04-02 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:26:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:27:06 [end_date_ymd] => 2025-04-02 12:27:06 [RateCDR] => 1 ) [2025-04-02 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:27:06' and `end` < '2025-04-02 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:27:19] Production.INFO: count ==5181 [2025-04-02 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:27:06 - End Time 2025-04-02 12:27:06 [2025-04-02 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818172', 'tblTempUsageDetail_20' ) start [2025-04-02 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818172', 'tblTempUsageDetail_20' ) end [2025-04-02 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818172', 'tblTempVendorCDR_20' ) start [2025-04-02 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818172', 'tblTempVendorCDR_20' ) end [2025-04-02 12:27:22] Production.INFO: ProcessCDR(1,14818172,1,1,2) [2025-04-02 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818172', 'tblTempUsageDetail_20' ) start [2025-04-02 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818172', 'tblTempUsageDetail_20' ) end [2025-04-02 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:27:27] Production.INFO: ==32420== Releasing lock... [2025-04-02 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:27:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:28:06 [end_date_ymd] => 2025-04-02 12:28:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:28:06' and `end` < '2025-04-02 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-04-02 12:28:19] Production.INFO: count ==5174 [2025-04-02 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:28:06 - End Time 2025-04-02 12:28:06 [2025-04-02 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818177', 'tblTempUsageDetail_20' ) start [2025-04-02 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818177', 'tblTempUsageDetail_20' ) end [2025-04-02 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818177', 'tblTempVendorCDR_20' ) start [2025-04-02 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818177', 'tblTempVendorCDR_20' ) end [2025-04-02 12:28:21] Production.INFO: ProcessCDR(1,14818177,1,1,2) [2025-04-02 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818177', 'tblTempUsageDetail_20' ) start [2025-04-02 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818177', 'tblTempUsageDetail_20' ) end [2025-04-02 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:28:27] Production.INFO: ==32495== Releasing lock... [2025-04-02 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:28:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:29:06 [end_date_ymd] => 2025-04-02 12:29:06 [RateCDR] => 1 ) [2025-04-02 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:29:06' and `end` < '2025-04-02 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:29:19] Production.INFO: count ==5157 [2025-04-02 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:29:06 - End Time 2025-04-02 12:29:06 [2025-04-02 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818182', 'tblTempUsageDetail_20' ) start [2025-04-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818182', 'tblTempUsageDetail_20' ) end [2025-04-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818182', 'tblTempVendorCDR_20' ) start [2025-04-02 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818182', 'tblTempVendorCDR_20' ) end [2025-04-02 12:29:22] Production.INFO: ProcessCDR(1,14818182,1,1,2) [2025-04-02 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818182', 'tblTempUsageDetail_20' ) start [2025-04-02 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818182', 'tblTempUsageDetail_20' ) end [2025-04-02 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:29:27] Production.INFO: ==32573== Releasing lock... [2025-04-02 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:29:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:30:06 [end_date_ymd] => 2025-04-02 12:30:06 [RateCDR] => 1 ) [2025-04-02 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:30:06' and `end` < '2025-04-02 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:30:20] Production.INFO: count ==5161 [2025-04-02 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:30:06 - End Time 2025-04-02 12:30:06 [2025-04-02 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818188', 'tblTempUsageDetail_20' ) start [2025-04-02 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818188', 'tblTempUsageDetail_20' ) end [2025-04-02 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818188', 'tblTempVendorCDR_20' ) start [2025-04-02 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818188', 'tblTempVendorCDR_20' ) end [2025-04-02 12:30:22] Production.INFO: ProcessCDR(1,14818188,1,1,2) [2025-04-02 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818188', 'tblTempUsageDetail_20' ) start [2025-04-02 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818188', 'tblTempUsageDetail_20' ) end [2025-04-02 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:30:28] Production.INFO: ==32646== Releasing lock... [2025-04-02 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:30:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:31:05 [end_date_ymd] => 2025-04-02 12:31:05 [RateCDR] => 1 ) [2025-04-02 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:31:05' and `end` < '2025-04-02 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:31:19] Production.INFO: count ==5195 [2025-04-02 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:31:05 - End Time 2025-04-02 12:31:05 [2025-04-02 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818193', 'tblTempUsageDetail_20' ) start [2025-04-02 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818193', 'tblTempUsageDetail_20' ) end [2025-04-02 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818193', 'tblTempVendorCDR_20' ) start [2025-04-02 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818193', 'tblTempVendorCDR_20' ) end [2025-04-02 12:31:21] Production.INFO: ProcessCDR(1,14818193,1,1,2) [2025-04-02 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818193', 'tblTempUsageDetail_20' ) start [2025-04-02 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818193', 'tblTempUsageDetail_20' ) end [2025-04-02 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:31:27] Production.INFO: ==32719== Releasing lock... [2025-04-02 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:31:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:32:06 [end_date_ymd] => 2025-04-02 12:32:06 [RateCDR] => 1 ) [2025-04-02 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:32:06' and `end` < '2025-04-02 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:32:20] Production.INFO: count ==5205 [2025-04-02 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:32:06 - End Time 2025-04-02 12:32:06 [2025-04-02 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818198', 'tblTempUsageDetail_20' ) start [2025-04-02 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818198', 'tblTempUsageDetail_20' ) end [2025-04-02 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818198', 'tblTempVendorCDR_20' ) start [2025-04-02 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818198', 'tblTempVendorCDR_20' ) end [2025-04-02 12:32:22] Production.INFO: ProcessCDR(1,14818198,1,1,2) [2025-04-02 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818198', 'tblTempUsageDetail_20' ) start [2025-04-02 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818198', 'tblTempUsageDetail_20' ) end [2025-04-02 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:32:28] Production.INFO: ==330== Releasing lock... [2025-04-02 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:32:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:33:06 [end_date_ymd] => 2025-04-02 12:33:06 [RateCDR] => 1 ) [2025-04-02 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:33:06' and `end` < '2025-04-02 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:33:19] Production.INFO: count ==5208 [2025-04-02 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:33:06 - End Time 2025-04-02 12:33:06 [2025-04-02 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818203', 'tblTempUsageDetail_20' ) start [2025-04-02 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818203', 'tblTempUsageDetail_20' ) end [2025-04-02 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818203', 'tblTempVendorCDR_20' ) start [2025-04-02 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818203', 'tblTempVendorCDR_20' ) end [2025-04-02 12:33:22] Production.INFO: ProcessCDR(1,14818203,1,1,2) [2025-04-02 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818203', 'tblTempUsageDetail_20' ) start [2025-04-02 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818203', 'tblTempUsageDetail_20' ) end [2025-04-02 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:33:27] Production.INFO: ==413== Releasing lock... [2025-04-02 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:33:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:34:06 [end_date_ymd] => 2025-04-02 12:34:06 [RateCDR] => 1 ) [2025-04-02 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:34:06' and `end` < '2025-04-02 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:34:20] Production.INFO: count ==5216 [2025-04-02 12:34:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:34:06 - End Time 2025-04-02 12:34:06 [2025-04-02 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818208', 'tblTempUsageDetail_20' ) start [2025-04-02 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818208', 'tblTempUsageDetail_20' ) end [2025-04-02 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818208', 'tblTempVendorCDR_20' ) start [2025-04-02 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818208', 'tblTempVendorCDR_20' ) end [2025-04-02 12:34:22] Production.INFO: ProcessCDR(1,14818208,1,1,2) [2025-04-02 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818208', 'tblTempUsageDetail_20' ) start [2025-04-02 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818208', 'tblTempUsageDetail_20' ) end [2025-04-02 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:34:27] Production.INFO: ==487== Releasing lock... [2025-04-02 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:34:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:35:05 [end_date_ymd] => 2025-04-02 12:35:05 [RateCDR] => 1 ) [2025-04-02 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:35:05' and `end` < '2025-04-02 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:35:19] Production.INFO: count ==5223 [2025-04-02 12:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:35:05 - End Time 2025-04-02 12:35:05 [2025-04-02 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818213', 'tblTempUsageDetail_20' ) start [2025-04-02 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818213', 'tblTempUsageDetail_20' ) end [2025-04-02 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818213', 'tblTempVendorCDR_20' ) start [2025-04-02 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818213', 'tblTempVendorCDR_20' ) end [2025-04-02 12:35:21] Production.INFO: ProcessCDR(1,14818213,1,1,2) [2025-04-02 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818213', 'tblTempUsageDetail_20' ) start [2025-04-02 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818213', 'tblTempUsageDetail_20' ) end [2025-04-02 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:35:27] Production.INFO: ==564== Releasing lock... [2025-04-02 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:35:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:36:05 [end_date_ymd] => 2025-04-02 12:36:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:36:05' and `end` < '2025-04-02 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-04-02 12:36:19] Production.INFO: count ==5210 [2025-04-02 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:36:05 - End Time 2025-04-02 12:36:05 [2025-04-02 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818218', 'tblTempUsageDetail_20' ) start [2025-04-02 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818218', 'tblTempUsageDetail_20' ) end [2025-04-02 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818218', 'tblTempVendorCDR_20' ) start [2025-04-02 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818218', 'tblTempVendorCDR_20' ) end [2025-04-02 12:36:22] Production.INFO: ProcessCDR(1,14818218,1,1,2) [2025-04-02 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818218', 'tblTempUsageDetail_20' ) start [2025-04-02 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818218', 'tblTempUsageDetail_20' ) end [2025-04-02 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:36:27] Production.INFO: ==644== Releasing lock... [2025-04-02 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:36:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:37:05 [end_date_ymd] => 2025-04-02 12:37:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:37:05' and `end` < '2025-04-02 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:37:19] Production.INFO: count ==5200 [2025-04-02 12:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:37:05 - End Time 2025-04-02 12:37:05 [2025-04-02 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818223', 'tblTempUsageDetail_20' ) start [2025-04-02 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818223', 'tblTempUsageDetail_20' ) end [2025-04-02 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818223', 'tblTempVendorCDR_20' ) start [2025-04-02 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818223', 'tblTempVendorCDR_20' ) end [2025-04-02 12:37:22] Production.INFO: ProcessCDR(1,14818223,1,1,2) [2025-04-02 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818223', 'tblTempUsageDetail_20' ) start [2025-04-02 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818223', 'tblTempUsageDetail_20' ) end [2025-04-02 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:37:27] Production.INFO: ==739== Releasing lock... [2025-04-02 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:37:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:38:05 [end_date_ymd] => 2025-04-02 12:38:05 [RateCDR] => 1 ) [2025-04-02 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:38:05' and `end` < '2025-04-02 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:38:20] Production.INFO: count ==5203 [2025-04-02 12:38:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:38:05 - End Time 2025-04-02 12:38:05 [2025-04-02 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818228', 'tblTempUsageDetail_20' ) start [2025-04-02 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818228', 'tblTempUsageDetail_20' ) end [2025-04-02 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818228', 'tblTempVendorCDR_20' ) start [2025-04-02 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818228', 'tblTempVendorCDR_20' ) end [2025-04-02 12:38:22] Production.INFO: ProcessCDR(1,14818228,1,1,2) [2025-04-02 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818228', 'tblTempUsageDetail_20' ) start [2025-04-02 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818228', 'tblTempUsageDetail_20' ) end [2025-04-02 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:38:28] Production.INFO: ==819== Releasing lock... [2025-04-02 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:38:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:39:06 [end_date_ymd] => 2025-04-02 12:39:06 [RateCDR] => 1 ) [2025-04-02 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:39:06' and `end` < '2025-04-02 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:39:19] Production.INFO: count ==5217 [2025-04-02 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:39:06 - End Time 2025-04-02 12:39:06 [2025-04-02 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818233', 'tblTempUsageDetail_20' ) start [2025-04-02 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818233', 'tblTempUsageDetail_20' ) end [2025-04-02 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818233', 'tblTempVendorCDR_20' ) start [2025-04-02 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818233', 'tblTempVendorCDR_20' ) end [2025-04-02 12:39:22] Production.INFO: ProcessCDR(1,14818233,1,1,2) [2025-04-02 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818233', 'tblTempUsageDetail_20' ) start [2025-04-02 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818233', 'tblTempUsageDetail_20' ) end [2025-04-02 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:39:27] Production.INFO: ==892== Releasing lock... [2025-04-02 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:39:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:40:06 [end_date_ymd] => 2025-04-02 12:40:06 [RateCDR] => 1 ) [2025-04-02 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:40:06' and `end` < '2025-04-02 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:40:20] Production.INFO: count ==5217 [2025-04-02 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:40:06 - End Time 2025-04-02 12:40:06 [2025-04-02 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818239', 'tblTempUsageDetail_20' ) start [2025-04-02 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818239', 'tblTempUsageDetail_20' ) end [2025-04-02 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818239', 'tblTempVendorCDR_20' ) start [2025-04-02 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818239', 'tblTempVendorCDR_20' ) end [2025-04-02 12:40:22] Production.INFO: ProcessCDR(1,14818239,1,1,2) [2025-04-02 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818239', 'tblTempUsageDetail_20' ) start [2025-04-02 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818239', 'tblTempUsageDetail_20' ) end [2025-04-02 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:40:27] Production.INFO: ==1004== Releasing lock... [2025-04-02 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:40:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:41:05 [end_date_ymd] => 2025-04-02 12:41:05 [RateCDR] => 1 ) [2025-04-02 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:41:05' and `end` < '2025-04-02 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:41:18] Production.INFO: count ==5255 [2025-04-02 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:41:05 - End Time 2025-04-02 12:41:05 [2025-04-02 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818244', 'tblTempUsageDetail_20' ) start [2025-04-02 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818244', 'tblTempUsageDetail_20' ) end [2025-04-02 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818244', 'tblTempVendorCDR_20' ) start [2025-04-02 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818244', 'tblTempVendorCDR_20' ) end [2025-04-02 12:41:21] Production.INFO: ProcessCDR(1,14818244,1,1,2) [2025-04-02 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818244', 'tblTempUsageDetail_20' ) start [2025-04-02 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818244', 'tblTempUsageDetail_20' ) end [2025-04-02 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:41:26] Production.INFO: ==1078== Releasing lock... [2025-04-02 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:41:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:42:06 [end_date_ymd] => 2025-04-02 12:42:06 [RateCDR] => 1 ) [2025-04-02 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:42:06' and `end` < '2025-04-02 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:42:19] Production.INFO: count ==5266 [2025-04-02 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:42:06 - End Time 2025-04-02 12:42:06 [2025-04-02 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818249', 'tblTempUsageDetail_20' ) start [2025-04-02 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818249', 'tblTempUsageDetail_20' ) end [2025-04-02 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818249', 'tblTempVendorCDR_20' ) start [2025-04-02 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818249', 'tblTempVendorCDR_20' ) end [2025-04-02 12:42:22] Production.INFO: ProcessCDR(1,14818249,1,1,2) [2025-04-02 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818249', 'tblTempUsageDetail_20' ) start [2025-04-02 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818249', 'tblTempUsageDetail_20' ) end [2025-04-02 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:42:27] Production.INFO: ==1151== Releasing lock... [2025-04-02 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:42:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:43:05 [end_date_ymd] => 2025-04-02 12:43:05 [RateCDR] => 1 ) [2025-04-02 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:43:05' and `end` < '2025-04-02 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:43:19] Production.INFO: count ==5274 [2025-04-02 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:43:05 - End Time 2025-04-02 12:43:05 [2025-04-02 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818254', 'tblTempUsageDetail_20' ) start [2025-04-02 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818254', 'tblTempUsageDetail_20' ) end [2025-04-02 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818254', 'tblTempVendorCDR_20' ) start [2025-04-02 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818254', 'tblTempVendorCDR_20' ) end [2025-04-02 12:43:21] Production.INFO: ProcessCDR(1,14818254,1,1,2) [2025-04-02 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818254', 'tblTempUsageDetail_20' ) start [2025-04-02 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818254', 'tblTempUsageDetail_20' ) end [2025-04-02 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:43:26] Production.INFO: ==1228== Releasing lock... [2025-04-02 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:43:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:44:06 [end_date_ymd] => 2025-04-02 12:44:06 [RateCDR] => 1 ) [2025-04-02 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:44:06' and `end` < '2025-04-02 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:44:19] Production.INFO: count ==5280 [2025-04-02 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:44:06 - End Time 2025-04-02 12:44:06 [2025-04-02 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818259', 'tblTempUsageDetail_20' ) start [2025-04-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818259', 'tblTempUsageDetail_20' ) end [2025-04-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818259', 'tblTempVendorCDR_20' ) start [2025-04-02 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818259', 'tblTempVendorCDR_20' ) end [2025-04-02 12:44:22] Production.INFO: ProcessCDR(1,14818259,1,1,2) [2025-04-02 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818259', 'tblTempUsageDetail_20' ) start [2025-04-02 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818259', 'tblTempUsageDetail_20' ) end [2025-04-02 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:44:27] Production.INFO: ==1310== Releasing lock... [2025-04-02 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:44:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:45:05 [end_date_ymd] => 2025-04-02 12:45:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:45:05' and `end` < '2025-04-02 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-04-02 12:45:19] Production.INFO: count ==5279 [2025-04-02 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:45:05 - End Time 2025-04-02 12:45:05 [2025-04-02 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818264', 'tblTempUsageDetail_20' ) start [2025-04-02 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818264', 'tblTempUsageDetail_20' ) end [2025-04-02 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818264', 'tblTempVendorCDR_20' ) start [2025-04-02 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818264', 'tblTempVendorCDR_20' ) end [2025-04-02 12:45:22] Production.INFO: ProcessCDR(1,14818264,1,1,2) [2025-04-02 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818264', 'tblTempUsageDetail_20' ) start [2025-04-02 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818264', 'tblTempUsageDetail_20' ) end [2025-04-02 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:45:27] Production.INFO: ==1384== Releasing lock... [2025-04-02 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:45:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:46:06 [end_date_ymd] => 2025-04-02 12:46:06 [RateCDR] => 1 ) [2025-04-02 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:46:06' and `end` < '2025-04-02 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:46:20] Production.INFO: count ==5288 [2025-04-02 12:46:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:46:06 - End Time 2025-04-02 12:46:06 [2025-04-02 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818269', 'tblTempUsageDetail_20' ) start [2025-04-02 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818269', 'tblTempUsageDetail_20' ) end [2025-04-02 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818269', 'tblTempVendorCDR_20' ) start [2025-04-02 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818269', 'tblTempVendorCDR_20' ) end [2025-04-02 12:46:22] Production.INFO: ProcessCDR(1,14818269,1,1,2) [2025-04-02 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818269', 'tblTempUsageDetail_20' ) start [2025-04-02 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818269', 'tblTempUsageDetail_20' ) end [2025-04-02 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:46:27] Production.INFO: ==1456== Releasing lock... [2025-04-02 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:46:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:47:05 [end_date_ymd] => 2025-04-02 12:47:05 [RateCDR] => 1 ) [2025-04-02 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:47:05' and `end` < '2025-04-02 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:47:18] Production.INFO: count ==5262 [2025-04-02 12:47:20] Production.ERROR: pbx CDR StartTime 2025-04-02 09:47:05 - End Time 2025-04-02 12:47:05 [2025-04-02 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818274', 'tblTempUsageDetail_20' ) start [2025-04-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818274', 'tblTempUsageDetail_20' ) end [2025-04-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818274', 'tblTempVendorCDR_20' ) start [2025-04-02 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818274', 'tblTempVendorCDR_20' ) end [2025-04-02 12:47:20] Production.INFO: ProcessCDR(1,14818274,1,1,2) [2025-04-02 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818274', 'tblTempUsageDetail_20' ) start [2025-04-02 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818274', 'tblTempUsageDetail_20' ) end [2025-04-02 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:47:26] Production.INFO: ==1561== Releasing lock... [2025-04-02 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:47:26] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:48:06 [end_date_ymd] => 2025-04-02 12:48:06 [RateCDR] => 1 ) [2025-04-02 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:48:06' and `end` < '2025-04-02 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:48:20] Production.INFO: count ==5270 [2025-04-02 12:48:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:48:06 - End Time 2025-04-02 12:48:06 [2025-04-02 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818279', 'tblTempUsageDetail_20' ) start [2025-04-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818279', 'tblTempUsageDetail_20' ) end [2025-04-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818279', 'tblTempVendorCDR_20' ) start [2025-04-02 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818279', 'tblTempVendorCDR_20' ) end [2025-04-02 12:48:22] Production.INFO: ProcessCDR(1,14818279,1,1,2) [2025-04-02 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818279', 'tblTempUsageDetail_20' ) start [2025-04-02 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818279', 'tblTempUsageDetail_20' ) end [2025-04-02 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:48:28] Production.INFO: ==1639== Releasing lock... [2025-04-02 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:48:28] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:49:05 [end_date_ymd] => 2025-04-02 12:49:05 [RateCDR] => 1 ) [2025-04-02 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:49:05' and `end` < '2025-04-02 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:49:19] Production.INFO: count ==5277 [2025-04-02 12:49:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:49:05 - End Time 2025-04-02 12:49:05 [2025-04-02 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818284', 'tblTempUsageDetail_20' ) start [2025-04-02 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818284', 'tblTempUsageDetail_20' ) end [2025-04-02 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818284', 'tblTempVendorCDR_20' ) start [2025-04-02 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818284', 'tblTempVendorCDR_20' ) end [2025-04-02 12:49:21] Production.INFO: ProcessCDR(1,14818284,1,1,2) [2025-04-02 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818284', 'tblTempUsageDetail_20' ) start [2025-04-02 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818284', 'tblTempUsageDetail_20' ) end [2025-04-02 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:49:27] Production.INFO: ==1717== Releasing lock... [2025-04-02 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:49:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:50:06 [end_date_ymd] => 2025-04-02 12:50:06 [RateCDR] => 1 ) [2025-04-02 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:50:06' and `end` < '2025-04-02 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:50:20] Production.INFO: count ==5300 [2025-04-02 12:50:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:50:06 - End Time 2025-04-02 12:50:06 [2025-04-02 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818290', 'tblTempUsageDetail_20' ) start [2025-04-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818290', 'tblTempUsageDetail_20' ) end [2025-04-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818290', 'tblTempVendorCDR_20' ) start [2025-04-02 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818290', 'tblTempVendorCDR_20' ) end [2025-04-02 12:50:22] Production.INFO: ProcessCDR(1,14818290,1,1,2) [2025-04-02 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818290', 'tblTempUsageDetail_20' ) start [2025-04-02 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818290', 'tblTempUsageDetail_20' ) end [2025-04-02 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:50:28] Production.INFO: ==1789== Releasing lock... [2025-04-02 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:50:28] Production.INFO: 67.75 MB #Memory Used# [2025-04-02 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:51:05 [end_date_ymd] => 2025-04-02 12:51:05 [RateCDR] => 1 ) [2025-04-02 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:51:05' and `end` < '2025-04-02 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:51:18] Production.INFO: count ==5281 [2025-04-02 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:51:05 - End Time 2025-04-02 12:51:05 [2025-04-02 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818295', 'tblTempUsageDetail_20' ) start [2025-04-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818295', 'tblTempUsageDetail_20' ) end [2025-04-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818295', 'tblTempVendorCDR_20' ) start [2025-04-02 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818295', 'tblTempVendorCDR_20' ) end [2025-04-02 12:51:21] Production.INFO: ProcessCDR(1,14818295,1,1,2) [2025-04-02 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818295', 'tblTempUsageDetail_20' ) start [2025-04-02 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818295', 'tblTempUsageDetail_20' ) end [2025-04-02 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:51:27] Production.INFO: ==1866== Releasing lock... [2025-04-02 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:51:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:52:06 [end_date_ymd] => 2025-04-02 12:52:06 [RateCDR] => 1 ) [2025-04-02 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:52:06' and `end` < '2025-04-02 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:52:19] Production.INFO: count ==5291 [2025-04-02 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:52:06 - End Time 2025-04-02 12:52:06 [2025-04-02 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818300', 'tblTempUsageDetail_20' ) start [2025-04-02 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818300', 'tblTempUsageDetail_20' ) end [2025-04-02 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818300', 'tblTempVendorCDR_20' ) start [2025-04-02 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818300', 'tblTempVendorCDR_20' ) end [2025-04-02 12:52:22] Production.INFO: ProcessCDR(1,14818300,1,1,2) [2025-04-02 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818300', 'tblTempUsageDetail_20' ) start [2025-04-02 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818300', 'tblTempUsageDetail_20' ) end [2025-04-02 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:52:27] Production.INFO: ==1940== Releasing lock... [2025-04-02 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:52:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-02 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:53:05 [end_date_ymd] => 2025-04-02 12:53:05 [RateCDR] => 1 ) [2025-04-02 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:53:05' and `end` < '2025-04-02 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:53:19] Production.INFO: count ==5293 [2025-04-02 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:53:05 - End Time 2025-04-02 12:53:05 [2025-04-02 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818305', 'tblTempUsageDetail_20' ) start [2025-04-02 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818305', 'tblTempUsageDetail_20' ) end [2025-04-02 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818305', 'tblTempVendorCDR_20' ) start [2025-04-02 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818305', 'tblTempVendorCDR_20' ) end [2025-04-02 12:53:22] Production.INFO: ProcessCDR(1,14818305,1,1,2) [2025-04-02 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818305', 'tblTempUsageDetail_20' ) start [2025-04-02 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818305', 'tblTempUsageDetail_20' ) end [2025-04-02 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:53:27] Production.INFO: ==2016== Releasing lock... [2025-04-02 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:53:27] Production.INFO: 67.75 MB #Memory Used# [2025-04-02 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:54:06 [end_date_ymd] => 2025-04-02 12:54:06 [RateCDR] => 1 ) [2025-04-02 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:54:06' and `end` < '2025-04-02 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:54:19] Production.INFO: count ==5246 [2025-04-02 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:54:06 - End Time 2025-04-02 12:54:06 [2025-04-02 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818310', 'tblTempUsageDetail_20' ) start [2025-04-02 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818310', 'tblTempUsageDetail_20' ) end [2025-04-02 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818310', 'tblTempVendorCDR_20' ) start [2025-04-02 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818310', 'tblTempVendorCDR_20' ) end [2025-04-02 12:54:22] Production.INFO: ProcessCDR(1,14818310,1,1,2) [2025-04-02 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818310', 'tblTempUsageDetail_20' ) start [2025-04-02 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818310', 'tblTempUsageDetail_20' ) end [2025-04-02 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:54:27] Production.INFO: ==2089== Releasing lock... [2025-04-02 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:54:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:55:05 [end_date_ymd] => 2025-04-02 12:55:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:55:05' and `end` < '2025-04-02 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-04-02 12:55:19] Production.INFO: count ==5235 [2025-04-02 12:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:55:05 - End Time 2025-04-02 12:55:05 [2025-04-02 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818315', 'tblTempUsageDetail_20' ) start [2025-04-02 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818315', 'tblTempUsageDetail_20' ) end [2025-04-02 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818315', 'tblTempVendorCDR_20' ) start [2025-04-02 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818315', 'tblTempVendorCDR_20' ) end [2025-04-02 12:55:21] Production.INFO: ProcessCDR(1,14818315,1,1,2) [2025-04-02 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818315', 'tblTempUsageDetail_20' ) start [2025-04-02 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818315', 'tblTempUsageDetail_20' ) end [2025-04-02 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:55:27] Production.INFO: ==2160== Releasing lock... [2025-04-02 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:55:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:56:06 [end_date_ymd] => 2025-04-02 12:56:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 09:56:06' and `end` < '2025-04-02 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-04-02 12:56:19] Production.INFO: count ==5236 [2025-04-02 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-02 09:56:06 - End Time 2025-04-02 12:56:06 [2025-04-02 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818320', 'tblTempUsageDetail_20' ) start [2025-04-02 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818320', 'tblTempUsageDetail_20' ) end [2025-04-02 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818320', 'tblTempVendorCDR_20' ) start [2025-04-02 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818320', 'tblTempVendorCDR_20' ) end [2025-04-02 12:56:22] Production.INFO: ProcessCDR(1,14818320,1,1,2) [2025-04-02 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818320', 'tblTempUsageDetail_20' ) start [2025-04-02 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818320', 'tblTempUsageDetail_20' ) end [2025-04-02 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:56:27] Production.INFO: ==2274== Releasing lock... [2025-04-02 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:56:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-02 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:57:05 [end_date_ymd] => 2025-04-02 12:57:05 [RateCDR] => 1 ) [2025-04-02 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:57:05' and `end` < '2025-04-02 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:57:19] Production.INFO: count ==5221 [2025-04-02 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:57:05 - End Time 2025-04-02 12:57:05 [2025-04-02 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818325', 'tblTempUsageDetail_20' ) start [2025-04-02 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818325', 'tblTempUsageDetail_20' ) end [2025-04-02 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818325', 'tblTempVendorCDR_20' ) start [2025-04-02 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818325', 'tblTempVendorCDR_20' ) end [2025-04-02 12:57:21] Production.INFO: ProcessCDR(1,14818325,1,1,2) [2025-04-02 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818325', 'tblTempUsageDetail_20' ) start [2025-04-02 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818325', 'tblTempUsageDetail_20' ) end [2025-04-02 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:57:26] Production.INFO: ==2345== Releasing lock... [2025-04-02 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:57:26] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:58:05 [end_date_ymd] => 2025-04-02 12:58:05 [RateCDR] => 1 ) [2025-04-02 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:58:05' and `end` < '2025-04-02 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:58:19] Production.INFO: count ==5215 [2025-04-02 12:58:21] Production.ERROR: pbx CDR StartTime 2025-04-02 09:58:05 - End Time 2025-04-02 12:58:05 [2025-04-02 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818330', 'tblTempUsageDetail_20' ) start [2025-04-02 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818330', 'tblTempUsageDetail_20' ) end [2025-04-02 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818330', 'tblTempVendorCDR_20' ) start [2025-04-02 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818330', 'tblTempVendorCDR_20' ) end [2025-04-02 12:58:21] Production.INFO: ProcessCDR(1,14818330,1,1,2) [2025-04-02 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818330', 'tblTempUsageDetail_20' ) start [2025-04-02 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818330', 'tblTempUsageDetail_20' ) end [2025-04-02 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:58:27] Production.INFO: ==2415== Releasing lock... [2025-04-02 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:58:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 09:59:05 [end_date_ymd] => 2025-04-02 12:59:05 [RateCDR] => 1 ) [2025-04-02 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 09:59:05' and `end` < '2025-04-02 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 12:59:18] Production.INFO: count ==5232 [2025-04-02 12:59:20] Production.ERROR: pbx CDR StartTime 2025-04-02 09:59:05 - End Time 2025-04-02 12:59:05 [2025-04-02 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818335', 'tblTempUsageDetail_20' ) start [2025-04-02 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818335', 'tblTempUsageDetail_20' ) end [2025-04-02 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818335', 'tblTempVendorCDR_20' ) start [2025-04-02 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818335', 'tblTempVendorCDR_20' ) end [2025-04-02 12:59:21] Production.INFO: ProcessCDR(1,14818335,1,1,2) [2025-04-02 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818335', 'tblTempUsageDetail_20' ) start [2025-04-02 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818335', 'tblTempUsageDetail_20' ) end [2025-04-02 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 12:59:26] Production.INFO: ==2485== Releasing lock... [2025-04-02 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 12:59:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:00:06 [end_date_ymd] => 2025-04-02 13:00:06 [RateCDR] => 1 ) [2025-04-02 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:00:06' and `end` < '2025-04-02 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:00:20] Production.INFO: count ==5250 [2025-04-02 13:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:00:06 - End Time 2025-04-02 13:00:06 [2025-04-02 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818340', 'tblTempUsageDetail_20' ) start [2025-04-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818340', 'tblTempUsageDetail_20' ) end [2025-04-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818340', 'tblTempVendorCDR_20' ) start [2025-04-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818340', 'tblTempVendorCDR_20' ) end [2025-04-02 13:00:22] Production.INFO: ProcessCDR(1,14818340,1,1,2) [2025-04-02 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818340', 'tblTempUsageDetail_20' ) start [2025-04-02 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818340', 'tblTempUsageDetail_20' ) end [2025-04-02 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:00:29] Production.INFO: ==2561== Releasing lock... [2025-04-02 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:00:29] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:01:05 [end_date_ymd] => 2025-04-02 13:01:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:01:05' and `end` < '2025-04-02 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-04-02 13:01:19] Production.INFO: count ==5234 [2025-04-02 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:01:05 - End Time 2025-04-02 13:01:05 [2025-04-02 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818346', 'tblTempUsageDetail_20' ) start [2025-04-02 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818346', 'tblTempUsageDetail_20' ) end [2025-04-02 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818346', 'tblTempVendorCDR_20' ) start [2025-04-02 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818346', 'tblTempVendorCDR_20' ) end [2025-04-02 13:01:21] Production.INFO: ProcessCDR(1,14818346,1,1,2) [2025-04-02 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818346', 'tblTempUsageDetail_20' ) start [2025-04-02 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818346', 'tblTempUsageDetail_20' ) end [2025-04-02 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:01:27] Production.INFO: ==2644== Releasing lock... [2025-04-02 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:01:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:02:05 [end_date_ymd] => 2025-04-02 13:02:05 [RateCDR] => 1 ) [2025-04-02 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:02:05' and `end` < '2025-04-02 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:02:19] Production.INFO: count ==5234 [2025-04-02 13:02:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:02:05 - End Time 2025-04-02 13:02:05 [2025-04-02 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818351', 'tblTempUsageDetail_20' ) start [2025-04-02 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818351', 'tblTempUsageDetail_20' ) end [2025-04-02 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818351', 'tblTempVendorCDR_20' ) start [2025-04-02 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818351', 'tblTempVendorCDR_20' ) end [2025-04-02 13:02:22] Production.INFO: ProcessCDR(1,14818351,1,1,2) [2025-04-02 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818351', 'tblTempUsageDetail_20' ) start [2025-04-02 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818351', 'tblTempUsageDetail_20' ) end [2025-04-02 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:02:28] Production.INFO: ==2716== Releasing lock... [2025-04-02 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:02:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:03:05 [end_date_ymd] => 2025-04-02 13:03:05 [RateCDR] => 1 ) [2025-04-02 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:03:05' and `end` < '2025-04-02 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:03:19] Production.INFO: count ==5233 [2025-04-02 13:03:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:03:05 - End Time 2025-04-02 13:03:05 [2025-04-02 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818356', 'tblTempUsageDetail_20' ) start [2025-04-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818356', 'tblTempUsageDetail_20' ) end [2025-04-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818356', 'tblTempVendorCDR_20' ) start [2025-04-02 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818356', 'tblTempVendorCDR_20' ) end [2025-04-02 13:03:22] Production.INFO: ProcessCDR(1,14818356,1,1,2) [2025-04-02 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818356', 'tblTempUsageDetail_20' ) start [2025-04-02 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818356', 'tblTempUsageDetail_20' ) end [2025-04-02 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:03:28] Production.INFO: ==2786== Releasing lock... [2025-04-02 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:03:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:04:06 [end_date_ymd] => 2025-04-02 13:04:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:04:06' and `end` < '2025-04-02 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-04-02 13:04:19] Production.INFO: count ==5222 [2025-04-02 13:04:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:04:06 - End Time 2025-04-02 13:04:06 [2025-04-02 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818361', 'tblTempUsageDetail_20' ) start [2025-04-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818361', 'tblTempUsageDetail_20' ) end [2025-04-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818361', 'tblTempVendorCDR_20' ) start [2025-04-02 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818361', 'tblTempVendorCDR_20' ) end [2025-04-02 13:04:22] Production.INFO: ProcessCDR(1,14818361,1,1,2) [2025-04-02 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818361', 'tblTempUsageDetail_20' ) start [2025-04-02 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818361', 'tblTempUsageDetail_20' ) end [2025-04-02 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:04:28] Production.INFO: ==2864== Releasing lock... [2025-04-02 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:04:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:05:05 [end_date_ymd] => 2025-04-02 13:05:05 [RateCDR] => 1 ) [2025-04-02 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:05:05' and `end` < '2025-04-02 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:05:19] Production.INFO: count ==5215 [2025-04-02 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:05:05 - End Time 2025-04-02 13:05:05 [2025-04-02 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818366', 'tblTempUsageDetail_20' ) start [2025-04-02 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818366', 'tblTempUsageDetail_20' ) end [2025-04-02 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818366', 'tblTempVendorCDR_20' ) start [2025-04-02 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818366', 'tblTempVendorCDR_20' ) end [2025-04-02 13:05:22] Production.INFO: ProcessCDR(1,14818366,1,1,2) [2025-04-02 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818366', 'tblTempUsageDetail_20' ) start [2025-04-02 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818366', 'tblTempUsageDetail_20' ) end [2025-04-02 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:05:26] Production.INFO: ==2934== Releasing lock... [2025-04-02 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:05:26] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:06:06 [end_date_ymd] => 2025-04-02 13:06:06 [RateCDR] => 1 ) [2025-04-02 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:06:06' and `end` < '2025-04-02 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:06:20] Production.INFO: count ==5208 [2025-04-02 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:06:06 - End Time 2025-04-02 13:06:06 [2025-04-02 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818371', 'tblTempUsageDetail_20' ) start [2025-04-02 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818371', 'tblTempUsageDetail_20' ) end [2025-04-02 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818371', 'tblTempVendorCDR_20' ) start [2025-04-02 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818371', 'tblTempVendorCDR_20' ) end [2025-04-02 13:06:22] Production.INFO: ProcessCDR(1,14818371,1,1,2) [2025-04-02 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818371', 'tblTempUsageDetail_20' ) start [2025-04-02 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818371', 'tblTempUsageDetail_20' ) end [2025-04-02 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:06:28] Production.INFO: ==3005== Releasing lock... [2025-04-02 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:06:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:07:05 [end_date_ymd] => 2025-04-02 13:07:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:07:05' and `end` < '2025-04-02 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-04-02 13:07:19] Production.INFO: count ==5191 [2025-04-02 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:07:05 - End Time 2025-04-02 13:07:05 [2025-04-02 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818376', 'tblTempUsageDetail_20' ) start [2025-04-02 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818376', 'tblTempUsageDetail_20' ) end [2025-04-02 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818376', 'tblTempVendorCDR_20' ) start [2025-04-02 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818376', 'tblTempVendorCDR_20' ) end [2025-04-02 13:07:21] Production.INFO: ProcessCDR(1,14818376,1,1,2) [2025-04-02 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818376', 'tblTempUsageDetail_20' ) start [2025-04-02 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818376', 'tblTempUsageDetail_20' ) end [2025-04-02 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:07:27] Production.INFO: ==3079== Releasing lock... [2025-04-02 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:07:27] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:08:06 [end_date_ymd] => 2025-04-02 13:08:06 [RateCDR] => 1 ) [2025-04-02 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:08:06' and `end` < '2025-04-02 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:08:20] Production.INFO: count ==5187 [2025-04-02 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:08:06 - End Time 2025-04-02 13:08:06 [2025-04-02 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818381', 'tblTempUsageDetail_20' ) start [2025-04-02 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818381', 'tblTempUsageDetail_20' ) end [2025-04-02 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818381', 'tblTempVendorCDR_20' ) start [2025-04-02 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818381', 'tblTempVendorCDR_20' ) end [2025-04-02 13:08:22] Production.INFO: ProcessCDR(1,14818381,1,1,2) [2025-04-02 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818381', 'tblTempUsageDetail_20' ) start [2025-04-02 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818381', 'tblTempUsageDetail_20' ) end [2025-04-02 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:08:28] Production.INFO: ==3156== Releasing lock... [2025-04-02 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:08:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:09:06 [end_date_ymd] => 2025-04-02 13:09:06 [RateCDR] => 1 ) [2025-04-02 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:09:06' and `end` < '2025-04-02 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:09:19] Production.INFO: count ==5169 [2025-04-02 13:09:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:09:06 - End Time 2025-04-02 13:09:06 [2025-04-02 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818386', 'tblTempUsageDetail_20' ) start [2025-04-02 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818386', 'tblTempUsageDetail_20' ) end [2025-04-02 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818386', 'tblTempVendorCDR_20' ) start [2025-04-02 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818386', 'tblTempVendorCDR_20' ) end [2025-04-02 13:09:22] Production.INFO: ProcessCDR(1,14818386,1,1,2) [2025-04-02 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818386', 'tblTempUsageDetail_20' ) start [2025-04-02 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818386', 'tblTempUsageDetail_20' ) end [2025-04-02 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:09:28] Production.INFO: ==3228== Releasing lock... [2025-04-02 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:09:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:10:07 [end_date_ymd] => 2025-04-02 13:10:07 [RateCDR] => 1 ) [2025-04-02 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:10:07' and `end` < '2025-04-02 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:10:21] Production.INFO: count ==5155 [2025-04-02 13:10:23] Production.ERROR: pbx CDR StartTime 2025-04-02 10:10:07 - End Time 2025-04-02 13:10:07 [2025-04-02 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818392', 'tblTempUsageDetail_20' ) start [2025-04-02 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818392', 'tblTempUsageDetail_20' ) end [2025-04-02 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818392', 'tblTempVendorCDR_20' ) start [2025-04-02 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818392', 'tblTempVendorCDR_20' ) end [2025-04-02 13:10:23] Production.INFO: ProcessCDR(1,14818392,1,1,2) [2025-04-02 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818392', 'tblTempUsageDetail_20' ) start [2025-04-02 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818392', 'tblTempUsageDetail_20' ) end [2025-04-02 13:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:10:30] Production.INFO: ==3300== Releasing lock... [2025-04-02 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:10:30] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:11:06 [end_date_ymd] => 2025-04-02 13:11:06 [RateCDR] => 1 ) [2025-04-02 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:11:06' and `end` < '2025-04-02 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:11:20] Production.INFO: count ==5208 [2025-04-02 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:11:06 - End Time 2025-04-02 13:11:06 [2025-04-02 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818397', 'tblTempUsageDetail_20' ) start [2025-04-02 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818397', 'tblTempUsageDetail_20' ) end [2025-04-02 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818397', 'tblTempVendorCDR_20' ) start [2025-04-02 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818397', 'tblTempVendorCDR_20' ) end [2025-04-02 13:11:22] Production.INFO: ProcessCDR(1,14818397,1,1,2) [2025-04-02 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818397', 'tblTempUsageDetail_20' ) start [2025-04-02 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818397', 'tblTempUsageDetail_20' ) end [2025-04-02 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:11:28] Production.INFO: ==3412== Releasing lock... [2025-04-02 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:11:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:12:06 [end_date_ymd] => 2025-04-02 13:12:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:12:06' and `end` < '2025-04-02 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-04-02 13:12:20] Production.INFO: count ==5221 [2025-04-02 13:12:23] Production.ERROR: pbx CDR StartTime 2025-04-02 10:12:06 - End Time 2025-04-02 13:12:06 [2025-04-02 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818402', 'tblTempUsageDetail_20' ) start [2025-04-02 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818402', 'tblTempUsageDetail_20' ) end [2025-04-02 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818402', 'tblTempVendorCDR_20' ) start [2025-04-02 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818402', 'tblTempVendorCDR_20' ) end [2025-04-02 13:12:23] Production.INFO: ProcessCDR(1,14818402,1,1,2) [2025-04-02 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818402', 'tblTempUsageDetail_20' ) start [2025-04-02 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818402', 'tblTempUsageDetail_20' ) end [2025-04-02 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:12:29] Production.INFO: ==3485== Releasing lock... [2025-04-02 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:12:29] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:13:06 [end_date_ymd] => 2025-04-02 13:13:06 [RateCDR] => 1 ) [2025-04-02 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:13:06' and `end` < '2025-04-02 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:13:21] Production.INFO: count ==5242 [2025-04-02 13:13:24] Production.ERROR: pbx CDR StartTime 2025-04-02 10:13:06 - End Time 2025-04-02 13:13:06 [2025-04-02 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818407', 'tblTempUsageDetail_20' ) start [2025-04-02 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818407', 'tblTempUsageDetail_20' ) end [2025-04-02 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818407', 'tblTempVendorCDR_20' ) start [2025-04-02 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818407', 'tblTempVendorCDR_20' ) end [2025-04-02 13:13:24] Production.INFO: ProcessCDR(1,14818407,1,1,2) [2025-04-02 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818407', 'tblTempUsageDetail_20' ) start [2025-04-02 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818407', 'tblTempUsageDetail_20' ) end [2025-04-02 13:13:30] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:13:30] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:13:30] Production.INFO: ==3554== Releasing lock... [2025-04-02 13:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:13:30] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:14:06 [end_date_ymd] => 2025-04-02 13:14:06 [RateCDR] => 1 ) [2025-04-02 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:14:06' and `end` < '2025-04-02 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:14:20] Production.INFO: count ==5256 [2025-04-02 13:14:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:14:06 - End Time 2025-04-02 13:14:06 [2025-04-02 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818411', 'tblTempUsageDetail_20' ) start [2025-04-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818411', 'tblTempUsageDetail_20' ) end [2025-04-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818411', 'tblTempVendorCDR_20' ) start [2025-04-02 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818411', 'tblTempVendorCDR_20' ) end [2025-04-02 13:14:22] Production.INFO: ProcessCDR(1,14818411,1,1,2) [2025-04-02 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818411', 'tblTempUsageDetail_20' ) start [2025-04-02 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818411', 'tblTempUsageDetail_20' ) end [2025-04-02 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:14:28] Production.INFO: ==3625== Releasing lock... [2025-04-02 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:14:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:15:05 [end_date_ymd] => 2025-04-02 13:15:05 [RateCDR] => 1 ) [2025-04-02 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:15:05' and `end` < '2025-04-02 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:15:19] Production.INFO: count ==5250 [2025-04-02 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:15:05 - End Time 2025-04-02 13:15:05 [2025-04-02 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818417', 'tblTempUsageDetail_20' ) start [2025-04-02 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818417', 'tblTempUsageDetail_20' ) end [2025-04-02 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818417', 'tblTempVendorCDR_20' ) start [2025-04-02 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818417', 'tblTempVendorCDR_20' ) end [2025-04-02 13:15:22] Production.INFO: ProcessCDR(1,14818417,1,1,2) [2025-04-02 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818417', 'tblTempUsageDetail_20' ) start [2025-04-02 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818417', 'tblTempUsageDetail_20' ) end [2025-04-02 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:15:27] Production.INFO: ==3698== Releasing lock... [2025-04-02 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:15:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:16:06 [end_date_ymd] => 2025-04-02 13:16:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:16:06' and `end` < '2025-04-02 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-04-02 13:16:21] Production.INFO: count ==5233 [2025-04-02 13:16:23] Production.ERROR: pbx CDR StartTime 2025-04-02 10:16:06 - End Time 2025-04-02 13:16:06 [2025-04-02 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818422', 'tblTempUsageDetail_20' ) start [2025-04-02 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818422', 'tblTempUsageDetail_20' ) end [2025-04-02 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818422', 'tblTempVendorCDR_20' ) start [2025-04-02 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818422', 'tblTempVendorCDR_20' ) end [2025-04-02 13:16:23] Production.INFO: ProcessCDR(1,14818422,1,1,2) [2025-04-02 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818422', 'tblTempUsageDetail_20' ) start [2025-04-02 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818422', 'tblTempUsageDetail_20' ) end [2025-04-02 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:16:29] Production.INFO: ==3768== Releasing lock... [2025-04-02 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:16:29] Production.INFO: 67.25 MB #Memory Used# [2025-04-02 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:17:06 [end_date_ymd] => 2025-04-02 13:17:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:17:06' and `end` < '2025-04-02 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-04-02 13:17:20] Production.INFO: count ==5206 [2025-04-02 13:17:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:17:06 - End Time 2025-04-02 13:17:06 [2025-04-02 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818427', 'tblTempUsageDetail_20' ) start [2025-04-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818427', 'tblTempUsageDetail_20' ) end [2025-04-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818427', 'tblTempVendorCDR_20' ) start [2025-04-02 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818427', 'tblTempVendorCDR_20' ) end [2025-04-02 13:17:22] Production.INFO: ProcessCDR(1,14818427,1,1,2) [2025-04-02 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818427', 'tblTempUsageDetail_20' ) start [2025-04-02 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818427', 'tblTempUsageDetail_20' ) end [2025-04-02 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:17:28] Production.INFO: ==3838== Releasing lock... [2025-04-02 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:17:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:18:05 [end_date_ymd] => 2025-04-02 13:18:05 [RateCDR] => 1 ) [2025-04-02 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:18:05' and `end` < '2025-04-02 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:18:19] Production.INFO: count ==5205 [2025-04-02 13:18:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:18:05 - End Time 2025-04-02 13:18:05 [2025-04-02 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818432', 'tblTempUsageDetail_20' ) start [2025-04-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818432', 'tblTempUsageDetail_20' ) end [2025-04-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818432', 'tblTempVendorCDR_20' ) start [2025-04-02 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818432', 'tblTempVendorCDR_20' ) end [2025-04-02 13:18:22] Production.INFO: ProcessCDR(1,14818432,1,1,2) [2025-04-02 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818432', 'tblTempUsageDetail_20' ) start [2025-04-02 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818432', 'tblTempUsageDetail_20' ) end [2025-04-02 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:18:28] Production.INFO: ==3920== Releasing lock... [2025-04-02 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:18:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:19:06 [end_date_ymd] => 2025-04-02 13:19:06 [RateCDR] => 1 ) [2025-04-02 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:19:06' and `end` < '2025-04-02 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:19:20] Production.INFO: count ==5202 [2025-04-02 13:19:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:19:06 - End Time 2025-04-02 13:19:06 [2025-04-02 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818437', 'tblTempUsageDetail_20' ) start [2025-04-02 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818437', 'tblTempUsageDetail_20' ) end [2025-04-02 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818437', 'tblTempVendorCDR_20' ) start [2025-04-02 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818437', 'tblTempVendorCDR_20' ) end [2025-04-02 13:19:22] Production.INFO: ProcessCDR(1,14818437,1,1,2) [2025-04-02 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818437', 'tblTempUsageDetail_20' ) start [2025-04-02 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818437', 'tblTempUsageDetail_20' ) end [2025-04-02 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:19:28] Production.INFO: ==3992== Releasing lock... [2025-04-02 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:19:28] Production.INFO: 67 MB #Memory Used# [2025-04-02 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:20:07 [end_date_ymd] => 2025-04-02 13:20:07 [RateCDR] => 1 ) [2025-04-02 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:20:07' and `end` < '2025-04-02 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:20:20] Production.INFO: count ==5188 [2025-04-02 13:20:23] Production.ERROR: pbx CDR StartTime 2025-04-02 10:20:07 - End Time 2025-04-02 13:20:07 [2025-04-02 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818442', 'tblTempUsageDetail_20' ) start [2025-04-02 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818442', 'tblTempUsageDetail_20' ) end [2025-04-02 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818442', 'tblTempVendorCDR_20' ) start [2025-04-02 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818442', 'tblTempVendorCDR_20' ) end [2025-04-02 13:20:23] Production.INFO: ProcessCDR(1,14818442,1,1,2) [2025-04-02 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818442', 'tblTempUsageDetail_20' ) start [2025-04-02 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818442', 'tblTempUsageDetail_20' ) end [2025-04-02 13:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:20:29] Production.INFO: ==4069== Releasing lock... [2025-04-02 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:20:29] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:21:06 [end_date_ymd] => 2025-04-02 13:21:06 [RateCDR] => 1 ) [2025-04-02 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:21:06' and `end` < '2025-04-02 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:21:19] Production.INFO: count ==5163 [2025-04-02 13:21:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:21:06 - End Time 2025-04-02 13:21:06 [2025-04-02 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818448', 'tblTempUsageDetail_20' ) start [2025-04-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818448', 'tblTempUsageDetail_20' ) end [2025-04-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818448', 'tblTempVendorCDR_20' ) start [2025-04-02 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818448', 'tblTempVendorCDR_20' ) end [2025-04-02 13:21:22] Production.INFO: ProcessCDR(1,14818448,1,1,2) [2025-04-02 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818448', 'tblTempUsageDetail_20' ) start [2025-04-02 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818448', 'tblTempUsageDetail_20' ) end [2025-04-02 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:21:28] Production.INFO: ==4146== Releasing lock... [2025-04-02 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:21:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:22:06 [end_date_ymd] => 2025-04-02 13:22:06 [RateCDR] => 1 ) [2025-04-02 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:22:06' and `end` < '2025-04-02 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:22:20] Production.INFO: count ==5159 [2025-04-02 13:22:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:22:06 - End Time 2025-04-02 13:22:06 [2025-04-02 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818453', 'tblTempUsageDetail_20' ) start [2025-04-02 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818453', 'tblTempUsageDetail_20' ) end [2025-04-02 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818453', 'tblTempVendorCDR_20' ) start [2025-04-02 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818453', 'tblTempVendorCDR_20' ) end [2025-04-02 13:22:22] Production.INFO: ProcessCDR(1,14818453,1,1,2) [2025-04-02 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818453', 'tblTempUsageDetail_20' ) start [2025-04-02 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818453', 'tblTempUsageDetail_20' ) end [2025-04-02 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:22:28] Production.INFO: ==4218== Releasing lock... [2025-04-02 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:22:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:23:05 [end_date_ymd] => 2025-04-02 13:23:05 [RateCDR] => 1 ) [2025-04-02 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:23:05' and `end` < '2025-04-02 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:23:19] Production.INFO: count ==5156 [2025-04-02 13:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:23:05 - End Time 2025-04-02 13:23:05 [2025-04-02 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818458', 'tblTempUsageDetail_20' ) start [2025-04-02 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818458', 'tblTempUsageDetail_20' ) end [2025-04-02 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818458', 'tblTempVendorCDR_20' ) start [2025-04-02 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818458', 'tblTempVendorCDR_20' ) end [2025-04-02 13:23:22] Production.INFO: ProcessCDR(1,14818458,1,1,2) [2025-04-02 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818458', 'tblTempUsageDetail_20' ) start [2025-04-02 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818458', 'tblTempUsageDetail_20' ) end [2025-04-02 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:23:28] Production.INFO: ==4288== Releasing lock... [2025-04-02 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:23:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:24:06 [end_date_ymd] => 2025-04-02 13:24:06 [RateCDR] => 1 ) [2025-04-02 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:24:06' and `end` < '2025-04-02 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:24:20] Production.INFO: count ==5151 [2025-04-02 13:24:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:24:06 - End Time 2025-04-02 13:24:06 [2025-04-02 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818463', 'tblTempUsageDetail_20' ) start [2025-04-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818463', 'tblTempUsageDetail_20' ) end [2025-04-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818463', 'tblTempVendorCDR_20' ) start [2025-04-02 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818463', 'tblTempVendorCDR_20' ) end [2025-04-02 13:24:22] Production.INFO: ProcessCDR(1,14818463,1,1,2) [2025-04-02 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818463', 'tblTempUsageDetail_20' ) start [2025-04-02 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818463', 'tblTempUsageDetail_20' ) end [2025-04-02 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:24:28] Production.INFO: ==4360== Releasing lock... [2025-04-02 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:24:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:25:06 [end_date_ymd] => 2025-04-02 13:25:06 [RateCDR] => 1 ) [2025-04-02 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:25:06' and `end` < '2025-04-02 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:25:20] Production.INFO: count ==5152 [2025-04-02 13:25:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:25:06 - End Time 2025-04-02 13:25:06 [2025-04-02 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818468', 'tblTempUsageDetail_20' ) start [2025-04-02 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818468', 'tblTempUsageDetail_20' ) end [2025-04-02 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818468', 'tblTempVendorCDR_20' ) start [2025-04-02 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818468', 'tblTempVendorCDR_20' ) end [2025-04-02 13:25:22] Production.INFO: ProcessCDR(1,14818468,1,1,2) [2025-04-02 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818468', 'tblTempUsageDetail_20' ) start [2025-04-02 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818468', 'tblTempUsageDetail_20' ) end [2025-04-02 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:25:28] Production.INFO: ==4430== Releasing lock... [2025-04-02 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:25:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:26:06 [end_date_ymd] => 2025-04-02 13:26:06 [RateCDR] => 1 ) [2025-04-02 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:26:06' and `end` < '2025-04-02 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:26:20] Production.INFO: count ==5157 [2025-04-02 13:26:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:26:06 - End Time 2025-04-02 13:26:06 [2025-04-02 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818473', 'tblTempUsageDetail_20' ) start [2025-04-02 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818473', 'tblTempUsageDetail_20' ) end [2025-04-02 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818473', 'tblTempVendorCDR_20' ) start [2025-04-02 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818473', 'tblTempVendorCDR_20' ) end [2025-04-02 13:26:22] Production.INFO: ProcessCDR(1,14818473,1,1,2) [2025-04-02 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818473', 'tblTempUsageDetail_20' ) start [2025-04-02 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818473', 'tblTempUsageDetail_20' ) end [2025-04-02 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:26:27] Production.INFO: ==4541== Releasing lock... [2025-04-02 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:26:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:27:05 [end_date_ymd] => 2025-04-02 13:27:05 [RateCDR] => 1 ) [2025-04-02 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:27:05' and `end` < '2025-04-02 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:27:19] Production.INFO: count ==5175 [2025-04-02 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:27:05 - End Time 2025-04-02 13:27:05 [2025-04-02 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818478', 'tblTempUsageDetail_20' ) start [2025-04-02 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818478', 'tblTempUsageDetail_20' ) end [2025-04-02 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818478', 'tblTempVendorCDR_20' ) start [2025-04-02 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818478', 'tblTempVendorCDR_20' ) end [2025-04-02 13:27:21] Production.INFO: ProcessCDR(1,14818478,1,1,2) [2025-04-02 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818478', 'tblTempUsageDetail_20' ) start [2025-04-02 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818478', 'tblTempUsageDetail_20' ) end [2025-04-02 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:27:27] Production.INFO: ==4620== Releasing lock... [2025-04-02 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:27:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:28:06 [end_date_ymd] => 2025-04-02 13:28:06 [RateCDR] => 1 ) [2025-04-02 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:28:06' and `end` < '2025-04-02 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:28:20] Production.INFO: count ==5180 [2025-04-02 13:28:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:28:06 - End Time 2025-04-02 13:28:06 [2025-04-02 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818483', 'tblTempUsageDetail_20' ) start [2025-04-02 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818483', 'tblTempUsageDetail_20' ) end [2025-04-02 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818483', 'tblTempVendorCDR_20' ) start [2025-04-02 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818483', 'tblTempVendorCDR_20' ) end [2025-04-02 13:28:22] Production.INFO: ProcessCDR(1,14818483,1,1,2) [2025-04-02 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818483', 'tblTempUsageDetail_20' ) start [2025-04-02 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818483', 'tblTempUsageDetail_20' ) end [2025-04-02 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:28:27] Production.INFO: ==4702== Releasing lock... [2025-04-02 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:28:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:29:06 [end_date_ymd] => 2025-04-02 13:29:06 [RateCDR] => 1 ) [2025-04-02 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:29:06' and `end` < '2025-04-02 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:29:20] Production.INFO: count ==5157 [2025-04-02 13:29:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:29:06 - End Time 2025-04-02 13:29:06 [2025-04-02 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818488', 'tblTempUsageDetail_20' ) start [2025-04-02 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818488', 'tblTempUsageDetail_20' ) end [2025-04-02 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818488', 'tblTempVendorCDR_20' ) start [2025-04-02 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818488', 'tblTempVendorCDR_20' ) end [2025-04-02 13:29:23] Production.INFO: ProcessCDR(1,14818488,1,1,2) [2025-04-02 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818488', 'tblTempUsageDetail_20' ) start [2025-04-02 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818488', 'tblTempUsageDetail_20' ) end [2025-04-02 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:29:26] Production.INFO: ==4771== Releasing lock... [2025-04-02 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:29:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:30:07 [end_date_ymd] => 2025-04-02 13:30:07 [RateCDR] => 1 ) [2025-04-02 13:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:30:07' and `end` < '2025-04-02 13:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:30:20] Production.INFO: count ==5119 [2025-04-02 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:30:07 - End Time 2025-04-02 13:30:07 [2025-04-02 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818494', 'tblTempUsageDetail_20' ) start [2025-04-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818494', 'tblTempUsageDetail_20' ) end [2025-04-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818494', 'tblTempVendorCDR_20' ) start [2025-04-02 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818494', 'tblTempVendorCDR_20' ) end [2025-04-02 13:30:23] Production.INFO: ProcessCDR(1,14818494,1,1,2) [2025-04-02 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818494', 'tblTempUsageDetail_20' ) start [2025-04-02 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818494', 'tblTempUsageDetail_20' ) end [2025-04-02 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:30:28] Production.INFO: ==4845== Releasing lock... [2025-04-02 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:30:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:31:05 [end_date_ymd] => 2025-04-02 13:31:05 [RateCDR] => 1 ) [2025-04-02 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:31:05' and `end` < '2025-04-02 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:31:19] Production.INFO: count ==5076 [2025-04-02 13:31:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:31:05 - End Time 2025-04-02 13:31:05 [2025-04-02 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818499', 'tblTempUsageDetail_20' ) start [2025-04-02 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818499', 'tblTempUsageDetail_20' ) end [2025-04-02 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818499', 'tblTempVendorCDR_20' ) start [2025-04-02 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818499', 'tblTempVendorCDR_20' ) end [2025-04-02 13:31:22] Production.INFO: ProcessCDR(1,14818499,1,1,2) [2025-04-02 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818499', 'tblTempUsageDetail_20' ) start [2025-04-02 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818499', 'tblTempUsageDetail_20' ) end [2025-04-02 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:31:26] Production.INFO: ==4917== Releasing lock... [2025-04-02 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:31:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:32:06 [end_date_ymd] => 2025-04-02 13:32:06 [RateCDR] => 1 ) [2025-04-02 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:32:06' and `end` < '2025-04-02 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:32:20] Production.INFO: count ==5066 [2025-04-02 13:32:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:32:06 - End Time 2025-04-02 13:32:06 [2025-04-02 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818504', 'tblTempUsageDetail_20' ) start [2025-04-02 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818504', 'tblTempUsageDetail_20' ) end [2025-04-02 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818504', 'tblTempVendorCDR_20' ) start [2025-04-02 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818504', 'tblTempVendorCDR_20' ) end [2025-04-02 13:32:23] Production.INFO: ProcessCDR(1,14818504,1,1,2) [2025-04-02 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818504', 'tblTempUsageDetail_20' ) start [2025-04-02 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818504', 'tblTempUsageDetail_20' ) end [2025-04-02 13:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:32:29] Production.INFO: ==4990== Releasing lock... [2025-04-02 13:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:32:29] Production.INFO: 66 MB #Memory Used# [2025-04-02 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:33:05 [end_date_ymd] => 2025-04-02 13:33:05 [RateCDR] => 1 ) [2025-04-02 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:33:05' and `end` < '2025-04-02 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:33:19] Production.INFO: count ==5057 [2025-04-02 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:33:05 - End Time 2025-04-02 13:33:05 [2025-04-02 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818509', 'tblTempUsageDetail_20' ) start [2025-04-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818509', 'tblTempUsageDetail_20' ) end [2025-04-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818509', 'tblTempVendorCDR_20' ) start [2025-04-02 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818509', 'tblTempVendorCDR_20' ) end [2025-04-02 13:33:21] Production.INFO: ProcessCDR(1,14818509,1,1,2) [2025-04-02 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818509', 'tblTempUsageDetail_20' ) start [2025-04-02 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818509', 'tblTempUsageDetail_20' ) end [2025-04-02 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:33:27] Production.INFO: ==5064== Releasing lock... [2025-04-02 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:33:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:34:06 [end_date_ymd] => 2025-04-02 13:34:06 [RateCDR] => 1 ) [2025-04-02 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:34:06' and `end` < '2025-04-02 13:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:34:20] Production.INFO: count ==5036 [2025-04-02 13:34:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:34:06 - End Time 2025-04-02 13:34:06 [2025-04-02 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818514', 'tblTempUsageDetail_20' ) start [2025-04-02 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818514', 'tblTempUsageDetail_20' ) end [2025-04-02 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818514', 'tblTempVendorCDR_20' ) start [2025-04-02 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818514', 'tblTempVendorCDR_20' ) end [2025-04-02 13:34:22] Production.INFO: ProcessCDR(1,14818514,1,1,2) [2025-04-02 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818514', 'tblTempUsageDetail_20' ) start [2025-04-02 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818514', 'tblTempUsageDetail_20' ) end [2025-04-02 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:34:26] Production.INFO: ==5137== Releasing lock... [2025-04-02 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:34:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:35:06 [end_date_ymd] => 2025-04-02 13:35:06 [RateCDR] => 1 ) [2025-04-02 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:35:06' and `end` < '2025-04-02 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:35:20] Production.INFO: count ==5025 [2025-04-02 13:35:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:35:06 - End Time 2025-04-02 13:35:06 [2025-04-02 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818519', 'tblTempUsageDetail_20' ) start [2025-04-02 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818519', 'tblTempUsageDetail_20' ) end [2025-04-02 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818519', 'tblTempVendorCDR_20' ) start [2025-04-02 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818519', 'tblTempVendorCDR_20' ) end [2025-04-02 13:35:23] Production.INFO: ProcessCDR(1,14818519,1,1,2) [2025-04-02 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818519', 'tblTempUsageDetail_20' ) start [2025-04-02 13:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818519', 'tblTempUsageDetail_20' ) end [2025-04-02 13:35:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:35:29] Production.INFO: ==5206== Releasing lock... [2025-04-02 13:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:35:29] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:36:05 [end_date_ymd] => 2025-04-02 13:36:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:36:05' and `end` < '2025-04-02 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-04-02 13:36:18] Production.INFO: count ==5016 [2025-04-02 13:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:36:05 - End Time 2025-04-02 13:36:05 [2025-04-02 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818524', 'tblTempUsageDetail_20' ) start [2025-04-02 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818524', 'tblTempUsageDetail_20' ) end [2025-04-02 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818524', 'tblTempVendorCDR_20' ) start [2025-04-02 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818524', 'tblTempVendorCDR_20' ) end [2025-04-02 13:36:21] Production.INFO: ProcessCDR(1,14818524,1,1,2) [2025-04-02 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818524', 'tblTempUsageDetail_20' ) start [2025-04-02 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818524', 'tblTempUsageDetail_20' ) end [2025-04-02 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:36:26] Production.INFO: ==5278== Releasing lock... [2025-04-02 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:36:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:37:05 [end_date_ymd] => 2025-04-02 13:37:05 [RateCDR] => 1 ) [2025-04-02 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:37:05' and `end` < '2025-04-02 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:37:19] Production.INFO: count ==5009 [2025-04-02 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:37:05 - End Time 2025-04-02 13:37:05 [2025-04-02 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818529', 'tblTempUsageDetail_20' ) start [2025-04-02 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818529', 'tblTempUsageDetail_20' ) end [2025-04-02 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818529', 'tblTempVendorCDR_20' ) start [2025-04-02 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818529', 'tblTempVendorCDR_20' ) end [2025-04-02 13:37:21] Production.INFO: ProcessCDR(1,14818529,1,1,2) [2025-04-02 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818529', 'tblTempUsageDetail_20' ) start [2025-04-02 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818529', 'tblTempUsageDetail_20' ) end [2025-04-02 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:37:26] Production.INFO: ==5348== Releasing lock... [2025-04-02 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:37:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:38:05 [end_date_ymd] => 2025-04-02 13:38:05 [RateCDR] => 1 ) [2025-04-02 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:38:05' and `end` < '2025-04-02 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:38:19] Production.INFO: count ==4993 [2025-04-02 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:38:05 - End Time 2025-04-02 13:38:05 [2025-04-02 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818534', 'tblTempUsageDetail_20' ) start [2025-04-02 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818534', 'tblTempUsageDetail_20' ) end [2025-04-02 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818534', 'tblTempVendorCDR_20' ) start [2025-04-02 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818534', 'tblTempVendorCDR_20' ) end [2025-04-02 13:38:21] Production.INFO: ProcessCDR(1,14818534,1,1,2) [2025-04-02 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818534', 'tblTempUsageDetail_20' ) start [2025-04-02 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818534', 'tblTempUsageDetail_20' ) end [2025-04-02 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:38:26] Production.INFO: ==5418== Releasing lock... [2025-04-02 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:38:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:39:05 [end_date_ymd] => 2025-04-02 13:39:05 [RateCDR] => 1 ) [2025-04-02 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:39:05' and `end` < '2025-04-02 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:39:19] Production.INFO: count ==4980 [2025-04-02 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:39:05 - End Time 2025-04-02 13:39:05 [2025-04-02 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818539', 'tblTempUsageDetail_20' ) start [2025-04-02 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818539', 'tblTempUsageDetail_20' ) end [2025-04-02 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818539', 'tblTempVendorCDR_20' ) start [2025-04-02 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818539', 'tblTempVendorCDR_20' ) end [2025-04-02 13:39:21] Production.INFO: ProcessCDR(1,14818539,1,1,2) [2025-04-02 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818539', 'tblTempUsageDetail_20' ) start [2025-04-02 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818539', 'tblTempUsageDetail_20' ) end [2025-04-02 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:39:26] Production.INFO: ==5490== Releasing lock... [2025-04-02 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:39:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-02 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:40:06 [end_date_ymd] => 2025-04-02 13:40:06 [RateCDR] => 1 ) [2025-04-02 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:40:06' and `end` < '2025-04-02 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:40:19] Production.INFO: count ==4968 [2025-04-02 13:40:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:40:06 - End Time 2025-04-02 13:40:06 [2025-04-02 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818545', 'tblTempUsageDetail_20' ) start [2025-04-02 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818545', 'tblTempUsageDetail_20' ) end [2025-04-02 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818545', 'tblTempVendorCDR_20' ) start [2025-04-02 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818545', 'tblTempVendorCDR_20' ) end [2025-04-02 13:40:22] Production.INFO: ProcessCDR(1,14818545,1,1,2) [2025-04-02 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818545', 'tblTempUsageDetail_20' ) start [2025-04-02 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818545', 'tblTempUsageDetail_20' ) end [2025-04-02 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:40:27] Production.INFO: ==5563== Releasing lock... [2025-04-02 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:40:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-02 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:41:05 [end_date_ymd] => 2025-04-02 13:41:05 [RateCDR] => 1 ) [2025-04-02 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:41:05' and `end` < '2025-04-02 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:41:19] Production.INFO: count ==4932 [2025-04-02 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:41:05 - End Time 2025-04-02 13:41:05 [2025-04-02 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818550', 'tblTempUsageDetail_20' ) start [2025-04-02 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818550', 'tblTempUsageDetail_20' ) end [2025-04-02 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818550', 'tblTempVendorCDR_20' ) start [2025-04-02 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818550', 'tblTempVendorCDR_20' ) end [2025-04-02 13:41:21] Production.INFO: ProcessCDR(1,14818550,1,1,2) [2025-04-02 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818550', 'tblTempUsageDetail_20' ) start [2025-04-02 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818550', 'tblTempUsageDetail_20' ) end [2025-04-02 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:41:26] Production.INFO: ==5636== Releasing lock... [2025-04-02 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:41:26] Production.INFO: 65 MB #Memory Used# [2025-04-02 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:42:06 [end_date_ymd] => 2025-04-02 13:42:06 [RateCDR] => 1 ) [2025-04-02 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:42:06' and `end` < '2025-04-02 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:42:19] Production.INFO: count ==4921 [2025-04-02 13:42:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:42:06 - End Time 2025-04-02 13:42:06 [2025-04-02 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818555', 'tblTempUsageDetail_20' ) start [2025-04-02 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818555', 'tblTempUsageDetail_20' ) end [2025-04-02 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818555', 'tblTempVendorCDR_20' ) start [2025-04-02 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818555', 'tblTempVendorCDR_20' ) end [2025-04-02 13:42:22] Production.INFO: ProcessCDR(1,14818555,1,1,2) [2025-04-02 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818555', 'tblTempUsageDetail_20' ) start [2025-04-02 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818555', 'tblTempUsageDetail_20' ) end [2025-04-02 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:42:27] Production.INFO: ==5747== Releasing lock... [2025-04-02 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:42:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:43:06 [end_date_ymd] => 2025-04-02 13:43:06 [RateCDR] => 1 ) [2025-04-02 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:43:06' and `end` < '2025-04-02 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:43:19] Production.INFO: count ==4936 [2025-04-02 13:43:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:43:06 - End Time 2025-04-02 13:43:06 [2025-04-02 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818560', 'tblTempUsageDetail_20' ) start [2025-04-02 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818560', 'tblTempUsageDetail_20' ) end [2025-04-02 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818560', 'tblTempVendorCDR_20' ) start [2025-04-02 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818560', 'tblTempVendorCDR_20' ) end [2025-04-02 13:43:22] Production.INFO: ProcessCDR(1,14818560,1,1,2) [2025-04-02 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818560', 'tblTempUsageDetail_20' ) start [2025-04-02 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818560', 'tblTempUsageDetail_20' ) end [2025-04-02 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:43:27] Production.INFO: ==5819== Releasing lock... [2025-04-02 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:43:27] Production.INFO: 65 MB #Memory Used# [2025-04-02 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:44:06 [end_date_ymd] => 2025-04-02 13:44:06 [RateCDR] => 1 ) [2025-04-02 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:44:06' and `end` < '2025-04-02 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:44:19] Production.INFO: count ==4912 [2025-04-02 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:44:06 - End Time 2025-04-02 13:44:06 [2025-04-02 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818565', 'tblTempUsageDetail_20' ) start [2025-04-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818565', 'tblTempUsageDetail_20' ) end [2025-04-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818565', 'tblTempVendorCDR_20' ) start [2025-04-02 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818565', 'tblTempVendorCDR_20' ) end [2025-04-02 13:44:21] Production.INFO: ProcessCDR(1,14818565,1,1,2) [2025-04-02 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818565', 'tblTempUsageDetail_20' ) start [2025-04-02 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818565', 'tblTempUsageDetail_20' ) end [2025-04-02 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:44:27] Production.INFO: ==5893== Releasing lock... [2025-04-02 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:44:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:45:06 [end_date_ymd] => 2025-04-02 13:45:06 [RateCDR] => 1 ) [2025-04-02 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:45:06' and `end` < '2025-04-02 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:45:19] Production.INFO: count ==4884 [2025-04-02 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:45:06 - End Time 2025-04-02 13:45:06 [2025-04-02 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818570', 'tblTempUsageDetail_20' ) start [2025-04-02 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818570', 'tblTempUsageDetail_20' ) end [2025-04-02 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818570', 'tblTempVendorCDR_20' ) start [2025-04-02 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818570', 'tblTempVendorCDR_20' ) end [2025-04-02 13:45:21] Production.INFO: ProcessCDR(1,14818570,1,1,2) [2025-04-02 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818570', 'tblTempUsageDetail_20' ) start [2025-04-02 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818570', 'tblTempUsageDetail_20' ) end [2025-04-02 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:45:27] Production.INFO: ==5966== Releasing lock... [2025-04-02 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:45:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:46:06 [end_date_ymd] => 2025-04-02 13:46:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 10:46:06' and `end` < '2025-04-02 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-04-02 13:46:19] Production.INFO: count ==4887 [2025-04-02 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:46:06 - End Time 2025-04-02 13:46:06 [2025-04-02 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818575', 'tblTempUsageDetail_20' ) start [2025-04-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818575', 'tblTempUsageDetail_20' ) end [2025-04-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818575', 'tblTempVendorCDR_20' ) start [2025-04-02 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818575', 'tblTempVendorCDR_20' ) end [2025-04-02 13:46:22] Production.INFO: ProcessCDR(1,14818575,1,1,2) [2025-04-02 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818575', 'tblTempUsageDetail_20' ) start [2025-04-02 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818575', 'tblTempUsageDetail_20' ) end [2025-04-02 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:46:27] Production.INFO: ==6041== Releasing lock... [2025-04-02 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:46:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:47:05 [end_date_ymd] => 2025-04-02 13:47:05 [RateCDR] => 1 ) [2025-04-02 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:47:05' and `end` < '2025-04-02 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-04-02 13:47:19] Production.INFO: count ==4889 [2025-04-02 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:47:05 - End Time 2025-04-02 13:47:05 [2025-04-02 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818580', 'tblTempUsageDetail_20' ) start [2025-04-02 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818580', 'tblTempUsageDetail_20' ) end [2025-04-02 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818580', 'tblTempVendorCDR_20' ) start [2025-04-02 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818580', 'tblTempVendorCDR_20' ) end [2025-04-02 13:47:21] Production.INFO: ProcessCDR(1,14818580,1,1,2) [2025-04-02 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818580', 'tblTempUsageDetail_20' ) start [2025-04-02 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818580', 'tblTempUsageDetail_20' ) end [2025-04-02 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:47:27] Production.INFO: ==6116== Releasing lock... [2025-04-02 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:47:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:48:06 [end_date_ymd] => 2025-04-02 13:48:06 [RateCDR] => 1 ) [2025-04-02 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:48:06' and `end` < '2025-04-02 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:48:19] Production.INFO: count ==4925 [2025-04-02 13:48:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:48:06 - End Time 2025-04-02 13:48:06 [2025-04-02 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818585', 'tblTempUsageDetail_20' ) start [2025-04-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818585', 'tblTempUsageDetail_20' ) end [2025-04-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818585', 'tblTempVendorCDR_20' ) start [2025-04-02 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818585', 'tblTempVendorCDR_20' ) end [2025-04-02 13:48:22] Production.INFO: ProcessCDR(1,14818585,1,1,2) [2025-04-02 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818585', 'tblTempUsageDetail_20' ) start [2025-04-02 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818585', 'tblTempUsageDetail_20' ) end [2025-04-02 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:48:27] Production.INFO: ==6189== Releasing lock... [2025-04-02 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:48:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:49:06 [end_date_ymd] => 2025-04-02 13:49:06 [RateCDR] => 1 ) [2025-04-02 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:49:06' and `end` < '2025-04-02 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:49:19] Production.INFO: count ==4935 [2025-04-02 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:49:06 - End Time 2025-04-02 13:49:06 [2025-04-02 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818590', 'tblTempUsageDetail_20' ) start [2025-04-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818590', 'tblTempUsageDetail_20' ) end [2025-04-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818590', 'tblTempVendorCDR_20' ) start [2025-04-02 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818590', 'tblTempVendorCDR_20' ) end [2025-04-02 13:49:21] Production.INFO: ProcessCDR(1,14818590,1,1,2) [2025-04-02 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818590', 'tblTempUsageDetail_20' ) start [2025-04-02 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818590', 'tblTempUsageDetail_20' ) end [2025-04-02 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:49:26] Production.INFO: ==6268== Releasing lock... [2025-04-02 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:49:26] Production.INFO: 65 MB #Memory Used# [2025-04-02 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:50:07 [end_date_ymd] => 2025-04-02 13:50:07 [RateCDR] => 1 ) [2025-04-02 13:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:50:07' and `end` < '2025-04-02 13:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:50:20] Production.INFO: count ==4930 [2025-04-02 13:50:23] Production.ERROR: pbx CDR StartTime 2025-04-02 10:50:07 - End Time 2025-04-02 13:50:07 [2025-04-02 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818596', 'tblTempUsageDetail_20' ) start [2025-04-02 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818596', 'tblTempUsageDetail_20' ) end [2025-04-02 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818596', 'tblTempVendorCDR_20' ) start [2025-04-02 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818596', 'tblTempVendorCDR_20' ) end [2025-04-02 13:50:23] Production.INFO: ProcessCDR(1,14818596,1,1,2) [2025-04-02 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818596', 'tblTempUsageDetail_20' ) start [2025-04-02 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818596', 'tblTempUsageDetail_20' ) end [2025-04-02 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:50:28] Production.INFO: ==6341== Releasing lock... [2025-04-02 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:50:28] Production.INFO: 65 MB #Memory Used# [2025-04-02 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:51:06 [end_date_ymd] => 2025-04-02 13:51:06 [RateCDR] => 1 ) [2025-04-02 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:51:06' and `end` < '2025-04-02 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:51:19] Production.INFO: count ==4892 [2025-04-02 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:51:06 - End Time 2025-04-02 13:51:06 [2025-04-02 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818601', 'tblTempUsageDetail_20' ) start [2025-04-02 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818601', 'tblTempUsageDetail_20' ) end [2025-04-02 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818601', 'tblTempVendorCDR_20' ) start [2025-04-02 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818601', 'tblTempVendorCDR_20' ) end [2025-04-02 13:51:21] Production.INFO: ProcessCDR(1,14818601,1,1,2) [2025-04-02 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818601', 'tblTempUsageDetail_20' ) start [2025-04-02 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818601', 'tblTempUsageDetail_20' ) end [2025-04-02 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:51:27] Production.INFO: ==6416== Releasing lock... [2025-04-02 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:51:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:52:06 [end_date_ymd] => 2025-04-02 13:52:06 [RateCDR] => 1 ) [2025-04-02 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:52:06' and `end` < '2025-04-02 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:52:20] Production.INFO: count ==4892 [2025-04-02 13:52:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:52:06 - End Time 2025-04-02 13:52:06 [2025-04-02 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818606', 'tblTempUsageDetail_20' ) start [2025-04-02 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818606', 'tblTempUsageDetail_20' ) end [2025-04-02 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818606', 'tblTempVendorCDR_20' ) start [2025-04-02 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818606', 'tblTempVendorCDR_20' ) end [2025-04-02 13:52:22] Production.INFO: ProcessCDR(1,14818606,1,1,2) [2025-04-02 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818606', 'tblTempUsageDetail_20' ) start [2025-04-02 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818606', 'tblTempUsageDetail_20' ) end [2025-04-02 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:52:27] Production.INFO: ==6486== Releasing lock... [2025-04-02 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:52:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:53:05 [end_date_ymd] => 2025-04-02 13:53:05 [RateCDR] => 1 ) [2025-04-02 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:53:05' and `end` < '2025-04-02 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:53:19] Production.INFO: count ==4892 [2025-04-02 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:53:05 - End Time 2025-04-02 13:53:05 [2025-04-02 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818611', 'tblTempUsageDetail_20' ) start [2025-04-02 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818611', 'tblTempUsageDetail_20' ) end [2025-04-02 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818611', 'tblTempVendorCDR_20' ) start [2025-04-02 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818611', 'tblTempVendorCDR_20' ) end [2025-04-02 13:53:21] Production.INFO: ProcessCDR(1,14818611,1,1,2) [2025-04-02 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818611', 'tblTempUsageDetail_20' ) start [2025-04-02 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818611', 'tblTempUsageDetail_20' ) end [2025-04-02 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:53:26] Production.INFO: ==6558== Releasing lock... [2025-04-02 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:53:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:54:06 [end_date_ymd] => 2025-04-02 13:54:06 [RateCDR] => 1 ) [2025-04-02 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:54:06' and `end` < '2025-04-02 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:54:19] Production.INFO: count ==4880 [2025-04-02 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:54:06 - End Time 2025-04-02 13:54:06 [2025-04-02 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818616', 'tblTempUsageDetail_20' ) start [2025-04-02 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818616', 'tblTempUsageDetail_20' ) end [2025-04-02 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818616', 'tblTempVendorCDR_20' ) start [2025-04-02 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818616', 'tblTempVendorCDR_20' ) end [2025-04-02 13:54:21] Production.INFO: ProcessCDR(1,14818616,1,1,2) [2025-04-02 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818616', 'tblTempUsageDetail_20' ) start [2025-04-02 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818616', 'tblTempUsageDetail_20' ) end [2025-04-02 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:54:27] Production.INFO: ==6628== Releasing lock... [2025-04-02 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:54:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:55:05 [end_date_ymd] => 2025-04-02 13:55:05 [RateCDR] => 1 ) [2025-04-02 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:55:05' and `end` < '2025-04-02 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:55:19] Production.INFO: count ==4880 [2025-04-02 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:55:05 - End Time 2025-04-02 13:55:05 [2025-04-02 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818621', 'tblTempUsageDetail_20' ) start [2025-04-02 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818621', 'tblTempUsageDetail_20' ) end [2025-04-02 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818621', 'tblTempVendorCDR_20' ) start [2025-04-02 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818621', 'tblTempVendorCDR_20' ) end [2025-04-02 13:55:21] Production.INFO: ProcessCDR(1,14818621,1,1,2) [2025-04-02 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818621', 'tblTempUsageDetail_20' ) start [2025-04-02 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818621', 'tblTempUsageDetail_20' ) end [2025-04-02 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:55:27] Production.INFO: ==6701== Releasing lock... [2025-04-02 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:55:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:56:06 [end_date_ymd] => 2025-04-02 13:56:06 [RateCDR] => 1 ) [2025-04-02 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:56:06' and `end` < '2025-04-02 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:56:19] Production.INFO: count ==4878 [2025-04-02 13:56:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:56:06 - End Time 2025-04-02 13:56:06 [2025-04-02 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818626', 'tblTempUsageDetail_20' ) start [2025-04-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818626', 'tblTempUsageDetail_20' ) end [2025-04-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818626', 'tblTempVendorCDR_20' ) start [2025-04-02 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818626', 'tblTempVendorCDR_20' ) end [2025-04-02 13:56:22] Production.INFO: ProcessCDR(1,14818626,1,1,2) [2025-04-02 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818626', 'tblTempUsageDetail_20' ) start [2025-04-02 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818626', 'tblTempUsageDetail_20' ) end [2025-04-02 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:56:27] Production.INFO: ==6774== Releasing lock... [2025-04-02 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:56:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:57:05 [end_date_ymd] => 2025-04-02 13:57:05 [RateCDR] => 1 ) [2025-04-02 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:57:05' and `end` < '2025-04-02 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:57:19] Production.INFO: count ==4894 [2025-04-02 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:57:05 - End Time 2025-04-02 13:57:05 [2025-04-02 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818631', 'tblTempUsageDetail_20' ) start [2025-04-02 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818631', 'tblTempUsageDetail_20' ) end [2025-04-02 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818631', 'tblTempVendorCDR_20' ) start [2025-04-02 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818631', 'tblTempVendorCDR_20' ) end [2025-04-02 13:57:21] Production.INFO: ProcessCDR(1,14818631,1,1,2) [2025-04-02 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818631', 'tblTempUsageDetail_20' ) start [2025-04-02 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818631', 'tblTempUsageDetail_20' ) end [2025-04-02 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:57:27] Production.INFO: ==6884== Releasing lock... [2025-04-02 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:57:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:58:06 [end_date_ymd] => 2025-04-02 13:58:06 [RateCDR] => 1 ) [2025-04-02 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:58:06' and `end` < '2025-04-02 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:58:20] Production.INFO: count ==4873 [2025-04-02 13:58:22] Production.ERROR: pbx CDR StartTime 2025-04-02 10:58:06 - End Time 2025-04-02 13:58:06 [2025-04-02 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818636', 'tblTempUsageDetail_20' ) start [2025-04-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818636', 'tblTempUsageDetail_20' ) end [2025-04-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818636', 'tblTempVendorCDR_20' ) start [2025-04-02 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818636', 'tblTempVendorCDR_20' ) end [2025-04-02 13:58:22] Production.INFO: ProcessCDR(1,14818636,1,1,2) [2025-04-02 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818636', 'tblTempUsageDetail_20' ) start [2025-04-02 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818636', 'tblTempUsageDetail_20' ) end [2025-04-02 13:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:58:28] Production.INFO: ==6958== Releasing lock... [2025-04-02 13:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:58:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 10:59:05 [end_date_ymd] => 2025-04-02 13:59:05 [RateCDR] => 1 ) [2025-04-02 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 10:59:05' and `end` < '2025-04-02 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 13:59:19] Production.INFO: count ==4877 [2025-04-02 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-02 10:59:05 - End Time 2025-04-02 13:59:05 [2025-04-02 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818641', 'tblTempUsageDetail_20' ) start [2025-04-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818641', 'tblTempUsageDetail_20' ) end [2025-04-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818641', 'tblTempVendorCDR_20' ) start [2025-04-02 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818641', 'tblTempVendorCDR_20' ) end [2025-04-02 13:59:21] Production.INFO: ProcessCDR(1,14818641,1,1,2) [2025-04-02 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818641', 'tblTempUsageDetail_20' ) start [2025-04-02 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818641', 'tblTempUsageDetail_20' ) end [2025-04-02 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 13:59:27] Production.INFO: ==7029== Releasing lock... [2025-04-02 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 13:59:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:00:06 [end_date_ymd] => 2025-04-02 14:00:06 [RateCDR] => 1 ) [2025-04-02 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:00:06' and `end` < '2025-04-02 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:00:20] Production.INFO: count ==4889 [2025-04-02 14:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:00:06 - End Time 2025-04-02 14:00:06 [2025-04-02 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818647', 'tblTempUsageDetail_20' ) start [2025-04-02 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818647', 'tblTempUsageDetail_20' ) end [2025-04-02 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818647', 'tblTempVendorCDR_20' ) start [2025-04-02 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818647', 'tblTempVendorCDR_20' ) end [2025-04-02 14:00:22] Production.INFO: ProcessCDR(1,14818647,1,1,2) [2025-04-02 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818647', 'tblTempUsageDetail_20' ) start [2025-04-02 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818647', 'tblTempUsageDetail_20' ) end [2025-04-02 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:00:28] Production.INFO: ==7103== Releasing lock... [2025-04-02 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:00:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:01:06 [end_date_ymd] => 2025-04-02 14:01:06 [RateCDR] => 1 ) [2025-04-02 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:01:06' and `end` < '2025-04-02 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:01:19] Production.INFO: count ==4890 [2025-04-02 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:01:06 - End Time 2025-04-02 14:01:06 [2025-04-02 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818652', 'tblTempUsageDetail_20' ) start [2025-04-02 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818652', 'tblTempUsageDetail_20' ) end [2025-04-02 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818652', 'tblTempVendorCDR_20' ) start [2025-04-02 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818652', 'tblTempVendorCDR_20' ) end [2025-04-02 14:01:22] Production.INFO: ProcessCDR(1,14818652,1,1,2) [2025-04-02 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818652', 'tblTempUsageDetail_20' ) start [2025-04-02 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818652', 'tblTempUsageDetail_20' ) end [2025-04-02 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:01:28] Production.INFO: ==7186== Releasing lock... [2025-04-02 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:01:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:02:06 [end_date_ymd] => 2025-04-02 14:02:06 [RateCDR] => 1 ) [2025-04-02 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:02:06' and `end` < '2025-04-02 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:02:20] Production.INFO: count ==4891 [2025-04-02 14:02:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:02:06 - End Time 2025-04-02 14:02:06 [2025-04-02 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818657', 'tblTempUsageDetail_20' ) start [2025-04-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818657', 'tblTempUsageDetail_20' ) end [2025-04-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818657', 'tblTempVendorCDR_20' ) start [2025-04-02 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818657', 'tblTempVendorCDR_20' ) end [2025-04-02 14:02:22] Production.INFO: ProcessCDR(1,14818657,1,1,2) [2025-04-02 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818657', 'tblTempUsageDetail_20' ) start [2025-04-02 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818657', 'tblTempUsageDetail_20' ) end [2025-04-02 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:02:28] Production.INFO: ==7259== Releasing lock... [2025-04-02 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:02:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:03:06 [end_date_ymd] => 2025-04-02 14:03:06 [RateCDR] => 1 ) [2025-04-02 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:03:06' and `end` < '2025-04-02 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:03:19] Production.INFO: count ==4853 [2025-04-02 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:03:06 - End Time 2025-04-02 14:03:06 [2025-04-02 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818662', 'tblTempUsageDetail_20' ) start [2025-04-02 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818662', 'tblTempUsageDetail_20' ) end [2025-04-02 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818662', 'tblTempVendorCDR_20' ) start [2025-04-02 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818662', 'tblTempVendorCDR_20' ) end [2025-04-02 14:03:22] Production.INFO: ProcessCDR(1,14818662,1,1,2) [2025-04-02 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818662', 'tblTempUsageDetail_20' ) start [2025-04-02 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818662', 'tblTempUsageDetail_20' ) end [2025-04-02 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:03:27] Production.INFO: ==7329== Releasing lock... [2025-04-02 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:03:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:04:06 [end_date_ymd] => 2025-04-02 14:04:06 [RateCDR] => 1 ) [2025-04-02 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:04:06' and `end` < '2025-04-02 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:04:20] Production.INFO: count ==4837 [2025-04-02 14:04:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:04:06 - End Time 2025-04-02 14:04:06 [2025-04-02 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818667', 'tblTempUsageDetail_20' ) start [2025-04-02 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818667', 'tblTempUsageDetail_20' ) end [2025-04-02 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818667', 'tblTempVendorCDR_20' ) start [2025-04-02 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818667', 'tblTempVendorCDR_20' ) end [2025-04-02 14:04:22] Production.INFO: ProcessCDR(1,14818667,1,1,2) [2025-04-02 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818667', 'tblTempUsageDetail_20' ) start [2025-04-02 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818667', 'tblTempUsageDetail_20' ) end [2025-04-02 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:04:27] Production.INFO: ==7403== Releasing lock... [2025-04-02 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:04:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:05:06 [end_date_ymd] => 2025-04-02 14:05:06 [RateCDR] => 1 ) [2025-04-02 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:05:06' and `end` < '2025-04-02 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:05:19] Production.INFO: count ==4848 [2025-04-02 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:05:06 - End Time 2025-04-02 14:05:06 [2025-04-02 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818672', 'tblTempUsageDetail_20' ) start [2025-04-02 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818672', 'tblTempUsageDetail_20' ) end [2025-04-02 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818672', 'tblTempVendorCDR_20' ) start [2025-04-02 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818672', 'tblTempVendorCDR_20' ) end [2025-04-02 14:05:21] Production.INFO: ProcessCDR(1,14818672,1,1,2) [2025-04-02 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818672', 'tblTempUsageDetail_20' ) start [2025-04-02 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818672', 'tblTempUsageDetail_20' ) end [2025-04-02 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:05:27] Production.INFO: ==7474== Releasing lock... [2025-04-02 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:05:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:06:06 [end_date_ymd] => 2025-04-02 14:06:06 [RateCDR] => 1 ) [2025-04-02 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:06:06' and `end` < '2025-04-02 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:06:20] Production.INFO: count ==4836 [2025-04-02 14:06:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:06:06 - End Time 2025-04-02 14:06:06 [2025-04-02 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818677', 'tblTempUsageDetail_20' ) start [2025-04-02 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818677', 'tblTempUsageDetail_20' ) end [2025-04-02 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818677', 'tblTempVendorCDR_20' ) start [2025-04-02 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818677', 'tblTempVendorCDR_20' ) end [2025-04-02 14:06:22] Production.INFO: ProcessCDR(1,14818677,1,1,2) [2025-04-02 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818677', 'tblTempUsageDetail_20' ) start [2025-04-02 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818677', 'tblTempUsageDetail_20' ) end [2025-04-02 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:06:27] Production.INFO: ==7553== Releasing lock... [2025-04-02 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:06:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:07:05 [end_date_ymd] => 2025-04-02 14:07:05 [RateCDR] => 1 ) [2025-04-02 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:07:05' and `end` < '2025-04-02 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:07:19] Production.INFO: count ==4825 [2025-04-02 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:07:05 - End Time 2025-04-02 14:07:05 [2025-04-02 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818682', 'tblTempUsageDetail_20' ) start [2025-04-02 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818682', 'tblTempUsageDetail_20' ) end [2025-04-02 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818682', 'tblTempVendorCDR_20' ) start [2025-04-02 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818682', 'tblTempVendorCDR_20' ) end [2025-04-02 14:07:21] Production.INFO: ProcessCDR(1,14818682,1,1,2) [2025-04-02 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818682', 'tblTempUsageDetail_20' ) start [2025-04-02 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818682', 'tblTempUsageDetail_20' ) end [2025-04-02 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:07:27] Production.INFO: ==7626== Releasing lock... [2025-04-02 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:07:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:08:06 [end_date_ymd] => 2025-04-02 14:08:06 [RateCDR] => 1 ) [2025-04-02 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:08:06' and `end` < '2025-04-02 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:08:20] Production.INFO: count ==4841 [2025-04-02 14:08:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:08:06 - End Time 2025-04-02 14:08:06 [2025-04-02 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818687', 'tblTempUsageDetail_20' ) start [2025-04-02 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818687', 'tblTempUsageDetail_20' ) end [2025-04-02 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818687', 'tblTempVendorCDR_20' ) start [2025-04-02 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818687', 'tblTempVendorCDR_20' ) end [2025-04-02 14:08:22] Production.INFO: ProcessCDR(1,14818687,1,1,2) [2025-04-02 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818687', 'tblTempUsageDetail_20' ) start [2025-04-02 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818687', 'tblTempUsageDetail_20' ) end [2025-04-02 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:08:28] Production.INFO: ==7698== Releasing lock... [2025-04-02 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:08:28] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:09:05 [end_date_ymd] => 2025-04-02 14:09:05 [RateCDR] => 1 ) [2025-04-02 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:09:05' and `end` < '2025-04-02 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:09:19] Production.INFO: count ==4828 [2025-04-02 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:09:05 - End Time 2025-04-02 14:09:05 [2025-04-02 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818692', 'tblTempUsageDetail_20' ) start [2025-04-02 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818692', 'tblTempUsageDetail_20' ) end [2025-04-02 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818692', 'tblTempVendorCDR_20' ) start [2025-04-02 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818692', 'tblTempVendorCDR_20' ) end [2025-04-02 14:09:22] Production.INFO: ProcessCDR(1,14818692,1,1,2) [2025-04-02 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818692', 'tblTempUsageDetail_20' ) start [2025-04-02 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818692', 'tblTempUsageDetail_20' ) end [2025-04-02 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:09:28] Production.INFO: ==7772== Releasing lock... [2025-04-02 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:09:28] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:10:07 [end_date_ymd] => 2025-04-02 14:10:07 [RateCDR] => 1 ) [2025-04-02 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:10:07' and `end` < '2025-04-02 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:10:21] Production.INFO: count ==4826 [2025-04-02 14:10:23] Production.ERROR: pbx CDR StartTime 2025-04-02 11:10:07 - End Time 2025-04-02 14:10:07 [2025-04-02 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818698', 'tblTempUsageDetail_20' ) start [2025-04-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818698', 'tblTempUsageDetail_20' ) end [2025-04-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818698', 'tblTempVendorCDR_20' ) start [2025-04-02 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818698', 'tblTempVendorCDR_20' ) end [2025-04-02 14:10:23] Production.INFO: ProcessCDR(1,14818698,1,1,2) [2025-04-02 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818698', 'tblTempUsageDetail_20' ) start [2025-04-02 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818698', 'tblTempUsageDetail_20' ) end [2025-04-02 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:10:29] Production.INFO: ==7849== Releasing lock... [2025-04-02 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:10:29] Production.INFO: 64 MB #Memory Used# [2025-04-02 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:11:05 [end_date_ymd] => 2025-04-02 14:11:05 [RateCDR] => 1 ) [2025-04-02 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:11:05' and `end` < '2025-04-02 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:11:19] Production.INFO: count ==4820 [2025-04-02 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:11:05 - End Time 2025-04-02 14:11:05 [2025-04-02 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818703', 'tblTempUsageDetail_20' ) start [2025-04-02 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818703', 'tblTempUsageDetail_20' ) end [2025-04-02 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818703', 'tblTempVendorCDR_20' ) start [2025-04-02 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818703', 'tblTempVendorCDR_20' ) end [2025-04-02 14:11:21] Production.INFO: ProcessCDR(1,14818703,1,1,2) [2025-04-02 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818703', 'tblTempUsageDetail_20' ) start [2025-04-02 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818703', 'tblTempUsageDetail_20' ) end [2025-04-02 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:11:27] Production.INFO: ==7926== Releasing lock... [2025-04-02 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:11:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:12:06 [end_date_ymd] => 2025-04-02 14:12:06 [RateCDR] => 1 ) [2025-04-02 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:12:06' and `end` < '2025-04-02 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:12:19] Production.INFO: count ==4824 [2025-04-02 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:12:06 - End Time 2025-04-02 14:12:06 [2025-04-02 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818708', 'tblTempUsageDetail_20' ) start [2025-04-02 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818708', 'tblTempUsageDetail_20' ) end [2025-04-02 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818708', 'tblTempVendorCDR_20' ) start [2025-04-02 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818708', 'tblTempVendorCDR_20' ) end [2025-04-02 14:12:22] Production.INFO: ProcessCDR(1,14818708,1,1,2) [2025-04-02 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818708', 'tblTempUsageDetail_20' ) start [2025-04-02 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818708', 'tblTempUsageDetail_20' ) end [2025-04-02 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:12:27] Production.INFO: ==8005== Releasing lock... [2025-04-02 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:12:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:13:05 [end_date_ymd] => 2025-04-02 14:13:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 11:13:05' and `end` < '2025-04-02 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-04-02 14:13:19] Production.INFO: count ==4814 [2025-04-02 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:13:05 - End Time 2025-04-02 14:13:05 [2025-04-02 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818713', 'tblTempUsageDetail_20' ) start [2025-04-02 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818713', 'tblTempUsageDetail_20' ) end [2025-04-02 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818713', 'tblTempVendorCDR_20' ) start [2025-04-02 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818713', 'tblTempVendorCDR_20' ) end [2025-04-02 14:13:21] Production.INFO: ProcessCDR(1,14818713,1,1,2) [2025-04-02 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818713', 'tblTempUsageDetail_20' ) start [2025-04-02 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818713', 'tblTempUsageDetail_20' ) end [2025-04-02 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:13:26] Production.INFO: ==8113== Releasing lock... [2025-04-02 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:13:26] Production.INFO: 64 MB #Memory Used# [2025-04-02 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:14:06 [end_date_ymd] => 2025-04-02 14:14:06 [RateCDR] => 1 ) [2025-04-02 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:14:06' and `end` < '2025-04-02 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:14:20] Production.INFO: count ==4806 [2025-04-02 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:14:06 - End Time 2025-04-02 14:14:06 [2025-04-02 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818718', 'tblTempUsageDetail_20' ) start [2025-04-02 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818718', 'tblTempUsageDetail_20' ) end [2025-04-02 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818718', 'tblTempVendorCDR_20' ) start [2025-04-02 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818718', 'tblTempVendorCDR_20' ) end [2025-04-02 14:14:22] Production.INFO: ProcessCDR(1,14818718,1,1,2) [2025-04-02 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818718', 'tblTempUsageDetail_20' ) start [2025-04-02 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818718', 'tblTempUsageDetail_20' ) end [2025-04-02 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:14:27] Production.INFO: ==8187== Releasing lock... [2025-04-02 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:14:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:15:05 [end_date_ymd] => 2025-04-02 14:15:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 11:15:05' and `end` < '2025-04-02 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-04-02 14:15:19] Production.INFO: count ==4768 [2025-04-02 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:15:05 - End Time 2025-04-02 14:15:05 [2025-04-02 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818723', 'tblTempUsageDetail_20' ) start [2025-04-02 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818723', 'tblTempUsageDetail_20' ) end [2025-04-02 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818723', 'tblTempVendorCDR_20' ) start [2025-04-02 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818723', 'tblTempVendorCDR_20' ) end [2025-04-02 14:15:21] Production.INFO: ProcessCDR(1,14818723,1,1,2) [2025-04-02 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818723', 'tblTempUsageDetail_20' ) start [2025-04-02 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818723', 'tblTempUsageDetail_20' ) end [2025-04-02 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:15:26] Production.INFO: ==8260== Releasing lock... [2025-04-02 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:15:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:16:05 [end_date_ymd] => 2025-04-02 14:16:05 [RateCDR] => 1 ) [2025-04-02 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:16:05' and `end` < '2025-04-02 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:16:19] Production.INFO: count ==4771 [2025-04-02 14:16:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:16:05 - End Time 2025-04-02 14:16:05 [2025-04-02 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818728', 'tblTempUsageDetail_20' ) start [2025-04-02 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818728', 'tblTempUsageDetail_20' ) end [2025-04-02 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818728', 'tblTempVendorCDR_20' ) start [2025-04-02 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818728', 'tblTempVendorCDR_20' ) end [2025-04-02 14:16:21] Production.INFO: ProcessCDR(1,14818728,1,1,2) [2025-04-02 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818728', 'tblTempUsageDetail_20' ) start [2025-04-02 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818728', 'tblTempUsageDetail_20' ) end [2025-04-02 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:16:27] Production.INFO: ==8334== Releasing lock... [2025-04-02 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:16:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:17:05 [end_date_ymd] => 2025-04-02 14:17:05 [RateCDR] => 1 ) [2025-04-02 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:17:05' and `end` < '2025-04-02 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:17:19] Production.INFO: count ==4774 [2025-04-02 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:17:05 - End Time 2025-04-02 14:17:05 [2025-04-02 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818733', 'tblTempUsageDetail_20' ) start [2025-04-02 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818733', 'tblTempUsageDetail_20' ) end [2025-04-02 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818733', 'tblTempVendorCDR_20' ) start [2025-04-02 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818733', 'tblTempVendorCDR_20' ) end [2025-04-02 14:17:21] Production.INFO: ProcessCDR(1,14818733,1,1,2) [2025-04-02 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818733', 'tblTempUsageDetail_20' ) start [2025-04-02 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818733', 'tblTempUsageDetail_20' ) end [2025-04-02 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:17:27] Production.INFO: ==8404== Releasing lock... [2025-04-02 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:17:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:18:05 [end_date_ymd] => 2025-04-02 14:18:05 [RateCDR] => 1 ) [2025-04-02 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:18:05' and `end` < '2025-04-02 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:18:19] Production.INFO: count ==4764 [2025-04-02 14:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:18:05 - End Time 2025-04-02 14:18:05 [2025-04-02 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818738', 'tblTempUsageDetail_20' ) start [2025-04-02 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818738', 'tblTempUsageDetail_20' ) end [2025-04-02 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818738', 'tblTempVendorCDR_20' ) start [2025-04-02 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818738', 'tblTempVendorCDR_20' ) end [2025-04-02 14:18:21] Production.INFO: ProcessCDR(1,14818738,1,1,2) [2025-04-02 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818738', 'tblTempUsageDetail_20' ) start [2025-04-02 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818738', 'tblTempUsageDetail_20' ) end [2025-04-02 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:18:27] Production.INFO: ==8477== Releasing lock... [2025-04-02 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:18:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:19:05 [end_date_ymd] => 2025-04-02 14:19:05 [RateCDR] => 1 ) [2025-04-02 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:19:05' and `end` < '2025-04-02 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:19:19] Production.INFO: count ==4758 [2025-04-02 14:19:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:19:05 - End Time 2025-04-02 14:19:05 [2025-04-02 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818743', 'tblTempUsageDetail_20' ) start [2025-04-02 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818743', 'tblTempUsageDetail_20' ) end [2025-04-02 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818743', 'tblTempVendorCDR_20' ) start [2025-04-02 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818743', 'tblTempVendorCDR_20' ) end [2025-04-02 14:19:21] Production.INFO: ProcessCDR(1,14818743,1,1,2) [2025-04-02 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818743', 'tblTempUsageDetail_20' ) start [2025-04-02 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818743', 'tblTempUsageDetail_20' ) end [2025-04-02 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:19:27] Production.INFO: ==8548== Releasing lock... [2025-04-02 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:19:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:20:06 [end_date_ymd] => 2025-04-02 14:20:06 [RateCDR] => 1 ) [2025-04-02 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:20:06' and `end` < '2025-04-02 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:20:20] Production.INFO: count ==4766 [2025-04-02 14:20:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:20:06 - End Time 2025-04-02 14:20:06 [2025-04-02 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818749', 'tblTempUsageDetail_20' ) start [2025-04-02 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818749', 'tblTempUsageDetail_20' ) end [2025-04-02 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818749', 'tblTempVendorCDR_20' ) start [2025-04-02 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818749', 'tblTempVendorCDR_20' ) end [2025-04-02 14:20:22] Production.INFO: ProcessCDR(1,14818749,1,1,2) [2025-04-02 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818749', 'tblTempUsageDetail_20' ) start [2025-04-02 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818749', 'tblTempUsageDetail_20' ) end [2025-04-02 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:20:28] Production.INFO: ==8625== Releasing lock... [2025-04-02 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:20:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:21:05 [end_date_ymd] => 2025-04-02 14:21:05 [RateCDR] => 1 ) [2025-04-02 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:21:05' and `end` < '2025-04-02 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:21:19] Production.INFO: count ==4723 [2025-04-02 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:21:05 - End Time 2025-04-02 14:21:05 [2025-04-02 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818754', 'tblTempUsageDetail_20' ) start [2025-04-02 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818754', 'tblTempUsageDetail_20' ) end [2025-04-02 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818754', 'tblTempVendorCDR_20' ) start [2025-04-02 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818754', 'tblTempVendorCDR_20' ) end [2025-04-02 14:21:21] Production.INFO: ProcessCDR(1,14818754,1,1,2) [2025-04-02 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818754', 'tblTempUsageDetail_20' ) start [2025-04-02 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818754', 'tblTempUsageDetail_20' ) end [2025-04-02 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:21:27] Production.INFO: ==8703== Releasing lock... [2025-04-02 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:21:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:22:05 [end_date_ymd] => 2025-04-02 14:22:05 [RateCDR] => 1 ) [2025-04-02 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:22:05' and `end` < '2025-04-02 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:22:19] Production.INFO: count ==4704 [2025-04-02 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:22:05 - End Time 2025-04-02 14:22:05 [2025-04-02 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818759', 'tblTempUsageDetail_20' ) start [2025-04-02 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818759', 'tblTempUsageDetail_20' ) end [2025-04-02 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818759', 'tblTempVendorCDR_20' ) start [2025-04-02 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818759', 'tblTempVendorCDR_20' ) end [2025-04-02 14:22:21] Production.INFO: ProcessCDR(1,14818759,1,1,2) [2025-04-02 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818759', 'tblTempUsageDetail_20' ) start [2025-04-02 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818759', 'tblTempUsageDetail_20' ) end [2025-04-02 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:22:27] Production.INFO: ==8774== Releasing lock... [2025-04-02 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:22:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:23:05 [end_date_ymd] => 2025-04-02 14:23:05 [RateCDR] => 1 ) [2025-04-02 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:23:05' and `end` < '2025-04-02 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:23:19] Production.INFO: count ==4693 [2025-04-02 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:23:05 - End Time 2025-04-02 14:23:05 [2025-04-02 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818764', 'tblTempUsageDetail_20' ) start [2025-04-02 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818764', 'tblTempUsageDetail_20' ) end [2025-04-02 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818764', 'tblTempVendorCDR_20' ) start [2025-04-02 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818764', 'tblTempVendorCDR_20' ) end [2025-04-02 14:23:21] Production.INFO: ProcessCDR(1,14818764,1,1,2) [2025-04-02 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818764', 'tblTempUsageDetail_20' ) start [2025-04-02 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818764', 'tblTempUsageDetail_20' ) end [2025-04-02 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:23:26] Production.INFO: ==8853== Releasing lock... [2025-04-02 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:24:06 [end_date_ymd] => 2025-04-02 14:24:06 [RateCDR] => 1 ) [2025-04-02 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:24:06' and `end` < '2025-04-02 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:24:19] Production.INFO: count ==4695 [2025-04-02 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:24:06 - End Time 2025-04-02 14:24:06 [2025-04-02 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818769', 'tblTempUsageDetail_20' ) start [2025-04-02 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818769', 'tblTempUsageDetail_20' ) end [2025-04-02 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818769', 'tblTempVendorCDR_20' ) start [2025-04-02 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818769', 'tblTempVendorCDR_20' ) end [2025-04-02 14:24:22] Production.INFO: ProcessCDR(1,14818769,1,1,2) [2025-04-02 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818769', 'tblTempUsageDetail_20' ) start [2025-04-02 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818769', 'tblTempUsageDetail_20' ) end [2025-04-02 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:24:27] Production.INFO: ==8931== Releasing lock... [2025-04-02 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:24:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:25:05 [end_date_ymd] => 2025-04-02 14:25:05 [RateCDR] => 1 ) [2025-04-02 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:25:05' and `end` < '2025-04-02 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:25:19] Production.INFO: count ==4700 [2025-04-02 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:25:05 - End Time 2025-04-02 14:25:05 [2025-04-02 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818774', 'tblTempUsageDetail_20' ) start [2025-04-02 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818774', 'tblTempUsageDetail_20' ) end [2025-04-02 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818774', 'tblTempVendorCDR_20' ) start [2025-04-02 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818774', 'tblTempVendorCDR_20' ) end [2025-04-02 14:25:21] Production.INFO: ProcessCDR(1,14818774,1,1,2) [2025-04-02 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818774', 'tblTempUsageDetail_20' ) start [2025-04-02 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818774', 'tblTempUsageDetail_20' ) end [2025-04-02 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:25:26] Production.INFO: ==9003== Releasing lock... [2025-04-02 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:25:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:26:04 [end_date_ymd] => 2025-04-02 14:26:04 [RateCDR] => 1 ) [2025-04-02 14:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:26:04' and `end` < '2025-04-02 14:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:26:18] Production.INFO: count ==4695 [2025-04-02 14:26:20] Production.ERROR: pbx CDR StartTime 2025-04-02 11:26:04 - End Time 2025-04-02 14:26:04 [2025-04-02 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818779', 'tblTempUsageDetail_20' ) start [2025-04-02 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818779', 'tblTempUsageDetail_20' ) end [2025-04-02 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818779', 'tblTempVendorCDR_20' ) start [2025-04-02 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818779', 'tblTempVendorCDR_20' ) end [2025-04-02 14:26:20] Production.INFO: ProcessCDR(1,14818779,1,1,2) [2025-04-02 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818779', 'tblTempUsageDetail_20' ) start [2025-04-02 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818779', 'tblTempUsageDetail_20' ) end [2025-04-02 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:26:26] Production.INFO: ==9089== Releasing lock... [2025-04-02 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:26:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:27:05 [end_date_ymd] => 2025-04-02 14:27:05 [RateCDR] => 1 ) [2025-04-02 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:27:05' and `end` < '2025-04-02 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:27:19] Production.INFO: count ==4697 [2025-04-02 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:27:05 - End Time 2025-04-02 14:27:05 [2025-04-02 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818784', 'tblTempUsageDetail_20' ) start [2025-04-02 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818784', 'tblTempUsageDetail_20' ) end [2025-04-02 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818784', 'tblTempVendorCDR_20' ) start [2025-04-02 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818784', 'tblTempVendorCDR_20' ) end [2025-04-02 14:27:21] Production.INFO: ProcessCDR(1,14818784,1,1,2) [2025-04-02 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818784', 'tblTempUsageDetail_20' ) start [2025-04-02 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818784', 'tblTempUsageDetail_20' ) end [2025-04-02 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:27:26] Production.INFO: ==9165== Releasing lock... [2025-04-02 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:27:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:28:06 [end_date_ymd] => 2025-04-02 14:28:06 [RateCDR] => 1 ) [2025-04-02 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:28:06' and `end` < '2025-04-02 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:28:19] Production.INFO: count ==4700 [2025-04-02 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:28:06 - End Time 2025-04-02 14:28:06 [2025-04-02 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818789', 'tblTempUsageDetail_20' ) start [2025-04-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818789', 'tblTempUsageDetail_20' ) end [2025-04-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818789', 'tblTempVendorCDR_20' ) start [2025-04-02 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818789', 'tblTempVendorCDR_20' ) end [2025-04-02 14:28:22] Production.INFO: ProcessCDR(1,14818789,1,1,2) [2025-04-02 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818789', 'tblTempUsageDetail_20' ) start [2025-04-02 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818789', 'tblTempUsageDetail_20' ) end [2025-04-02 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:28:28] Production.INFO: ==9285== Releasing lock... [2025-04-02 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:28:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:29:06 [end_date_ymd] => 2025-04-02 14:29:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 11:29:06' and `end` < '2025-04-02 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-04-02 14:29:20] Production.INFO: count ==4702 [2025-04-02 14:29:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:29:06 - End Time 2025-04-02 14:29:06 [2025-04-02 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818794', 'tblTempUsageDetail_20' ) start [2025-04-02 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818794', 'tblTempUsageDetail_20' ) end [2025-04-02 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818794', 'tblTempVendorCDR_20' ) start [2025-04-02 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818794', 'tblTempVendorCDR_20' ) end [2025-04-02 14:29:22] Production.INFO: ProcessCDR(1,14818794,1,1,2) [2025-04-02 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818794', 'tblTempUsageDetail_20' ) start [2025-04-02 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818794', 'tblTempUsageDetail_20' ) end [2025-04-02 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:29:27] Production.INFO: ==9362== Releasing lock... [2025-04-02 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:29:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:30:06 [end_date_ymd] => 2025-04-02 14:30:06 [RateCDR] => 1 ) [2025-04-02 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:30:06' and `end` < '2025-04-02 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:30:20] Production.INFO: count ==4692 [2025-04-02 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:30:06 - End Time 2025-04-02 14:30:06 [2025-04-02 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818800', 'tblTempUsageDetail_20' ) start [2025-04-02 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818800', 'tblTempUsageDetail_20' ) end [2025-04-02 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818800', 'tblTempVendorCDR_20' ) start [2025-04-02 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818800', 'tblTempVendorCDR_20' ) end [2025-04-02 14:30:22] Production.INFO: ProcessCDR(1,14818800,1,1,2) [2025-04-02 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818800', 'tblTempUsageDetail_20' ) start [2025-04-02 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818800', 'tblTempUsageDetail_20' ) end [2025-04-02 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:30:28] Production.INFO: ==9443== Releasing lock... [2025-04-02 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:30:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:31:06 [end_date_ymd] => 2025-04-02 14:31:06 [RateCDR] => 1 ) [2025-04-02 14:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:31:06' and `end` < '2025-04-02 14:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:31:20] Production.INFO: count ==4650 [2025-04-02 14:31:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:31:06 - End Time 2025-04-02 14:31:06 [2025-04-02 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818805', 'tblTempUsageDetail_20' ) start [2025-04-02 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818805', 'tblTempUsageDetail_20' ) end [2025-04-02 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818805', 'tblTempVendorCDR_20' ) start [2025-04-02 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818805', 'tblTempVendorCDR_20' ) end [2025-04-02 14:31:22] Production.INFO: ProcessCDR(1,14818805,1,1,2) [2025-04-02 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818805', 'tblTempUsageDetail_20' ) start [2025-04-02 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818805', 'tblTempUsageDetail_20' ) end [2025-04-02 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:31:27] Production.INFO: ==9533== Releasing lock... [2025-04-02 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:31:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:32:05 [end_date_ymd] => 2025-04-02 14:32:05 [RateCDR] => 1 ) [2025-04-02 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:32:05' and `end` < '2025-04-02 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:32:19] Production.INFO: count ==4664 [2025-04-02 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:32:05 - End Time 2025-04-02 14:32:05 [2025-04-02 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818810', 'tblTempUsageDetail_20' ) start [2025-04-02 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818810', 'tblTempUsageDetail_20' ) end [2025-04-02 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818810', 'tblTempVendorCDR_20' ) start [2025-04-02 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818810', 'tblTempVendorCDR_20' ) end [2025-04-02 14:32:21] Production.INFO: ProcessCDR(1,14818810,1,1,2) [2025-04-02 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818810', 'tblTempUsageDetail_20' ) start [2025-04-02 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818810', 'tblTempUsageDetail_20' ) end [2025-04-02 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:32:26] Production.INFO: ==9612== Releasing lock... [2025-04-02 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:32:26] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:33:06 [end_date_ymd] => 2025-04-02 14:33:06 [RateCDR] => 1 ) [2025-04-02 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:33:06' and `end` < '2025-04-02 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:33:20] Production.INFO: count ==4675 [2025-04-02 14:33:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:33:06 - End Time 2025-04-02 14:33:06 [2025-04-02 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818815', 'tblTempUsageDetail_20' ) start [2025-04-02 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818815', 'tblTempUsageDetail_20' ) end [2025-04-02 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818815', 'tblTempVendorCDR_20' ) start [2025-04-02 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818815', 'tblTempVendorCDR_20' ) end [2025-04-02 14:33:22] Production.INFO: ProcessCDR(1,14818815,1,1,2) [2025-04-02 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818815', 'tblTempUsageDetail_20' ) start [2025-04-02 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818815', 'tblTempUsageDetail_20' ) end [2025-04-02 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:33:27] Production.INFO: ==9686== Releasing lock... [2025-04-02 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:33:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:34:05 [end_date_ymd] => 2025-04-02 14:34:05 [RateCDR] => 1 ) [2025-04-02 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:34:05' and `end` < '2025-04-02 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:34:19] Production.INFO: count ==4678 [2025-04-02 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:34:05 - End Time 2025-04-02 14:34:05 [2025-04-02 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818820', 'tblTempUsageDetail_20' ) start [2025-04-02 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818820', 'tblTempUsageDetail_20' ) end [2025-04-02 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818820', 'tblTempVendorCDR_20' ) start [2025-04-02 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818820', 'tblTempVendorCDR_20' ) end [2025-04-02 14:34:21] Production.INFO: ProcessCDR(1,14818820,1,1,2) [2025-04-02 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818820', 'tblTempUsageDetail_20' ) start [2025-04-02 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818820', 'tblTempUsageDetail_20' ) end [2025-04-02 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:34:27] Production.INFO: ==9766== Releasing lock... [2025-04-02 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:34:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:35:06 [end_date_ymd] => 2025-04-02 14:35:06 [RateCDR] => 1 ) [2025-04-02 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:35:06' and `end` < '2025-04-02 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:35:19] Production.INFO: count ==4692 [2025-04-02 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:35:06 - End Time 2025-04-02 14:35:06 [2025-04-02 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818825', 'tblTempUsageDetail_20' ) start [2025-04-02 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818825', 'tblTempUsageDetail_20' ) end [2025-04-02 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818825', 'tblTempVendorCDR_20' ) start [2025-04-02 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818825', 'tblTempVendorCDR_20' ) end [2025-04-02 14:35:22] Production.INFO: ProcessCDR(1,14818825,1,1,2) [2025-04-02 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818825', 'tblTempUsageDetail_20' ) start [2025-04-02 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818825', 'tblTempUsageDetail_20' ) end [2025-04-02 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:35:27] Production.INFO: ==9843== Releasing lock... [2025-04-02 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:35:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:36:05 [end_date_ymd] => 2025-04-02 14:36:05 [RateCDR] => 1 ) [2025-04-02 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:36:05' and `end` < '2025-04-02 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:36:19] Production.INFO: count ==4667 [2025-04-02 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:36:05 - End Time 2025-04-02 14:36:05 [2025-04-02 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818830', 'tblTempUsageDetail_20' ) start [2025-04-02 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818830', 'tblTempUsageDetail_20' ) end [2025-04-02 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818830', 'tblTempVendorCDR_20' ) start [2025-04-02 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818830', 'tblTempVendorCDR_20' ) end [2025-04-02 14:36:21] Production.INFO: ProcessCDR(1,14818830,1,1,2) [2025-04-02 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818830', 'tblTempUsageDetail_20' ) start [2025-04-02 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818830', 'tblTempUsageDetail_20' ) end [2025-04-02 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:36:26] Production.INFO: ==9921== Releasing lock... [2025-04-02 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:36:26] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:37:06 [end_date_ymd] => 2025-04-02 14:37:06 [RateCDR] => 1 ) [2025-04-02 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:37:06' and `end` < '2025-04-02 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:37:19] Production.INFO: count ==4665 [2025-04-02 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:37:06 - End Time 2025-04-02 14:37:06 [2025-04-02 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818835', 'tblTempUsageDetail_20' ) start [2025-04-02 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818835', 'tblTempUsageDetail_20' ) end [2025-04-02 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818835', 'tblTempVendorCDR_20' ) start [2025-04-02 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818835', 'tblTempVendorCDR_20' ) end [2025-04-02 14:37:21] Production.INFO: ProcessCDR(1,14818835,1,1,2) [2025-04-02 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818835', 'tblTempUsageDetail_20' ) start [2025-04-02 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818835', 'tblTempUsageDetail_20' ) end [2025-04-02 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:37:27] Production.INFO: ==9999== Releasing lock... [2025-04-02 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:37:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:38:05 [end_date_ymd] => 2025-04-02 14:38:05 [RateCDR] => 1 ) [2025-04-02 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:38:05' and `end` < '2025-04-02 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:38:19] Production.INFO: count ==4656 [2025-04-02 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:38:05 - End Time 2025-04-02 14:38:05 [2025-04-02 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818840', 'tblTempUsageDetail_20' ) start [2025-04-02 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818840', 'tblTempUsageDetail_20' ) end [2025-04-02 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818840', 'tblTempVendorCDR_20' ) start [2025-04-02 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818840', 'tblTempVendorCDR_20' ) end [2025-04-02 14:38:21] Production.INFO: ProcessCDR(1,14818840,1,1,2) [2025-04-02 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818840', 'tblTempUsageDetail_20' ) start [2025-04-02 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818840', 'tblTempUsageDetail_20' ) end [2025-04-02 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:38:26] Production.INFO: ==10082== Releasing lock... [2025-04-02 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:38:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:39:06 [end_date_ymd] => 2025-04-02 14:39:06 [RateCDR] => 1 ) [2025-04-02 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:39:06' and `end` < '2025-04-02 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:39:19] Production.INFO: count ==4663 [2025-04-02 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:39:06 - End Time 2025-04-02 14:39:06 [2025-04-02 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818845', 'tblTempUsageDetail_20' ) start [2025-04-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818845', 'tblTempUsageDetail_20' ) end [2025-04-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818845', 'tblTempVendorCDR_20' ) start [2025-04-02 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818845', 'tblTempVendorCDR_20' ) end [2025-04-02 14:39:21] Production.INFO: ProcessCDR(1,14818845,1,1,2) [2025-04-02 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818845', 'tblTempUsageDetail_20' ) start [2025-04-02 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818845', 'tblTempUsageDetail_20' ) end [2025-04-02 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:39:26] Production.INFO: ==10165== Releasing lock... [2025-04-02 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:39:26] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:40:06 [end_date_ymd] => 2025-04-02 14:40:06 [RateCDR] => 1 ) [2025-04-02 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:40:06' and `end` < '2025-04-02 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:40:19] Production.INFO: count ==4643 [2025-04-02 14:40:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:40:06 - End Time 2025-04-02 14:40:06 [2025-04-02 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818851', 'tblTempUsageDetail_20' ) start [2025-04-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818851', 'tblTempUsageDetail_20' ) end [2025-04-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818851', 'tblTempVendorCDR_20' ) start [2025-04-02 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818851', 'tblTempVendorCDR_20' ) end [2025-04-02 14:40:21] Production.INFO: ProcessCDR(1,14818851,1,1,2) [2025-04-02 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818851', 'tblTempUsageDetail_20' ) start [2025-04-02 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818851', 'tblTempUsageDetail_20' ) end [2025-04-02 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:40:27] Production.INFO: ==10247== Releasing lock... [2025-04-02 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:40:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:41:05 [end_date_ymd] => 2025-04-02 14:41:05 [RateCDR] => 1 ) [2025-04-02 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:41:05' and `end` < '2025-04-02 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:41:19] Production.INFO: count ==4656 [2025-04-02 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:41:05 - End Time 2025-04-02 14:41:05 [2025-04-02 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818856', 'tblTempUsageDetail_20' ) start [2025-04-02 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818856', 'tblTempUsageDetail_20' ) end [2025-04-02 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818856', 'tblTempVendorCDR_20' ) start [2025-04-02 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818856', 'tblTempVendorCDR_20' ) end [2025-04-02 14:41:21] Production.INFO: ProcessCDR(1,14818856,1,1,2) [2025-04-02 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818856', 'tblTempUsageDetail_20' ) start [2025-04-02 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818856', 'tblTempUsageDetail_20' ) end [2025-04-02 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:41:26] Production.INFO: ==10333== Releasing lock... [2025-04-02 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:41:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:42:04 [end_date_ymd] => 2025-04-02 14:42:04 [RateCDR] => 1 ) [2025-04-02 14:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:42:04' and `end` < '2025-04-02 14:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:42:18] Production.INFO: count ==4647 [2025-04-02 14:42:20] Production.ERROR: pbx CDR StartTime 2025-04-02 11:42:04 - End Time 2025-04-02 14:42:04 [2025-04-02 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818857', 'tblTempUsageDetail_20' ) start [2025-04-02 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818857', 'tblTempUsageDetail_20' ) end [2025-04-02 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818857', 'tblTempVendorCDR_20' ) start [2025-04-02 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818857', 'tblTempVendorCDR_20' ) end [2025-04-02 14:42:20] Production.INFO: ProcessCDR(1,14818857,1,1,2) [2025-04-02 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818857', 'tblTempUsageDetail_20' ) start [2025-04-02 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818857', 'tblTempUsageDetail_20' ) end [2025-04-02 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:42:26] Production.INFO: ==10411== Releasing lock... [2025-04-02 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:42:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:43:05 [end_date_ymd] => 2025-04-02 14:43:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 11:43:05' and `end` < '2025-04-02 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-04-02 14:43:19] Production.INFO: count ==4632 [2025-04-02 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:43:05 - End Time 2025-04-02 14:43:05 [2025-04-02 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818866', 'tblTempUsageDetail_20' ) start [2025-04-02 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818866', 'tblTempUsageDetail_20' ) end [2025-04-02 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818866', 'tblTempVendorCDR_20' ) start [2025-04-02 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818866', 'tblTempVendorCDR_20' ) end [2025-04-02 14:43:21] Production.INFO: ProcessCDR(1,14818866,1,1,2) [2025-04-02 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818866', 'tblTempUsageDetail_20' ) start [2025-04-02 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818866', 'tblTempUsageDetail_20' ) end [2025-04-02 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:43:26] Production.INFO: ==10492== Releasing lock... [2025-04-02 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:43:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:44:05 [end_date_ymd] => 2025-04-02 14:44:05 [RateCDR] => 1 ) [2025-04-02 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:44:05' and `end` < '2025-04-02 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:44:19] Production.INFO: count ==4633 [2025-04-02 14:44:20] Production.ERROR: pbx CDR StartTime 2025-04-02 11:44:05 - End Time 2025-04-02 14:44:05 [2025-04-02 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818871', 'tblTempUsageDetail_20' ) start [2025-04-02 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818871', 'tblTempUsageDetail_20' ) end [2025-04-02 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818871', 'tblTempVendorCDR_20' ) start [2025-04-02 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818871', 'tblTempVendorCDR_20' ) end [2025-04-02 14:44:21] Production.INFO: ProcessCDR(1,14818871,1,1,2) [2025-04-02 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818871', 'tblTempUsageDetail_20' ) start [2025-04-02 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818871', 'tblTempUsageDetail_20' ) end [2025-04-02 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:44:26] Production.INFO: ==10609== Releasing lock... [2025-04-02 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:44:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:45:05 [end_date_ymd] => 2025-04-02 14:45:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 11:45:05' and `end` < '2025-04-02 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-04-02 14:45:19] Production.INFO: count ==4626 [2025-04-02 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:45:05 - End Time 2025-04-02 14:45:05 [2025-04-02 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818876', 'tblTempUsageDetail_20' ) start [2025-04-02 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818876', 'tblTempUsageDetail_20' ) end [2025-04-02 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818876', 'tblTempVendorCDR_20' ) start [2025-04-02 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818876', 'tblTempVendorCDR_20' ) end [2025-04-02 14:45:21] Production.INFO: ProcessCDR(1,14818876,1,1,2) [2025-04-02 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818876', 'tblTempUsageDetail_20' ) start [2025-04-02 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818876', 'tblTempUsageDetail_20' ) end [2025-04-02 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:45:26] Production.INFO: ==10703== Releasing lock... [2025-04-02 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:45:26] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:46:06 [end_date_ymd] => 2025-04-02 14:46:06 [RateCDR] => 1 ) [2025-04-02 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:46:06' and `end` < '2025-04-02 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:46:19] Production.INFO: count ==4618 [2025-04-02 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:46:06 - End Time 2025-04-02 14:46:06 [2025-04-02 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818881', 'tblTempUsageDetail_20' ) start [2025-04-02 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818881', 'tblTempUsageDetail_20' ) end [2025-04-02 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818881', 'tblTempVendorCDR_20' ) start [2025-04-02 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818881', 'tblTempVendorCDR_20' ) end [2025-04-02 14:46:21] Production.INFO: ProcessCDR(1,14818881,1,1,2) [2025-04-02 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818881', 'tblTempUsageDetail_20' ) start [2025-04-02 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818881', 'tblTempUsageDetail_20' ) end [2025-04-02 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:46:27] Production.INFO: ==10786== Releasing lock... [2025-04-02 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:46:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-02 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:47:05 [end_date_ymd] => 2025-04-02 14:47:05 [RateCDR] => 1 ) [2025-04-02 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:47:05' and `end` < '2025-04-02 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:47:19] Production.INFO: count ==4609 [2025-04-02 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:47:05 - End Time 2025-04-02 14:47:05 [2025-04-02 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818886', 'tblTempUsageDetail_20' ) start [2025-04-02 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818886', 'tblTempUsageDetail_20' ) end [2025-04-02 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818886', 'tblTempVendorCDR_20' ) start [2025-04-02 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818886', 'tblTempVendorCDR_20' ) end [2025-04-02 14:47:21] Production.INFO: ProcessCDR(1,14818886,1,1,2) [2025-04-02 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818886', 'tblTempUsageDetail_20' ) start [2025-04-02 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818886', 'tblTempUsageDetail_20' ) end [2025-04-02 14:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:47:25] Production.INFO: ==10869== Releasing lock... [2025-04-02 14:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:47:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-02 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:48:06 [end_date_ymd] => 2025-04-02 14:48:06 [RateCDR] => 1 ) [2025-04-02 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:48:06' and `end` < '2025-04-02 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:48:20] Production.INFO: count ==4629 [2025-04-02 14:48:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:48:06 - End Time 2025-04-02 14:48:06 [2025-04-02 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818891', 'tblTempUsageDetail_20' ) start [2025-04-02 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818891', 'tblTempUsageDetail_20' ) end [2025-04-02 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818891', 'tblTempVendorCDR_20' ) start [2025-04-02 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818891', 'tblTempVendorCDR_20' ) end [2025-04-02 14:48:22] Production.INFO: ProcessCDR(1,14818891,1,1,2) [2025-04-02 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818891', 'tblTempUsageDetail_20' ) start [2025-04-02 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818891', 'tblTempUsageDetail_20' ) end [2025-04-02 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:48:27] Production.INFO: ==10953== Releasing lock... [2025-04-02 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:48:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:49:06 [end_date_ymd] => 2025-04-02 14:49:06 [RateCDR] => 1 ) [2025-04-02 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:49:06' and `end` < '2025-04-02 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:49:19] Production.INFO: count ==4628 [2025-04-02 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:49:06 - End Time 2025-04-02 14:49:06 [2025-04-02 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818896', 'tblTempUsageDetail_20' ) start [2025-04-02 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818896', 'tblTempUsageDetail_20' ) end [2025-04-02 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818896', 'tblTempVendorCDR_20' ) start [2025-04-02 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818896', 'tblTempVendorCDR_20' ) end [2025-04-02 14:49:21] Production.INFO: ProcessCDR(1,14818896,1,1,2) [2025-04-02 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818896', 'tblTempUsageDetail_20' ) start [2025-04-02 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818896', 'tblTempUsageDetail_20' ) end [2025-04-02 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:49:26] Production.INFO: ==11032== Releasing lock... [2025-04-02 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:49:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:50:06 [end_date_ymd] => 2025-04-02 14:50:06 [RateCDR] => 1 ) [2025-04-02 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:50:06' and `end` < '2025-04-02 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:50:20] Production.INFO: count ==4629 [2025-04-02 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-02 11:50:06 - End Time 2025-04-02 14:50:06 [2025-04-02 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818902', 'tblTempUsageDetail_20' ) start [2025-04-02 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818902', 'tblTempUsageDetail_20' ) end [2025-04-02 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818902', 'tblTempVendorCDR_20' ) start [2025-04-02 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818902', 'tblTempVendorCDR_20' ) end [2025-04-02 14:50:22] Production.INFO: ProcessCDR(1,14818902,1,1,2) [2025-04-02 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818902', 'tblTempUsageDetail_20' ) start [2025-04-02 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818902', 'tblTempUsageDetail_20' ) end [2025-04-02 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:50:27] Production.INFO: ==11137== Releasing lock... [2025-04-02 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:50:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:51:05 [end_date_ymd] => 2025-04-02 14:51:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 11:51:05' and `end` < '2025-04-02 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-04-02 14:51:19] Production.INFO: count ==4626 [2025-04-02 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:51:05 - End Time 2025-04-02 14:51:05 [2025-04-02 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818907', 'tblTempUsageDetail_20' ) start [2025-04-02 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818907', 'tblTempUsageDetail_20' ) end [2025-04-02 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818907', 'tblTempVendorCDR_20' ) start [2025-04-02 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818907', 'tblTempVendorCDR_20' ) end [2025-04-02 14:51:21] Production.INFO: ProcessCDR(1,14818907,1,1,2) [2025-04-02 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818907', 'tblTempUsageDetail_20' ) start [2025-04-02 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818907', 'tblTempUsageDetail_20' ) end [2025-04-02 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:51:27] Production.INFO: ==11221== Releasing lock... [2025-04-02 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:51:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:52:06 [end_date_ymd] => 2025-04-02 14:52:06 [RateCDR] => 1 ) [2025-04-02 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:52:06' and `end` < '2025-04-02 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:52:19] Production.INFO: count ==4630 [2025-04-02 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:52:06 - End Time 2025-04-02 14:52:06 [2025-04-02 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818912', 'tblTempUsageDetail_20' ) start [2025-04-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818912', 'tblTempUsageDetail_20' ) end [2025-04-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818912', 'tblTempVendorCDR_20' ) start [2025-04-02 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818912', 'tblTempVendorCDR_20' ) end [2025-04-02 14:52:21] Production.INFO: ProcessCDR(1,14818912,1,1,2) [2025-04-02 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818912', 'tblTempUsageDetail_20' ) start [2025-04-02 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818912', 'tblTempUsageDetail_20' ) end [2025-04-02 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:52:27] Production.INFO: ==11303== Releasing lock... [2025-04-02 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:52:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:53:05 [end_date_ymd] => 2025-04-02 14:53:05 [RateCDR] => 1 ) [2025-04-02 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:53:05' and `end` < '2025-04-02 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:53:19] Production.INFO: count ==4639 [2025-04-02 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:53:05 - End Time 2025-04-02 14:53:05 [2025-04-02 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818917', 'tblTempUsageDetail_20' ) start [2025-04-02 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818917', 'tblTempUsageDetail_20' ) end [2025-04-02 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818917', 'tblTempVendorCDR_20' ) start [2025-04-02 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818917', 'tblTempVendorCDR_20' ) end [2025-04-02 14:53:21] Production.INFO: ProcessCDR(1,14818917,1,1,2) [2025-04-02 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818917', 'tblTempUsageDetail_20' ) start [2025-04-02 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818917', 'tblTempUsageDetail_20' ) end [2025-04-02 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:53:26] Production.INFO: ==11390== Releasing lock... [2025-04-02 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:53:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:54:05 [end_date_ymd] => 2025-04-02 14:54:05 [RateCDR] => 1 ) [2025-04-02 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:54:05' and `end` < '2025-04-02 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:54:19] Production.INFO: count ==4641 [2025-04-02 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:54:05 - End Time 2025-04-02 14:54:05 [2025-04-02 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818920', 'tblTempUsageDetail_20' ) start [2025-04-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818920', 'tblTempUsageDetail_20' ) end [2025-04-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818920', 'tblTempVendorCDR_20' ) start [2025-04-02 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818920', 'tblTempVendorCDR_20' ) end [2025-04-02 14:54:21] Production.INFO: ProcessCDR(1,14818920,1,1,2) [2025-04-02 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818920', 'tblTempUsageDetail_20' ) start [2025-04-02 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818920', 'tblTempUsageDetail_20' ) end [2025-04-02 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:54:27] Production.INFO: ==11472== Releasing lock... [2025-04-02 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:54:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:55:05 [end_date_ymd] => 2025-04-02 14:55:05 [RateCDR] => 1 ) [2025-04-02 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:55:05' and `end` < '2025-04-02 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:55:19] Production.INFO: count ==4647 [2025-04-02 14:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:55:05 - End Time 2025-04-02 14:55:05 [2025-04-02 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818927', 'tblTempUsageDetail_20' ) start [2025-04-02 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818927', 'tblTempUsageDetail_20' ) end [2025-04-02 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818927', 'tblTempVendorCDR_20' ) start [2025-04-02 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818927', 'tblTempVendorCDR_20' ) end [2025-04-02 14:55:21] Production.INFO: ProcessCDR(1,14818927,1,1,2) [2025-04-02 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818927', 'tblTempUsageDetail_20' ) start [2025-04-02 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818927', 'tblTempUsageDetail_20' ) end [2025-04-02 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:55:26] Production.INFO: ==11553== Releasing lock... [2025-04-02 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:55:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:56:06 [end_date_ymd] => 2025-04-02 14:56:06 [RateCDR] => 1 ) [2025-04-02 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:56:06' and `end` < '2025-04-02 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:56:19] Production.INFO: count ==4653 [2025-04-02 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:56:06 - End Time 2025-04-02 14:56:06 [2025-04-02 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818932', 'tblTempUsageDetail_20' ) start [2025-04-02 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818932', 'tblTempUsageDetail_20' ) end [2025-04-02 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818932', 'tblTempVendorCDR_20' ) start [2025-04-02 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818932', 'tblTempVendorCDR_20' ) end [2025-04-02 14:56:21] Production.INFO: ProcessCDR(1,14818932,1,1,2) [2025-04-02 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818932', 'tblTempUsageDetail_20' ) start [2025-04-02 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818932', 'tblTempUsageDetail_20' ) end [2025-04-02 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:56:27] Production.INFO: ==11638== Releasing lock... [2025-04-02 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:56:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:57:05 [end_date_ymd] => 2025-04-02 14:57:05 [RateCDR] => 1 ) [2025-04-02 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:57:05' and `end` < '2025-04-02 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:57:19] Production.INFO: count ==4650 [2025-04-02 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:57:05 - End Time 2025-04-02 14:57:05 [2025-04-02 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818937', 'tblTempUsageDetail_20' ) start [2025-04-02 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818937', 'tblTempUsageDetail_20' ) end [2025-04-02 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818937', 'tblTempVendorCDR_20' ) start [2025-04-02 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818937', 'tblTempVendorCDR_20' ) end [2025-04-02 14:57:21] Production.INFO: ProcessCDR(1,14818937,1,1,2) [2025-04-02 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818937', 'tblTempUsageDetail_20' ) start [2025-04-02 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818937', 'tblTempUsageDetail_20' ) end [2025-04-02 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:57:26] Production.INFO: ==11720== Releasing lock... [2025-04-02 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:57:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:58:06 [end_date_ymd] => 2025-04-02 14:58:06 [RateCDR] => 1 ) [2025-04-02 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:58:06' and `end` < '2025-04-02 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:58:19] Production.INFO: count ==4684 [2025-04-02 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-02 11:58:06 - End Time 2025-04-02 14:58:06 [2025-04-02 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818942', 'tblTempUsageDetail_20' ) start [2025-04-02 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818942', 'tblTempUsageDetail_20' ) end [2025-04-02 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818942', 'tblTempVendorCDR_20' ) start [2025-04-02 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818942', 'tblTempVendorCDR_20' ) end [2025-04-02 14:58:21] Production.INFO: ProcessCDR(1,14818942,1,1,2) [2025-04-02 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818942', 'tblTempUsageDetail_20' ) start [2025-04-02 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818942', 'tblTempUsageDetail_20' ) end [2025-04-02 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:58:27] Production.INFO: ==11802== Releasing lock... [2025-04-02 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:58:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 11:59:05 [end_date_ymd] => 2025-04-02 14:59:05 [RateCDR] => 1 ) [2025-04-02 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 11:59:05' and `end` < '2025-04-02 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 14:59:19] Production.INFO: count ==4691 [2025-04-02 14:59:20] Production.ERROR: pbx CDR StartTime 2025-04-02 11:59:05 - End Time 2025-04-02 14:59:05 [2025-04-02 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818947', 'tblTempUsageDetail_20' ) start [2025-04-02 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818947', 'tblTempUsageDetail_20' ) end [2025-04-02 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818947', 'tblTempVendorCDR_20' ) start [2025-04-02 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818947', 'tblTempVendorCDR_20' ) end [2025-04-02 14:59:21] Production.INFO: ProcessCDR(1,14818947,1,1,2) [2025-04-02 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818947', 'tblTempUsageDetail_20' ) start [2025-04-02 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818947', 'tblTempUsageDetail_20' ) end [2025-04-02 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 14:59:26] Production.INFO: ==11921== Releasing lock... [2025-04-02 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 14:59:26] Production.INFO: 63 MB #Memory Used# [2025-04-02 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:00:06 [end_date_ymd] => 2025-04-02 15:00:06 [RateCDR] => 1 ) [2025-04-02 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:00:06' and `end` < '2025-04-02 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:00:20] Production.INFO: count ==4713 [2025-04-02 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:00:06 - End Time 2025-04-02 15:00:06 [2025-04-02 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818953', 'tblTempUsageDetail_20' ) start [2025-04-02 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818953', 'tblTempUsageDetail_20' ) end [2025-04-02 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818953', 'tblTempVendorCDR_20' ) start [2025-04-02 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818953', 'tblTempVendorCDR_20' ) end [2025-04-02 15:00:23] Production.INFO: ProcessCDR(1,14818953,1,1,2) [2025-04-02 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818953', 'tblTempUsageDetail_20' ) start [2025-04-02 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818953', 'tblTempUsageDetail_20' ) end [2025-04-02 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:00:29] Production.INFO: ==12009== Releasing lock... [2025-04-02 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:00:29] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:01:05 [end_date_ymd] => 2025-04-02 15:01:05 [RateCDR] => 1 ) [2025-04-02 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:01:05' and `end` < '2025-04-02 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:01:18] Production.INFO: count ==4724 [2025-04-02 15:01:20] Production.ERROR: pbx CDR StartTime 2025-04-02 12:01:05 - End Time 2025-04-02 15:01:05 [2025-04-02 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818958', 'tblTempUsageDetail_20' ) start [2025-04-02 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818958', 'tblTempUsageDetail_20' ) end [2025-04-02 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818958', 'tblTempVendorCDR_20' ) start [2025-04-02 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818958', 'tblTempVendorCDR_20' ) end [2025-04-02 15:01:21] Production.INFO: ProcessCDR(1,14818958,1,1,2) [2025-04-02 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818958', 'tblTempUsageDetail_20' ) start [2025-04-02 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818958', 'tblTempUsageDetail_20' ) end [2025-04-02 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:01:26] Production.INFO: ==12110== Releasing lock... [2025-04-02 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:01:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:02:05 [end_date_ymd] => 2025-04-02 15:02:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:02:05' and `end` < '2025-04-02 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-04-02 15:02:19] Production.INFO: count ==4762 [2025-04-02 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:02:05 - End Time 2025-04-02 15:02:05 [2025-04-02 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818963', 'tblTempUsageDetail_20' ) start [2025-04-02 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818963', 'tblTempUsageDetail_20' ) end [2025-04-02 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818963', 'tblTempVendorCDR_20' ) start [2025-04-02 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818963', 'tblTempVendorCDR_20' ) end [2025-04-02 15:02:22] Production.INFO: ProcessCDR(1,14818963,1,1,2) [2025-04-02 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818963', 'tblTempUsageDetail_20' ) start [2025-04-02 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818963', 'tblTempUsageDetail_20' ) end [2025-04-02 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:02:28] Production.INFO: ==12278== Releasing lock... [2025-04-02 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:02:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:03:05 [end_date_ymd] => 2025-04-02 15:03:05 [RateCDR] => 1 ) [2025-04-02 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:03:05' and `end` < '2025-04-02 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:03:20] Production.INFO: count ==4807 [2025-04-02 15:03:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:03:05 - End Time 2025-04-02 15:03:05 [2025-04-02 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818968', 'tblTempUsageDetail_20' ) start [2025-04-02 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818968', 'tblTempUsageDetail_20' ) end [2025-04-02 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818968', 'tblTempVendorCDR_20' ) start [2025-04-02 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818968', 'tblTempVendorCDR_20' ) end [2025-04-02 15:03:22] Production.INFO: ProcessCDR(1,14818968,1,1,2) [2025-04-02 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818968', 'tblTempUsageDetail_20' ) start [2025-04-02 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818968', 'tblTempUsageDetail_20' ) end [2025-04-02 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:03:28] Production.INFO: ==12357== Releasing lock... [2025-04-02 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:03:28] Production.INFO: 64 MB #Memory Used# [2025-04-02 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:04:06 [end_date_ymd] => 2025-04-02 15:04:06 [RateCDR] => 1 ) [2025-04-02 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:04:06' and `end` < '2025-04-02 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:04:21] Production.INFO: count ==4810 [2025-04-02 15:04:23] Production.ERROR: pbx CDR StartTime 2025-04-02 12:04:06 - End Time 2025-04-02 15:04:06 [2025-04-02 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818973', 'tblTempUsageDetail_20' ) start [2025-04-02 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818973', 'tblTempUsageDetail_20' ) end [2025-04-02 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818973', 'tblTempVendorCDR_20' ) start [2025-04-02 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818973', 'tblTempVendorCDR_20' ) end [2025-04-02 15:04:23] Production.INFO: ProcessCDR(1,14818973,1,1,2) [2025-04-02 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818973', 'tblTempUsageDetail_20' ) start [2025-04-02 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818973', 'tblTempUsageDetail_20' ) end [2025-04-02 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:04:29] Production.INFO: ==12450== Releasing lock... [2025-04-02 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:04:29] Production.INFO: 64 MB #Memory Used# [2025-04-02 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:05:06 [end_date_ymd] => 2025-04-02 15:05:06 [RateCDR] => 1 ) [2025-04-02 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:05:06' and `end` < '2025-04-02 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:05:20] Production.INFO: count ==4826 [2025-04-02 15:05:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:05:06 - End Time 2025-04-02 15:05:06 [2025-04-02 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818978', 'tblTempUsageDetail_20' ) start [2025-04-02 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818978', 'tblTempUsageDetail_20' ) end [2025-04-02 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818978', 'tblTempVendorCDR_20' ) start [2025-04-02 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818978', 'tblTempVendorCDR_20' ) end [2025-04-02 15:05:22] Production.INFO: ProcessCDR(1,14818978,1,1,2) [2025-04-02 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818978', 'tblTempUsageDetail_20' ) start [2025-04-02 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818978', 'tblTempUsageDetail_20' ) end [2025-04-02 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:05:28] Production.INFO: ==12609== Releasing lock... [2025-04-02 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:05:28] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:06:06 [end_date_ymd] => 2025-04-02 15:06:06 [RateCDR] => 1 ) [2025-04-02 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:06:06' and `end` < '2025-04-02 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:06:20] Production.INFO: count ==4833 [2025-04-02 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:06:06 - End Time 2025-04-02 15:06:06 [2025-04-02 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818983', 'tblTempUsageDetail_20' ) start [2025-04-02 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818983', 'tblTempUsageDetail_20' ) end [2025-04-02 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818983', 'tblTempVendorCDR_20' ) start [2025-04-02 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818983', 'tblTempVendorCDR_20' ) end [2025-04-02 15:06:22] Production.INFO: ProcessCDR(1,14818983,1,1,2) [2025-04-02 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818983', 'tblTempUsageDetail_20' ) start [2025-04-02 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818983', 'tblTempUsageDetail_20' ) end [2025-04-02 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:06:27] Production.INFO: ==12692== Releasing lock... [2025-04-02 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:06:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:07:06 [end_date_ymd] => 2025-04-02 15:07:06 [RateCDR] => 1 ) [2025-04-02 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:07:06' and `end` < '2025-04-02 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:07:19] Production.INFO: count ==4843 [2025-04-02 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:07:06 - End Time 2025-04-02 15:07:06 [2025-04-02 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818988', 'tblTempUsageDetail_20' ) start [2025-04-02 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818988', 'tblTempUsageDetail_20' ) end [2025-04-02 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818988', 'tblTempVendorCDR_20' ) start [2025-04-02 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818988', 'tblTempVendorCDR_20' ) end [2025-04-02 15:07:21] Production.INFO: ProcessCDR(1,14818988,1,1,2) [2025-04-02 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818988', 'tblTempUsageDetail_20' ) start [2025-04-02 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818988', 'tblTempUsageDetail_20' ) end [2025-04-02 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:07:27] Production.INFO: ==12778== Releasing lock... [2025-04-02 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:07:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:08:05 [end_date_ymd] => 2025-04-02 15:08:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:08:05' and `end` < '2025-04-02 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-04-02 15:08:19] Production.INFO: count ==4838 [2025-04-02 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:08:05 - End Time 2025-04-02 15:08:05 [2025-04-02 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818993', 'tblTempUsageDetail_20' ) start [2025-04-02 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818993', 'tblTempUsageDetail_20' ) end [2025-04-02 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818993', 'tblTempVendorCDR_20' ) start [2025-04-02 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818993', 'tblTempVendorCDR_20' ) end [2025-04-02 15:08:22] Production.INFO: ProcessCDR(1,14818993,1,1,2) [2025-04-02 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818993', 'tblTempUsageDetail_20' ) start [2025-04-02 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818993', 'tblTempUsageDetail_20' ) end [2025-04-02 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:08:27] Production.INFO: ==12941== Releasing lock... [2025-04-02 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:08:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:09:05 [end_date_ymd] => 2025-04-02 15:09:05 [RateCDR] => 1 ) [2025-04-02 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:09:05' and `end` < '2025-04-02 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:09:19] Production.INFO: count ==4820 [2025-04-02 15:09:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:09:05 - End Time 2025-04-02 15:09:05 [2025-04-02 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818998', 'tblTempUsageDetail_20' ) start [2025-04-02 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14818998', 'tblTempUsageDetail_20' ) end [2025-04-02 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818998', 'tblTempVendorCDR_20' ) start [2025-04-02 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14818998', 'tblTempVendorCDR_20' ) end [2025-04-02 15:09:21] Production.INFO: ProcessCDR(1,14818998,1,1,2) [2025-04-02 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14818998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14818998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14818998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14818998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818998', 'tblTempUsageDetail_20' ) start [2025-04-02 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14818998', 'tblTempUsageDetail_20' ) end [2025-04-02 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:09:26] Production.INFO: ==13018== Releasing lock... [2025-04-02 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:09:26] Production.INFO: 64 MB #Memory Used# [2025-04-02 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:10:07 [end_date_ymd] => 2025-04-02 15:10:07 [RateCDR] => 1 ) [2025-04-02 15:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:10:07' and `end` < '2025-04-02 15:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:10:21] Production.INFO: count ==4841 [2025-04-02 15:10:23] Production.ERROR: pbx CDR StartTime 2025-04-02 12:10:07 - End Time 2025-04-02 15:10:07 [2025-04-02 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819004', 'tblTempUsageDetail_20' ) start [2025-04-02 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819004', 'tblTempUsageDetail_20' ) end [2025-04-02 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819004', 'tblTempVendorCDR_20' ) start [2025-04-02 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819004', 'tblTempVendorCDR_20' ) end [2025-04-02 15:10:23] Production.INFO: ProcessCDR(1,14819004,1,1,2) [2025-04-02 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819004', 'tblTempUsageDetail_20' ) start [2025-04-02 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819004', 'tblTempUsageDetail_20' ) end [2025-04-02 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:10:28] Production.INFO: ==13123== Releasing lock... [2025-04-02 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:10:28] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:11:05 [end_date_ymd] => 2025-04-02 15:11:05 [RateCDR] => 1 ) [2025-04-02 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:11:05' and `end` < '2025-04-02 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:11:18] Production.INFO: count ==4847 [2025-04-02 15:11:20] Production.ERROR: pbx CDR StartTime 2025-04-02 12:11:05 - End Time 2025-04-02 15:11:05 [2025-04-02 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819009', 'tblTempUsageDetail_20' ) start [2025-04-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819009', 'tblTempUsageDetail_20' ) end [2025-04-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819009', 'tblTempVendorCDR_20' ) start [2025-04-02 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819009', 'tblTempVendorCDR_20' ) end [2025-04-02 15:11:20] Production.INFO: ProcessCDR(1,14819009,1,1,2) [2025-04-02 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819009', 'tblTempUsageDetail_20' ) start [2025-04-02 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819009', 'tblTempUsageDetail_20' ) end [2025-04-02 15:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:11:25] Production.INFO: ==13206== Releasing lock... [2025-04-02 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:11:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:12:05 [end_date_ymd] => 2025-04-02 15:12:05 [RateCDR] => 1 ) [2025-04-02 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:12:05' and `end` < '2025-04-02 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:12:19] Production.INFO: count ==4833 [2025-04-02 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:12:05 - End Time 2025-04-02 15:12:05 [2025-04-02 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819014', 'tblTempUsageDetail_20' ) start [2025-04-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819014', 'tblTempUsageDetail_20' ) end [2025-04-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819014', 'tblTempVendorCDR_20' ) start [2025-04-02 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819014', 'tblTempVendorCDR_20' ) end [2025-04-02 15:12:21] Production.INFO: ProcessCDR(1,14819014,1,1,2) [2025-04-02 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819014', 'tblTempUsageDetail_20' ) start [2025-04-02 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819014', 'tblTempUsageDetail_20' ) end [2025-04-02 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:12:27] Production.INFO: ==13361== Releasing lock... [2025-04-02 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:12:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:13:05 [end_date_ymd] => 2025-04-02 15:13:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:13:05' and `end` < '2025-04-02 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-04-02 15:13:19] Production.INFO: count ==4832 [2025-04-02 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:13:05 - End Time 2025-04-02 15:13:05 [2025-04-02 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819019', 'tblTempUsageDetail_20' ) start [2025-04-02 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819019', 'tblTempUsageDetail_20' ) end [2025-04-02 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819019', 'tblTempVendorCDR_20' ) start [2025-04-02 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819019', 'tblTempVendorCDR_20' ) end [2025-04-02 15:13:22] Production.INFO: ProcessCDR(1,14819019,1,1,2) [2025-04-02 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819019', 'tblTempUsageDetail_20' ) start [2025-04-02 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819019', 'tblTempUsageDetail_20' ) end [2025-04-02 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:13:27] Production.INFO: ==13440== Releasing lock... [2025-04-02 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:13:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:14:06 [end_date_ymd] => 2025-04-02 15:14:06 [RateCDR] => 1 ) [2025-04-02 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:14:06' and `end` < '2025-04-02 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:14:19] Production.INFO: count ==4809 [2025-04-02 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:14:06 - End Time 2025-04-02 15:14:06 [2025-04-02 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819024', 'tblTempUsageDetail_20' ) start [2025-04-02 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819024', 'tblTempUsageDetail_20' ) end [2025-04-02 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819024', 'tblTempVendorCDR_20' ) start [2025-04-02 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819024', 'tblTempVendorCDR_20' ) end [2025-04-02 15:14:22] Production.INFO: ProcessCDR(1,14819024,1,1,2) [2025-04-02 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819024', 'tblTempUsageDetail_20' ) start [2025-04-02 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819024', 'tblTempUsageDetail_20' ) end [2025-04-02 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:14:27] Production.INFO: ==13555== Releasing lock... [2025-04-02 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:14:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:15:05 [end_date_ymd] => 2025-04-02 15:15:05 [RateCDR] => 1 ) [2025-04-02 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:15:05' and `end` < '2025-04-02 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:15:19] Production.INFO: count ==4807 [2025-04-02 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:15:05 - End Time 2025-04-02 15:15:05 [2025-04-02 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819029', 'tblTempUsageDetail_20' ) start [2025-04-02 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819029', 'tblTempUsageDetail_20' ) end [2025-04-02 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819029', 'tblTempVendorCDR_20' ) start [2025-04-02 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819029', 'tblTempVendorCDR_20' ) end [2025-04-02 15:15:21] Production.INFO: ProcessCDR(1,14819029,1,1,2) [2025-04-02 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819029', 'tblTempUsageDetail_20' ) start [2025-04-02 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819029', 'tblTempUsageDetail_20' ) end [2025-04-02 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:15:27] Production.INFO: ==13716== Releasing lock... [2025-04-02 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:15:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:16:05 [end_date_ymd] => 2025-04-02 15:16:05 [RateCDR] => 1 ) [2025-04-02 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:16:05' and `end` < '2025-04-02 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:16:19] Production.INFO: count ==4773 [2025-04-02 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:16:05 - End Time 2025-04-02 15:16:05 [2025-04-02 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819034', 'tblTempUsageDetail_20' ) start [2025-04-02 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819034', 'tblTempUsageDetail_20' ) end [2025-04-02 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819034', 'tblTempVendorCDR_20' ) start [2025-04-02 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819034', 'tblTempVendorCDR_20' ) end [2025-04-02 15:16:21] Production.INFO: ProcessCDR(1,14819034,1,1,2) [2025-04-02 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819034', 'tblTempUsageDetail_20' ) start [2025-04-02 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819034', 'tblTempUsageDetail_20' ) end [2025-04-02 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:16:26] Production.INFO: ==13800== Releasing lock... [2025-04-02 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:16:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:17:05 [end_date_ymd] => 2025-04-02 15:17:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:17:05' and `end` < '2025-04-02 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-04-02 15:17:18] Production.INFO: count ==4733 [2025-04-02 15:17:20] Production.ERROR: pbx CDR StartTime 2025-04-02 12:17:05 - End Time 2025-04-02 15:17:05 [2025-04-02 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819039', 'tblTempUsageDetail_20' ) start [2025-04-02 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819039', 'tblTempUsageDetail_20' ) end [2025-04-02 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819039', 'tblTempVendorCDR_20' ) start [2025-04-02 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819039', 'tblTempVendorCDR_20' ) end [2025-04-02 15:17:21] Production.INFO: ProcessCDR(1,14819039,1,1,2) [2025-04-02 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819039', 'tblTempUsageDetail_20' ) start [2025-04-02 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819039', 'tblTempUsageDetail_20' ) end [2025-04-02 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:17:26] Production.INFO: ==13877== Releasing lock... [2025-04-02 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:17:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:18:06 [end_date_ymd] => 2025-04-02 15:18:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:18:06' and `end` < '2025-04-02 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-04-02 15:18:19] Production.INFO: count ==4746 [2025-04-02 15:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:18:06 - End Time 2025-04-02 15:18:06 [2025-04-02 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819044', 'tblTempUsageDetail_20' ) start [2025-04-02 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819044', 'tblTempUsageDetail_20' ) end [2025-04-02 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819044', 'tblTempVendorCDR_20' ) start [2025-04-02 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819044', 'tblTempVendorCDR_20' ) end [2025-04-02 15:18:21] Production.INFO: ProcessCDR(1,14819044,1,1,2) [2025-04-02 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819044', 'tblTempUsageDetail_20' ) start [2025-04-02 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819044', 'tblTempUsageDetail_20' ) end [2025-04-02 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:18:26] Production.INFO: ==13954== Releasing lock... [2025-04-02 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:18:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:19:05 [end_date_ymd] => 2025-04-02 15:19:05 [RateCDR] => 1 ) [2025-04-02 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:19:05' and `end` < '2025-04-02 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:19:18] Production.INFO: count ==4734 [2025-04-02 15:19:20] Production.ERROR: pbx CDR StartTime 2025-04-02 12:19:05 - End Time 2025-04-02 15:19:05 [2025-04-02 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819049', 'tblTempUsageDetail_20' ) start [2025-04-02 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819049', 'tblTempUsageDetail_20' ) end [2025-04-02 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819049', 'tblTempVendorCDR_20' ) start [2025-04-02 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819049', 'tblTempVendorCDR_20' ) end [2025-04-02 15:19:21] Production.INFO: ProcessCDR(1,14819049,1,1,2) [2025-04-02 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819049', 'tblTempUsageDetail_20' ) start [2025-04-02 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819049', 'tblTempUsageDetail_20' ) end [2025-04-02 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:19:26] Production.INFO: ==14030== Releasing lock... [2025-04-02 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:19:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:20:06 [end_date_ymd] => 2025-04-02 15:20:06 [RateCDR] => 1 ) [2025-04-02 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:20:06' and `end` < '2025-04-02 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:20:20] Production.INFO: count ==4742 [2025-04-02 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:20:06 - End Time 2025-04-02 15:20:06 [2025-04-02 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819055', 'tblTempUsageDetail_20' ) start [2025-04-02 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819055', 'tblTempUsageDetail_20' ) end [2025-04-02 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819055', 'tblTempVendorCDR_20' ) start [2025-04-02 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819055', 'tblTempVendorCDR_20' ) end [2025-04-02 15:20:22] Production.INFO: ProcessCDR(1,14819055,1,1,2) [2025-04-02 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819055', 'tblTempUsageDetail_20' ) start [2025-04-02 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819055', 'tblTempUsageDetail_20' ) end [2025-04-02 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:20:28] Production.INFO: ==14108== Releasing lock... [2025-04-02 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:20:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:21:05 [end_date_ymd] => 2025-04-02 15:21:05 [RateCDR] => 1 ) [2025-04-02 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:21:05' and `end` < '2025-04-02 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:21:19] Production.INFO: count ==4723 [2025-04-02 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:21:05 - End Time 2025-04-02 15:21:05 [2025-04-02 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819060', 'tblTempUsageDetail_20' ) start [2025-04-02 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819060', 'tblTempUsageDetail_20' ) end [2025-04-02 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819060', 'tblTempVendorCDR_20' ) start [2025-04-02 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819060', 'tblTempVendorCDR_20' ) end [2025-04-02 15:21:21] Production.INFO: ProcessCDR(1,14819060,1,1,2) [2025-04-02 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819060', 'tblTempUsageDetail_20' ) start [2025-04-02 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819060', 'tblTempUsageDetail_20' ) end [2025-04-02 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:21:26] Production.INFO: ==14187== Releasing lock... [2025-04-02 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:21:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:22:06 [end_date_ymd] => 2025-04-02 15:22:06 [RateCDR] => 1 ) [2025-04-02 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:22:06' and `end` < '2025-04-02 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:22:19] Production.INFO: count ==4731 [2025-04-02 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:22:06 - End Time 2025-04-02 15:22:06 [2025-04-02 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819065', 'tblTempUsageDetail_20' ) start [2025-04-02 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819065', 'tblTempUsageDetail_20' ) end [2025-04-02 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819065', 'tblTempVendorCDR_20' ) start [2025-04-02 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819065', 'tblTempVendorCDR_20' ) end [2025-04-02 15:22:21] Production.INFO: ProcessCDR(1,14819065,1,1,2) [2025-04-02 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819065', 'tblTempUsageDetail_20' ) start [2025-04-02 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819065', 'tblTempUsageDetail_20' ) end [2025-04-02 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:22:27] Production.INFO: ==14271== Releasing lock... [2025-04-02 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:22:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:23:04 [end_date_ymd] => 2025-04-02 15:23:04 [RateCDR] => 1 ) [2025-04-02 15:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:23:04' and `end` < '2025-04-02 15:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:23:18] Production.INFO: count ==4733 [2025-04-02 15:23:20] Production.ERROR: pbx CDR StartTime 2025-04-02 12:23:04 - End Time 2025-04-02 15:23:04 [2025-04-02 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819070', 'tblTempUsageDetail_20' ) start [2025-04-02 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819070', 'tblTempUsageDetail_20' ) end [2025-04-02 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819070', 'tblTempVendorCDR_20' ) start [2025-04-02 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819070', 'tblTempVendorCDR_20' ) end [2025-04-02 15:23:20] Production.INFO: ProcessCDR(1,14819070,1,1,2) [2025-04-02 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819070', 'tblTempUsageDetail_20' ) start [2025-04-02 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819070', 'tblTempUsageDetail_20' ) end [2025-04-02 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:23:26] Production.INFO: ==14348== Releasing lock... [2025-04-02 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:23:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:24:06 [end_date_ymd] => 2025-04-02 15:24:06 [RateCDR] => 1 ) [2025-04-02 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:24:06' and `end` < '2025-04-02 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:24:20] Production.INFO: count ==4730 [2025-04-02 15:24:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:24:06 - End Time 2025-04-02 15:24:06 [2025-04-02 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819075', 'tblTempUsageDetail_20' ) start [2025-04-02 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819075', 'tblTempUsageDetail_20' ) end [2025-04-02 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819075', 'tblTempVendorCDR_20' ) start [2025-04-02 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819075', 'tblTempVendorCDR_20' ) end [2025-04-02 15:24:22] Production.INFO: ProcessCDR(1,14819075,1,1,2) [2025-04-02 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819075', 'tblTempUsageDetail_20' ) start [2025-04-02 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819075', 'tblTempUsageDetail_20' ) end [2025-04-02 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:24:27] Production.INFO: ==14429== Releasing lock... [2025-04-02 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:24:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:25:05 [end_date_ymd] => 2025-04-02 15:25:05 [RateCDR] => 1 ) [2025-04-02 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:25:05' and `end` < '2025-04-02 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:25:19] Production.INFO: count ==4722 [2025-04-02 15:25:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:25:05 - End Time 2025-04-02 15:25:05 [2025-04-02 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819080', 'tblTempUsageDetail_20' ) start [2025-04-02 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819080', 'tblTempUsageDetail_20' ) end [2025-04-02 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819080', 'tblTempVendorCDR_20' ) start [2025-04-02 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819080', 'tblTempVendorCDR_20' ) end [2025-04-02 15:25:21] Production.INFO: ProcessCDR(1,14819080,1,1,2) [2025-04-02 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819080', 'tblTempUsageDetail_20' ) start [2025-04-02 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819080', 'tblTempUsageDetail_20' ) end [2025-04-02 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:25:27] Production.INFO: ==14507== Releasing lock... [2025-04-02 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:25:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:26:06 [end_date_ymd] => 2025-04-02 15:26:06 [RateCDR] => 1 ) [2025-04-02 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:26:06' and `end` < '2025-04-02 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:26:19] Production.INFO: count ==4733 [2025-04-02 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:26:06 - End Time 2025-04-02 15:26:06 [2025-04-02 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819085', 'tblTempUsageDetail_20' ) start [2025-04-02 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819085', 'tblTempUsageDetail_20' ) end [2025-04-02 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819085', 'tblTempVendorCDR_20' ) start [2025-04-02 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819085', 'tblTempVendorCDR_20' ) end [2025-04-02 15:26:21] Production.INFO: ProcessCDR(1,14819085,1,1,2) [2025-04-02 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819085', 'tblTempUsageDetail_20' ) start [2025-04-02 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819085', 'tblTempUsageDetail_20' ) end [2025-04-02 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:26:27] Production.INFO: ==14587== Releasing lock... [2025-04-02 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:26:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:27:06 [end_date_ymd] => 2025-04-02 15:27:06 [RateCDR] => 1 ) [2025-04-02 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:27:06' and `end` < '2025-04-02 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:27:19] Production.INFO: count ==4721 [2025-04-02 15:27:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:27:06 - End Time 2025-04-02 15:27:06 [2025-04-02 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819090', 'tblTempUsageDetail_20' ) start [2025-04-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819090', 'tblTempUsageDetail_20' ) end [2025-04-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819090', 'tblTempVendorCDR_20' ) start [2025-04-02 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819090', 'tblTempVendorCDR_20' ) end [2025-04-02 15:27:21] Production.INFO: ProcessCDR(1,14819090,1,1,2) [2025-04-02 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819090', 'tblTempUsageDetail_20' ) start [2025-04-02 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819090', 'tblTempUsageDetail_20' ) end [2025-04-02 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:27:27] Production.INFO: ==14661== Releasing lock... [2025-04-02 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:27:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:28:06 [end_date_ymd] => 2025-04-02 15:28:06 [RateCDR] => 1 ) [2025-04-02 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:28:06' and `end` < '2025-04-02 15:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:28:19] Production.INFO: count ==4720 [2025-04-02 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:28:06 - End Time 2025-04-02 15:28:06 [2025-04-02 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819095', 'tblTempUsageDetail_20' ) start [2025-04-02 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819095', 'tblTempUsageDetail_20' ) end [2025-04-02 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819095', 'tblTempVendorCDR_20' ) start [2025-04-02 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819095', 'tblTempVendorCDR_20' ) end [2025-04-02 15:28:22] Production.INFO: ProcessCDR(1,14819095,1,1,2) [2025-04-02 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819095', 'tblTempUsageDetail_20' ) start [2025-04-02 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819095', 'tblTempUsageDetail_20' ) end [2025-04-02 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:28:27] Production.INFO: ==14737== Releasing lock... [2025-04-02 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:28:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:29:05 [end_date_ymd] => 2025-04-02 15:29:05 [RateCDR] => 1 ) [2025-04-02 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:29:05' and `end` < '2025-04-02 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:29:19] Production.INFO: count ==4723 [2025-04-02 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:29:05 - End Time 2025-04-02 15:29:05 [2025-04-02 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819100', 'tblTempUsageDetail_20' ) start [2025-04-02 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819100', 'tblTempUsageDetail_20' ) end [2025-04-02 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819100', 'tblTempVendorCDR_20' ) start [2025-04-02 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819100', 'tblTempVendorCDR_20' ) end [2025-04-02 15:29:21] Production.INFO: ProcessCDR(1,14819100,1,1,2) [2025-04-02 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819100', 'tblTempUsageDetail_20' ) start [2025-04-02 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819100', 'tblTempUsageDetail_20' ) end [2025-04-02 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:29:27] Production.INFO: ==14815== Releasing lock... [2025-04-02 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:29:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:30:06 [end_date_ymd] => 2025-04-02 15:30:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:30:06' and `end` < '2025-04-02 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-04-02 15:30:19] Production.INFO: count ==4743 [2025-04-02 15:30:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:30:06 - End Time 2025-04-02 15:30:06 [2025-04-02 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819105', 'tblTempUsageDetail_20' ) start [2025-04-02 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819105', 'tblTempUsageDetail_20' ) end [2025-04-02 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819105', 'tblTempVendorCDR_20' ) start [2025-04-02 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819105', 'tblTempVendorCDR_20' ) end [2025-04-02 15:30:22] Production.INFO: ProcessCDR(1,14819105,1,1,2) [2025-04-02 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819105', 'tblTempUsageDetail_20' ) start [2025-04-02 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819105', 'tblTempUsageDetail_20' ) end [2025-04-02 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:30:27] Production.INFO: ==14931== Releasing lock... [2025-04-02 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:31:06 [end_date_ymd] => 2025-04-02 15:31:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:31:06' and `end` < '2025-04-02 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-04-02 15:31:20] Production.INFO: count ==4785 [2025-04-02 15:31:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:31:06 - End Time 2025-04-02 15:31:06 [2025-04-02 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819111', 'tblTempUsageDetail_20' ) start [2025-04-02 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819111', 'tblTempUsageDetail_20' ) end [2025-04-02 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819111', 'tblTempVendorCDR_20' ) start [2025-04-02 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819111', 'tblTempVendorCDR_20' ) end [2025-04-02 15:31:22] Production.INFO: ProcessCDR(1,14819111,1,1,2) [2025-04-02 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819111', 'tblTempUsageDetail_20' ) start [2025-04-02 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819111', 'tblTempUsageDetail_20' ) end [2025-04-02 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:31:27] Production.INFO: ==15006== Releasing lock... [2025-04-02 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:31:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:32:06 [end_date_ymd] => 2025-04-02 15:32:06 [RateCDR] => 1 ) [2025-04-02 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:32:06' and `end` < '2025-04-02 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:32:19] Production.INFO: count ==4761 [2025-04-02 15:32:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:32:06 - End Time 2025-04-02 15:32:06 [2025-04-02 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819116', 'tblTempUsageDetail_20' ) start [2025-04-02 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819116', 'tblTempUsageDetail_20' ) end [2025-04-02 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819116', 'tblTempVendorCDR_20' ) start [2025-04-02 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819116', 'tblTempVendorCDR_20' ) end [2025-04-02 15:32:21] Production.INFO: ProcessCDR(1,14819116,1,1,2) [2025-04-02 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819116', 'tblTempUsageDetail_20' ) start [2025-04-02 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819116', 'tblTempUsageDetail_20' ) end [2025-04-02 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:32:27] Production.INFO: ==15078== Releasing lock... [2025-04-02 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:32:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:33:05 [end_date_ymd] => 2025-04-02 15:33:05 [RateCDR] => 1 ) [2025-04-02 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:33:05' and `end` < '2025-04-02 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:33:19] Production.INFO: count ==4775 [2025-04-02 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:33:05 - End Time 2025-04-02 15:33:05 [2025-04-02 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819121', 'tblTempUsageDetail_20' ) start [2025-04-02 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819121', 'tblTempUsageDetail_20' ) end [2025-04-02 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819121', 'tblTempVendorCDR_20' ) start [2025-04-02 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819121', 'tblTempVendorCDR_20' ) end [2025-04-02 15:33:21] Production.INFO: ProcessCDR(1,14819121,1,1,2) [2025-04-02 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819121', 'tblTempUsageDetail_20' ) start [2025-04-02 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819121', 'tblTempUsageDetail_20' ) end [2025-04-02 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:33:26] Production.INFO: ==15151== Releasing lock... [2025-04-02 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:33:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:34:06 [end_date_ymd] => 2025-04-02 15:34:06 [RateCDR] => 1 ) [2025-04-02 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:34:06' and `end` < '2025-04-02 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:34:20] Production.INFO: count ==4760 [2025-04-02 15:34:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:34:06 - End Time 2025-04-02 15:34:06 [2025-04-02 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819126', 'tblTempUsageDetail_20' ) start [2025-04-02 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819126', 'tblTempUsageDetail_20' ) end [2025-04-02 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819126', 'tblTempVendorCDR_20' ) start [2025-04-02 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819126', 'tblTempVendorCDR_20' ) end [2025-04-02 15:34:22] Production.INFO: ProcessCDR(1,14819126,1,1,2) [2025-04-02 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819126', 'tblTempUsageDetail_20' ) start [2025-04-02 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819126', 'tblTempUsageDetail_20' ) end [2025-04-02 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:34:27] Production.INFO: ==15223== Releasing lock... [2025-04-02 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:34:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:35:06 [end_date_ymd] => 2025-04-02 15:35:06 [RateCDR] => 1 ) [2025-04-02 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:35:06' and `end` < '2025-04-02 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:35:19] Production.INFO: count ==4752 [2025-04-02 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:35:06 - End Time 2025-04-02 15:35:06 [2025-04-02 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819131', 'tblTempUsageDetail_20' ) start [2025-04-02 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819131', 'tblTempUsageDetail_20' ) end [2025-04-02 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819131', 'tblTempVendorCDR_20' ) start [2025-04-02 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819131', 'tblTempVendorCDR_20' ) end [2025-04-02 15:35:21] Production.INFO: ProcessCDR(1,14819131,1,1,2) [2025-04-02 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819131', 'tblTempUsageDetail_20' ) start [2025-04-02 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819131', 'tblTempUsageDetail_20' ) end [2025-04-02 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:35:26] Production.INFO: ==15311== Releasing lock... [2025-04-02 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:35:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:36:05 [end_date_ymd] => 2025-04-02 15:36:05 [RateCDR] => 1 ) [2025-04-02 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:36:05' and `end` < '2025-04-02 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:36:19] Production.INFO: count ==4737 [2025-04-02 15:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:36:05 - End Time 2025-04-02 15:36:05 [2025-04-02 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819136', 'tblTempUsageDetail_20' ) start [2025-04-02 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819136', 'tblTempUsageDetail_20' ) end [2025-04-02 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819136', 'tblTempVendorCDR_20' ) start [2025-04-02 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819136', 'tblTempVendorCDR_20' ) end [2025-04-02 15:36:21] Production.INFO: ProcessCDR(1,14819136,1,1,2) [2025-04-02 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819136', 'tblTempUsageDetail_20' ) start [2025-04-02 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819136', 'tblTempUsageDetail_20' ) end [2025-04-02 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:36:26] Production.INFO: ==15386== Releasing lock... [2025-04-02 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:36:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:37:06 [end_date_ymd] => 2025-04-02 15:37:06 [RateCDR] => 1 ) [2025-04-02 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:37:06' and `end` < '2025-04-02 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:37:20] Production.INFO: count ==4739 [2025-04-02 15:37:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:37:06 - End Time 2025-04-02 15:37:06 [2025-04-02 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819141', 'tblTempUsageDetail_20' ) start [2025-04-02 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819141', 'tblTempUsageDetail_20' ) end [2025-04-02 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819141', 'tblTempVendorCDR_20' ) start [2025-04-02 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819141', 'tblTempVendorCDR_20' ) end [2025-04-02 15:37:22] Production.INFO: ProcessCDR(1,14819141,1,1,2) [2025-04-02 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819141', 'tblTempUsageDetail_20' ) start [2025-04-02 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819141', 'tblTempUsageDetail_20' ) end [2025-04-02 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:37:27] Production.INFO: ==15463== Releasing lock... [2025-04-02 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:37:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:38:05 [end_date_ymd] => 2025-04-02 15:38:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:38:05' and `end` < '2025-04-02 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-04-02 15:38:19] Production.INFO: count ==4740 [2025-04-02 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:38:05 - End Time 2025-04-02 15:38:05 [2025-04-02 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819146', 'tblTempUsageDetail_20' ) start [2025-04-02 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819146', 'tblTempUsageDetail_20' ) end [2025-04-02 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819146', 'tblTempVendorCDR_20' ) start [2025-04-02 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819146', 'tblTempVendorCDR_20' ) end [2025-04-02 15:38:21] Production.INFO: ProcessCDR(1,14819146,1,1,2) [2025-04-02 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819146', 'tblTempUsageDetail_20' ) start [2025-04-02 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819146', 'tblTempUsageDetail_20' ) end [2025-04-02 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:38:27] Production.INFO: ==15536== Releasing lock... [2025-04-02 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:38:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:39:06 [end_date_ymd] => 2025-04-02 15:39:06 [RateCDR] => 1 ) [2025-04-02 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:39:06' and `end` < '2025-04-02 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:39:19] Production.INFO: count ==4744 [2025-04-02 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:39:06 - End Time 2025-04-02 15:39:06 [2025-04-02 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819151', 'tblTempUsageDetail_20' ) start [2025-04-02 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819151', 'tblTempUsageDetail_20' ) end [2025-04-02 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819151', 'tblTempVendorCDR_20' ) start [2025-04-02 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819151', 'tblTempVendorCDR_20' ) end [2025-04-02 15:39:21] Production.INFO: ProcessCDR(1,14819151,1,1,2) [2025-04-02 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819151', 'tblTempUsageDetail_20' ) start [2025-04-02 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819151', 'tblTempUsageDetail_20' ) end [2025-04-02 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:39:27] Production.INFO: ==15605== Releasing lock... [2025-04-02 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:39:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:40:06 [end_date_ymd] => 2025-04-02 15:40:06 [RateCDR] => 1 ) [2025-04-02 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:40:06' and `end` < '2025-04-02 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:40:20] Production.INFO: count ==4765 [2025-04-02 15:40:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:40:06 - End Time 2025-04-02 15:40:06 [2025-04-02 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819156', 'tblTempUsageDetail_20' ) start [2025-04-02 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819156', 'tblTempUsageDetail_20' ) end [2025-04-02 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819156', 'tblTempVendorCDR_20' ) start [2025-04-02 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819156', 'tblTempVendorCDR_20' ) end [2025-04-02 15:40:22] Production.INFO: ProcessCDR(1,14819156,1,1,2) [2025-04-02 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819156', 'tblTempUsageDetail_20' ) start [2025-04-02 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819156', 'tblTempUsageDetail_20' ) end [2025-04-02 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:40:27] Production.INFO: ==15678== Releasing lock... [2025-04-02 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:40:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:41:06 [end_date_ymd] => 2025-04-02 15:41:06 [RateCDR] => 1 ) [2025-04-02 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:41:06' and `end` < '2025-04-02 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:41:20] Production.INFO: count ==4750 [2025-04-02 15:41:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:41:06 - End Time 2025-04-02 15:41:06 [2025-04-02 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819162', 'tblTempUsageDetail_20' ) start [2025-04-02 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819162', 'tblTempUsageDetail_20' ) end [2025-04-02 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819162', 'tblTempVendorCDR_20' ) start [2025-04-02 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819162', 'tblTempVendorCDR_20' ) end [2025-04-02 15:41:22] Production.INFO: ProcessCDR(1,14819162,1,1,2) [2025-04-02 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819162', 'tblTempUsageDetail_20' ) start [2025-04-02 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819162', 'tblTempUsageDetail_20' ) end [2025-04-02 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:41:28] Production.INFO: ==15754== Releasing lock... [2025-04-02 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:41:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:42:05 [end_date_ymd] => 2025-04-02 15:42:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:42:05' and `end` < '2025-04-02 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-04-02 15:42:19] Production.INFO: count ==4752 [2025-04-02 15:42:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:42:05 - End Time 2025-04-02 15:42:05 [2025-04-02 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819167', 'tblTempUsageDetail_20' ) start [2025-04-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819167', 'tblTempUsageDetail_20' ) end [2025-04-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819167', 'tblTempVendorCDR_20' ) start [2025-04-02 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819167', 'tblTempVendorCDR_20' ) end [2025-04-02 15:42:21] Production.INFO: ProcessCDR(1,14819167,1,1,2) [2025-04-02 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819167', 'tblTempUsageDetail_20' ) start [2025-04-02 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819167', 'tblTempUsageDetail_20' ) end [2025-04-02 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:42:27] Production.INFO: ==15827== Releasing lock... [2025-04-02 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:42:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:43:06 [end_date_ymd] => 2025-04-02 15:43:06 [RateCDR] => 1 ) [2025-04-02 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:43:06' and `end` < '2025-04-02 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:43:20] Production.INFO: count ==4767 [2025-04-02 15:43:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:43:06 - End Time 2025-04-02 15:43:06 [2025-04-02 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819172', 'tblTempUsageDetail_20' ) start [2025-04-02 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819172', 'tblTempUsageDetail_20' ) end [2025-04-02 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819172', 'tblTempVendorCDR_20' ) start [2025-04-02 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819172', 'tblTempVendorCDR_20' ) end [2025-04-02 15:43:22] Production.INFO: ProcessCDR(1,14819172,1,1,2) [2025-04-02 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819172', 'tblTempUsageDetail_20' ) start [2025-04-02 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819172', 'tblTempUsageDetail_20' ) end [2025-04-02 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:43:27] Production.INFO: ==15903== Releasing lock... [2025-04-02 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:43:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-02 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:44:06 [end_date_ymd] => 2025-04-02 15:44:06 [RateCDR] => 1 ) [2025-04-02 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:44:06' and `end` < '2025-04-02 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:44:19] Production.INFO: count ==4794 [2025-04-02 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:44:06 - End Time 2025-04-02 15:44:06 [2025-04-02 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819177', 'tblTempUsageDetail_20' ) start [2025-04-02 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819177', 'tblTempUsageDetail_20' ) end [2025-04-02 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819177', 'tblTempVendorCDR_20' ) start [2025-04-02 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819177', 'tblTempVendorCDR_20' ) end [2025-04-02 15:44:21] Production.INFO: ProcessCDR(1,14819177,1,1,2) [2025-04-02 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819177', 'tblTempUsageDetail_20' ) start [2025-04-02 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819177', 'tblTempUsageDetail_20' ) end [2025-04-02 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:44:27] Production.INFO: ==15974== Releasing lock... [2025-04-02 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:44:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:45:06 [end_date_ymd] => 2025-04-02 15:45:06 [RateCDR] => 1 ) [2025-04-02 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:45:06' and `end` < '2025-04-02 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:45:19] Production.INFO: count ==4856 [2025-04-02 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:45:06 - End Time 2025-04-02 15:45:06 [2025-04-02 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819182', 'tblTempUsageDetail_20' ) start [2025-04-02 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819182', 'tblTempUsageDetail_20' ) end [2025-04-02 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819182', 'tblTempVendorCDR_20' ) start [2025-04-02 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819182', 'tblTempVendorCDR_20' ) end [2025-04-02 15:45:21] Production.INFO: ProcessCDR(1,14819182,1,1,2) [2025-04-02 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819182', 'tblTempUsageDetail_20' ) start [2025-04-02 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819182', 'tblTempUsageDetail_20' ) end [2025-04-02 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:45:27] Production.INFO: ==16083== Releasing lock... [2025-04-02 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:45:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-02 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:46:06 [end_date_ymd] => 2025-04-02 15:46:06 [RateCDR] => 1 ) [2025-04-02 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:46:06' and `end` < '2025-04-02 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:46:20] Production.INFO: count ==4879 [2025-04-02 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:46:06 - End Time 2025-04-02 15:46:06 [2025-04-02 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819187', 'tblTempUsageDetail_20' ) start [2025-04-02 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819187', 'tblTempUsageDetail_20' ) end [2025-04-02 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819187', 'tblTempVendorCDR_20' ) start [2025-04-02 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819187', 'tblTempVendorCDR_20' ) end [2025-04-02 15:46:22] Production.INFO: ProcessCDR(1,14819187,1,1,2) [2025-04-02 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819187', 'tblTempUsageDetail_20' ) start [2025-04-02 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819187', 'tblTempUsageDetail_20' ) end [2025-04-02 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:46:28] Production.INFO: ==16153== Releasing lock... [2025-04-02 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:46:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:47:05 [end_date_ymd] => 2025-04-02 15:47:05 [RateCDR] => 1 ) [2025-04-02 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:47:05' and `end` < '2025-04-02 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:47:19] Production.INFO: count ==4908 [2025-04-02 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:47:05 - End Time 2025-04-02 15:47:05 [2025-04-02 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819192', 'tblTempUsageDetail_20' ) start [2025-04-02 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819192', 'tblTempUsageDetail_20' ) end [2025-04-02 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819192', 'tblTempVendorCDR_20' ) start [2025-04-02 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819192', 'tblTempVendorCDR_20' ) end [2025-04-02 15:47:22] Production.INFO: ProcessCDR(1,14819192,1,1,2) [2025-04-02 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819192', 'tblTempUsageDetail_20' ) start [2025-04-02 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819192', 'tblTempUsageDetail_20' ) end [2025-04-02 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:47:27] Production.INFO: ==16223== Releasing lock... [2025-04-02 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:47:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:48:05 [end_date_ymd] => 2025-04-02 15:48:05 [RateCDR] => 1 ) [2025-04-02 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:48:05' and `end` < '2025-04-02 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:48:19] Production.INFO: count ==4918 [2025-04-02 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:48:05 - End Time 2025-04-02 15:48:05 [2025-04-02 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819197', 'tblTempUsageDetail_20' ) start [2025-04-02 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819197', 'tblTempUsageDetail_20' ) end [2025-04-02 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819197', 'tblTempVendorCDR_20' ) start [2025-04-02 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819197', 'tblTempVendorCDR_20' ) end [2025-04-02 15:48:21] Production.INFO: ProcessCDR(1,14819197,1,1,2) [2025-04-02 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819197', 'tblTempUsageDetail_20' ) start [2025-04-02 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819197', 'tblTempUsageDetail_20' ) end [2025-04-02 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:48:27] Production.INFO: ==16297== Releasing lock... [2025-04-02 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:48:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:49:05 [end_date_ymd] => 2025-04-02 15:49:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:49:05' and `end` < '2025-04-02 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-04-02 15:49:19] Production.INFO: count ==4957 [2025-04-02 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:49:05 - End Time 2025-04-02 15:49:05 [2025-04-02 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819202', 'tblTempUsageDetail_20' ) start [2025-04-02 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819202', 'tblTempUsageDetail_20' ) end [2025-04-02 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819202', 'tblTempVendorCDR_20' ) start [2025-04-02 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819202', 'tblTempVendorCDR_20' ) end [2025-04-02 15:49:22] Production.INFO: ProcessCDR(1,14819202,1,1,2) [2025-04-02 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819202', 'tblTempUsageDetail_20' ) start [2025-04-02 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819202', 'tblTempUsageDetail_20' ) end [2025-04-02 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:49:27] Production.INFO: ==16372== Releasing lock... [2025-04-02 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:49:27] Production.INFO: 65 MB #Memory Used# [2025-04-02 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:50:06 [end_date_ymd] => 2025-04-02 15:50:06 [RateCDR] => 1 ) [2025-04-02 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:50:06' and `end` < '2025-04-02 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:50:20] Production.INFO: count ==4941 [2025-04-02 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:50:06 - End Time 2025-04-02 15:50:06 [2025-04-02 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819208', 'tblTempUsageDetail_20' ) start [2025-04-02 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819208', 'tblTempUsageDetail_20' ) end [2025-04-02 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819208', 'tblTempVendorCDR_20' ) start [2025-04-02 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819208', 'tblTempVendorCDR_20' ) end [2025-04-02 15:50:22] Production.INFO: ProcessCDR(1,14819208,1,1,2) [2025-04-02 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819208', 'tblTempUsageDetail_20' ) start [2025-04-02 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819208', 'tblTempUsageDetail_20' ) end [2025-04-02 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:50:28] Production.INFO: ==16449== Releasing lock... [2025-04-02 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:50:28] Production.INFO: 65 MB #Memory Used# [2025-04-02 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:51:05 [end_date_ymd] => 2025-04-02 15:51:05 [RateCDR] => 1 ) [2025-04-02 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:51:05' and `end` < '2025-04-02 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:51:19] Production.INFO: count ==4988 [2025-04-02 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:51:05 - End Time 2025-04-02 15:51:05 [2025-04-02 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819213', 'tblTempUsageDetail_20' ) start [2025-04-02 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819213', 'tblTempUsageDetail_20' ) end [2025-04-02 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819213', 'tblTempVendorCDR_20' ) start [2025-04-02 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819213', 'tblTempVendorCDR_20' ) end [2025-04-02 15:51:21] Production.INFO: ProcessCDR(1,14819213,1,1,2) [2025-04-02 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819213', 'tblTempUsageDetail_20' ) start [2025-04-02 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819213', 'tblTempUsageDetail_20' ) end [2025-04-02 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:51:27] Production.INFO: ==16524== Releasing lock... [2025-04-02 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:51:27] Production.INFO: 65.25 MB #Memory Used# [2025-04-02 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:52:06 [end_date_ymd] => 2025-04-02 15:52:06 [RateCDR] => 1 ) [2025-04-02 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:52:06' and `end` < '2025-04-02 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:52:19] Production.INFO: count ==5010 [2025-04-02 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:52:06 - End Time 2025-04-02 15:52:06 [2025-04-02 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819218', 'tblTempUsageDetail_20' ) start [2025-04-02 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819218', 'tblTempUsageDetail_20' ) end [2025-04-02 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819218', 'tblTempVendorCDR_20' ) start [2025-04-02 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819218', 'tblTempVendorCDR_20' ) end [2025-04-02 15:52:22] Production.INFO: ProcessCDR(1,14819218,1,1,2) [2025-04-02 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819218', 'tblTempUsageDetail_20' ) start [2025-04-02 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819218', 'tblTempUsageDetail_20' ) end [2025-04-02 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:52:27] Production.INFO: ==16595== Releasing lock... [2025-04-02 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:52:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:53:06 [end_date_ymd] => 2025-04-02 15:53:06 [RateCDR] => 1 ) [2025-04-02 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:53:06' and `end` < '2025-04-02 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:53:19] Production.INFO: count ==5004 [2025-04-02 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:53:06 - End Time 2025-04-02 15:53:06 [2025-04-02 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819223', 'tblTempUsageDetail_20' ) start [2025-04-02 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819223', 'tblTempUsageDetail_20' ) end [2025-04-02 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819223', 'tblTempVendorCDR_20' ) start [2025-04-02 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819223', 'tblTempVendorCDR_20' ) end [2025-04-02 15:53:21] Production.INFO: ProcessCDR(1,14819223,1,1,2) [2025-04-02 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819223', 'tblTempUsageDetail_20' ) start [2025-04-02 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819223', 'tblTempUsageDetail_20' ) end [2025-04-02 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:53:27] Production.INFO: ==16671== Releasing lock... [2025-04-02 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:53:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:54:05 [end_date_ymd] => 2025-04-02 15:54:05 [RateCDR] => 1 ) [2025-04-02 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:54:05' and `end` < '2025-04-02 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:54:19] Production.INFO: count ==5020 [2025-04-02 15:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:54:05 - End Time 2025-04-02 15:54:05 [2025-04-02 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819228', 'tblTempUsageDetail_20' ) start [2025-04-02 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819228', 'tblTempUsageDetail_20' ) end [2025-04-02 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819228', 'tblTempVendorCDR_20' ) start [2025-04-02 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819228', 'tblTempVendorCDR_20' ) end [2025-04-02 15:54:21] Production.INFO: ProcessCDR(1,14819228,1,1,2) [2025-04-02 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819228', 'tblTempUsageDetail_20' ) start [2025-04-02 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819228', 'tblTempUsageDetail_20' ) end [2025-04-02 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:54:26] Production.INFO: ==16742== Releasing lock... [2025-04-02 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:54:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:55:06 [end_date_ymd] => 2025-04-02 15:55:06 [RateCDR] => 1 ) [2025-04-02 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:55:06' and `end` < '2025-04-02 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:55:19] Production.INFO: count ==5052 [2025-04-02 15:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:55:06 - End Time 2025-04-02 15:55:06 [2025-04-02 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819233', 'tblTempUsageDetail_20' ) start [2025-04-02 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819233', 'tblTempUsageDetail_20' ) end [2025-04-02 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819233', 'tblTempVendorCDR_20' ) start [2025-04-02 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819233', 'tblTempVendorCDR_20' ) end [2025-04-02 15:55:22] Production.INFO: ProcessCDR(1,14819233,1,1,2) [2025-04-02 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819233', 'tblTempUsageDetail_20' ) start [2025-04-02 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819233', 'tblTempUsageDetail_20' ) end [2025-04-02 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:55:27] Production.INFO: ==16814== Releasing lock... [2025-04-02 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:55:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:56:05 [end_date_ymd] => 2025-04-02 15:56:05 [RateCDR] => 1 ) [2025-04-02 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:56:05' and `end` < '2025-04-02 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:56:18] Production.INFO: count ==5060 [2025-04-02 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:56:05 - End Time 2025-04-02 15:56:05 [2025-04-02 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819238', 'tblTempUsageDetail_20' ) start [2025-04-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819238', 'tblTempUsageDetail_20' ) end [2025-04-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819238', 'tblTempVendorCDR_20' ) start [2025-04-02 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819238', 'tblTempVendorCDR_20' ) end [2025-04-02 15:56:21] Production.INFO: ProcessCDR(1,14819238,1,1,2) [2025-04-02 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819238', 'tblTempUsageDetail_20' ) start [2025-04-02 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819238', 'tblTempUsageDetail_20' ) end [2025-04-02 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:56:26] Production.INFO: ==16886== Releasing lock... [2025-04-02 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:56:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:57:06 [end_date_ymd] => 2025-04-02 15:57:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 12:57:06' and `end` < '2025-04-02 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-04-02 15:57:19] Production.INFO: count ==5060 [2025-04-02 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:57:06 - End Time 2025-04-02 15:57:06 [2025-04-02 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819243', 'tblTempUsageDetail_20' ) start [2025-04-02 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819243', 'tblTempUsageDetail_20' ) end [2025-04-02 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819243', 'tblTempVendorCDR_20' ) start [2025-04-02 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819243', 'tblTempVendorCDR_20' ) end [2025-04-02 15:57:22] Production.INFO: ProcessCDR(1,14819243,1,1,2) [2025-04-02 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819243', 'tblTempUsageDetail_20' ) start [2025-04-02 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819243', 'tblTempUsageDetail_20' ) end [2025-04-02 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:57:27] Production.INFO: ==16959== Releasing lock... [2025-04-02 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:57:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:58:06 [end_date_ymd] => 2025-04-02 15:58:06 [RateCDR] => 1 ) [2025-04-02 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:58:06' and `end` < '2025-04-02 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:58:20] Production.INFO: count ==5070 [2025-04-02 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-02 12:58:06 - End Time 2025-04-02 15:58:06 [2025-04-02 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819248', 'tblTempUsageDetail_20' ) start [2025-04-02 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819248', 'tblTempUsageDetail_20' ) end [2025-04-02 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819248', 'tblTempVendorCDR_20' ) start [2025-04-02 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819248', 'tblTempVendorCDR_20' ) end [2025-04-02 15:58:22] Production.INFO: ProcessCDR(1,14819248,1,1,2) [2025-04-02 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819248', 'tblTempUsageDetail_20' ) start [2025-04-02 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819248', 'tblTempUsageDetail_20' ) end [2025-04-02 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:58:27] Production.INFO: ==17029== Releasing lock... [2025-04-02 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:58:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 12:59:05 [end_date_ymd] => 2025-04-02 15:59:05 [RateCDR] => 1 ) [2025-04-02 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 12:59:05' and `end` < '2025-04-02 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 15:59:19] Production.INFO: count ==5062 [2025-04-02 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-02 12:59:05 - End Time 2025-04-02 15:59:05 [2025-04-02 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819253', 'tblTempUsageDetail_20' ) start [2025-04-02 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819253', 'tblTempUsageDetail_20' ) end [2025-04-02 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819253', 'tblTempVendorCDR_20' ) start [2025-04-02 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819253', 'tblTempVendorCDR_20' ) end [2025-04-02 15:59:21] Production.INFO: ProcessCDR(1,14819253,1,1,2) [2025-04-02 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819253', 'tblTempUsageDetail_20' ) start [2025-04-02 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819253', 'tblTempUsageDetail_20' ) end [2025-04-02 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 15:59:26] Production.INFO: ==17099== Releasing lock... [2025-04-02 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 15:59:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:00:06 [end_date_ymd] => 2025-04-02 16:00:06 [RateCDR] => 1 ) [2025-04-02 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:00:06' and `end` < '2025-04-02 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:00:20] Production.INFO: count ==5060 [2025-04-02 16:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:00:06 - End Time 2025-04-02 16:00:06 [2025-04-02 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819259', 'tblTempUsageDetail_20' ) start [2025-04-02 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819259', 'tblTempUsageDetail_20' ) end [2025-04-02 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819259', 'tblTempVendorCDR_20' ) start [2025-04-02 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819259', 'tblTempVendorCDR_20' ) end [2025-04-02 16:00:22] Production.INFO: ProcessCDR(1,14819259,1,1,2) [2025-04-02 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819259', 'tblTempUsageDetail_20' ) start [2025-04-02 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819259', 'tblTempUsageDetail_20' ) end [2025-04-02 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:00:27] Production.INFO: ==17175== Releasing lock... [2025-04-02 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:01:05 [end_date_ymd] => 2025-04-02 16:01:05 [RateCDR] => 1 ) [2025-04-02 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:01:05' and `end` < '2025-04-02 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:01:19] Production.INFO: count ==5104 [2025-04-02 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:01:05 - End Time 2025-04-02 16:01:05 [2025-04-02 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819264', 'tblTempUsageDetail_20' ) start [2025-04-02 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819264', 'tblTempUsageDetail_20' ) end [2025-04-02 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819264', 'tblTempVendorCDR_20' ) start [2025-04-02 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819264', 'tblTempVendorCDR_20' ) end [2025-04-02 16:01:21] Production.INFO: ProcessCDR(1,14819264,1,1,2) [2025-04-02 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819264', 'tblTempUsageDetail_20' ) start [2025-04-02 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819264', 'tblTempUsageDetail_20' ) end [2025-04-02 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:01:27] Production.INFO: ==17299== Releasing lock... [2025-04-02 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:01:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:02:06 [end_date_ymd] => 2025-04-02 16:02:06 [RateCDR] => 1 ) [2025-04-02 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:02:06' and `end` < '2025-04-02 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:02:20] Production.INFO: count ==5127 [2025-04-02 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:02:06 - End Time 2025-04-02 16:02:06 [2025-04-02 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819269', 'tblTempUsageDetail_20' ) start [2025-04-02 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819269', 'tblTempUsageDetail_20' ) end [2025-04-02 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819269', 'tblTempVendorCDR_20' ) start [2025-04-02 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819269', 'tblTempVendorCDR_20' ) end [2025-04-02 16:02:22] Production.INFO: ProcessCDR(1,14819269,1,1,2) [2025-04-02 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819269', 'tblTempUsageDetail_20' ) start [2025-04-02 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819269', 'tblTempUsageDetail_20' ) end [2025-04-02 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:02:28] Production.INFO: ==17372== Releasing lock... [2025-04-02 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:02:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:03:05 [end_date_ymd] => 2025-04-02 16:03:05 [RateCDR] => 1 ) [2025-04-02 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:03:05' and `end` < '2025-04-02 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:03:19] Production.INFO: count ==5115 [2025-04-02 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:03:05 - End Time 2025-04-02 16:03:05 [2025-04-02 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819274', 'tblTempUsageDetail_20' ) start [2025-04-02 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819274', 'tblTempUsageDetail_20' ) end [2025-04-02 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819274', 'tblTempVendorCDR_20' ) start [2025-04-02 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819274', 'tblTempVendorCDR_20' ) end [2025-04-02 16:03:21] Production.INFO: ProcessCDR(1,14819274,1,1,2) [2025-04-02 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819274', 'tblTempUsageDetail_20' ) start [2025-04-02 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819274', 'tblTempUsageDetail_20' ) end [2025-04-02 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:03:27] Production.INFO: ==17455== Releasing lock... [2025-04-02 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:03:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:04:05 [end_date_ymd] => 2025-04-02 16:04:05 [RateCDR] => 1 ) [2025-04-02 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:04:05' and `end` < '2025-04-02 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:04:19] Production.INFO: count ==5109 [2025-04-02 16:04:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:04:05 - End Time 2025-04-02 16:04:05 [2025-04-02 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819279', 'tblTempUsageDetail_20' ) start [2025-04-02 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819279', 'tblTempUsageDetail_20' ) end [2025-04-02 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819279', 'tblTempVendorCDR_20' ) start [2025-04-02 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819279', 'tblTempVendorCDR_20' ) end [2025-04-02 16:04:21] Production.INFO: ProcessCDR(1,14819279,1,1,2) [2025-04-02 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819279', 'tblTempUsageDetail_20' ) start [2025-04-02 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819279', 'tblTempUsageDetail_20' ) end [2025-04-02 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:04:27] Production.INFO: ==17532== Releasing lock... [2025-04-02 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:05:05 [end_date_ymd] => 2025-04-02 16:05:05 [RateCDR] => 1 ) [2025-04-02 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:05:05' and `end` < '2025-04-02 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:05:19] Production.INFO: count ==5111 [2025-04-02 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:05:05 - End Time 2025-04-02 16:05:05 [2025-04-02 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819284', 'tblTempUsageDetail_20' ) start [2025-04-02 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819284', 'tblTempUsageDetail_20' ) end [2025-04-02 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819284', 'tblTempVendorCDR_20' ) start [2025-04-02 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819284', 'tblTempVendorCDR_20' ) end [2025-04-02 16:05:21] Production.INFO: ProcessCDR(1,14819284,1,1,2) [2025-04-02 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819284', 'tblTempUsageDetail_20' ) start [2025-04-02 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819284', 'tblTempUsageDetail_20' ) end [2025-04-02 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:05:26] Production.INFO: ==17608== Releasing lock... [2025-04-02 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:05:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:06:05 [end_date_ymd] => 2025-04-02 16:06:05 [RateCDR] => 1 ) [2025-04-02 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:06:05' and `end` < '2025-04-02 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:06:19] Production.INFO: count ==5112 [2025-04-02 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:06:05 - End Time 2025-04-02 16:06:05 [2025-04-02 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819289', 'tblTempUsageDetail_20' ) start [2025-04-02 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819289', 'tblTempUsageDetail_20' ) end [2025-04-02 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819289', 'tblTempVendorCDR_20' ) start [2025-04-02 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819289', 'tblTempVendorCDR_20' ) end [2025-04-02 16:06:21] Production.INFO: ProcessCDR(1,14819289,1,1,2) [2025-04-02 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819289', 'tblTempUsageDetail_20' ) start [2025-04-02 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819289', 'tblTempUsageDetail_20' ) end [2025-04-02 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:06:27] Production.INFO: ==17680== Releasing lock... [2025-04-02 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:06:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:07:06 [end_date_ymd] => 2025-04-02 16:07:06 [RateCDR] => 1 ) [2025-04-02 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:07:06' and `end` < '2025-04-02 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:07:19] Production.INFO: count ==5112 [2025-04-02 16:07:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:07:06 - End Time 2025-04-02 16:07:06 [2025-04-02 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819294', 'tblTempUsageDetail_20' ) start [2025-04-02 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819294', 'tblTempUsageDetail_20' ) end [2025-04-02 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819294', 'tblTempVendorCDR_20' ) start [2025-04-02 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819294', 'tblTempVendorCDR_20' ) end [2025-04-02 16:07:22] Production.INFO: ProcessCDR(1,14819294,1,1,2) [2025-04-02 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819294', 'tblTempUsageDetail_20' ) start [2025-04-02 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819294', 'tblTempUsageDetail_20' ) end [2025-04-02 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:07:27] Production.INFO: ==17750== Releasing lock... [2025-04-02 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:07:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:08:06 [end_date_ymd] => 2025-04-02 16:08:06 [RateCDR] => 1 ) [2025-04-02 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:08:06' and `end` < '2025-04-02 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:08:20] Production.INFO: count ==5096 [2025-04-02 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:08:06 - End Time 2025-04-02 16:08:06 [2025-04-02 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819299', 'tblTempUsageDetail_20' ) start [2025-04-02 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819299', 'tblTempUsageDetail_20' ) end [2025-04-02 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819299', 'tblTempVendorCDR_20' ) start [2025-04-02 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819299', 'tblTempVendorCDR_20' ) end [2025-04-02 16:08:22] Production.INFO: ProcessCDR(1,14819299,1,1,2) [2025-04-02 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819299', 'tblTempUsageDetail_20' ) start [2025-04-02 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819299', 'tblTempUsageDetail_20' ) end [2025-04-02 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:08:28] Production.INFO: ==17823== Releasing lock... [2025-04-02 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:08:28] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:09:05 [end_date_ymd] => 2025-04-02 16:09:05 [RateCDR] => 1 ) [2025-04-02 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:09:05' and `end` < '2025-04-02 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:09:19] Production.INFO: count ==5078 [2025-04-02 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:09:05 - End Time 2025-04-02 16:09:05 [2025-04-02 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819304', 'tblTempUsageDetail_20' ) start [2025-04-02 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819304', 'tblTempUsageDetail_20' ) end [2025-04-02 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819304', 'tblTempVendorCDR_20' ) start [2025-04-02 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819304', 'tblTempVendorCDR_20' ) end [2025-04-02 16:09:21] Production.INFO: ProcessCDR(1,14819304,1,1,2) [2025-04-02 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819304', 'tblTempUsageDetail_20' ) start [2025-04-02 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819304', 'tblTempUsageDetail_20' ) end [2025-04-02 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:09:26] Production.INFO: ==17893== Releasing lock... [2025-04-02 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:09:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:10:06 [end_date_ymd] => 2025-04-02 16:10:06 [RateCDR] => 1 ) [2025-04-02 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:10:06' and `end` < '2025-04-02 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:10:19] Production.INFO: count ==5064 [2025-04-02 16:10:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:10:06 - End Time 2025-04-02 16:10:06 [2025-04-02 16:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819310', 'tblTempUsageDetail_20' ) start [2025-04-02 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819310', 'tblTempUsageDetail_20' ) end [2025-04-02 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819310', 'tblTempVendorCDR_20' ) start [2025-04-02 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819310', 'tblTempVendorCDR_20' ) end [2025-04-02 16:10:22] Production.INFO: ProcessCDR(1,14819310,1,1,2) [2025-04-02 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819310', 'tblTempUsageDetail_20' ) start [2025-04-02 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819310', 'tblTempUsageDetail_20' ) end [2025-04-02 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:10:27] Production.INFO: ==17969== Releasing lock... [2025-04-02 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:10:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:11:06 [end_date_ymd] => 2025-04-02 16:11:06 [RateCDR] => 1 ) [2025-04-02 16:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:11:06' and `end` < '2025-04-02 16:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:11:19] Production.INFO: count ==5054 [2025-04-02 16:11:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:11:06 - End Time 2025-04-02 16:11:06 [2025-04-02 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819315', 'tblTempUsageDetail_20' ) start [2025-04-02 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819315', 'tblTempUsageDetail_20' ) end [2025-04-02 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819315', 'tblTempVendorCDR_20' ) start [2025-04-02 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819315', 'tblTempVendorCDR_20' ) end [2025-04-02 16:11:22] Production.INFO: ProcessCDR(1,14819315,1,1,2) [2025-04-02 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819315', 'tblTempUsageDetail_20' ) start [2025-04-02 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819315', 'tblTempUsageDetail_20' ) end [2025-04-02 16:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:11:25] Production.INFO: ==18042== Releasing lock... [2025-04-02 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:11:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:12:06 [end_date_ymd] => 2025-04-02 16:12:06 [RateCDR] => 1 ) [2025-04-02 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:12:06' and `end` < '2025-04-02 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:12:20] Production.INFO: count ==5053 [2025-04-02 16:12:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:12:06 - End Time 2025-04-02 16:12:06 [2025-04-02 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819320', 'tblTempUsageDetail_20' ) start [2025-04-02 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819320', 'tblTempUsageDetail_20' ) end [2025-04-02 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819320', 'tblTempVendorCDR_20' ) start [2025-04-02 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819320', 'tblTempVendorCDR_20' ) end [2025-04-02 16:12:22] Production.INFO: ProcessCDR(1,14819320,1,1,2) [2025-04-02 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819320', 'tblTempUsageDetail_20' ) start [2025-04-02 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819320', 'tblTempUsageDetail_20' ) end [2025-04-02 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:12:28] Production.INFO: ==18112== Releasing lock... [2025-04-02 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:12:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:13:05 [end_date_ymd] => 2025-04-02 16:13:05 [RateCDR] => 1 ) [2025-04-02 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:13:05' and `end` < '2025-04-02 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:13:19] Production.INFO: count ==5038 [2025-04-02 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:13:05 - End Time 2025-04-02 16:13:05 [2025-04-02 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819325', 'tblTempUsageDetail_20' ) start [2025-04-02 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819325', 'tblTempUsageDetail_20' ) end [2025-04-02 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819325', 'tblTempVendorCDR_20' ) start [2025-04-02 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819325', 'tblTempVendorCDR_20' ) end [2025-04-02 16:13:21] Production.INFO: ProcessCDR(1,14819325,1,1,2) [2025-04-02 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819325', 'tblTempUsageDetail_20' ) start [2025-04-02 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819325', 'tblTempUsageDetail_20' ) end [2025-04-02 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:13:26] Production.INFO: ==18186== Releasing lock... [2025-04-02 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:13:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:14:06 [end_date_ymd] => 2025-04-02 16:14:06 [RateCDR] => 1 ) [2025-04-02 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:14:06' and `end` < '2025-04-02 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:14:19] Production.INFO: count ==5021 [2025-04-02 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:14:06 - End Time 2025-04-02 16:14:06 [2025-04-02 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819330', 'tblTempUsageDetail_20' ) start [2025-04-02 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819330', 'tblTempUsageDetail_20' ) end [2025-04-02 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819330', 'tblTempVendorCDR_20' ) start [2025-04-02 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819330', 'tblTempVendorCDR_20' ) end [2025-04-02 16:14:21] Production.INFO: ProcessCDR(1,14819330,1,1,2) [2025-04-02 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819330', 'tblTempUsageDetail_20' ) start [2025-04-02 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819330', 'tblTempUsageDetail_20' ) end [2025-04-02 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:14:27] Production.INFO: ==18257== Releasing lock... [2025-04-02 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:14:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:15:05 [end_date_ymd] => 2025-04-02 16:15:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:15:05' and `end` < '2025-04-02 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-04-02 16:15:19] Production.INFO: count ==5046 [2025-04-02 16:15:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:15:05 - End Time 2025-04-02 16:15:05 [2025-04-02 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819335', 'tblTempUsageDetail_20' ) start [2025-04-02 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819335', 'tblTempUsageDetail_20' ) end [2025-04-02 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819335', 'tblTempVendorCDR_20' ) start [2025-04-02 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819335', 'tblTempVendorCDR_20' ) end [2025-04-02 16:15:21] Production.INFO: ProcessCDR(1,14819335,1,1,2) [2025-04-02 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819335', 'tblTempUsageDetail_20' ) start [2025-04-02 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819335', 'tblTempUsageDetail_20' ) end [2025-04-02 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:15:26] Production.INFO: ==18331== Releasing lock... [2025-04-02 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:15:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:16:06 [end_date_ymd] => 2025-04-02 16:16:06 [RateCDR] => 1 ) [2025-04-02 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:16:06' and `end` < '2025-04-02 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:16:20] Production.INFO: count ==5067 [2025-04-02 16:16:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:16:06 - End Time 2025-04-02 16:16:06 [2025-04-02 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819340', 'tblTempUsageDetail_20' ) start [2025-04-02 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819340', 'tblTempUsageDetail_20' ) end [2025-04-02 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819340', 'tblTempVendorCDR_20' ) start [2025-04-02 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819340', 'tblTempVendorCDR_20' ) end [2025-04-02 16:16:22] Production.INFO: ProcessCDR(1,14819340,1,1,2) [2025-04-02 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819340', 'tblTempUsageDetail_20' ) start [2025-04-02 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819340', 'tblTempUsageDetail_20' ) end [2025-04-02 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:16:28] Production.INFO: ==18444== Releasing lock... [2025-04-02 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:16:28] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:17:05 [end_date_ymd] => 2025-04-02 16:17:05 [RateCDR] => 1 ) [2025-04-02 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:17:05' and `end` < '2025-04-02 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:17:19] Production.INFO: count ==5083 [2025-04-02 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:17:05 - End Time 2025-04-02 16:17:05 [2025-04-02 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819345', 'tblTempUsageDetail_20' ) start [2025-04-02 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819345', 'tblTempUsageDetail_20' ) end [2025-04-02 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819345', 'tblTempVendorCDR_20' ) start [2025-04-02 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819345', 'tblTempVendorCDR_20' ) end [2025-04-02 16:17:21] Production.INFO: ProcessCDR(1,14819345,1,1,2) [2025-04-02 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819345', 'tblTempUsageDetail_20' ) start [2025-04-02 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819345', 'tblTempUsageDetail_20' ) end [2025-04-02 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:17:26] Production.INFO: ==18514== Releasing lock... [2025-04-02 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:17:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:18:05 [end_date_ymd] => 2025-04-02 16:18:05 [RateCDR] => 1 ) [2025-04-02 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:18:05' and `end` < '2025-04-02 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:18:19] Production.INFO: count ==5090 [2025-04-02 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:18:05 - End Time 2025-04-02 16:18:05 [2025-04-02 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819350', 'tblTempUsageDetail_20' ) start [2025-04-02 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819350', 'tblTempUsageDetail_20' ) end [2025-04-02 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819350', 'tblTempVendorCDR_20' ) start [2025-04-02 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819350', 'tblTempVendorCDR_20' ) end [2025-04-02 16:18:21] Production.INFO: ProcessCDR(1,14819350,1,1,2) [2025-04-02 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819350', 'tblTempUsageDetail_20' ) start [2025-04-02 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819350', 'tblTempUsageDetail_20' ) end [2025-04-02 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:18:27] Production.INFO: ==18583== Releasing lock... [2025-04-02 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:18:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:19:05 [end_date_ymd] => 2025-04-02 16:19:05 [RateCDR] => 1 ) [2025-04-02 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:19:05' and `end` < '2025-04-02 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:19:19] Production.INFO: count ==5072 [2025-04-02 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:19:05 - End Time 2025-04-02 16:19:05 [2025-04-02 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819355', 'tblTempUsageDetail_20' ) start [2025-04-02 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819355', 'tblTempUsageDetail_20' ) end [2025-04-02 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819355', 'tblTempVendorCDR_20' ) start [2025-04-02 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819355', 'tblTempVendorCDR_20' ) end [2025-04-02 16:19:21] Production.INFO: ProcessCDR(1,14819355,1,1,2) [2025-04-02 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819355', 'tblTempUsageDetail_20' ) start [2025-04-02 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819355', 'tblTempUsageDetail_20' ) end [2025-04-02 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:19:27] Production.INFO: ==18661== Releasing lock... [2025-04-02 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:19:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:20:07 [end_date_ymd] => 2025-04-02 16:20:07 [RateCDR] => 1 ) [2025-04-02 16:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:20:07' and `end` < '2025-04-02 16:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:20:21] Production.INFO: count ==5065 [2025-04-02 16:20:23] Production.ERROR: pbx CDR StartTime 2025-04-02 13:20:07 - End Time 2025-04-02 16:20:07 [2025-04-02 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819361', 'tblTempUsageDetail_20' ) start [2025-04-02 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819361', 'tblTempUsageDetail_20' ) end [2025-04-02 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819361', 'tblTempVendorCDR_20' ) start [2025-04-02 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819361', 'tblTempVendorCDR_20' ) end [2025-04-02 16:20:23] Production.INFO: ProcessCDR(1,14819361,1,1,2) [2025-04-02 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819361', 'tblTempUsageDetail_20' ) start [2025-04-02 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819361', 'tblTempUsageDetail_20' ) end [2025-04-02 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:20:28] Production.INFO: ==18734== Releasing lock... [2025-04-02 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:20:28] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:21:06 [end_date_ymd] => 2025-04-02 16:21:06 [RateCDR] => 1 ) [2025-04-02 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:21:06' and `end` < '2025-04-02 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:21:20] Production.INFO: count ==5069 [2025-04-02 16:21:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:21:06 - End Time 2025-04-02 16:21:06 [2025-04-02 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819366', 'tblTempUsageDetail_20' ) start [2025-04-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819366', 'tblTempUsageDetail_20' ) end [2025-04-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819366', 'tblTempVendorCDR_20' ) start [2025-04-02 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819366', 'tblTempVendorCDR_20' ) end [2025-04-02 16:21:22] Production.INFO: ProcessCDR(1,14819366,1,1,2) [2025-04-02 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819366', 'tblTempUsageDetail_20' ) start [2025-04-02 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819366', 'tblTempUsageDetail_20' ) end [2025-04-02 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:21:28] Production.INFO: ==18812== Releasing lock... [2025-04-02 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:21:28] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:22:06 [end_date_ymd] => 2025-04-02 16:22:06 [RateCDR] => 1 ) [2025-04-02 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:22:06' and `end` < '2025-04-02 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:22:19] Production.INFO: count ==5061 [2025-04-02 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:22:06 - End Time 2025-04-02 16:22:06 [2025-04-02 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819371', 'tblTempUsageDetail_20' ) start [2025-04-02 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819371', 'tblTempUsageDetail_20' ) end [2025-04-02 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819371', 'tblTempVendorCDR_20' ) start [2025-04-02 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819371', 'tblTempVendorCDR_20' ) end [2025-04-02 16:22:22] Production.INFO: ProcessCDR(1,14819371,1,1,2) [2025-04-02 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819371', 'tblTempUsageDetail_20' ) start [2025-04-02 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819371', 'tblTempUsageDetail_20' ) end [2025-04-02 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:22:27] Production.INFO: ==18888== Releasing lock... [2025-04-02 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:22:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:23:05 [end_date_ymd] => 2025-04-02 16:23:05 [RateCDR] => 1 ) [2025-04-02 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:23:05' and `end` < '2025-04-02 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:23:19] Production.INFO: count ==5058 [2025-04-02 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:23:05 - End Time 2025-04-02 16:23:05 [2025-04-02 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819376', 'tblTempUsageDetail_20' ) start [2025-04-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819376', 'tblTempUsageDetail_20' ) end [2025-04-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819376', 'tblTempVendorCDR_20' ) start [2025-04-02 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819376', 'tblTempVendorCDR_20' ) end [2025-04-02 16:23:21] Production.INFO: ProcessCDR(1,14819376,1,1,2) [2025-04-02 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819376', 'tblTempUsageDetail_20' ) start [2025-04-02 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819376', 'tblTempUsageDetail_20' ) end [2025-04-02 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:23:26] Production.INFO: ==18960== Releasing lock... [2025-04-02 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:23:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:24:06 [end_date_ymd] => 2025-04-02 16:24:06 [RateCDR] => 1 ) [2025-04-02 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:24:06' and `end` < '2025-04-02 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:24:19] Production.INFO: count ==5065 [2025-04-02 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:24:06 - End Time 2025-04-02 16:24:06 [2025-04-02 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819381', 'tblTempUsageDetail_20' ) start [2025-04-02 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819381', 'tblTempUsageDetail_20' ) end [2025-04-02 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819381', 'tblTempVendorCDR_20' ) start [2025-04-02 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819381', 'tblTempVendorCDR_20' ) end [2025-04-02 16:24:22] Production.INFO: ProcessCDR(1,14819381,1,1,2) [2025-04-02 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819381', 'tblTempUsageDetail_20' ) start [2025-04-02 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819381', 'tblTempUsageDetail_20' ) end [2025-04-02 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:24:27] Production.INFO: ==19030== Releasing lock... [2025-04-02 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:24:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:25:06 [end_date_ymd] => 2025-04-02 16:25:06 [RateCDR] => 1 ) [2025-04-02 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:25:06' and `end` < '2025-04-02 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:25:19] Production.INFO: count ==5056 [2025-04-02 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:25:06 - End Time 2025-04-02 16:25:06 [2025-04-02 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819386', 'tblTempUsageDetail_20' ) start [2025-04-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819386', 'tblTempUsageDetail_20' ) end [2025-04-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819386', 'tblTempVendorCDR_20' ) start [2025-04-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819386', 'tblTempVendorCDR_20' ) end [2025-04-02 16:25:22] Production.INFO: ProcessCDR(1,14819386,1,1,2) [2025-04-02 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819386', 'tblTempUsageDetail_20' ) start [2025-04-02 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819386', 'tblTempUsageDetail_20' ) end [2025-04-02 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:25:27] Production.INFO: ==19105== Releasing lock... [2025-04-02 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:25:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:26:06 [end_date_ymd] => 2025-04-02 16:26:06 [RateCDR] => 1 ) [2025-04-02 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:26:06' and `end` < '2025-04-02 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:26:19] Production.INFO: count ==5054 [2025-04-02 16:26:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:26:06 - End Time 2025-04-02 16:26:06 [2025-04-02 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819391', 'tblTempUsageDetail_20' ) start [2025-04-02 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819391', 'tblTempUsageDetail_20' ) end [2025-04-02 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819391', 'tblTempVendorCDR_20' ) start [2025-04-02 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819391', 'tblTempVendorCDR_20' ) end [2025-04-02 16:26:21] Production.INFO: ProcessCDR(1,14819391,1,1,2) [2025-04-02 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819391', 'tblTempUsageDetail_20' ) start [2025-04-02 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819391', 'tblTempUsageDetail_20' ) end [2025-04-02 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:26:27] Production.INFO: ==19179== Releasing lock... [2025-04-02 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:26:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:27:05 [end_date_ymd] => 2025-04-02 16:27:05 [RateCDR] => 1 ) [2025-04-02 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:27:05' and `end` < '2025-04-02 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:27:19] Production.INFO: count ==5019 [2025-04-02 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:27:05 - End Time 2025-04-02 16:27:05 [2025-04-02 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819396', 'tblTempUsageDetail_20' ) start [2025-04-02 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819396', 'tblTempUsageDetail_20' ) end [2025-04-02 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819396', 'tblTempVendorCDR_20' ) start [2025-04-02 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819396', 'tblTempVendorCDR_20' ) end [2025-04-02 16:27:21] Production.INFO: ProcessCDR(1,14819396,1,1,2) [2025-04-02 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819396', 'tblTempUsageDetail_20' ) start [2025-04-02 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819396', 'tblTempUsageDetail_20' ) end [2025-04-02 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:27:26] Production.INFO: ==19250== Releasing lock... [2025-04-02 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:27:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:28:06 [end_date_ymd] => 2025-04-02 16:28:06 [RateCDR] => 1 ) [2025-04-02 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:28:06' and `end` < '2025-04-02 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:28:19] Production.INFO: count ==5005 [2025-04-02 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:28:06 - End Time 2025-04-02 16:28:06 [2025-04-02 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819401', 'tblTempUsageDetail_20' ) start [2025-04-02 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819401', 'tblTempUsageDetail_20' ) end [2025-04-02 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819401', 'tblTempVendorCDR_20' ) start [2025-04-02 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819401', 'tblTempVendorCDR_20' ) end [2025-04-02 16:28:21] Production.INFO: ProcessCDR(1,14819401,1,1,2) [2025-04-02 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819401', 'tblTempUsageDetail_20' ) start [2025-04-02 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819401', 'tblTempUsageDetail_20' ) end [2025-04-02 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:28:27] Production.INFO: ==19325== Releasing lock... [2025-04-02 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:28:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:29:05 [end_date_ymd] => 2025-04-02 16:29:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:29:05' and `end` < '2025-04-02 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-04-02 16:29:18] Production.INFO: count ==5011 [2025-04-02 16:29:20] Production.ERROR: pbx CDR StartTime 2025-04-02 13:29:05 - End Time 2025-04-02 16:29:05 [2025-04-02 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819406', 'tblTempUsageDetail_20' ) start [2025-04-02 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819406', 'tblTempUsageDetail_20' ) end [2025-04-02 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819406', 'tblTempVendorCDR_20' ) start [2025-04-02 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819406', 'tblTempVendorCDR_20' ) end [2025-04-02 16:29:21] Production.INFO: ProcessCDR(1,14819406,1,1,2) [2025-04-02 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819406', 'tblTempUsageDetail_20' ) start [2025-04-02 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819406', 'tblTempUsageDetail_20' ) end [2025-04-02 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:29:26] Production.INFO: ==19399== Releasing lock... [2025-04-02 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:29:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:30:06 [end_date_ymd] => 2025-04-02 16:30:06 [RateCDR] => 1 ) [2025-04-02 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:30:06' and `end` < '2025-04-02 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:30:20] Production.INFO: count ==5021 [2025-04-02 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:30:06 - End Time 2025-04-02 16:30:06 [2025-04-02 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819412', 'tblTempUsageDetail_20' ) start [2025-04-02 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819412', 'tblTempUsageDetail_20' ) end [2025-04-02 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819412', 'tblTempVendorCDR_20' ) start [2025-04-02 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819412', 'tblTempVendorCDR_20' ) end [2025-04-02 16:30:23] Production.INFO: ProcessCDR(1,14819412,1,1,2) [2025-04-02 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819412', 'tblTempUsageDetail_20' ) start [2025-04-02 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819412', 'tblTempUsageDetail_20' ) end [2025-04-02 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:30:28] Production.INFO: ==19472== Releasing lock... [2025-04-02 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:30:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:31:05 [end_date_ymd] => 2025-04-02 16:31:05 [RateCDR] => 1 ) [2025-04-02 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:31:05' and `end` < '2025-04-02 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:31:19] Production.INFO: count ==5027 [2025-04-02 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:31:05 - End Time 2025-04-02 16:31:05 [2025-04-02 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819417', 'tblTempUsageDetail_20' ) start [2025-04-02 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819417', 'tblTempUsageDetail_20' ) end [2025-04-02 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819417', 'tblTempVendorCDR_20' ) start [2025-04-02 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819417', 'tblTempVendorCDR_20' ) end [2025-04-02 16:31:21] Production.INFO: ProcessCDR(1,14819417,1,1,2) [2025-04-02 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819417', 'tblTempUsageDetail_20' ) start [2025-04-02 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819417', 'tblTempUsageDetail_20' ) end [2025-04-02 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:31:27] Production.INFO: ==19545== Releasing lock... [2025-04-02 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:31:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:32:06 [end_date_ymd] => 2025-04-02 16:32:06 [RateCDR] => 1 ) [2025-04-02 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:32:06' and `end` < '2025-04-02 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:32:20] Production.INFO: count ==5059 [2025-04-02 16:32:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:32:06 - End Time 2025-04-02 16:32:06 [2025-04-02 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819422', 'tblTempUsageDetail_20' ) start [2025-04-02 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819422', 'tblTempUsageDetail_20' ) end [2025-04-02 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819422', 'tblTempVendorCDR_20' ) start [2025-04-02 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819422', 'tblTempVendorCDR_20' ) end [2025-04-02 16:32:22] Production.INFO: ProcessCDR(1,14819422,1,1,2) [2025-04-02 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819422', 'tblTempUsageDetail_20' ) start [2025-04-02 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819422', 'tblTempUsageDetail_20' ) end [2025-04-02 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:32:28] Production.INFO: ==19660== Releasing lock... [2025-04-02 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:32:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:33:05 [end_date_ymd] => 2025-04-02 16:33:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:33:05' and `end` < '2025-04-02 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-04-02 16:33:19] Production.INFO: count ==5088 [2025-04-02 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:33:05 - End Time 2025-04-02 16:33:05 [2025-04-02 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819427', 'tblTempUsageDetail_20' ) start [2025-04-02 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819427', 'tblTempUsageDetail_20' ) end [2025-04-02 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819427', 'tblTempVendorCDR_20' ) start [2025-04-02 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819427', 'tblTempVendorCDR_20' ) end [2025-04-02 16:33:21] Production.INFO: ProcessCDR(1,14819427,1,1,2) [2025-04-02 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819427', 'tblTempUsageDetail_20' ) start [2025-04-02 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819427', 'tblTempUsageDetail_20' ) end [2025-04-02 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:33:27] Production.INFO: ==19738== Releasing lock... [2025-04-02 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:33:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:34:06 [end_date_ymd] => 2025-04-02 16:34:06 [RateCDR] => 1 ) [2025-04-02 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:34:06' and `end` < '2025-04-02 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:34:19] Production.INFO: count ==5141 [2025-04-02 16:34:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:34:06 - End Time 2025-04-02 16:34:06 [2025-04-02 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819432', 'tblTempUsageDetail_20' ) start [2025-04-02 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819432', 'tblTempUsageDetail_20' ) end [2025-04-02 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819432', 'tblTempVendorCDR_20' ) start [2025-04-02 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819432', 'tblTempVendorCDR_20' ) end [2025-04-02 16:34:22] Production.INFO: ProcessCDR(1,14819432,1,1,2) [2025-04-02 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819432', 'tblTempUsageDetail_20' ) start [2025-04-02 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819432', 'tblTempUsageDetail_20' ) end [2025-04-02 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:34:27] Production.INFO: ==19812== Releasing lock... [2025-04-02 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:34:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:35:05 [end_date_ymd] => 2025-04-02 16:35:05 [RateCDR] => 1 ) [2025-04-02 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:35:05' and `end` < '2025-04-02 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:35:18] Production.INFO: count ==5141 [2025-04-02 16:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:35:05 - End Time 2025-04-02 16:35:05 [2025-04-02 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819437', 'tblTempUsageDetail_20' ) start [2025-04-02 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819437', 'tblTempUsageDetail_20' ) end [2025-04-02 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819437', 'tblTempVendorCDR_20' ) start [2025-04-02 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819437', 'tblTempVendorCDR_20' ) end [2025-04-02 16:35:21] Production.INFO: ProcessCDR(1,14819437,1,1,2) [2025-04-02 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819437', 'tblTempUsageDetail_20' ) start [2025-04-02 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819437', 'tblTempUsageDetail_20' ) end [2025-04-02 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:35:26] Production.INFO: ==19887== Releasing lock... [2025-04-02 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:35:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:36:05 [end_date_ymd] => 2025-04-02 16:36:05 [RateCDR] => 1 ) [2025-04-02 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:36:05' and `end` < '2025-04-02 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:36:19] Production.INFO: count ==5148 [2025-04-02 16:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:36:05 - End Time 2025-04-02 16:36:05 [2025-04-02 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819442', 'tblTempUsageDetail_20' ) start [2025-04-02 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819442', 'tblTempUsageDetail_20' ) end [2025-04-02 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819442', 'tblTempVendorCDR_20' ) start [2025-04-02 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819442', 'tblTempVendorCDR_20' ) end [2025-04-02 16:36:21] Production.INFO: ProcessCDR(1,14819442,1,1,2) [2025-04-02 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819442', 'tblTempUsageDetail_20' ) start [2025-04-02 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819442', 'tblTempUsageDetail_20' ) end [2025-04-02 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:36:27] Production.INFO: ==19964== Releasing lock... [2025-04-02 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:36:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:37:05 [end_date_ymd] => 2025-04-02 16:37:05 [RateCDR] => 1 ) [2025-04-02 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:37:05' and `end` < '2025-04-02 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:37:19] Production.INFO: count ==5162 [2025-04-02 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:37:05 - End Time 2025-04-02 16:37:05 [2025-04-02 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819447', 'tblTempUsageDetail_20' ) start [2025-04-02 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819447', 'tblTempUsageDetail_20' ) end [2025-04-02 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819447', 'tblTempVendorCDR_20' ) start [2025-04-02 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819447', 'tblTempVendorCDR_20' ) end [2025-04-02 16:37:21] Production.INFO: ProcessCDR(1,14819447,1,1,2) [2025-04-02 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819447', 'tblTempUsageDetail_20' ) start [2025-04-02 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819447', 'tblTempUsageDetail_20' ) end [2025-04-02 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:37:27] Production.INFO: ==20040== Releasing lock... [2025-04-02 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:37:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:38:06 [end_date_ymd] => 2025-04-02 16:38:06 [RateCDR] => 1 ) [2025-04-02 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:38:06' and `end` < '2025-04-02 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:38:20] Production.INFO: count ==5163 [2025-04-02 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:38:06 - End Time 2025-04-02 16:38:06 [2025-04-02 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819452', 'tblTempUsageDetail_20' ) start [2025-04-02 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819452', 'tblTempUsageDetail_20' ) end [2025-04-02 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819452', 'tblTempVendorCDR_20' ) start [2025-04-02 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819452', 'tblTempVendorCDR_20' ) end [2025-04-02 16:38:22] Production.INFO: ProcessCDR(1,14819452,1,1,2) [2025-04-02 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819452', 'tblTempUsageDetail_20' ) start [2025-04-02 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819452', 'tblTempUsageDetail_20' ) end [2025-04-02 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:38:27] Production.INFO: ==20121== Releasing lock... [2025-04-02 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:38:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:39:05 [end_date_ymd] => 2025-04-02 16:39:05 [RateCDR] => 1 ) [2025-04-02 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:39:05' and `end` < '2025-04-02 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:39:19] Production.INFO: count ==5147 [2025-04-02 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:39:05 - End Time 2025-04-02 16:39:05 [2025-04-02 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819457', 'tblTempUsageDetail_20' ) start [2025-04-02 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819457', 'tblTempUsageDetail_20' ) end [2025-04-02 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819457', 'tblTempVendorCDR_20' ) start [2025-04-02 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819457', 'tblTempVendorCDR_20' ) end [2025-04-02 16:39:21] Production.INFO: ProcessCDR(1,14819457,1,1,2) [2025-04-02 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819457', 'tblTempUsageDetail_20' ) start [2025-04-02 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819457', 'tblTempUsageDetail_20' ) end [2025-04-02 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:39:27] Production.INFO: ==20199== Releasing lock... [2025-04-02 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:39:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:40:07 [end_date_ymd] => 2025-04-02 16:40:07 [RateCDR] => 1 ) [2025-04-02 16:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:40:07' and `end` < '2025-04-02 16:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:40:20] Production.INFO: count ==5144 [2025-04-02 16:40:23] Production.ERROR: pbx CDR StartTime 2025-04-02 13:40:07 - End Time 2025-04-02 16:40:07 [2025-04-02 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819463', 'tblTempUsageDetail_20' ) start [2025-04-02 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819463', 'tblTempUsageDetail_20' ) end [2025-04-02 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819463', 'tblTempVendorCDR_20' ) start [2025-04-02 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819463', 'tblTempVendorCDR_20' ) end [2025-04-02 16:40:23] Production.INFO: ProcessCDR(1,14819463,1,1,2) [2025-04-02 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819463', 'tblTempUsageDetail_20' ) start [2025-04-02 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819463', 'tblTempUsageDetail_20' ) end [2025-04-02 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:40:28] Production.INFO: ==20278== Releasing lock... [2025-04-02 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:40:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:41:05 [end_date_ymd] => 2025-04-02 16:41:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:41:05' and `end` < '2025-04-02 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-04-02 16:41:18] Production.INFO: count ==5168 [2025-04-02 16:41:20] Production.ERROR: pbx CDR StartTime 2025-04-02 13:41:05 - End Time 2025-04-02 16:41:05 [2025-04-02 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819468', 'tblTempUsageDetail_20' ) start [2025-04-02 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819468', 'tblTempUsageDetail_20' ) end [2025-04-02 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819468', 'tblTempVendorCDR_20' ) start [2025-04-02 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819468', 'tblTempVendorCDR_20' ) end [2025-04-02 16:41:21] Production.INFO: ProcessCDR(1,14819468,1,1,2) [2025-04-02 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819468', 'tblTempUsageDetail_20' ) start [2025-04-02 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819468', 'tblTempUsageDetail_20' ) end [2025-04-02 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:41:26] Production.INFO: ==20361== Releasing lock... [2025-04-02 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:41:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:42:06 [end_date_ymd] => 2025-04-02 16:42:06 [RateCDR] => 1 ) [2025-04-02 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:42:06' and `end` < '2025-04-02 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:42:19] Production.INFO: count ==5166 [2025-04-02 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:42:06 - End Time 2025-04-02 16:42:06 [2025-04-02 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819473', 'tblTempUsageDetail_20' ) start [2025-04-02 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819473', 'tblTempUsageDetail_20' ) end [2025-04-02 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819473', 'tblTempVendorCDR_20' ) start [2025-04-02 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819473', 'tblTempVendorCDR_20' ) end [2025-04-02 16:42:22] Production.INFO: ProcessCDR(1,14819473,1,1,2) [2025-04-02 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819473', 'tblTempUsageDetail_20' ) start [2025-04-02 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819473', 'tblTempUsageDetail_20' ) end [2025-04-02 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:42:27] Production.INFO: ==20441== Releasing lock... [2025-04-02 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:42:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:43:06 [end_date_ymd] => 2025-04-02 16:43:06 [RateCDR] => 1 ) [2025-04-02 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:43:06' and `end` < '2025-04-02 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:43:20] Production.INFO: count ==5188 [2025-04-02 16:43:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:43:06 - End Time 2025-04-02 16:43:06 [2025-04-02 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819478', 'tblTempUsageDetail_20' ) start [2025-04-02 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819478', 'tblTempUsageDetail_20' ) end [2025-04-02 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819478', 'tblTempVendorCDR_20' ) start [2025-04-02 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819478', 'tblTempVendorCDR_20' ) end [2025-04-02 16:43:22] Production.INFO: ProcessCDR(1,14819478,1,1,2) [2025-04-02 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819478', 'tblTempUsageDetail_20' ) start [2025-04-02 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819478', 'tblTempUsageDetail_20' ) end [2025-04-02 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:43:28] Production.INFO: ==20516== Releasing lock... [2025-04-02 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:43:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:44:06 [end_date_ymd] => 2025-04-02 16:44:06 [RateCDR] => 1 ) [2025-04-02 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:44:06' and `end` < '2025-04-02 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:44:20] Production.INFO: count ==5181 [2025-04-02 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:44:06 - End Time 2025-04-02 16:44:06 [2025-04-02 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819483', 'tblTempUsageDetail_20' ) start [2025-04-02 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819483', 'tblTempUsageDetail_20' ) end [2025-04-02 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819483', 'tblTempVendorCDR_20' ) start [2025-04-02 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819483', 'tblTempVendorCDR_20' ) end [2025-04-02 16:44:22] Production.INFO: ProcessCDR(1,14819483,1,1,2) [2025-04-02 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819483', 'tblTempUsageDetail_20' ) start [2025-04-02 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819483', 'tblTempUsageDetail_20' ) end [2025-04-02 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:44:27] Production.INFO: ==20598== Releasing lock... [2025-04-02 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:44:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:45:06 [end_date_ymd] => 2025-04-02 16:45:06 [RateCDR] => 1 ) [2025-04-02 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:45:06' and `end` < '2025-04-02 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:45:20] Production.INFO: count ==5177 [2025-04-02 16:45:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:45:06 - End Time 2025-04-02 16:45:06 [2025-04-02 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819488', 'tblTempUsageDetail_20' ) start [2025-04-02 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819488', 'tblTempUsageDetail_20' ) end [2025-04-02 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819488', 'tblTempVendorCDR_20' ) start [2025-04-02 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819488', 'tblTempVendorCDR_20' ) end [2025-04-02 16:45:22] Production.INFO: ProcessCDR(1,14819488,1,1,2) [2025-04-02 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819488', 'tblTempUsageDetail_20' ) start [2025-04-02 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819488', 'tblTempUsageDetail_20' ) end [2025-04-02 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:45:28] Production.INFO: ==20676== Releasing lock... [2025-04-02 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:45:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:46:06 [end_date_ymd] => 2025-04-02 16:46:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:46:06' and `end` < '2025-04-02 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-04-02 16:46:19] Production.INFO: count ==5165 [2025-04-02 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:46:06 - End Time 2025-04-02 16:46:06 [2025-04-02 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819493', 'tblTempUsageDetail_20' ) start [2025-04-02 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819493', 'tblTempUsageDetail_20' ) end [2025-04-02 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819493', 'tblTempVendorCDR_20' ) start [2025-04-02 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819493', 'tblTempVendorCDR_20' ) end [2025-04-02 16:46:22] Production.INFO: ProcessCDR(1,14819493,1,1,2) [2025-04-02 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819493', 'tblTempUsageDetail_20' ) start [2025-04-02 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819493', 'tblTempUsageDetail_20' ) end [2025-04-02 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:46:27] Production.INFO: ==20753== Releasing lock... [2025-04-02 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:46:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:47:06 [end_date_ymd] => 2025-04-02 16:47:06 [RateCDR] => 1 ) [2025-04-02 16:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:47:06' and `end` < '2025-04-02 16:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:47:20] Production.INFO: count ==5157 [2025-04-02 16:47:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:47:06 - End Time 2025-04-02 16:47:06 [2025-04-02 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819498', 'tblTempUsageDetail_20' ) start [2025-04-02 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819498', 'tblTempUsageDetail_20' ) end [2025-04-02 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819498', 'tblTempVendorCDR_20' ) start [2025-04-02 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819498', 'tblTempVendorCDR_20' ) end [2025-04-02 16:47:22] Production.INFO: ProcessCDR(1,14819498,1,1,2) [2025-04-02 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819498', 'tblTempUsageDetail_20' ) start [2025-04-02 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819498', 'tblTempUsageDetail_20' ) end [2025-04-02 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:47:27] Production.INFO: ==20871== Releasing lock... [2025-04-02 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:47:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:48:05 [end_date_ymd] => 2025-04-02 16:48:05 [RateCDR] => 1 ) [2025-04-02 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:48:05' and `end` < '2025-04-02 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:48:19] Production.INFO: count ==5146 [2025-04-02 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:48:05 - End Time 2025-04-02 16:48:05 [2025-04-02 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819503', 'tblTempUsageDetail_20' ) start [2025-04-02 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819503', 'tblTempUsageDetail_20' ) end [2025-04-02 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819503', 'tblTempVendorCDR_20' ) start [2025-04-02 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819503', 'tblTempVendorCDR_20' ) end [2025-04-02 16:48:21] Production.INFO: ProcessCDR(1,14819503,1,1,2) [2025-04-02 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819503', 'tblTempUsageDetail_20' ) start [2025-04-02 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819503', 'tblTempUsageDetail_20' ) end [2025-04-02 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:48:27] Production.INFO: ==20951== Releasing lock... [2025-04-02 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:48:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:49:06 [end_date_ymd] => 2025-04-02 16:49:06 [RateCDR] => 1 ) [2025-04-02 16:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:49:06' and `end` < '2025-04-02 16:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:49:20] Production.INFO: count ==5138 [2025-04-02 16:49:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:49:06 - End Time 2025-04-02 16:49:06 [2025-04-02 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819508', 'tblTempUsageDetail_20' ) start [2025-04-02 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819508', 'tblTempUsageDetail_20' ) end [2025-04-02 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819508', 'tblTempVendorCDR_20' ) start [2025-04-02 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819508', 'tblTempVendorCDR_20' ) end [2025-04-02 16:49:22] Production.INFO: ProcessCDR(1,14819508,1,1,2) [2025-04-02 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819508', 'tblTempUsageDetail_20' ) start [2025-04-02 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819508', 'tblTempUsageDetail_20' ) end [2025-04-02 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:49:28] Production.INFO: ==21031== Releasing lock... [2025-04-02 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:49:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:50:06 [end_date_ymd] => 2025-04-02 16:50:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:50:06' and `end` < '2025-04-02 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-04-02 16:50:20] Production.INFO: count ==5131 [2025-04-02 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:50:06 - End Time 2025-04-02 16:50:06 [2025-04-02 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819514', 'tblTempUsageDetail_20' ) start [2025-04-02 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819514', 'tblTempUsageDetail_20' ) end [2025-04-02 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819514', 'tblTempVendorCDR_20' ) start [2025-04-02 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819514', 'tblTempVendorCDR_20' ) end [2025-04-02 16:50:22] Production.INFO: ProcessCDR(1,14819514,1,1,2) [2025-04-02 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819514', 'tblTempUsageDetail_20' ) start [2025-04-02 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819514', 'tblTempUsageDetail_20' ) end [2025-04-02 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:50:27] Production.INFO: ==21107== Releasing lock... [2025-04-02 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:50:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:51:06 [end_date_ymd] => 2025-04-02 16:51:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:51:06' and `end` < '2025-04-02 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-04-02 16:51:20] Production.INFO: count ==5163 [2025-04-02 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:51:06 - End Time 2025-04-02 16:51:06 [2025-04-02 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819519', 'tblTempUsageDetail_20' ) start [2025-04-02 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819519', 'tblTempUsageDetail_20' ) end [2025-04-02 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819519', 'tblTempVendorCDR_20' ) start [2025-04-02 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819519', 'tblTempVendorCDR_20' ) end [2025-04-02 16:51:22] Production.INFO: ProcessCDR(1,14819519,1,1,2) [2025-04-02 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819519', 'tblTempUsageDetail_20' ) start [2025-04-02 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819519', 'tblTempUsageDetail_20' ) end [2025-04-02 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:51:28] Production.INFO: ==21196== Releasing lock... [2025-04-02 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:51:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:52:05 [end_date_ymd] => 2025-04-02 16:52:05 [RateCDR] => 1 ) [2025-04-02 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:52:05' and `end` < '2025-04-02 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:52:19] Production.INFO: count ==5158 [2025-04-02 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:52:05 - End Time 2025-04-02 16:52:05 [2025-04-02 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819524', 'tblTempUsageDetail_20' ) start [2025-04-02 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819524', 'tblTempUsageDetail_20' ) end [2025-04-02 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819524', 'tblTempVendorCDR_20' ) start [2025-04-02 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819524', 'tblTempVendorCDR_20' ) end [2025-04-02 16:52:22] Production.INFO: ProcessCDR(1,14819524,1,1,2) [2025-04-02 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819524', 'tblTempUsageDetail_20' ) start [2025-04-02 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819524', 'tblTempUsageDetail_20' ) end [2025-04-02 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:52:26] Production.INFO: ==21273== Releasing lock... [2025-04-02 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:52:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:53:05 [end_date_ymd] => 2025-04-02 16:53:05 [RateCDR] => 1 ) [2025-04-02 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:53:05' and `end` < '2025-04-02 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:53:19] Production.INFO: count ==5162 [2025-04-02 16:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:53:05 - End Time 2025-04-02 16:53:05 [2025-04-02 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819529', 'tblTempUsageDetail_20' ) start [2025-04-02 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819529', 'tblTempUsageDetail_20' ) end [2025-04-02 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819529', 'tblTempVendorCDR_20' ) start [2025-04-02 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819529', 'tblTempVendorCDR_20' ) end [2025-04-02 16:53:21] Production.INFO: ProcessCDR(1,14819529,1,1,2) [2025-04-02 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819529', 'tblTempUsageDetail_20' ) start [2025-04-02 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819529', 'tblTempUsageDetail_20' ) end [2025-04-02 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:53:26] Production.INFO: ==21351== Releasing lock... [2025-04-02 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:53:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:54:06 [end_date_ymd] => 2025-04-02 16:54:06 [RateCDR] => 1 ) [2025-04-02 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:54:06' and `end` < '2025-04-02 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:54:19] Production.INFO: count ==5157 [2025-04-02 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:54:06 - End Time 2025-04-02 16:54:06 [2025-04-02 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819534', 'tblTempUsageDetail_20' ) start [2025-04-02 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819534', 'tblTempUsageDetail_20' ) end [2025-04-02 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819534', 'tblTempVendorCDR_20' ) start [2025-04-02 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819534', 'tblTempVendorCDR_20' ) end [2025-04-02 16:54:21] Production.INFO: ProcessCDR(1,14819534,1,1,2) [2025-04-02 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819534', 'tblTempUsageDetail_20' ) start [2025-04-02 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819534', 'tblTempUsageDetail_20' ) end [2025-04-02 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:54:27] Production.INFO: ==21427== Releasing lock... [2025-04-02 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:54:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:55:06 [end_date_ymd] => 2025-04-02 16:55:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:55:06' and `end` < '2025-04-02 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-04-02 16:55:20] Production.INFO: count ==5163 [2025-04-02 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:55:06 - End Time 2025-04-02 16:55:06 [2025-04-02 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819539', 'tblTempUsageDetail_20' ) start [2025-04-02 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819539', 'tblTempUsageDetail_20' ) end [2025-04-02 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819539', 'tblTempVendorCDR_20' ) start [2025-04-02 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819539', 'tblTempVendorCDR_20' ) end [2025-04-02 16:55:22] Production.INFO: ProcessCDR(1,14819539,1,1,2) [2025-04-02 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819539', 'tblTempUsageDetail_20' ) start [2025-04-02 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819539', 'tblTempUsageDetail_20' ) end [2025-04-02 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:55:28] Production.INFO: ==21507== Releasing lock... [2025-04-02 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:55:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:56:05 [end_date_ymd] => 2025-04-02 16:56:05 [RateCDR] => 1 ) [2025-04-02 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:56:05' and `end` < '2025-04-02 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:56:19] Production.INFO: count ==5163 [2025-04-02 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:56:05 - End Time 2025-04-02 16:56:05 [2025-04-02 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819544', 'tblTempUsageDetail_20' ) start [2025-04-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819544', 'tblTempUsageDetail_20' ) end [2025-04-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819544', 'tblTempVendorCDR_20' ) start [2025-04-02 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819544', 'tblTempVendorCDR_20' ) end [2025-04-02 16:56:21] Production.INFO: ProcessCDR(1,14819544,1,1,2) [2025-04-02 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819544', 'tblTempUsageDetail_20' ) start [2025-04-02 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819544', 'tblTempUsageDetail_20' ) end [2025-04-02 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:56:26] Production.INFO: ==21588== Releasing lock... [2025-04-02 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:56:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:57:06 [end_date_ymd] => 2025-04-02 16:57:06 [RateCDR] => 1 ) [2025-04-02 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:57:06' and `end` < '2025-04-02 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:57:19] Production.INFO: count ==5138 [2025-04-02 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-02 13:57:06 - End Time 2025-04-02 16:57:06 [2025-04-02 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819549', 'tblTempUsageDetail_20' ) start [2025-04-02 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819549', 'tblTempUsageDetail_20' ) end [2025-04-02 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819549', 'tblTempVendorCDR_20' ) start [2025-04-02 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819549', 'tblTempVendorCDR_20' ) end [2025-04-02 16:57:22] Production.INFO: ProcessCDR(1,14819549,1,1,2) [2025-04-02 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819549', 'tblTempUsageDetail_20' ) start [2025-04-02 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819549', 'tblTempUsageDetail_20' ) end [2025-04-02 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:57:27] Production.INFO: ==21669== Releasing lock... [2025-04-02 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:57:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:58:05 [end_date_ymd] => 2025-04-02 16:58:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 13:58:05' and `end` < '2025-04-02 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-04-02 16:58:19] Production.INFO: count ==5140 [2025-04-02 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:58:05 - End Time 2025-04-02 16:58:05 [2025-04-02 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819554', 'tblTempUsageDetail_20' ) start [2025-04-02 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819554', 'tblTempUsageDetail_20' ) end [2025-04-02 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819554', 'tblTempVendorCDR_20' ) start [2025-04-02 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819554', 'tblTempVendorCDR_20' ) end [2025-04-02 16:58:21] Production.INFO: ProcessCDR(1,14819554,1,1,2) [2025-04-02 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819554', 'tblTempUsageDetail_20' ) start [2025-04-02 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819554', 'tblTempUsageDetail_20' ) end [2025-04-02 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:58:27] Production.INFO: ==21748== Releasing lock... [2025-04-02 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:58:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 13:59:05 [end_date_ymd] => 2025-04-02 16:59:05 [RateCDR] => 1 ) [2025-04-02 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 13:59:05' and `end` < '2025-04-02 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 16:59:19] Production.INFO: count ==5123 [2025-04-02 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-02 13:59:05 - End Time 2025-04-02 16:59:05 [2025-04-02 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819559', 'tblTempUsageDetail_20' ) start [2025-04-02 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819559', 'tblTempUsageDetail_20' ) end [2025-04-02 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819559', 'tblTempVendorCDR_20' ) start [2025-04-02 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819559', 'tblTempVendorCDR_20' ) end [2025-04-02 16:59:21] Production.INFO: ProcessCDR(1,14819559,1,1,2) [2025-04-02 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 16:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819559', 'tblTempUsageDetail_20' ) start [2025-04-02 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819559', 'tblTempUsageDetail_20' ) end [2025-04-02 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 16:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 16:59:24] Production.INFO: ==21830== Releasing lock... [2025-04-02 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 16:59:24] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:00:06 [end_date_ymd] => 2025-04-02 17:00:06 [RateCDR] => 1 ) [2025-04-02 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:00:06' and `end` < '2025-04-02 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:00:20] Production.INFO: count ==5113 [2025-04-02 17:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:00:06 - End Time 2025-04-02 17:00:06 [2025-04-02 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819565', 'tblTempUsageDetail_20' ) start [2025-04-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819565', 'tblTempUsageDetail_20' ) end [2025-04-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819565', 'tblTempVendorCDR_20' ) start [2025-04-02 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819565', 'tblTempVendorCDR_20' ) end [2025-04-02 17:00:22] Production.INFO: ProcessCDR(1,14819565,1,1,2) [2025-04-02 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819565', 'tblTempUsageDetail_20' ) start [2025-04-02 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819565', 'tblTempUsageDetail_20' ) end [2025-04-02 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:00:27] Production.INFO: ==21916== Releasing lock... [2025-04-02 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:00:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:01:05 [end_date_ymd] => 2025-04-02 17:01:05 [RateCDR] => 1 ) [2025-04-02 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:01:05' and `end` < '2025-04-02 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:01:19] Production.INFO: count ==5144 [2025-04-02 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:01:05 - End Time 2025-04-02 17:01:05 [2025-04-02 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819570', 'tblTempUsageDetail_20' ) start [2025-04-02 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819570', 'tblTempUsageDetail_20' ) end [2025-04-02 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819570', 'tblTempVendorCDR_20' ) start [2025-04-02 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819570', 'tblTempVendorCDR_20' ) end [2025-04-02 17:01:21] Production.INFO: ProcessCDR(1,14819570,1,1,2) [2025-04-02 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819570', 'tblTempUsageDetail_20' ) start [2025-04-02 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819570', 'tblTempUsageDetail_20' ) end [2025-04-02 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:01:26] Production.INFO: ==22019== Releasing lock... [2025-04-02 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:01:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:02:06 [end_date_ymd] => 2025-04-02 17:02:06 [RateCDR] => 1 ) [2025-04-02 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:02:06' and `end` < '2025-04-02 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:02:20] Production.INFO: count ==5157 [2025-04-02 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:02:06 - End Time 2025-04-02 17:02:06 [2025-04-02 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819575', 'tblTempUsageDetail_20' ) start [2025-04-02 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819575', 'tblTempUsageDetail_20' ) end [2025-04-02 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819575', 'tblTempVendorCDR_20' ) start [2025-04-02 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819575', 'tblTempVendorCDR_20' ) end [2025-04-02 17:02:22] Production.INFO: ProcessCDR(1,14819575,1,1,2) [2025-04-02 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819575', 'tblTempUsageDetail_20' ) start [2025-04-02 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819575', 'tblTempUsageDetail_20' ) end [2025-04-02 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:02:27] Production.INFO: ==22101== Releasing lock... [2025-04-02 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:02:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:03:05 [end_date_ymd] => 2025-04-02 17:03:05 [RateCDR] => 1 ) [2025-04-02 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:03:05' and `end` < '2025-04-02 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:03:20] Production.INFO: count ==5172 [2025-04-02 17:03:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:03:05 - End Time 2025-04-02 17:03:05 [2025-04-02 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819580', 'tblTempUsageDetail_20' ) start [2025-04-02 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819580', 'tblTempUsageDetail_20' ) end [2025-04-02 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819580', 'tblTempVendorCDR_20' ) start [2025-04-02 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819580', 'tblTempVendorCDR_20' ) end [2025-04-02 17:03:22] Production.INFO: ProcessCDR(1,14819580,1,1,2) [2025-04-02 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819580', 'tblTempUsageDetail_20' ) start [2025-04-02 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819580', 'tblTempUsageDetail_20' ) end [2025-04-02 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:03:28] Production.INFO: ==22226== Releasing lock... [2025-04-02 17:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:03:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:04:05 [end_date_ymd] => 2025-04-02 17:04:05 [RateCDR] => 1 ) [2025-04-02 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:04:05' and `end` < '2025-04-02 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:04:21] Production.INFO: count ==5184 [2025-04-02 17:04:23] Production.ERROR: pbx CDR StartTime 2025-04-02 14:04:05 - End Time 2025-04-02 17:04:05 [2025-04-02 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819585', 'tblTempUsageDetail_20' ) start [2025-04-02 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819585', 'tblTempUsageDetail_20' ) end [2025-04-02 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819585', 'tblTempVendorCDR_20' ) start [2025-04-02 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819585', 'tblTempVendorCDR_20' ) end [2025-04-02 17:04:23] Production.INFO: ProcessCDR(1,14819585,1,1,2) [2025-04-02 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819585', 'tblTempUsageDetail_20' ) start [2025-04-02 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819585', 'tblTempUsageDetail_20' ) end [2025-04-02 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:04:28] Production.INFO: ==22306== Releasing lock... [2025-04-02 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:04:28] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:05:05 [end_date_ymd] => 2025-04-02 17:05:05 [RateCDR] => 1 ) [2025-04-02 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:05:05' and `end` < '2025-04-02 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:05:19] Production.INFO: count ==5178 [2025-04-02 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:05:05 - End Time 2025-04-02 17:05:05 [2025-04-02 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819590', 'tblTempUsageDetail_20' ) start [2025-04-02 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819590', 'tblTempUsageDetail_20' ) end [2025-04-02 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819590', 'tblTempVendorCDR_20' ) start [2025-04-02 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819590', 'tblTempVendorCDR_20' ) end [2025-04-02 17:05:21] Production.INFO: ProcessCDR(1,14819590,1,1,2) [2025-04-02 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819590', 'tblTempUsageDetail_20' ) start [2025-04-02 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819590', 'tblTempUsageDetail_20' ) end [2025-04-02 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:05:27] Production.INFO: ==22387== Releasing lock... [2025-04-02 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:05:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:06:05 [end_date_ymd] => 2025-04-02 17:06:05 [RateCDR] => 1 ) [2025-04-02 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:06:05' and `end` < '2025-04-02 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:06:19] Production.INFO: count ==5181 [2025-04-02 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:06:05 - End Time 2025-04-02 17:06:05 [2025-04-02 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819595', 'tblTempUsageDetail_20' ) start [2025-04-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819595', 'tblTempUsageDetail_20' ) end [2025-04-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819595', 'tblTempVendorCDR_20' ) start [2025-04-02 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819595', 'tblTempVendorCDR_20' ) end [2025-04-02 17:06:21] Production.INFO: ProcessCDR(1,14819595,1,1,2) [2025-04-02 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819595', 'tblTempUsageDetail_20' ) start [2025-04-02 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819595', 'tblTempUsageDetail_20' ) end [2025-04-02 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:06:27] Production.INFO: ==22471== Releasing lock... [2025-04-02 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:06:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:07:06 [end_date_ymd] => 2025-04-02 17:07:06 [RateCDR] => 1 ) [2025-04-02 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:07:06' and `end` < '2025-04-02 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:07:20] Production.INFO: count ==5176 [2025-04-02 17:07:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:07:06 - End Time 2025-04-02 17:07:06 [2025-04-02 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819600', 'tblTempUsageDetail_20' ) start [2025-04-02 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819600', 'tblTempUsageDetail_20' ) end [2025-04-02 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819600', 'tblTempVendorCDR_20' ) start [2025-04-02 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819600', 'tblTempVendorCDR_20' ) end [2025-04-02 17:07:22] Production.INFO: ProcessCDR(1,14819600,1,1,2) [2025-04-02 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819600', 'tblTempUsageDetail_20' ) start [2025-04-02 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819600', 'tblTempUsageDetail_20' ) end [2025-04-02 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:07:27] Production.INFO: ==22549== Releasing lock... [2025-04-02 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:07:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:08:05 [end_date_ymd] => 2025-04-02 17:08:05 [RateCDR] => 1 ) [2025-04-02 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:08:05' and `end` < '2025-04-02 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:08:19] Production.INFO: count ==5170 [2025-04-02 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:08:05 - End Time 2025-04-02 17:08:05 [2025-04-02 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819605', 'tblTempUsageDetail_20' ) start [2025-04-02 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819605', 'tblTempUsageDetail_20' ) end [2025-04-02 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819605', 'tblTempVendorCDR_20' ) start [2025-04-02 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819605', 'tblTempVendorCDR_20' ) end [2025-04-02 17:08:21] Production.INFO: ProcessCDR(1,14819605,1,1,2) [2025-04-02 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819605', 'tblTempUsageDetail_20' ) start [2025-04-02 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819605', 'tblTempUsageDetail_20' ) end [2025-04-02 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:08:27] Production.INFO: ==22634== Releasing lock... [2025-04-02 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:08:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:09:05 [end_date_ymd] => 2025-04-02 17:09:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 14:09:05' and `end` < '2025-04-02 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-04-02 17:09:19] Production.INFO: count ==5162 [2025-04-02 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:09:05 - End Time 2025-04-02 17:09:05 [2025-04-02 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819610', 'tblTempUsageDetail_20' ) start [2025-04-02 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819610', 'tblTempUsageDetail_20' ) end [2025-04-02 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819610', 'tblTempVendorCDR_20' ) start [2025-04-02 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819610', 'tblTempVendorCDR_20' ) end [2025-04-02 17:09:21] Production.INFO: ProcessCDR(1,14819610,1,1,2) [2025-04-02 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819610', 'tblTempUsageDetail_20' ) start [2025-04-02 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819610', 'tblTempUsageDetail_20' ) end [2025-04-02 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:09:25] Production.INFO: ==22718== Releasing lock... [2025-04-02 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:09:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:10:06 [end_date_ymd] => 2025-04-02 17:10:06 [RateCDR] => 1 ) [2025-04-02 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:10:06' and `end` < '2025-04-02 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:10:20] Production.INFO: count ==5161 [2025-04-02 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:10:06 - End Time 2025-04-02 17:10:06 [2025-04-02 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819616', 'tblTempUsageDetail_20' ) start [2025-04-02 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819616', 'tblTempUsageDetail_20' ) end [2025-04-02 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819616', 'tblTempVendorCDR_20' ) start [2025-04-02 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819616', 'tblTempVendorCDR_20' ) end [2025-04-02 17:10:22] Production.INFO: ProcessCDR(1,14819616,1,1,2) [2025-04-02 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819616', 'tblTempUsageDetail_20' ) start [2025-04-02 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819616', 'tblTempUsageDetail_20' ) end [2025-04-02 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:10:28] Production.INFO: ==22803== Releasing lock... [2025-04-02 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:10:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:11:06 [end_date_ymd] => 2025-04-02 17:11:06 [RateCDR] => 1 ) [2025-04-02 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:11:06' and `end` < '2025-04-02 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:11:19] Production.INFO: count ==5190 [2025-04-02 17:11:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:11:06 - End Time 2025-04-02 17:11:06 [2025-04-02 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819621', 'tblTempUsageDetail_20' ) start [2025-04-02 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819621', 'tblTempUsageDetail_20' ) end [2025-04-02 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819621', 'tblTempVendorCDR_20' ) start [2025-04-02 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819621', 'tblTempVendorCDR_20' ) end [2025-04-02 17:11:22] Production.INFO: ProcessCDR(1,14819621,1,1,2) [2025-04-02 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819621', 'tblTempUsageDetail_20' ) start [2025-04-02 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819621', 'tblTempUsageDetail_20' ) end [2025-04-02 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:11:26] Production.INFO: ==22888== Releasing lock... [2025-04-02 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:11:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:12:05 [end_date_ymd] => 2025-04-02 17:12:05 [RateCDR] => 1 ) [2025-04-02 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:12:05' and `end` < '2025-04-02 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:12:18] Production.INFO: count ==5185 [2025-04-02 17:12:20] Production.ERROR: pbx CDR StartTime 2025-04-02 14:12:05 - End Time 2025-04-02 17:12:05 [2025-04-02 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819626', 'tblTempUsageDetail_20' ) start [2025-04-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819626', 'tblTempUsageDetail_20' ) end [2025-04-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819626', 'tblTempVendorCDR_20' ) start [2025-04-02 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819626', 'tblTempVendorCDR_20' ) end [2025-04-02 17:12:21] Production.INFO: ProcessCDR(1,14819626,1,1,2) [2025-04-02 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819626', 'tblTempUsageDetail_20' ) start [2025-04-02 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819626', 'tblTempUsageDetail_20' ) end [2025-04-02 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:12:26] Production.INFO: ==22972== Releasing lock... [2025-04-02 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:12:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:13:06 [end_date_ymd] => 2025-04-02 17:13:06 [RateCDR] => 1 ) [2025-04-02 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:13:06' and `end` < '2025-04-02 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:13:20] Production.INFO: count ==5192 [2025-04-02 17:13:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:13:06 - End Time 2025-04-02 17:13:06 [2025-04-02 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819631', 'tblTempUsageDetail_20' ) start [2025-04-02 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819631', 'tblTempUsageDetail_20' ) end [2025-04-02 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819631', 'tblTempVendorCDR_20' ) start [2025-04-02 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819631', 'tblTempVendorCDR_20' ) end [2025-04-02 17:13:22] Production.INFO: ProcessCDR(1,14819631,1,1,2) [2025-04-02 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819631', 'tblTempUsageDetail_20' ) start [2025-04-02 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819631', 'tblTempUsageDetail_20' ) end [2025-04-02 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:13:27] Production.INFO: ==23052== Releasing lock... [2025-04-02 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:13:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:14:05 [end_date_ymd] => 2025-04-02 17:14:05 [RateCDR] => 1 ) [2025-04-02 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:14:05' and `end` < '2025-04-02 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:14:19] Production.INFO: count ==5173 [2025-04-02 17:14:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:14:05 - End Time 2025-04-02 17:14:05 [2025-04-02 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819636', 'tblTempUsageDetail_20' ) start [2025-04-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819636', 'tblTempUsageDetail_20' ) end [2025-04-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819636', 'tblTempVendorCDR_20' ) start [2025-04-02 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819636', 'tblTempVendorCDR_20' ) end [2025-04-02 17:14:21] Production.INFO: ProcessCDR(1,14819636,1,1,2) [2025-04-02 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819636', 'tblTempUsageDetail_20' ) start [2025-04-02 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819636', 'tblTempUsageDetail_20' ) end [2025-04-02 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:14:24] Production.INFO: ==23134== Releasing lock... [2025-04-02 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:14:24] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:15:06 [end_date_ymd] => 2025-04-02 17:15:06 [RateCDR] => 1 ) [2025-04-02 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:15:06' and `end` < '2025-04-02 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:15:19] Production.INFO: count ==5183 [2025-04-02 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:15:06 - End Time 2025-04-02 17:15:06 [2025-04-02 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819641', 'tblTempUsageDetail_20' ) start [2025-04-02 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819641', 'tblTempUsageDetail_20' ) end [2025-04-02 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819641', 'tblTempVendorCDR_20' ) start [2025-04-02 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819641', 'tblTempVendorCDR_20' ) end [2025-04-02 17:15:22] Production.INFO: ProcessCDR(1,14819641,1,1,2) [2025-04-02 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819641', 'tblTempUsageDetail_20' ) start [2025-04-02 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819641', 'tblTempUsageDetail_20' ) end [2025-04-02 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:15:27] Production.INFO: ==23217== Releasing lock... [2025-04-02 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:15:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:16:05 [end_date_ymd] => 2025-04-02 17:16:05 [RateCDR] => 1 ) [2025-04-02 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:16:05' and `end` < '2025-04-02 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:16:19] Production.INFO: count ==5180 [2025-04-02 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:16:05 - End Time 2025-04-02 17:16:05 [2025-04-02 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819646', 'tblTempUsageDetail_20' ) start [2025-04-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819646', 'tblTempUsageDetail_20' ) end [2025-04-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819646', 'tblTempVendorCDR_20' ) start [2025-04-02 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819646', 'tblTempVendorCDR_20' ) end [2025-04-02 17:16:21] Production.INFO: ProcessCDR(1,14819646,1,1,2) [2025-04-02 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819646', 'tblTempUsageDetail_20' ) start [2025-04-02 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819646', 'tblTempUsageDetail_20' ) end [2025-04-02 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:16:26] Production.INFO: ==23311== Releasing lock... [2025-04-02 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:16:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:17:05 [end_date_ymd] => 2025-04-02 17:17:05 [RateCDR] => 1 ) [2025-04-02 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:17:05' and `end` < '2025-04-02 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:17:19] Production.INFO: count ==5176 [2025-04-02 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:17:05 - End Time 2025-04-02 17:17:05 [2025-04-02 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819651', 'tblTempUsageDetail_20' ) start [2025-04-02 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819651', 'tblTempUsageDetail_20' ) end [2025-04-02 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819651', 'tblTempVendorCDR_20' ) start [2025-04-02 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819651', 'tblTempVendorCDR_20' ) end [2025-04-02 17:17:21] Production.INFO: ProcessCDR(1,14819651,1,1,2) [2025-04-02 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819651', 'tblTempUsageDetail_20' ) start [2025-04-02 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819651', 'tblTempUsageDetail_20' ) end [2025-04-02 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:17:26] Production.INFO: ==23398== Releasing lock... [2025-04-02 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:17:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:18:06 [end_date_ymd] => 2025-04-02 17:18:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 14:18:06' and `end` < '2025-04-02 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-04-02 17:18:19] Production.INFO: count ==5166 [2025-04-02 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:18:06 - End Time 2025-04-02 17:18:06 [2025-04-02 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819656', 'tblTempUsageDetail_20' ) start [2025-04-02 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819656', 'tblTempUsageDetail_20' ) end [2025-04-02 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819656', 'tblTempVendorCDR_20' ) start [2025-04-02 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819656', 'tblTempVendorCDR_20' ) end [2025-04-02 17:18:22] Production.INFO: ProcessCDR(1,14819656,1,1,2) [2025-04-02 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819656', 'tblTempUsageDetail_20' ) start [2025-04-02 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819656', 'tblTempUsageDetail_20' ) end [2025-04-02 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:18:25] Production.INFO: ==23530== Releasing lock... [2025-04-02 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:18:25] Production.INFO: 66.75 MB #Memory Used# [2025-04-02 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:19:06 [end_date_ymd] => 2025-04-02 17:19:06 [RateCDR] => 1 ) [2025-04-02 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:19:06' and `end` < '2025-04-02 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:19:19] Production.INFO: count ==5152 [2025-04-02 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:19:06 - End Time 2025-04-02 17:19:06 [2025-04-02 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819661', 'tblTempUsageDetail_20' ) start [2025-04-02 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819661', 'tblTempUsageDetail_20' ) end [2025-04-02 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819661', 'tblTempVendorCDR_20' ) start [2025-04-02 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819661', 'tblTempVendorCDR_20' ) end [2025-04-02 17:19:21] Production.INFO: ProcessCDR(1,14819661,1,1,2) [2025-04-02 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819661', 'tblTempUsageDetail_20' ) start [2025-04-02 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819661', 'tblTempUsageDetail_20' ) end [2025-04-02 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:19:26] Production.INFO: ==23614== Releasing lock... [2025-04-02 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:19:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:20:07 [end_date_ymd] => 2025-04-02 17:20:07 [RateCDR] => 1 ) [2025-04-02 17:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:20:07' and `end` < '2025-04-02 17:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:20:20] Production.INFO: count ==5138 [2025-04-02 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:20:07 - End Time 2025-04-02 17:20:07 [2025-04-02 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819667', 'tblTempUsageDetail_20' ) start [2025-04-02 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819667', 'tblTempUsageDetail_20' ) end [2025-04-02 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819667', 'tblTempVendorCDR_20' ) start [2025-04-02 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819667', 'tblTempVendorCDR_20' ) end [2025-04-02 17:20:23] Production.INFO: ProcessCDR(1,14819667,1,1,2) [2025-04-02 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819667', 'tblTempUsageDetail_20' ) start [2025-04-02 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819667', 'tblTempUsageDetail_20' ) end [2025-04-02 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:20:28] Production.INFO: ==23701== Releasing lock... [2025-04-02 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:20:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-02 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:21:06 [end_date_ymd] => 2025-04-02 17:21:06 [RateCDR] => 1 ) [2025-04-02 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:21:06' and `end` < '2025-04-02 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:21:19] Production.INFO: count ==5114 [2025-04-02 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:21:06 - End Time 2025-04-02 17:21:06 [2025-04-02 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819672', 'tblTempUsageDetail_20' ) start [2025-04-02 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819672', 'tblTempUsageDetail_20' ) end [2025-04-02 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819672', 'tblTempVendorCDR_20' ) start [2025-04-02 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819672', 'tblTempVendorCDR_20' ) end [2025-04-02 17:21:21] Production.INFO: ProcessCDR(1,14819672,1,1,2) [2025-04-02 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819672', 'tblTempUsageDetail_20' ) start [2025-04-02 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819672', 'tblTempUsageDetail_20' ) end [2025-04-02 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:21:25] Production.INFO: ==23783== Releasing lock... [2025-04-02 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:21:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:22:06 [end_date_ymd] => 2025-04-02 17:22:06 [RateCDR] => 1 ) [2025-04-02 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:22:06' and `end` < '2025-04-02 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:22:20] Production.INFO: count ==5108 [2025-04-02 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:22:06 - End Time 2025-04-02 17:22:06 [2025-04-02 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819677', 'tblTempUsageDetail_20' ) start [2025-04-02 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819677', 'tblTempUsageDetail_20' ) end [2025-04-02 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819677', 'tblTempVendorCDR_20' ) start [2025-04-02 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819677', 'tblTempVendorCDR_20' ) end [2025-04-02 17:22:22] Production.INFO: ProcessCDR(1,14819677,1,1,2) [2025-04-02 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819677', 'tblTempUsageDetail_20' ) start [2025-04-02 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819677', 'tblTempUsageDetail_20' ) end [2025-04-02 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:22:26] Production.INFO: ==23864== Releasing lock... [2025-04-02 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:22:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-02 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:23:05 [end_date_ymd] => 2025-04-02 17:23:05 [RateCDR] => 1 ) [2025-04-02 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:23:05' and `end` < '2025-04-02 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:23:19] Production.INFO: count ==5082 [2025-04-02 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:23:05 - End Time 2025-04-02 17:23:05 [2025-04-02 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819682', 'tblTempUsageDetail_20' ) start [2025-04-02 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819682', 'tblTempUsageDetail_20' ) end [2025-04-02 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819682', 'tblTempVendorCDR_20' ) start [2025-04-02 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819682', 'tblTempVendorCDR_20' ) end [2025-04-02 17:23:21] Production.INFO: ProcessCDR(1,14819682,1,1,2) [2025-04-02 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819682', 'tblTempUsageDetail_20' ) start [2025-04-02 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819682', 'tblTempUsageDetail_20' ) end [2025-04-02 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:23:27] Production.INFO: ==23950== Releasing lock... [2025-04-02 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:23:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:24:06 [end_date_ymd] => 2025-04-02 17:24:06 [RateCDR] => 1 ) [2025-04-02 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:24:06' and `end` < '2025-04-02 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:24:19] Production.INFO: count ==5080 [2025-04-02 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:24:06 - End Time 2025-04-02 17:24:06 [2025-04-02 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819687', 'tblTempUsageDetail_20' ) start [2025-04-02 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819687', 'tblTempUsageDetail_20' ) end [2025-04-02 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819687', 'tblTempVendorCDR_20' ) start [2025-04-02 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819687', 'tblTempVendorCDR_20' ) end [2025-04-02 17:24:22] Production.INFO: ProcessCDR(1,14819687,1,1,2) [2025-04-02 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819687', 'tblTempUsageDetail_20' ) start [2025-04-02 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819687', 'tblTempUsageDetail_20' ) end [2025-04-02 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:24:27] Production.INFO: ==24030== Releasing lock... [2025-04-02 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:24:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:25:05 [end_date_ymd] => 2025-04-02 17:25:05 [RateCDR] => 1 ) [2025-04-02 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:25:05' and `end` < '2025-04-02 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:25:19] Production.INFO: count ==5089 [2025-04-02 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:25:05 - End Time 2025-04-02 17:25:05 [2025-04-02 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819692', 'tblTempUsageDetail_20' ) start [2025-04-02 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819692', 'tblTempUsageDetail_20' ) end [2025-04-02 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819692', 'tblTempVendorCDR_20' ) start [2025-04-02 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819692', 'tblTempVendorCDR_20' ) end [2025-04-02 17:25:21] Production.INFO: ProcessCDR(1,14819692,1,1,2) [2025-04-02 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819692', 'tblTempUsageDetail_20' ) start [2025-04-02 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819692', 'tblTempUsageDetail_20' ) end [2025-04-02 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:25:27] Production.INFO: ==24116== Releasing lock... [2025-04-02 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:25:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:26:05 [end_date_ymd] => 2025-04-02 17:26:05 [RateCDR] => 1 ) [2025-04-02 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:26:05' and `end` < '2025-04-02 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:26:19] Production.INFO: count ==5081 [2025-04-02 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:26:05 - End Time 2025-04-02 17:26:05 [2025-04-02 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819697', 'tblTempUsageDetail_20' ) start [2025-04-02 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819697', 'tblTempUsageDetail_20' ) end [2025-04-02 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819697', 'tblTempVendorCDR_20' ) start [2025-04-02 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819697', 'tblTempVendorCDR_20' ) end [2025-04-02 17:26:21] Production.INFO: ProcessCDR(1,14819697,1,1,2) [2025-04-02 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819697', 'tblTempUsageDetail_20' ) start [2025-04-02 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819697', 'tblTempUsageDetail_20' ) end [2025-04-02 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:26:24] Production.INFO: ==24197== Releasing lock... [2025-04-02 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:26:24] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:27:05 [end_date_ymd] => 2025-04-02 17:27:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 14:27:05' and `end` < '2025-04-02 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-04-02 17:27:19] Production.INFO: count ==5090 [2025-04-02 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:27:05 - End Time 2025-04-02 17:27:05 [2025-04-02 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819702', 'tblTempUsageDetail_20' ) start [2025-04-02 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819702', 'tblTempUsageDetail_20' ) end [2025-04-02 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819702', 'tblTempVendorCDR_20' ) start [2025-04-02 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819702', 'tblTempVendorCDR_20' ) end [2025-04-02 17:27:21] Production.INFO: ProcessCDR(1,14819702,1,1,2) [2025-04-02 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819702', 'tblTempUsageDetail_20' ) start [2025-04-02 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819702', 'tblTempUsageDetail_20' ) end [2025-04-02 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:27:26] Production.INFO: ==24276== Releasing lock... [2025-04-02 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:27:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:28:06 [end_date_ymd] => 2025-04-02 17:28:06 [RateCDR] => 1 ) [2025-04-02 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:28:06' and `end` < '2025-04-02 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:28:19] Production.INFO: count ==5071 [2025-04-02 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:28:06 - End Time 2025-04-02 17:28:06 [2025-04-02 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819707', 'tblTempUsageDetail_20' ) start [2025-04-02 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819707', 'tblTempUsageDetail_20' ) end [2025-04-02 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819707', 'tblTempVendorCDR_20' ) start [2025-04-02 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819707', 'tblTempVendorCDR_20' ) end [2025-04-02 17:28:22] Production.INFO: ProcessCDR(1,14819707,1,1,2) [2025-04-02 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819707', 'tblTempUsageDetail_20' ) start [2025-04-02 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819707', 'tblTempUsageDetail_20' ) end [2025-04-02 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:28:27] Production.INFO: ==24360== Releasing lock... [2025-04-02 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:28:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:29:05 [end_date_ymd] => 2025-04-02 17:29:05 [RateCDR] => 1 ) [2025-04-02 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:29:05' and `end` < '2025-04-02 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:29:19] Production.INFO: count ==5069 [2025-04-02 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:29:05 - End Time 2025-04-02 17:29:05 [2025-04-02 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819712', 'tblTempUsageDetail_20' ) start [2025-04-02 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819712', 'tblTempUsageDetail_20' ) end [2025-04-02 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819712', 'tblTempVendorCDR_20' ) start [2025-04-02 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819712', 'tblTempVendorCDR_20' ) end [2025-04-02 17:29:21] Production.INFO: ProcessCDR(1,14819712,1,1,2) [2025-04-02 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819712', 'tblTempUsageDetail_20' ) start [2025-04-02 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819712', 'tblTempUsageDetail_20' ) end [2025-04-02 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:29:26] Production.INFO: ==24439== Releasing lock... [2025-04-02 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:29:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:30:06 [end_date_ymd] => 2025-04-02 17:30:06 [RateCDR] => 1 ) [2025-04-02 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:30:06' and `end` < '2025-04-02 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:30:20] Production.INFO: count ==5067 [2025-04-02 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:30:06 - End Time 2025-04-02 17:30:06 [2025-04-02 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819718', 'tblTempUsageDetail_20' ) start [2025-04-02 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819718', 'tblTempUsageDetail_20' ) end [2025-04-02 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819718', 'tblTempVendorCDR_20' ) start [2025-04-02 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819718', 'tblTempVendorCDR_20' ) end [2025-04-02 17:30:22] Production.INFO: ProcessCDR(1,14819718,1,1,2) [2025-04-02 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819718', 'tblTempUsageDetail_20' ) start [2025-04-02 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819718', 'tblTempUsageDetail_20' ) end [2025-04-02 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:30:28] Production.INFO: ==24528== Releasing lock... [2025-04-02 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:30:28] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:31:05 [end_date_ymd] => 2025-04-02 17:31:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 14:31:05' and `end` < '2025-04-02 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-04-02 17:31:19] Production.INFO: count ==5072 [2025-04-02 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:31:05 - End Time 2025-04-02 17:31:05 [2025-04-02 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819723', 'tblTempUsageDetail_20' ) start [2025-04-02 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819723', 'tblTempUsageDetail_20' ) end [2025-04-02 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819723', 'tblTempVendorCDR_20' ) start [2025-04-02 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819723', 'tblTempVendorCDR_20' ) end [2025-04-02 17:31:21] Production.INFO: ProcessCDR(1,14819723,1,1,2) [2025-04-02 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819723', 'tblTempUsageDetail_20' ) start [2025-04-02 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819723', 'tblTempUsageDetail_20' ) end [2025-04-02 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:31:27] Production.INFO: ==24622== Releasing lock... [2025-04-02 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:31:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:32:05 [end_date_ymd] => 2025-04-02 17:32:05 [RateCDR] => 1 ) [2025-04-02 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:32:05' and `end` < '2025-04-02 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:32:18] Production.INFO: count ==5077 [2025-04-02 17:32:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:32:05 - End Time 2025-04-02 17:32:05 [2025-04-02 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819728', 'tblTempUsageDetail_20' ) start [2025-04-02 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819728', 'tblTempUsageDetail_20' ) end [2025-04-02 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819728', 'tblTempVendorCDR_20' ) start [2025-04-02 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819728', 'tblTempVendorCDR_20' ) end [2025-04-02 17:32:21] Production.INFO: ProcessCDR(1,14819728,1,1,2) [2025-04-02 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819728', 'tblTempUsageDetail_20' ) start [2025-04-02 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819728', 'tblTempUsageDetail_20' ) end [2025-04-02 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:32:26] Production.INFO: ==24704== Releasing lock... [2025-04-02 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:32:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:33:05 [end_date_ymd] => 2025-04-02 17:33:05 [RateCDR] => 1 ) [2025-04-02 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:33:05' and `end` < '2025-04-02 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:33:19] Production.INFO: count ==5070 [2025-04-02 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:33:05 - End Time 2025-04-02 17:33:05 [2025-04-02 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819733', 'tblTempUsageDetail_20' ) start [2025-04-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819733', 'tblTempUsageDetail_20' ) end [2025-04-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819733', 'tblTempVendorCDR_20' ) start [2025-04-02 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819733', 'tblTempVendorCDR_20' ) end [2025-04-02 17:33:21] Production.INFO: ProcessCDR(1,14819733,1,1,2) [2025-04-02 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819733', 'tblTempUsageDetail_20' ) start [2025-04-02 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819733', 'tblTempUsageDetail_20' ) end [2025-04-02 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:33:27] Production.INFO: ==24783== Releasing lock... [2025-04-02 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:33:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:34:06 [end_date_ymd] => 2025-04-02 17:34:06 [RateCDR] => 1 ) [2025-04-02 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:34:06' and `end` < '2025-04-02 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:34:20] Production.INFO: count ==5069 [2025-04-02 17:34:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:34:06 - End Time 2025-04-02 17:34:06 [2025-04-02 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819738', 'tblTempUsageDetail_20' ) start [2025-04-02 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819738', 'tblTempUsageDetail_20' ) end [2025-04-02 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819738', 'tblTempVendorCDR_20' ) start [2025-04-02 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819738', 'tblTempVendorCDR_20' ) end [2025-04-02 17:34:22] Production.INFO: ProcessCDR(1,14819738,1,1,2) [2025-04-02 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819738', 'tblTempUsageDetail_20' ) start [2025-04-02 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819738', 'tblTempUsageDetail_20' ) end [2025-04-02 17:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:34:28] Production.INFO: ==24904== Releasing lock... [2025-04-02 17:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:34:28] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:35:05 [end_date_ymd] => 2025-04-02 17:35:05 [RateCDR] => 1 ) [2025-04-02 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:35:05' and `end` < '2025-04-02 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:35:19] Production.INFO: count ==5077 [2025-04-02 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:35:05 - End Time 2025-04-02 17:35:05 [2025-04-02 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819743', 'tblTempUsageDetail_20' ) start [2025-04-02 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819743', 'tblTempUsageDetail_20' ) end [2025-04-02 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819743', 'tblTempVendorCDR_20' ) start [2025-04-02 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819743', 'tblTempVendorCDR_20' ) end [2025-04-02 17:35:22] Production.INFO: ProcessCDR(1,14819743,1,1,2) [2025-04-02 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819743', 'tblTempUsageDetail_20' ) start [2025-04-02 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819743', 'tblTempUsageDetail_20' ) end [2025-04-02 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:35:27] Production.INFO: ==24986== Releasing lock... [2025-04-02 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:35:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:36:05 [end_date_ymd] => 2025-04-02 17:36:05 [RateCDR] => 1 ) [2025-04-02 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:36:05' and `end` < '2025-04-02 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:36:19] Production.INFO: count ==5083 [2025-04-02 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:36:05 - End Time 2025-04-02 17:36:05 [2025-04-02 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819748', 'tblTempUsageDetail_20' ) start [2025-04-02 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819748', 'tblTempUsageDetail_20' ) end [2025-04-02 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819748', 'tblTempVendorCDR_20' ) start [2025-04-02 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819748', 'tblTempVendorCDR_20' ) end [2025-04-02 17:36:21] Production.INFO: ProcessCDR(1,14819748,1,1,2) [2025-04-02 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819748', 'tblTempUsageDetail_20' ) start [2025-04-02 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819748', 'tblTempUsageDetail_20' ) end [2025-04-02 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:36:26] Production.INFO: ==25067== Releasing lock... [2025-04-02 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:36:26] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:37:06 [end_date_ymd] => 2025-04-02 17:37:06 [RateCDR] => 1 ) [2025-04-02 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:37:06' and `end` < '2025-04-02 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:37:19] Production.INFO: count ==5068 [2025-04-02 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:37:06 - End Time 2025-04-02 17:37:06 [2025-04-02 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819753', 'tblTempUsageDetail_20' ) start [2025-04-02 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819753', 'tblTempUsageDetail_20' ) end [2025-04-02 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819753', 'tblTempVendorCDR_20' ) start [2025-04-02 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819753', 'tblTempVendorCDR_20' ) end [2025-04-02 17:37:22] Production.INFO: ProcessCDR(1,14819753,1,1,2) [2025-04-02 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819753', 'tblTempUsageDetail_20' ) start [2025-04-02 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819753', 'tblTempUsageDetail_20' ) end [2025-04-02 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:37:27] Production.INFO: ==25145== Releasing lock... [2025-04-02 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:37:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:38:05 [end_date_ymd] => 2025-04-02 17:38:05 [RateCDR] => 1 ) [2025-04-02 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:38:05' and `end` < '2025-04-02 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:38:19] Production.INFO: count ==5070 [2025-04-02 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:38:05 - End Time 2025-04-02 17:38:05 [2025-04-02 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819758', 'tblTempUsageDetail_20' ) start [2025-04-02 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819758', 'tblTempUsageDetail_20' ) end [2025-04-02 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819758', 'tblTempVendorCDR_20' ) start [2025-04-02 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819758', 'tblTempVendorCDR_20' ) end [2025-04-02 17:38:21] Production.INFO: ProcessCDR(1,14819758,1,1,2) [2025-04-02 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819758', 'tblTempUsageDetail_20' ) start [2025-04-02 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819758', 'tblTempUsageDetail_20' ) end [2025-04-02 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:38:27] Production.INFO: ==25226== Releasing lock... [2025-04-02 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:38:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:39:05 [end_date_ymd] => 2025-04-02 17:39:05 [RateCDR] => 1 ) [2025-04-02 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:39:05' and `end` < '2025-04-02 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:39:19] Production.INFO: count ==5077 [2025-04-02 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:39:05 - End Time 2025-04-02 17:39:05 [2025-04-02 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819763', 'tblTempUsageDetail_20' ) start [2025-04-02 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819763', 'tblTempUsageDetail_20' ) end [2025-04-02 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819763', 'tblTempVendorCDR_20' ) start [2025-04-02 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819763', 'tblTempVendorCDR_20' ) end [2025-04-02 17:39:21] Production.INFO: ProcessCDR(1,14819763,1,1,2) [2025-04-02 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819763', 'tblTempUsageDetail_20' ) start [2025-04-02 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819763', 'tblTempUsageDetail_20' ) end [2025-04-02 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:39:27] Production.INFO: ==25307== Releasing lock... [2025-04-02 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:39:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:40:06 [end_date_ymd] => 2025-04-02 17:40:06 [RateCDR] => 1 ) [2025-04-02 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:40:06' and `end` < '2025-04-02 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:40:20] Production.INFO: count ==5076 [2025-04-02 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:40:06 - End Time 2025-04-02 17:40:06 [2025-04-02 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819769', 'tblTempUsageDetail_20' ) start [2025-04-02 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819769', 'tblTempUsageDetail_20' ) end [2025-04-02 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819769', 'tblTempVendorCDR_20' ) start [2025-04-02 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819769', 'tblTempVendorCDR_20' ) end [2025-04-02 17:40:22] Production.INFO: ProcessCDR(1,14819769,1,1,2) [2025-04-02 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819769', 'tblTempUsageDetail_20' ) start [2025-04-02 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819769', 'tblTempUsageDetail_20' ) end [2025-04-02 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:40:27] Production.INFO: ==25390== Releasing lock... [2025-04-02 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:40:27] Production.INFO: 66 MB #Memory Used# [2025-04-02 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:41:06 [end_date_ymd] => 2025-04-02 17:41:06 [RateCDR] => 1 ) [2025-04-02 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:41:06' and `end` < '2025-04-02 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:41:19] Production.INFO: count ==5060 [2025-04-02 17:41:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:41:06 - End Time 2025-04-02 17:41:06 [2025-04-02 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819774', 'tblTempUsageDetail_20' ) start [2025-04-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819774', 'tblTempUsageDetail_20' ) end [2025-04-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819774', 'tblTempVendorCDR_20' ) start [2025-04-02 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819774', 'tblTempVendorCDR_20' ) end [2025-04-02 17:41:22] Production.INFO: ProcessCDR(1,14819774,1,1,2) [2025-04-02 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819774', 'tblTempUsageDetail_20' ) start [2025-04-02 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819774', 'tblTempUsageDetail_20' ) end [2025-04-02 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:41:27] Production.INFO: ==25470== Releasing lock... [2025-04-02 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:41:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:42:06 [end_date_ymd] => 2025-04-02 17:42:06 [RateCDR] => 1 ) [2025-04-02 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:42:06' and `end` < '2025-04-02 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:42:19] Production.INFO: count ==5056 [2025-04-02 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:42:06 - End Time 2025-04-02 17:42:06 [2025-04-02 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819779', 'tblTempUsageDetail_20' ) start [2025-04-02 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819779', 'tblTempUsageDetail_20' ) end [2025-04-02 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819779', 'tblTempVendorCDR_20' ) start [2025-04-02 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819779', 'tblTempVendorCDR_20' ) end [2025-04-02 17:42:21] Production.INFO: ProcessCDR(1,14819779,1,1,2) [2025-04-02 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819779', 'tblTempUsageDetail_20' ) start [2025-04-02 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819779', 'tblTempUsageDetail_20' ) end [2025-04-02 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:42:27] Production.INFO: ==25542== Releasing lock... [2025-04-02 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:42:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:43:05 [end_date_ymd] => 2025-04-02 17:43:05 [RateCDR] => 1 ) [2025-04-02 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:43:05' and `end` < '2025-04-02 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:43:19] Production.INFO: count ==5042 [2025-04-02 17:43:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:43:05 - End Time 2025-04-02 17:43:05 [2025-04-02 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819784', 'tblTempUsageDetail_20' ) start [2025-04-02 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819784', 'tblTempUsageDetail_20' ) end [2025-04-02 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819784', 'tblTempVendorCDR_20' ) start [2025-04-02 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819784', 'tblTempVendorCDR_20' ) end [2025-04-02 17:43:21] Production.INFO: ProcessCDR(1,14819784,1,1,2) [2025-04-02 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819784', 'tblTempUsageDetail_20' ) start [2025-04-02 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819784', 'tblTempUsageDetail_20' ) end [2025-04-02 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:43:27] Production.INFO: ==25618== Releasing lock... [2025-04-02 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:43:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:44:05 [end_date_ymd] => 2025-04-02 17:44:05 [RateCDR] => 1 ) [2025-04-02 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:44:05' and `end` < '2025-04-02 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:44:19] Production.INFO: count ==5039 [2025-04-02 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:44:05 - End Time 2025-04-02 17:44:05 [2025-04-02 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819789', 'tblTempUsageDetail_20' ) start [2025-04-02 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819789', 'tblTempUsageDetail_20' ) end [2025-04-02 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819789', 'tblTempVendorCDR_20' ) start [2025-04-02 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819789', 'tblTempVendorCDR_20' ) end [2025-04-02 17:44:21] Production.INFO: ProcessCDR(1,14819789,1,1,2) [2025-04-02 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819789', 'tblTempUsageDetail_20' ) start [2025-04-02 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819789', 'tblTempUsageDetail_20' ) end [2025-04-02 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:44:26] Production.INFO: ==25691== Releasing lock... [2025-04-02 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:45:06 [end_date_ymd] => 2025-04-02 17:45:06 [RateCDR] => 1 ) [2025-04-02 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:45:06' and `end` < '2025-04-02 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:45:19] Production.INFO: count ==5050 [2025-04-02 17:45:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:45:06 - End Time 2025-04-02 17:45:06 [2025-04-02 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819794', 'tblTempUsageDetail_20' ) start [2025-04-02 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819794', 'tblTempUsageDetail_20' ) end [2025-04-02 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819794', 'tblTempVendorCDR_20' ) start [2025-04-02 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819794', 'tblTempVendorCDR_20' ) end [2025-04-02 17:45:22] Production.INFO: ProcessCDR(1,14819794,1,1,2) [2025-04-02 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819794', 'tblTempUsageDetail_20' ) start [2025-04-02 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819794', 'tblTempUsageDetail_20' ) end [2025-04-02 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:45:27] Production.INFO: ==25772== Releasing lock... [2025-04-02 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:45:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:46:06 [end_date_ymd] => 2025-04-02 17:46:06 [RateCDR] => 1 ) [2025-04-02 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:46:06' and `end` < '2025-04-02 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:46:20] Production.INFO: count ==5049 [2025-04-02 17:46:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:46:06 - End Time 2025-04-02 17:46:06 [2025-04-02 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819799', 'tblTempUsageDetail_20' ) start [2025-04-02 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819799', 'tblTempUsageDetail_20' ) end [2025-04-02 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819799', 'tblTempVendorCDR_20' ) start [2025-04-02 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819799', 'tblTempVendorCDR_20' ) end [2025-04-02 17:46:22] Production.INFO: ProcessCDR(1,14819799,1,1,2) [2025-04-02 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819799', 'tblTempUsageDetail_20' ) start [2025-04-02 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819799', 'tblTempUsageDetail_20' ) end [2025-04-02 17:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:46:28] Production.INFO: ==25844== Releasing lock... [2025-04-02 17:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:46:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:47:06 [end_date_ymd] => 2025-04-02 17:47:06 [RateCDR] => 1 ) [2025-04-02 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:47:06' and `end` < '2025-04-02 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:47:19] Production.INFO: count ==5053 [2025-04-02 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:47:06 - End Time 2025-04-02 17:47:06 [2025-04-02 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819804', 'tblTempUsageDetail_20' ) start [2025-04-02 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819804', 'tblTempUsageDetail_20' ) end [2025-04-02 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819804', 'tblTempVendorCDR_20' ) start [2025-04-02 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819804', 'tblTempVendorCDR_20' ) end [2025-04-02 17:47:21] Production.INFO: ProcessCDR(1,14819804,1,1,2) [2025-04-02 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819804', 'tblTempUsageDetail_20' ) start [2025-04-02 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819804', 'tblTempUsageDetail_20' ) end [2025-04-02 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:47:25] Production.INFO: ==25926== Releasing lock... [2025-04-02 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:47:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:48:05 [end_date_ymd] => 2025-04-02 17:48:05 [RateCDR] => 1 ) [2025-04-02 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:48:05' and `end` < '2025-04-02 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:48:19] Production.INFO: count ==5036 [2025-04-02 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:48:05 - End Time 2025-04-02 17:48:05 [2025-04-02 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819809', 'tblTempUsageDetail_20' ) start [2025-04-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819809', 'tblTempUsageDetail_20' ) end [2025-04-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819809', 'tblTempVendorCDR_20' ) start [2025-04-02 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819809', 'tblTempVendorCDR_20' ) end [2025-04-02 17:48:21] Production.INFO: ProcessCDR(1,14819809,1,1,2) [2025-04-02 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819809', 'tblTempUsageDetail_20' ) start [2025-04-02 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819809', 'tblTempUsageDetail_20' ) end [2025-04-02 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:48:25] Production.INFO: ==25995== Releasing lock... [2025-04-02 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:48:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:49:06 [end_date_ymd] => 2025-04-02 17:49:06 [RateCDR] => 1 ) [2025-04-02 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:49:06' and `end` < '2025-04-02 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:49:20] Production.INFO: count ==5037 [2025-04-02 17:49:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:49:06 - End Time 2025-04-02 17:49:06 [2025-04-02 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819814', 'tblTempUsageDetail_20' ) start [2025-04-02 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819814', 'tblTempUsageDetail_20' ) end [2025-04-02 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819814', 'tblTempVendorCDR_20' ) start [2025-04-02 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819814', 'tblTempVendorCDR_20' ) end [2025-04-02 17:49:22] Production.INFO: ProcessCDR(1,14819814,1,1,2) [2025-04-02 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819814', 'tblTempUsageDetail_20' ) start [2025-04-02 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819814', 'tblTempUsageDetail_20' ) end [2025-04-02 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:49:27] Production.INFO: ==26112== Releasing lock... [2025-04-02 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:49:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:50:06 [end_date_ymd] => 2025-04-02 17:50:06 [RateCDR] => 1 ) [2025-04-02 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:50:06' and `end` < '2025-04-02 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:50:19] Production.INFO: count ==5037 [2025-04-02 17:50:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:50:06 - End Time 2025-04-02 17:50:06 [2025-04-02 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819820', 'tblTempUsageDetail_20' ) start [2025-04-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819820', 'tblTempUsageDetail_20' ) end [2025-04-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819820', 'tblTempVendorCDR_20' ) start [2025-04-02 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819820', 'tblTempVendorCDR_20' ) end [2025-04-02 17:50:21] Production.INFO: ProcessCDR(1,14819820,1,1,2) [2025-04-02 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819820', 'tblTempUsageDetail_20' ) start [2025-04-02 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819820', 'tblTempUsageDetail_20' ) end [2025-04-02 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:50:27] Production.INFO: ==26188== Releasing lock... [2025-04-02 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:50:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:51:05 [end_date_ymd] => 2025-04-02 17:51:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 14:51:05' and `end` < '2025-04-02 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-04-02 17:51:19] Production.INFO: count ==5038 [2025-04-02 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:51:05 - End Time 2025-04-02 17:51:05 [2025-04-02 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819825', 'tblTempUsageDetail_20' ) start [2025-04-02 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819825', 'tblTempUsageDetail_20' ) end [2025-04-02 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819825', 'tblTempVendorCDR_20' ) start [2025-04-02 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819825', 'tblTempVendorCDR_20' ) end [2025-04-02 17:51:21] Production.INFO: ProcessCDR(1,14819825,1,1,2) [2025-04-02 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819825', 'tblTempUsageDetail_20' ) start [2025-04-02 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819825', 'tblTempUsageDetail_20' ) end [2025-04-02 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:51:26] Production.INFO: ==26261== Releasing lock... [2025-04-02 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:51:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:52:05 [end_date_ymd] => 2025-04-02 17:52:05 [RateCDR] => 1 ) [2025-04-02 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:52:05' and `end` < '2025-04-02 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:52:19] Production.INFO: count ==5036 [2025-04-02 17:52:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:52:05 - End Time 2025-04-02 17:52:05 [2025-04-02 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819830', 'tblTempUsageDetail_20' ) start [2025-04-02 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819830', 'tblTempUsageDetail_20' ) end [2025-04-02 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819830', 'tblTempVendorCDR_20' ) start [2025-04-02 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819830', 'tblTempVendorCDR_20' ) end [2025-04-02 17:52:21] Production.INFO: ProcessCDR(1,14819830,1,1,2) [2025-04-02 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819830', 'tblTempUsageDetail_20' ) start [2025-04-02 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819830', 'tblTempUsageDetail_20' ) end [2025-04-02 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:52:26] Production.INFO: ==26332== Releasing lock... [2025-04-02 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:52:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:53:06 [end_date_ymd] => 2025-04-02 17:53:06 [RateCDR] => 1 ) [2025-04-02 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:53:06' and `end` < '2025-04-02 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:53:20] Production.INFO: count ==5032 [2025-04-02 17:53:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:53:06 - End Time 2025-04-02 17:53:06 [2025-04-02 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819835', 'tblTempUsageDetail_20' ) start [2025-04-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819835', 'tblTempUsageDetail_20' ) end [2025-04-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819835', 'tblTempVendorCDR_20' ) start [2025-04-02 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819835', 'tblTempVendorCDR_20' ) end [2025-04-02 17:53:22] Production.INFO: ProcessCDR(1,14819835,1,1,2) [2025-04-02 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819835', 'tblTempUsageDetail_20' ) start [2025-04-02 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819835', 'tblTempUsageDetail_20' ) end [2025-04-02 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:53:27] Production.INFO: ==26408== Releasing lock... [2025-04-02 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:53:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-02 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:54:05 [end_date_ymd] => 2025-04-02 17:54:05 [RateCDR] => 1 ) [2025-04-02 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:54:05' and `end` < '2025-04-02 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:54:18] Production.INFO: count ==5021 [2025-04-02 17:54:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:54:05 - End Time 2025-04-02 17:54:05 [2025-04-02 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819840', 'tblTempUsageDetail_20' ) start [2025-04-02 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819840', 'tblTempUsageDetail_20' ) end [2025-04-02 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819840', 'tblTempVendorCDR_20' ) start [2025-04-02 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819840', 'tblTempVendorCDR_20' ) end [2025-04-02 17:54:21] Production.INFO: ProcessCDR(1,14819840,1,1,2) [2025-04-02 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819840', 'tblTempUsageDetail_20' ) start [2025-04-02 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819840', 'tblTempUsageDetail_20' ) end [2025-04-02 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:54:26] Production.INFO: ==26484== Releasing lock... [2025-04-02 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:54:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:55:06 [end_date_ymd] => 2025-04-02 17:55:06 [RateCDR] => 1 ) [2025-04-02 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:55:06' and `end` < '2025-04-02 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:55:19] Production.INFO: count ==4999 [2025-04-02 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:55:06 - End Time 2025-04-02 17:55:06 [2025-04-02 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819845', 'tblTempUsageDetail_20' ) start [2025-04-02 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819845', 'tblTempUsageDetail_20' ) end [2025-04-02 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819845', 'tblTempVendorCDR_20' ) start [2025-04-02 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819845', 'tblTempVendorCDR_20' ) end [2025-04-02 17:55:22] Production.INFO: ProcessCDR(1,14819845,1,1,2) [2025-04-02 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819845', 'tblTempUsageDetail_20' ) start [2025-04-02 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819845', 'tblTempUsageDetail_20' ) end [2025-04-02 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:55:27] Production.INFO: ==26556== Releasing lock... [2025-04-02 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:55:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-02 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:56:05 [end_date_ymd] => 2025-04-02 17:56:05 [RateCDR] => 1 ) [2025-04-02 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:56:05' and `end` < '2025-04-02 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:56:19] Production.INFO: count ==4971 [2025-04-02 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:56:05 - End Time 2025-04-02 17:56:05 [2025-04-02 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819850', 'tblTempUsageDetail_20' ) start [2025-04-02 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819850', 'tblTempUsageDetail_20' ) end [2025-04-02 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819850', 'tblTempVendorCDR_20' ) start [2025-04-02 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819850', 'tblTempVendorCDR_20' ) end [2025-04-02 17:56:21] Production.INFO: ProcessCDR(1,14819850,1,1,2) [2025-04-02 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819850', 'tblTempUsageDetail_20' ) start [2025-04-02 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819850', 'tblTempUsageDetail_20' ) end [2025-04-02 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:56:24] Production.INFO: ==26633== Releasing lock... [2025-04-02 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:56:24] Production.INFO: 65.25 MB #Memory Used# [2025-04-02 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:57:06 [end_date_ymd] => 2025-04-02 17:57:06 [RateCDR] => 1 ) [2025-04-02 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:57:06' and `end` < '2025-04-02 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:57:19] Production.INFO: count ==4962 [2025-04-02 17:57:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:57:06 - End Time 2025-04-02 17:57:06 [2025-04-02 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819855', 'tblTempUsageDetail_20' ) start [2025-04-02 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819855', 'tblTempUsageDetail_20' ) end [2025-04-02 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819855', 'tblTempVendorCDR_20' ) start [2025-04-02 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819855', 'tblTempVendorCDR_20' ) end [2025-04-02 17:57:22] Production.INFO: ProcessCDR(1,14819855,1,1,2) [2025-04-02 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819855', 'tblTempUsageDetail_20' ) start [2025-04-02 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819855', 'tblTempUsageDetail_20' ) end [2025-04-02 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:57:27] Production.INFO: ==26706== Releasing lock... [2025-04-02 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:57:27] Production.INFO: 65 MB #Memory Used# [2025-04-02 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:58:05 [end_date_ymd] => 2025-04-02 17:58:05 [RateCDR] => 1 ) [2025-04-02 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:58:05' and `end` < '2025-04-02 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:58:19] Production.INFO: count ==4933 [2025-04-02 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-02 14:58:05 - End Time 2025-04-02 17:58:05 [2025-04-02 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819860', 'tblTempUsageDetail_20' ) start [2025-04-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819860', 'tblTempUsageDetail_20' ) end [2025-04-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819860', 'tblTempVendorCDR_20' ) start [2025-04-02 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819860', 'tblTempVendorCDR_20' ) end [2025-04-02 17:58:21] Production.INFO: ProcessCDR(1,14819860,1,1,2) [2025-04-02 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819860', 'tblTempUsageDetail_20' ) start [2025-04-02 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819860', 'tblTempUsageDetail_20' ) end [2025-04-02 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:58:26] Production.INFO: ==26775== Releasing lock... [2025-04-02 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:58:26] Production.INFO: 65 MB #Memory Used# [2025-04-02 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 14:59:06 [end_date_ymd] => 2025-04-02 17:59:06 [RateCDR] => 1 ) [2025-04-02 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 14:59:06' and `end` < '2025-04-02 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 17:59:20] Production.INFO: count ==4910 [2025-04-02 17:59:22] Production.ERROR: pbx CDR StartTime 2025-04-02 14:59:06 - End Time 2025-04-02 17:59:06 [2025-04-02 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819865', 'tblTempUsageDetail_20' ) start [2025-04-02 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819865', 'tblTempUsageDetail_20' ) end [2025-04-02 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819865', 'tblTempVendorCDR_20' ) start [2025-04-02 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819865', 'tblTempVendorCDR_20' ) end [2025-04-02 17:59:22] Production.INFO: ProcessCDR(1,14819865,1,1,2) [2025-04-02 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 17:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819865', 'tblTempUsageDetail_20' ) start [2025-04-02 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819865', 'tblTempUsageDetail_20' ) end [2025-04-02 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 17:59:27] Production.INFO: ==26855== Releasing lock... [2025-04-02 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 17:59:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-02 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:00:07 [end_date_ymd] => 2025-04-02 18:00:07 [RateCDR] => 1 ) [2025-04-02 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:00:07' and `end` < '2025-04-02 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:00:20] Production.INFO: count ==4897 [2025-04-02 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:00:07 - End Time 2025-04-02 18:00:07 [2025-04-02 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819871', 'tblTempUsageDetail_20' ) start [2025-04-02 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819871', 'tblTempUsageDetail_20' ) end [2025-04-02 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819871', 'tblTempVendorCDR_20' ) start [2025-04-02 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819871', 'tblTempVendorCDR_20' ) end [2025-04-02 18:00:23] Production.INFO: ProcessCDR(1,14819871,1,1,2) [2025-04-02 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819871', 'tblTempUsageDetail_20' ) start [2025-04-02 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819871', 'tblTempUsageDetail_20' ) end [2025-04-02 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:00:28] Production.INFO: ==26930== Releasing lock... [2025-04-02 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:00:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-02 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:01:06 [end_date_ymd] => 2025-04-02 18:01:06 [RateCDR] => 1 ) [2025-04-02 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:01:06' and `end` < '2025-04-02 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:01:19] Production.INFO: count ==4803 [2025-04-02 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:01:06 - End Time 2025-04-02 18:01:06 [2025-04-02 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819876', 'tblTempUsageDetail_20' ) start [2025-04-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819876', 'tblTempUsageDetail_20' ) end [2025-04-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819876', 'tblTempVendorCDR_20' ) start [2025-04-02 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819876', 'tblTempVendorCDR_20' ) end [2025-04-02 18:01:21] Production.INFO: ProcessCDR(1,14819876,1,1,2) [2025-04-02 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819876', 'tblTempUsageDetail_20' ) start [2025-04-02 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819876', 'tblTempUsageDetail_20' ) end [2025-04-02 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:01:27] Production.INFO: ==27017== Releasing lock... [2025-04-02 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:01:27] Production.INFO: 64 MB #Memory Used# [2025-04-02 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:02:06 [end_date_ymd] => 2025-04-02 18:02:06 [RateCDR] => 1 ) [2025-04-02 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:02:06' and `end` < '2025-04-02 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:02:19] Production.INFO: count ==4732 [2025-04-02 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:02:06 - End Time 2025-04-02 18:02:06 [2025-04-02 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819881', 'tblTempUsageDetail_20' ) start [2025-04-02 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819881', 'tblTempUsageDetail_20' ) end [2025-04-02 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819881', 'tblTempVendorCDR_20' ) start [2025-04-02 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819881', 'tblTempVendorCDR_20' ) end [2025-04-02 18:02:21] Production.INFO: ProcessCDR(1,14819881,1,1,2) [2025-04-02 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819881', 'tblTempUsageDetail_20' ) start [2025-04-02 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819881', 'tblTempUsageDetail_20' ) end [2025-04-02 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:02:26] Production.INFO: ==27089== Releasing lock... [2025-04-02 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:02:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:03:05 [end_date_ymd] => 2025-04-02 18:03:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:03:05' and `end` < '2025-04-02 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-04-02 18:03:19] Production.INFO: count ==4736 [2025-04-02 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:03:05 - End Time 2025-04-02 18:03:05 [2025-04-02 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819886', 'tblTempUsageDetail_20' ) start [2025-04-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819886', 'tblTempUsageDetail_20' ) end [2025-04-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819886', 'tblTempVendorCDR_20' ) start [2025-04-02 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819886', 'tblTempVendorCDR_20' ) end [2025-04-02 18:03:21] Production.INFO: ProcessCDR(1,14819886,1,1,2) [2025-04-02 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819886', 'tblTempUsageDetail_20' ) start [2025-04-02 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819886', 'tblTempUsageDetail_20' ) end [2025-04-02 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:03:26] Production.INFO: ==27162== Releasing lock... [2025-04-02 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:03:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:04:05 [end_date_ymd] => 2025-04-02 18:04:05 [RateCDR] => 1 ) [2025-04-02 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:04:05' and `end` < '2025-04-02 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:04:19] Production.INFO: count ==4731 [2025-04-02 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:04:05 - End Time 2025-04-02 18:04:05 [2025-04-02 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819891', 'tblTempUsageDetail_20' ) start [2025-04-02 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819891', 'tblTempUsageDetail_20' ) end [2025-04-02 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819891', 'tblTempVendorCDR_20' ) start [2025-04-02 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819891', 'tblTempVendorCDR_20' ) end [2025-04-02 18:04:21] Production.INFO: ProcessCDR(1,14819891,1,1,2) [2025-04-02 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819891', 'tblTempUsageDetail_20' ) start [2025-04-02 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819891', 'tblTempUsageDetail_20' ) end [2025-04-02 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:04:26] Production.INFO: ==27271== Releasing lock... [2025-04-02 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:04:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:05:06 [end_date_ymd] => 2025-04-02 18:05:06 [RateCDR] => 1 ) [2025-04-02 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:05:06' and `end` < '2025-04-02 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:05:20] Production.INFO: count ==4728 [2025-04-02 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:05:06 - End Time 2025-04-02 18:05:06 [2025-04-02 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819896', 'tblTempUsageDetail_20' ) start [2025-04-02 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819896', 'tblTempUsageDetail_20' ) end [2025-04-02 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819896', 'tblTempVendorCDR_20' ) start [2025-04-02 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819896', 'tblTempVendorCDR_20' ) end [2025-04-02 18:05:22] Production.INFO: ProcessCDR(1,14819896,1,1,2) [2025-04-02 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819896', 'tblTempUsageDetail_20' ) start [2025-04-02 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819896', 'tblTempUsageDetail_20' ) end [2025-04-02 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:05:27] Production.INFO: ==27345== Releasing lock... [2025-04-02 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:05:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:06:06 [end_date_ymd] => 2025-04-02 18:06:06 [RateCDR] => 1 ) [2025-04-02 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:06:06' and `end` < '2025-04-02 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:06:19] Production.INFO: count ==4718 [2025-04-02 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:06:06 - End Time 2025-04-02 18:06:06 [2025-04-02 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819901', 'tblTempUsageDetail_20' ) start [2025-04-02 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819901', 'tblTempUsageDetail_20' ) end [2025-04-02 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819901', 'tblTempVendorCDR_20' ) start [2025-04-02 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819901', 'tblTempVendorCDR_20' ) end [2025-04-02 18:06:22] Production.INFO: ProcessCDR(1,14819901,1,1,2) [2025-04-02 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819901', 'tblTempUsageDetail_20' ) start [2025-04-02 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819901', 'tblTempUsageDetail_20' ) end [2025-04-02 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:06:28] Production.INFO: ==27417== Releasing lock... [2025-04-02 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:06:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-02 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:07:06 [end_date_ymd] => 2025-04-02 18:07:06 [RateCDR] => 1 ) [2025-04-02 18:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:07:06' and `end` < '2025-04-02 18:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:07:20] Production.INFO: count ==4739 [2025-04-02 18:07:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:07:06 - End Time 2025-04-02 18:07:06 [2025-04-02 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819906', 'tblTempUsageDetail_20' ) start [2025-04-02 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819906', 'tblTempUsageDetail_20' ) end [2025-04-02 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819906', 'tblTempVendorCDR_20' ) start [2025-04-02 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819906', 'tblTempVendorCDR_20' ) end [2025-04-02 18:07:22] Production.INFO: ProcessCDR(1,14819906,1,1,2) [2025-04-02 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819906', 'tblTempUsageDetail_20' ) start [2025-04-02 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819906', 'tblTempUsageDetail_20' ) end [2025-04-02 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:07:28] Production.INFO: ==27489== Releasing lock... [2025-04-02 18:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:07:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:08:06 [end_date_ymd] => 2025-04-02 18:08:06 [RateCDR] => 1 ) [2025-04-02 18:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:08:06' and `end` < '2025-04-02 18:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:08:20] Production.INFO: count ==4743 [2025-04-02 18:08:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:08:06 - End Time 2025-04-02 18:08:06 [2025-04-02 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819911', 'tblTempUsageDetail_20' ) start [2025-04-02 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819911', 'tblTempUsageDetail_20' ) end [2025-04-02 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819911', 'tblTempVendorCDR_20' ) start [2025-04-02 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819911', 'tblTempVendorCDR_20' ) end [2025-04-02 18:08:22] Production.INFO: ProcessCDR(1,14819911,1,1,2) [2025-04-02 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819911', 'tblTempUsageDetail_20' ) start [2025-04-02 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819911', 'tblTempUsageDetail_20' ) end [2025-04-02 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:08:26] Production.INFO: ==27561== Releasing lock... [2025-04-02 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:08:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:09:06 [end_date_ymd] => 2025-04-02 18:09:06 [RateCDR] => 1 ) [2025-04-02 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:09:06' and `end` < '2025-04-02 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:09:20] Production.INFO: count ==4743 [2025-04-02 18:09:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:09:06 - End Time 2025-04-02 18:09:06 [2025-04-02 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819916', 'tblTempUsageDetail_20' ) start [2025-04-02 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819916', 'tblTempUsageDetail_20' ) end [2025-04-02 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819916', 'tblTempVendorCDR_20' ) start [2025-04-02 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819916', 'tblTempVendorCDR_20' ) end [2025-04-02 18:09:22] Production.INFO: ProcessCDR(1,14819916,1,1,2) [2025-04-02 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819916', 'tblTempUsageDetail_20' ) start [2025-04-02 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819916', 'tblTempUsageDetail_20' ) end [2025-04-02 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:09:27] Production.INFO: ==27634== Releasing lock... [2025-04-02 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:09:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:10:06 [end_date_ymd] => 2025-04-02 18:10:06 [RateCDR] => 1 ) [2025-04-02 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:10:06' and `end` < '2025-04-02 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:10:20] Production.INFO: count ==4732 [2025-04-02 18:10:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:10:06 - End Time 2025-04-02 18:10:06 [2025-04-02 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819922', 'tblTempUsageDetail_20' ) start [2025-04-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819922', 'tblTempUsageDetail_20' ) end [2025-04-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819922', 'tblTempVendorCDR_20' ) start [2025-04-02 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819922', 'tblTempVendorCDR_20' ) end [2025-04-02 18:10:22] Production.INFO: ProcessCDR(1,14819922,1,1,2) [2025-04-02 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819922', 'tblTempUsageDetail_20' ) start [2025-04-02 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819922', 'tblTempUsageDetail_20' ) end [2025-04-02 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:10:28] Production.INFO: ==27707== Releasing lock... [2025-04-02 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:10:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-02 18:11:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:11:07 [end_date_ymd] => 2025-04-02 18:11:07 [RateCDR] => 1 ) [2025-04-02 18:11:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:11:07' and `end` < '2025-04-02 18:11:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:11:20] Production.INFO: count ==4681 [2025-04-02 18:11:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:11:07 - End Time 2025-04-02 18:11:07 [2025-04-02 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819927', 'tblTempUsageDetail_20' ) start [2025-04-02 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819927', 'tblTempUsageDetail_20' ) end [2025-04-02 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819927', 'tblTempVendorCDR_20' ) start [2025-04-02 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819927', 'tblTempVendorCDR_20' ) end [2025-04-02 18:11:22] Production.INFO: ProcessCDR(1,14819927,1,1,2) [2025-04-02 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819927', 'tblTempUsageDetail_20' ) start [2025-04-02 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819927', 'tblTempUsageDetail_20' ) end [2025-04-02 18:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:11:28] Production.INFO: ==27784== Releasing lock... [2025-04-02 18:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:11:28] Production.INFO: 63 MB #Memory Used# [2025-04-02 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:12:06 [end_date_ymd] => 2025-04-02 18:12:06 [RateCDR] => 1 ) [2025-04-02 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:12:06' and `end` < '2025-04-02 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:12:19] Production.INFO: count ==4672 [2025-04-02 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:12:06 - End Time 2025-04-02 18:12:06 [2025-04-02 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819932', 'tblTempUsageDetail_20' ) start [2025-04-02 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819932', 'tblTempUsageDetail_20' ) end [2025-04-02 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819932', 'tblTempVendorCDR_20' ) start [2025-04-02 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819932', 'tblTempVendorCDR_20' ) end [2025-04-02 18:12:21] Production.INFO: ProcessCDR(1,14819932,1,1,2) [2025-04-02 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819932', 'tblTempUsageDetail_20' ) start [2025-04-02 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819932', 'tblTempUsageDetail_20' ) end [2025-04-02 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:12:27] Production.INFO: ==27858== Releasing lock... [2025-04-02 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:12:27] Production.INFO: 63 MB #Memory Used# [2025-04-02 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:13:06 [end_date_ymd] => 2025-04-02 18:13:06 [RateCDR] => 1 ) [2025-04-02 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:13:06' and `end` < '2025-04-02 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:13:19] Production.INFO: count ==4669 [2025-04-02 18:13:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:13:06 - End Time 2025-04-02 18:13:06 [2025-04-02 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819937', 'tblTempUsageDetail_20' ) start [2025-04-02 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819937', 'tblTempUsageDetail_20' ) end [2025-04-02 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819937', 'tblTempVendorCDR_20' ) start [2025-04-02 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819937', 'tblTempVendorCDR_20' ) end [2025-04-02 18:13:21] Production.INFO: ProcessCDR(1,14819937,1,1,2) [2025-04-02 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819937', 'tblTempUsageDetail_20' ) start [2025-04-02 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819937', 'tblTempUsageDetail_20' ) end [2025-04-02 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:13:24] Production.INFO: ==27928== Releasing lock... [2025-04-02 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:13:24] Production.INFO: 63 MB #Memory Used# [2025-04-02 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:14:05 [end_date_ymd] => 2025-04-02 18:14:05 [RateCDR] => 1 ) [2025-04-02 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:14:05' and `end` < '2025-04-02 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:14:18] Production.INFO: count ==4650 [2025-04-02 18:14:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:14:05 - End Time 2025-04-02 18:14:05 [2025-04-02 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819942', 'tblTempUsageDetail_20' ) start [2025-04-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819942', 'tblTempUsageDetail_20' ) end [2025-04-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819942', 'tblTempVendorCDR_20' ) start [2025-04-02 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819942', 'tblTempVendorCDR_20' ) end [2025-04-02 18:14:20] Production.INFO: ProcessCDR(1,14819942,1,1,2) [2025-04-02 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819942', 'tblTempUsageDetail_20' ) start [2025-04-02 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819942', 'tblTempUsageDetail_20' ) end [2025-04-02 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:14:24] Production.INFO: ==28008== Releasing lock... [2025-04-02 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:14:24] Production.INFO: 63 MB #Memory Used# [2025-04-02 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:15:06 [end_date_ymd] => 2025-04-02 18:15:06 [RateCDR] => 1 ) [2025-04-02 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:15:06' and `end` < '2025-04-02 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:15:19] Production.INFO: count ==4632 [2025-04-02 18:15:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:15:06 - End Time 2025-04-02 18:15:06 [2025-04-02 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819947', 'tblTempUsageDetail_20' ) start [2025-04-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819947', 'tblTempUsageDetail_20' ) end [2025-04-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819947', 'tblTempVendorCDR_20' ) start [2025-04-02 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819947', 'tblTempVendorCDR_20' ) end [2025-04-02 18:15:21] Production.INFO: ProcessCDR(1,14819947,1,1,2) [2025-04-02 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819947', 'tblTempUsageDetail_20' ) start [2025-04-02 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819947', 'tblTempUsageDetail_20' ) end [2025-04-02 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:15:24] Production.INFO: ==28079== Releasing lock... [2025-04-02 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:15:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:16:05 [end_date_ymd] => 2025-04-02 18:16:05 [RateCDR] => 1 ) [2025-04-02 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:16:05' and `end` < '2025-04-02 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:16:18] Production.INFO: count ==4636 [2025-04-02 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:16:05 - End Time 2025-04-02 18:16:05 [2025-04-02 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819952', 'tblTempUsageDetail_20' ) start [2025-04-02 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819952', 'tblTempUsageDetail_20' ) end [2025-04-02 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819952', 'tblTempVendorCDR_20' ) start [2025-04-02 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819952', 'tblTempVendorCDR_20' ) end [2025-04-02 18:16:20] Production.INFO: ProcessCDR(1,14819952,1,1,2) [2025-04-02 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819952', 'tblTempUsageDetail_20' ) start [2025-04-02 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819952', 'tblTempUsageDetail_20' ) end [2025-04-02 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:16:24] Production.INFO: ==28149== Releasing lock... [2025-04-02 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:16:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:17:06 [end_date_ymd] => 2025-04-02 18:17:06 [RateCDR] => 1 ) [2025-04-02 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:17:06' and `end` < '2025-04-02 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:17:19] Production.INFO: count ==4631 [2025-04-02 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:17:06 - End Time 2025-04-02 18:17:06 [2025-04-02 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819957', 'tblTempUsageDetail_20' ) start [2025-04-02 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819957', 'tblTempUsageDetail_20' ) end [2025-04-02 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819957', 'tblTempVendorCDR_20' ) start [2025-04-02 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819957', 'tblTempVendorCDR_20' ) end [2025-04-02 18:17:21] Production.INFO: ProcessCDR(1,14819957,1,1,2) [2025-04-02 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819957', 'tblTempUsageDetail_20' ) start [2025-04-02 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819957', 'tblTempUsageDetail_20' ) end [2025-04-02 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:17:24] Production.INFO: ==28221== Releasing lock... [2025-04-02 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:17:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-02 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:18:06 [end_date_ymd] => 2025-04-02 18:18:06 [RateCDR] => 1 ) [2025-04-02 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:18:06' and `end` < '2025-04-02 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:18:19] Production.INFO: count ==4621 [2025-04-02 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:18:06 - End Time 2025-04-02 18:18:06 [2025-04-02 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819962', 'tblTempUsageDetail_20' ) start [2025-04-02 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819962', 'tblTempUsageDetail_20' ) end [2025-04-02 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819962', 'tblTempVendorCDR_20' ) start [2025-04-02 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819962', 'tblTempVendorCDR_20' ) end [2025-04-02 18:18:21] Production.INFO: ProcessCDR(1,14819962,1,1,2) [2025-04-02 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819962', 'tblTempUsageDetail_20' ) start [2025-04-02 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819962', 'tblTempUsageDetail_20' ) end [2025-04-02 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:18:26] Production.INFO: ==28298== Releasing lock... [2025-04-02 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:18:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-02 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:19:06 [end_date_ymd] => 2025-04-02 18:19:06 [RateCDR] => 1 ) [2025-04-02 18:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:19:06' and `end` < '2025-04-02 18:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:19:20] Production.INFO: count ==4615 [2025-04-02 18:19:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:19:06 - End Time 2025-04-02 18:19:06 [2025-04-02 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819967', 'tblTempUsageDetail_20' ) start [2025-04-02 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819967', 'tblTempUsageDetail_20' ) end [2025-04-02 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819967', 'tblTempVendorCDR_20' ) start [2025-04-02 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819967', 'tblTempVendorCDR_20' ) end [2025-04-02 18:19:21] Production.INFO: ProcessCDR(1,14819967,1,1,2) [2025-04-02 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819967', 'tblTempUsageDetail_20' ) start [2025-04-02 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819967', 'tblTempUsageDetail_20' ) end [2025-04-02 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:19:25] Production.INFO: ==28374== Releasing lock... [2025-04-02 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:19:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-02 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:20:06 [end_date_ymd] => 2025-04-02 18:20:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:20:06' and `end` < '2025-04-02 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:20:20] Production.INFO: count ==4596 [2025-04-02 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:20:06 - End Time 2025-04-02 18:20:06 [2025-04-02 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819972', 'tblTempUsageDetail_20' ) start [2025-04-02 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819972', 'tblTempUsageDetail_20' ) end [2025-04-02 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819972', 'tblTempVendorCDR_20' ) start [2025-04-02 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819972', 'tblTempVendorCDR_20' ) end [2025-04-02 18:20:21] Production.INFO: ProcessCDR(1,14819972,1,1,2) [2025-04-02 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819972', 'tblTempUsageDetail_20' ) start [2025-04-02 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819972', 'tblTempUsageDetail_20' ) end [2025-04-02 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:20:25] Production.INFO: ==28485== Releasing lock... [2025-04-02 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:20:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-02 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:21:06 [end_date_ymd] => 2025-04-02 18:21:06 [RateCDR] => 1 ) [2025-04-02 18:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:21:06' and `end` < '2025-04-02 18:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:21:19] Production.INFO: count ==4547 [2025-04-02 18:21:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:21:06 - End Time 2025-04-02 18:21:06 [2025-04-02 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819978', 'tblTempUsageDetail_20' ) start [2025-04-02 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819978', 'tblTempUsageDetail_20' ) end [2025-04-02 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819978', 'tblTempVendorCDR_20' ) start [2025-04-02 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819978', 'tblTempVendorCDR_20' ) end [2025-04-02 18:21:21] Production.INFO: ProcessCDR(1,14819978,1,1,2) [2025-04-02 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819978', 'tblTempUsageDetail_20' ) start [2025-04-02 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819978', 'tblTempUsageDetail_20' ) end [2025-04-02 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:21:25] Production.INFO: ==28562== Releasing lock... [2025-04-02 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:21:25] Production.INFO: 62 MB #Memory Used# [2025-04-02 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:22:05 [end_date_ymd] => 2025-04-02 18:22:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:22:05' and `end` < '2025-04-02 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-04-02 18:22:19] Production.INFO: count ==4527 [2025-04-02 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:22:05 - End Time 2025-04-02 18:22:05 [2025-04-02 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819983', 'tblTempUsageDetail_20' ) start [2025-04-02 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819983', 'tblTempUsageDetail_20' ) end [2025-04-02 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819983', 'tblTempVendorCDR_20' ) start [2025-04-02 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819983', 'tblTempVendorCDR_20' ) end [2025-04-02 18:22:21] Production.INFO: ProcessCDR(1,14819983,1,1,2) [2025-04-02 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819983', 'tblTempUsageDetail_20' ) start [2025-04-02 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819983', 'tblTempUsageDetail_20' ) end [2025-04-02 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:22:24] Production.INFO: ==28632== Releasing lock... [2025-04-02 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:22:24] Production.INFO: 61.75 MB #Memory Used# [2025-04-02 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:23:05 [end_date_ymd] => 2025-04-02 18:23:05 [RateCDR] => 1 ) [2025-04-02 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:23:05' and `end` < '2025-04-02 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:23:19] Production.INFO: count ==4542 [2025-04-02 18:23:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:23:05 - End Time 2025-04-02 18:23:05 [2025-04-02 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819988', 'tblTempUsageDetail_20' ) start [2025-04-02 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819988', 'tblTempUsageDetail_20' ) end [2025-04-02 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819988', 'tblTempVendorCDR_20' ) start [2025-04-02 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819988', 'tblTempVendorCDR_20' ) end [2025-04-02 18:23:21] Production.INFO: ProcessCDR(1,14819988,1,1,2) [2025-04-02 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819988', 'tblTempUsageDetail_20' ) start [2025-04-02 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819988', 'tblTempUsageDetail_20' ) end [2025-04-02 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:23:26] Production.INFO: ==28706== Releasing lock... [2025-04-02 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:23:26] Production.INFO: 62 MB #Memory Used# [2025-04-02 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:24:05 [end_date_ymd] => 2025-04-02 18:24:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:24:05' and `end` < '2025-04-02 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-04-02 18:24:19] Production.INFO: count ==4538 [2025-04-02 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:24:05 - End Time 2025-04-02 18:24:05 [2025-04-02 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819993', 'tblTempUsageDetail_20' ) start [2025-04-02 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819993', 'tblTempUsageDetail_20' ) end [2025-04-02 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819993', 'tblTempVendorCDR_20' ) start [2025-04-02 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819993', 'tblTempVendorCDR_20' ) end [2025-04-02 18:24:21] Production.INFO: ProcessCDR(1,14819993,1,1,2) [2025-04-02 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819993', 'tblTempUsageDetail_20' ) start [2025-04-02 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819993', 'tblTempUsageDetail_20' ) end [2025-04-02 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:24:24] Production.INFO: ==28779== Releasing lock... [2025-04-02 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:24:24] Production.INFO: 62 MB #Memory Used# [2025-04-02 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:25:06 [end_date_ymd] => 2025-04-02 18:25:06 [RateCDR] => 1 ) [2025-04-02 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:25:06' and `end` < '2025-04-02 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:25:19] Production.INFO: count ==4531 [2025-04-02 18:25:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:25:06 - End Time 2025-04-02 18:25:06 [2025-04-02 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819998', 'tblTempUsageDetail_20' ) start [2025-04-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14819998', 'tblTempUsageDetail_20' ) end [2025-04-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819998', 'tblTempVendorCDR_20' ) start [2025-04-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14819998', 'tblTempVendorCDR_20' ) end [2025-04-02 18:25:21] Production.INFO: ProcessCDR(1,14819998,1,1,2) [2025-04-02 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14819998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14819998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14819998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14819998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819998', 'tblTempUsageDetail_20' ) start [2025-04-02 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14819998', 'tblTempUsageDetail_20' ) end [2025-04-02 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:25:26] Production.INFO: ==28851== Releasing lock... [2025-04-02 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:25:26] Production.INFO: 62 MB #Memory Used# [2025-04-02 18:26:30] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:26:30 [end_date_ymd] => 2025-04-02 18:26:30 [RateCDR] => 1 ) [2025-04-02 18:26:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:26:30' and `end` < '2025-04-02 18:26:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:26:43] Production.INFO: count ==4531 [2025-04-02 18:27:49] Production.ERROR: pbx CDR StartTime 2025-04-02 15:26:30 - End Time 2025-04-02 18:26:30 [2025-04-02 18:27:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:27:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820003', 'tblTempUsageDetail_20' ) start [2025-04-02 18:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820003', 'tblTempUsageDetail_20' ) end [2025-04-02 18:27:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820003', 'tblTempVendorCDR_20' ) start [2025-04-02 18:27:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820003', 'tblTempVendorCDR_20' ) end [2025-04-02 18:27:59] Production.INFO: ProcessCDR(1,14820003,1,1,2) [2025-04-02 18:27:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:28:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:28:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820003', 'tblTempUsageDetail_20' ) start [2025-04-02 18:28:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820003', 'tblTempUsageDetail_20' ) end [2025-04-02 18:28:49] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:28:49] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:29:03] Production.INFO: ==28926== Releasing lock... [2025-04-02 18:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:29:03] Production.INFO: 62 MB #Memory Used# [2025-04-02 18:29:23] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:29:23 [end_date_ymd] => 2025-04-02 18:29:23 [RateCDR] => 1 ) [2025-04-02 18:29:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:29:23' and `end` < '2025-04-02 18:29:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:29:36] Production.INFO: count ==4499 [2025-04-02 18:30:30] Production.ERROR: pbx CDR StartTime 2025-04-02 15:29:23 - End Time 2025-04-02 18:29:23 [2025-04-02 18:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820013', 'tblTempUsageDetail_20' ) start [2025-04-02 18:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820013', 'tblTempUsageDetail_20' ) end [2025-04-02 18:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820013', 'tblTempVendorCDR_20' ) start [2025-04-02 18:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820013', 'tblTempVendorCDR_20' ) end [2025-04-02 18:30:30] Production.INFO: ProcessCDR(1,14820013,1,1,2) [2025-04-02 18:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:30:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:30:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820013', 'tblTempUsageDetail_20' ) start [2025-04-02 18:30:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820013', 'tblTempUsageDetail_20' ) end [2025-04-02 18:30:55] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:30:56] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:31:01] Production.INFO: ==29121== Releasing lock... [2025-04-02 18:31:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:31:01] Production.INFO: 61.75 MB #Memory Used# [2025-04-02 18:31:27] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:31:27 [end_date_ymd] => 2025-04-02 18:31:27 [RateCDR] => 1 ) [2025-04-02 18:31:27] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:31:27' and `end` < '2025-04-02 18:31:27' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:31:41] Production.INFO: count ==4464 [2025-04-02 18:32:52] Production.ERROR: pbx CDR StartTime 2025-04-02 15:31:27 - End Time 2025-04-02 18:31:27 [2025-04-02 18:32:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:32:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820022', 'tblTempUsageDetail_20' ) start [2025-04-02 18:33:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820022', 'tblTempUsageDetail_20' ) end [2025-04-02 18:33:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820022', 'tblTempVendorCDR_20' ) start [2025-04-02 18:33:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820022', 'tblTempVendorCDR_20' ) end [2025-04-02 18:33:04] Production.INFO: ProcessCDR(1,14820022,1,1,2) [2025-04-02 18:33:04] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:33:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:33:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:33:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:33:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820022', 'tblTempUsageDetail_20' ) start [2025-04-02 18:33:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820022', 'tblTempUsageDetail_20' ) end [2025-04-02 18:33:53] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:33:53] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:33:55] Production.INFO: ==29266== Releasing lock... [2025-04-02 18:33:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:33:55] Production.INFO: 61.5 MB #Memory Used# [2025-04-02 18:34:30] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:34:30 [end_date_ymd] => 2025-04-02 18:34:30 [RateCDR] => 1 ) [2025-04-02 18:34:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:34:30' and `end` < '2025-04-02 18:34:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:34:43] Production.INFO: count ==4446 [2025-04-02 18:34:51] Production.ERROR: pbx CDR StartTime 2025-04-02 15:34:30 - End Time 2025-04-02 18:34:30 [2025-04-02 18:34:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:34:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820032', 'tblTempUsageDetail_20' ) start [2025-04-02 18:34:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820032', 'tblTempUsageDetail_20' ) end [2025-04-02 18:34:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820032', 'tblTempVendorCDR_20' ) start [2025-04-02 18:34:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820032', 'tblTempVendorCDR_20' ) end [2025-04-02 18:34:51] Production.INFO: ProcessCDR(1,14820032,1,1,2) [2025-04-02 18:34:51] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:34:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:34:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:34:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:34:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820032', 'tblTempUsageDetail_20' ) start [2025-04-02 18:34:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820032', 'tblTempUsageDetail_20' ) end [2025-04-02 18:34:56] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:34:56] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:34:56] Production.INFO: ==29458== Releasing lock... [2025-04-02 18:34:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:34:56] Production.INFO: 61.25 MB #Memory Used# [2025-04-02 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:35:05 [end_date_ymd] => 2025-04-02 18:35:05 [RateCDR] => 1 ) [2025-04-02 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:35:05' and `end` < '2025-04-02 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:35:19] Production.INFO: count ==4442 [2025-04-02 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:35:05 - End Time 2025-04-02 18:35:05 [2025-04-02 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820037', 'tblTempUsageDetail_20' ) start [2025-04-02 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820037', 'tblTempUsageDetail_20' ) end [2025-04-02 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820037', 'tblTempVendorCDR_20' ) start [2025-04-02 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820037', 'tblTempVendorCDR_20' ) end [2025-04-02 18:35:21] Production.INFO: ProcessCDR(1,14820037,1,1,2) [2025-04-02 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820037', 'tblTempUsageDetail_20' ) start [2025-04-02 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820037', 'tblTempUsageDetail_20' ) end [2025-04-02 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:35:26] Production.INFO: ==29574== Releasing lock... [2025-04-02 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:35:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-02 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:36:05 [end_date_ymd] => 2025-04-02 18:36:05 [RateCDR] => 1 ) [2025-04-02 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:36:05' and `end` < '2025-04-02 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:36:18] Production.INFO: count ==4442 [2025-04-02 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:36:05 - End Time 2025-04-02 18:36:05 [2025-04-02 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820042', 'tblTempUsageDetail_20' ) start [2025-04-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820042', 'tblTempUsageDetail_20' ) end [2025-04-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820042', 'tblTempVendorCDR_20' ) start [2025-04-02 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820042', 'tblTempVendorCDR_20' ) end [2025-04-02 18:36:20] Production.INFO: ProcessCDR(1,14820042,1,1,2) [2025-04-02 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820042', 'tblTempUsageDetail_20' ) start [2025-04-02 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820042', 'tblTempUsageDetail_20' ) end [2025-04-02 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:36:25] Production.INFO: ==29651== Releasing lock... [2025-04-02 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:36:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-02 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:37:06 [end_date_ymd] => 2025-04-02 18:37:06 [RateCDR] => 1 ) [2025-04-02 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:37:06' and `end` < '2025-04-02 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:37:19] Production.INFO: count ==4427 [2025-04-02 18:37:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:37:06 - End Time 2025-04-02 18:37:06 [2025-04-02 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820047', 'tblTempUsageDetail_20' ) start [2025-04-02 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820047', 'tblTempUsageDetail_20' ) end [2025-04-02 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820047', 'tblTempVendorCDR_20' ) start [2025-04-02 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820047', 'tblTempVendorCDR_20' ) end [2025-04-02 18:37:21] Production.INFO: ProcessCDR(1,14820047,1,1,2) [2025-04-02 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820047', 'tblTempUsageDetail_20' ) start [2025-04-02 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820047', 'tblTempUsageDetail_20' ) end [2025-04-02 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:37:24] Production.INFO: ==29728== Releasing lock... [2025-04-02 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:37:24] Production.INFO: 61 MB #Memory Used# [2025-04-02 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:38:05 [end_date_ymd] => 2025-04-02 18:38:05 [RateCDR] => 1 ) [2025-04-02 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:38:05' and `end` < '2025-04-02 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:38:18] Production.INFO: count ==4421 [2025-04-02 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:38:05 - End Time 2025-04-02 18:38:05 [2025-04-02 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820052', 'tblTempUsageDetail_20' ) start [2025-04-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820052', 'tblTempUsageDetail_20' ) end [2025-04-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820052', 'tblTempVendorCDR_20' ) start [2025-04-02 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820052', 'tblTempVendorCDR_20' ) end [2025-04-02 18:38:20] Production.INFO: ProcessCDR(1,14820052,1,1,2) [2025-04-02 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820052', 'tblTempUsageDetail_20' ) start [2025-04-02 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820052', 'tblTempUsageDetail_20' ) end [2025-04-02 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:38:26] Production.INFO: ==29799== Releasing lock... [2025-04-02 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:38:26] Production.INFO: 61 MB #Memory Used# [2025-04-02 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:39:05 [end_date_ymd] => 2025-04-02 18:39:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:39:05' and `end` < '2025-04-02 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:39:19] Production.INFO: count ==4408 [2025-04-02 18:39:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:39:05 - End Time 2025-04-02 18:39:05 [2025-04-02 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820057', 'tblTempUsageDetail_20' ) start [2025-04-02 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820057', 'tblTempUsageDetail_20' ) end [2025-04-02 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820057', 'tblTempVendorCDR_20' ) start [2025-04-02 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820057', 'tblTempVendorCDR_20' ) end [2025-04-02 18:39:21] Production.INFO: ProcessCDR(1,14820057,1,1,2) [2025-04-02 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820057', 'tblTempUsageDetail_20' ) start [2025-04-02 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820057', 'tblTempUsageDetail_20' ) end [2025-04-02 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:39:24] Production.INFO: ==29870== Releasing lock... [2025-04-02 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:39:24] Production.INFO: 61 MB #Memory Used# [2025-04-02 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:40:07 [end_date_ymd] => 2025-04-02 18:40:07 [RateCDR] => 1 ) [2025-04-02 18:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:40:07' and `end` < '2025-04-02 18:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:40:20] Production.INFO: count ==4351 [2025-04-02 18:40:22] Production.ERROR: pbx CDR StartTime 2025-04-02 15:40:07 - End Time 2025-04-02 18:40:07 [2025-04-02 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820063', 'tblTempUsageDetail_20' ) start [2025-04-02 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820063', 'tblTempUsageDetail_20' ) end [2025-04-02 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820063', 'tblTempVendorCDR_20' ) start [2025-04-02 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820063', 'tblTempVendorCDR_20' ) end [2025-04-02 18:40:22] Production.INFO: ProcessCDR(1,14820063,1,1,2) [2025-04-02 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820063', 'tblTempUsageDetail_20' ) start [2025-04-02 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820063', 'tblTempUsageDetail_20' ) end [2025-04-02 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:40:26] Production.INFO: ==29943== Releasing lock... [2025-04-02 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:40:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-02 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:41:05 [end_date_ymd] => 2025-04-02 18:41:05 [RateCDR] => 1 ) [2025-04-02 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:41:05' and `end` < '2025-04-02 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:41:19] Production.INFO: count ==4320 [2025-04-02 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:41:05 - End Time 2025-04-02 18:41:05 [2025-04-02 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820068', 'tblTempUsageDetail_20' ) start [2025-04-02 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820068', 'tblTempUsageDetail_20' ) end [2025-04-02 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820068', 'tblTempVendorCDR_20' ) start [2025-04-02 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820068', 'tblTempVendorCDR_20' ) end [2025-04-02 18:41:20] Production.INFO: ProcessCDR(1,14820068,1,1,2) [2025-04-02 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820068', 'tblTempUsageDetail_20' ) start [2025-04-02 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820068', 'tblTempUsageDetail_20' ) end [2025-04-02 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:41:24] Production.INFO: ==30018== Releasing lock... [2025-04-02 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:41:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-02 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:42:05 [end_date_ymd] => 2025-04-02 18:42:05 [RateCDR] => 1 ) [2025-04-02 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:42:05' and `end` < '2025-04-02 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:42:19] Production.INFO: count ==4299 [2025-04-02 18:42:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:42:05 - End Time 2025-04-02 18:42:05 [2025-04-02 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820073', 'tblTempUsageDetail_20' ) start [2025-04-02 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820073', 'tblTempUsageDetail_20' ) end [2025-04-02 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820073', 'tblTempVendorCDR_20' ) start [2025-04-02 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820073', 'tblTempVendorCDR_20' ) end [2025-04-02 18:42:21] Production.INFO: ProcessCDR(1,14820073,1,1,2) [2025-04-02 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820073', 'tblTempUsageDetail_20' ) start [2025-04-02 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820073', 'tblTempUsageDetail_20' ) end [2025-04-02 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:42:26] Production.INFO: ==30095== Releasing lock... [2025-04-02 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:42:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-02 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:43:05 [end_date_ymd] => 2025-04-02 18:43:05 [RateCDR] => 1 ) [2025-04-02 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:43:05' and `end` < '2025-04-02 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:43:18] Production.INFO: count ==4291 [2025-04-02 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:43:05 - End Time 2025-04-02 18:43:05 [2025-04-02 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820078', 'tblTempUsageDetail_20' ) start [2025-04-02 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820078', 'tblTempUsageDetail_20' ) end [2025-04-02 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820078', 'tblTempVendorCDR_20' ) start [2025-04-02 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820078', 'tblTempVendorCDR_20' ) end [2025-04-02 18:43:20] Production.INFO: ProcessCDR(1,14820078,1,1,2) [2025-04-02 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820078', 'tblTempUsageDetail_20' ) start [2025-04-02 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820078', 'tblTempUsageDetail_20' ) end [2025-04-02 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:43:26] Production.INFO: ==30174== Releasing lock... [2025-04-02 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:43:26] Production.INFO: 60 MB #Memory Used# [2025-04-02 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:44:06 [end_date_ymd] => 2025-04-02 18:44:06 [RateCDR] => 1 ) [2025-04-02 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:44:06' and `end` < '2025-04-02 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:44:19] Production.INFO: count ==4247 [2025-04-02 18:44:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:44:06 - End Time 2025-04-02 18:44:06 [2025-04-02 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820083', 'tblTempUsageDetail_20' ) start [2025-04-02 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820083', 'tblTempUsageDetail_20' ) end [2025-04-02 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820083', 'tblTempVendorCDR_20' ) start [2025-04-02 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820083', 'tblTempVendorCDR_20' ) end [2025-04-02 18:44:21] Production.INFO: ProcessCDR(1,14820083,1,1,2) [2025-04-02 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820083', 'tblTempUsageDetail_20' ) start [2025-04-02 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820083', 'tblTempUsageDetail_20' ) end [2025-04-02 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:44:25] Production.INFO: ==30248== Releasing lock... [2025-04-02 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:44:25] Production.INFO: 60 MB #Memory Used# [2025-04-02 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:45:05 [end_date_ymd] => 2025-04-02 18:45:05 [RateCDR] => 1 ) [2025-04-02 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:45:05' and `end` < '2025-04-02 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:45:19] Production.INFO: count ==4201 [2025-04-02 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:45:05 - End Time 2025-04-02 18:45:05 [2025-04-02 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820088', 'tblTempUsageDetail_20' ) start [2025-04-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820088', 'tblTempUsageDetail_20' ) end [2025-04-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820088', 'tblTempVendorCDR_20' ) start [2025-04-02 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820088', 'tblTempVendorCDR_20' ) end [2025-04-02 18:45:20] Production.INFO: ProcessCDR(1,14820088,1,1,2) [2025-04-02 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820088', 'tblTempUsageDetail_20' ) start [2025-04-02 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820088', 'tblTempUsageDetail_20' ) end [2025-04-02 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:45:26] Production.INFO: ==30320== Releasing lock... [2025-04-02 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:45:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-02 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:46:06 [end_date_ymd] => 2025-04-02 18:46:06 [RateCDR] => 1 ) [2025-04-02 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:46:06' and `end` < '2025-04-02 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:46:19] Production.INFO: count ==4151 [2025-04-02 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:46:06 - End Time 2025-04-02 18:46:06 [2025-04-02 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820093', 'tblTempUsageDetail_20' ) start [2025-04-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820093', 'tblTempUsageDetail_20' ) end [2025-04-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820093', 'tblTempVendorCDR_20' ) start [2025-04-02 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820093', 'tblTempVendorCDR_20' ) end [2025-04-02 18:46:20] Production.INFO: ProcessCDR(1,14820093,1,1,2) [2025-04-02 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820093', 'tblTempUsageDetail_20' ) start [2025-04-02 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820093', 'tblTempUsageDetail_20' ) end [2025-04-02 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:46:26] Production.INFO: ==30390== Releasing lock... [2025-04-02 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:46:26] Production.INFO: 59 MB #Memory Used# [2025-04-02 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:47:05 [end_date_ymd] => 2025-04-02 18:47:05 [RateCDR] => 1 ) [2025-04-02 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:47:05' and `end` < '2025-04-02 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:47:18] Production.INFO: count ==4116 [2025-04-02 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 15:47:05 - End Time 2025-04-02 18:47:05 [2025-04-02 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820098', 'tblTempUsageDetail_20' ) start [2025-04-02 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820098', 'tblTempUsageDetail_20' ) end [2025-04-02 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820098', 'tblTempVendorCDR_20' ) start [2025-04-02 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820098', 'tblTempVendorCDR_20' ) end [2025-04-02 18:47:19] Production.INFO: ProcessCDR(1,14820098,1,1,2) [2025-04-02 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820098', 'tblTempUsageDetail_20' ) start [2025-04-02 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820098', 'tblTempUsageDetail_20' ) end [2025-04-02 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:47:23] Production.INFO: ==30460== Releasing lock... [2025-04-02 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:47:23] Production.INFO: 58.75 MB #Memory Used# [2025-04-02 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:48:05 [end_date_ymd] => 2025-04-02 18:48:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:48:05' and `end` < '2025-04-02 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-04-02 18:48:19] Production.INFO: count ==4096 [2025-04-02 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:48:05 - End Time 2025-04-02 18:48:05 [2025-04-02 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820103', 'tblTempUsageDetail_20' ) start [2025-04-02 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820103', 'tblTempUsageDetail_20' ) end [2025-04-02 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820103', 'tblTempVendorCDR_20' ) start [2025-04-02 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820103', 'tblTempVendorCDR_20' ) end [2025-04-02 18:48:20] Production.INFO: ProcessCDR(1,14820103,1,1,2) [2025-04-02 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820103', 'tblTempUsageDetail_20' ) start [2025-04-02 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820103', 'tblTempUsageDetail_20' ) end [2025-04-02 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:48:24] Production.INFO: ==30532== Releasing lock... [2025-04-02 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:48:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-02 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:49:05 [end_date_ymd] => 2025-04-02 18:49:05 [RateCDR] => 1 ) [2025-04-02 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:49:05' and `end` < '2025-04-02 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:49:18] Production.INFO: count ==4101 [2025-04-02 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:49:05 - End Time 2025-04-02 18:49:05 [2025-04-02 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820108', 'tblTempUsageDetail_20' ) start [2025-04-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820108', 'tblTempUsageDetail_20' ) end [2025-04-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820108', 'tblTempVendorCDR_20' ) start [2025-04-02 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820108', 'tblTempVendorCDR_20' ) end [2025-04-02 18:49:20] Production.INFO: ProcessCDR(1,14820108,1,1,2) [2025-04-02 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820108', 'tblTempUsageDetail_20' ) start [2025-04-02 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820108', 'tblTempUsageDetail_20' ) end [2025-04-02 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:49:26] Production.INFO: ==30605== Releasing lock... [2025-04-02 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:49:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-02 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:50:06 [end_date_ymd] => 2025-04-02 18:50:06 [RateCDR] => 1 ) [2025-04-02 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:50:06' and `end` < '2025-04-02 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:50:20] Production.INFO: count ==4099 [2025-04-02 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:50:06 - End Time 2025-04-02 18:50:06 [2025-04-02 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820114', 'tblTempUsageDetail_20' ) start [2025-04-02 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820114', 'tblTempUsageDetail_20' ) end [2025-04-02 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820114', 'tblTempVendorCDR_20' ) start [2025-04-02 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820114', 'tblTempVendorCDR_20' ) end [2025-04-02 18:50:22] Production.INFO: ProcessCDR(1,14820114,1,1,2) [2025-04-02 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820114', 'tblTempUsageDetail_20' ) start [2025-04-02 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820114', 'tblTempUsageDetail_20' ) end [2025-04-02 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:50:25] Production.INFO: ==30684== Releasing lock... [2025-04-02 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:50:25] Production.INFO: 58.75 MB #Memory Used# [2025-04-02 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:51:05 [end_date_ymd] => 2025-04-02 18:51:05 [RateCDR] => 1 ) [2025-04-02 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:51:05' and `end` < '2025-04-02 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:51:18] Production.INFO: count ==4042 [2025-04-02 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:51:05 - End Time 2025-04-02 18:51:05 [2025-04-02 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820119', 'tblTempUsageDetail_20' ) start [2025-04-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820119', 'tblTempUsageDetail_20' ) end [2025-04-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820119', 'tblTempVendorCDR_20' ) start [2025-04-02 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820119', 'tblTempVendorCDR_20' ) end [2025-04-02 18:51:20] Production.INFO: ProcessCDR(1,14820119,1,1,2) [2025-04-02 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820119', 'tblTempUsageDetail_20' ) start [2025-04-02 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820119', 'tblTempUsageDetail_20' ) end [2025-04-02 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:51:25] Production.INFO: ==30799== Releasing lock... [2025-04-02 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:51:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-02 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:52:05 [end_date_ymd] => 2025-04-02 18:52:05 [RateCDR] => 1 ) [2025-04-02 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:52:05' and `end` < '2025-04-02 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:52:18] Production.INFO: count ==4001 [2025-04-02 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:52:05 - End Time 2025-04-02 18:52:05 [2025-04-02 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820124', 'tblTempUsageDetail_20' ) start [2025-04-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820124', 'tblTempUsageDetail_20' ) end [2025-04-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820124', 'tblTempVendorCDR_20' ) start [2025-04-02 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820124', 'tblTempVendorCDR_20' ) end [2025-04-02 18:52:20] Production.INFO: ProcessCDR(1,14820124,1,1,2) [2025-04-02 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820124', 'tblTempUsageDetail_20' ) start [2025-04-02 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820124', 'tblTempUsageDetail_20' ) end [2025-04-02 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:52:25] Production.INFO: ==30870== Releasing lock... [2025-04-02 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:52:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-02 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:53:06 [end_date_ymd] => 2025-04-02 18:53:06 [RateCDR] => 1 ) [2025-04-02 18:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:53:06' and `end` < '2025-04-02 18:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:53:19] Production.INFO: count ==4016 [2025-04-02 18:53:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:53:06 - End Time 2025-04-02 18:53:06 [2025-04-02 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820129', 'tblTempUsageDetail_20' ) start [2025-04-02 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820129', 'tblTempUsageDetail_20' ) end [2025-04-02 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820129', 'tblTempVendorCDR_20' ) start [2025-04-02 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820129', 'tblTempVendorCDR_20' ) end [2025-04-02 18:53:21] Production.INFO: ProcessCDR(1,14820129,1,1,2) [2025-04-02 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820129', 'tblTempUsageDetail_20' ) start [2025-04-02 18:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820129', 'tblTempUsageDetail_20' ) end [2025-04-02 18:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:53:26] Production.INFO: ==30949== Releasing lock... [2025-04-02 18:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:53:26] Production.INFO: 58 MB #Memory Used# [2025-04-02 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:54:06 [end_date_ymd] => 2025-04-02 18:54:06 [RateCDR] => 1 ) [2025-04-02 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:54:06' and `end` < '2025-04-02 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:54:19] Production.INFO: count ==3971 [2025-04-02 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:54:06 - End Time 2025-04-02 18:54:06 [2025-04-02 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820134', 'tblTempUsageDetail_20' ) start [2025-04-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820134', 'tblTempUsageDetail_20' ) end [2025-04-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820134', 'tblTempVendorCDR_20' ) start [2025-04-02 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820134', 'tblTempVendorCDR_20' ) end [2025-04-02 18:54:20] Production.INFO: ProcessCDR(1,14820134,1,1,2) [2025-04-02 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820134', 'tblTempUsageDetail_20' ) start [2025-04-02 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820134', 'tblTempUsageDetail_20' ) end [2025-04-02 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:54:26] Production.INFO: ==31019== Releasing lock... [2025-04-02 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:54:26] Production.INFO: 58 MB #Memory Used# [2025-04-02 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:55:06 [end_date_ymd] => 2025-04-02 18:55:06 [RateCDR] => 1 ) [2025-04-02 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:55:06' and `end` < '2025-04-02 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:55:19] Production.INFO: count ==3941 [2025-04-02 18:55:21] Production.ERROR: pbx CDR StartTime 2025-04-02 15:55:06 - End Time 2025-04-02 18:55:06 [2025-04-02 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820139', 'tblTempUsageDetail_20' ) start [2025-04-02 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820139', 'tblTempUsageDetail_20' ) end [2025-04-02 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820139', 'tblTempVendorCDR_20' ) start [2025-04-02 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820139', 'tblTempVendorCDR_20' ) end [2025-04-02 18:55:21] Production.INFO: ProcessCDR(1,14820139,1,1,2) [2025-04-02 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820139', 'tblTempUsageDetail_20' ) start [2025-04-02 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820139', 'tblTempUsageDetail_20' ) end [2025-04-02 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:55:26] Production.INFO: ==31090== Releasing lock... [2025-04-02 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:55:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:56:06 [end_date_ymd] => 2025-04-02 18:56:06 [RateCDR] => 1 ) [2025-04-02 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:56:06' and `end` < '2025-04-02 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:56:19] Production.INFO: count ==3934 [2025-04-02 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:56:06 - End Time 2025-04-02 18:56:06 [2025-04-02 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820144', 'tblTempUsageDetail_20' ) start [2025-04-02 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820144', 'tblTempUsageDetail_20' ) end [2025-04-02 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820144', 'tblTempVendorCDR_20' ) start [2025-04-02 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820144', 'tblTempVendorCDR_20' ) end [2025-04-02 18:56:21] Production.INFO: ProcessCDR(1,14820144,1,1,2) [2025-04-02 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820144', 'tblTempUsageDetail_20' ) start [2025-04-02 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820144', 'tblTempUsageDetail_20' ) end [2025-04-02 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:56:26] Production.INFO: ==31163== Releasing lock... [2025-04-02 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:56:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-02 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:57:05 [end_date_ymd] => 2025-04-02 18:57:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:57:05' and `end` < '2025-04-02 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-04-02 18:57:18] Production.INFO: count ==3934 [2025-04-02 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 15:57:05 - End Time 2025-04-02 18:57:05 [2025-04-02 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820149', 'tblTempUsageDetail_20' ) start [2025-04-02 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820149', 'tblTempUsageDetail_20' ) end [2025-04-02 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820149', 'tblTempVendorCDR_20' ) start [2025-04-02 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820149', 'tblTempVendorCDR_20' ) end [2025-04-02 18:57:19] Production.INFO: ProcessCDR(1,14820149,1,1,2) [2025-04-02 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820149', 'tblTempUsageDetail_20' ) start [2025-04-02 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820149', 'tblTempUsageDetail_20' ) end [2025-04-02 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:57:23] Production.INFO: ==31244== Releasing lock... [2025-04-02 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:57:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:58:05 [end_date_ymd] => 2025-04-02 18:58:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 15:58:05' and `end` < '2025-04-02 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-04-02 18:58:18] Production.INFO: count ==3937 [2025-04-02 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:58:05 - End Time 2025-04-02 18:58:05 [2025-04-02 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820154', 'tblTempUsageDetail_20' ) start [2025-04-02 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820154', 'tblTempUsageDetail_20' ) end [2025-04-02 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820154', 'tblTempVendorCDR_20' ) start [2025-04-02 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820154', 'tblTempVendorCDR_20' ) end [2025-04-02 18:58:20] Production.INFO: ProcessCDR(1,14820154,1,1,2) [2025-04-02 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820154', 'tblTempUsageDetail_20' ) start [2025-04-02 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820154', 'tblTempUsageDetail_20' ) end [2025-04-02 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:58:25] Production.INFO: ==31317== Releasing lock... [2025-04-02 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:58:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 15:59:05 [end_date_ymd] => 2025-04-02 18:59:05 [RateCDR] => 1 ) [2025-04-02 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 15:59:05' and `end` < '2025-04-02 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 18:59:18] Production.INFO: count ==3929 [2025-04-02 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-02 15:59:05 - End Time 2025-04-02 18:59:05 [2025-04-02 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820159', 'tblTempUsageDetail_20' ) start [2025-04-02 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820159', 'tblTempUsageDetail_20' ) end [2025-04-02 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820159', 'tblTempVendorCDR_20' ) start [2025-04-02 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820159', 'tblTempVendorCDR_20' ) end [2025-04-02 18:59:20] Production.INFO: ProcessCDR(1,14820159,1,1,2) [2025-04-02 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820159', 'tblTempUsageDetail_20' ) start [2025-04-02 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820159', 'tblTempUsageDetail_20' ) end [2025-04-02 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 18:59:25] Production.INFO: ==31387== Releasing lock... [2025-04-02 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 18:59:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-02 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:00:06 [end_date_ymd] => 2025-04-02 19:00:06 [RateCDR] => 1 ) [2025-04-02 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:00:06' and `end` < '2025-04-02 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:00:19] Production.INFO: count ==3884 [2025-04-02 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:00:06 - End Time 2025-04-02 19:00:06 [2025-04-02 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820165', 'tblTempUsageDetail_20' ) start [2025-04-02 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820165', 'tblTempUsageDetail_20' ) end [2025-04-02 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820165', 'tblTempVendorCDR_20' ) start [2025-04-02 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820165', 'tblTempVendorCDR_20' ) end [2025-04-02 19:00:21] Production.INFO: ProcessCDR(1,14820165,1,1,2) [2025-04-02 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820165', 'tblTempUsageDetail_20' ) start [2025-04-02 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820165', 'tblTempUsageDetail_20' ) end [2025-04-02 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:00:24] Production.INFO: ==31462== Releasing lock... [2025-04-02 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:00:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:01:06 [end_date_ymd] => 2025-04-02 19:01:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:01:06' and `end` < '2025-04-02 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-04-02 19:01:19] Production.INFO: count ==3829 [2025-04-02 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:01:06 - End Time 2025-04-02 19:01:06 [2025-04-02 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820170', 'tblTempUsageDetail_20' ) start [2025-04-02 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820170', 'tblTempUsageDetail_20' ) end [2025-04-02 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820170', 'tblTempVendorCDR_20' ) start [2025-04-02 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820170', 'tblTempVendorCDR_20' ) end [2025-04-02 19:01:20] Production.INFO: ProcessCDR(1,14820170,1,1,2) [2025-04-02 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820170', 'tblTempUsageDetail_20' ) start [2025-04-02 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820170', 'tblTempUsageDetail_20' ) end [2025-04-02 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:01:25] Production.INFO: ==31625== Releasing lock... [2025-04-02 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:01:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:02:05 [end_date_ymd] => 2025-04-02 19:02:05 [RateCDR] => 1 ) [2025-04-02 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:02:05' and `end` < '2025-04-02 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:02:19] Production.INFO: count ==3827 [2025-04-02 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:02:05 - End Time 2025-04-02 19:02:05 [2025-04-02 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820175', 'tblTempUsageDetail_20' ) start [2025-04-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820175', 'tblTempUsageDetail_20' ) end [2025-04-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820175', 'tblTempVendorCDR_20' ) start [2025-04-02 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820175', 'tblTempVendorCDR_20' ) end [2025-04-02 19:02:20] Production.INFO: ProcessCDR(1,14820175,1,1,2) [2025-04-02 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820175', 'tblTempUsageDetail_20' ) start [2025-04-02 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820175', 'tblTempUsageDetail_20' ) end [2025-04-02 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:02:24] Production.INFO: ==31698== Releasing lock... [2025-04-02 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:02:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:03:06 [end_date_ymd] => 2025-04-02 19:03:06 [RateCDR] => 1 ) [2025-04-02 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:03:06' and `end` < '2025-04-02 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:03:19] Production.INFO: count ==3823 [2025-04-02 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:03:06 - End Time 2025-04-02 19:03:06 [2025-04-02 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820180', 'tblTempUsageDetail_20' ) start [2025-04-02 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820180', 'tblTempUsageDetail_20' ) end [2025-04-02 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820180', 'tblTempVendorCDR_20' ) start [2025-04-02 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820180', 'tblTempVendorCDR_20' ) end [2025-04-02 19:03:21] Production.INFO: ProcessCDR(1,14820180,1,1,2) [2025-04-02 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820180', 'tblTempUsageDetail_20' ) start [2025-04-02 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820180', 'tblTempUsageDetail_20' ) end [2025-04-02 19:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:03:26] Production.INFO: ==31771== Releasing lock... [2025-04-02 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:03:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:04:06 [end_date_ymd] => 2025-04-02 19:04:06 [RateCDR] => 1 ) [2025-04-02 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:04:06' and `end` < '2025-04-02 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:04:19] Production.INFO: count ==3829 [2025-04-02 19:04:21] Production.ERROR: pbx CDR StartTime 2025-04-02 16:04:06 - End Time 2025-04-02 19:04:06 [2025-04-02 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820185', 'tblTempUsageDetail_20' ) start [2025-04-02 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820185', 'tblTempUsageDetail_20' ) end [2025-04-02 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820185', 'tblTempVendorCDR_20' ) start [2025-04-02 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820185', 'tblTempVendorCDR_20' ) end [2025-04-02 19:04:21] Production.INFO: ProcessCDR(1,14820185,1,1,2) [2025-04-02 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820185', 'tblTempUsageDetail_20' ) start [2025-04-02 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820185', 'tblTempUsageDetail_20' ) end [2025-04-02 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:04:26] Production.INFO: ==31846== Releasing lock... [2025-04-02 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:04:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:05:05 [end_date_ymd] => 2025-04-02 19:05:05 [RateCDR] => 1 ) [2025-04-02 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:05:05' and `end` < '2025-04-02 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:05:18] Production.INFO: count ==3823 [2025-04-02 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:05:05 - End Time 2025-04-02 19:05:05 [2025-04-02 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820190', 'tblTempUsageDetail_20' ) start [2025-04-02 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820190', 'tblTempUsageDetail_20' ) end [2025-04-02 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820190', 'tblTempVendorCDR_20' ) start [2025-04-02 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820190', 'tblTempVendorCDR_20' ) end [2025-04-02 19:05:20] Production.INFO: ProcessCDR(1,14820190,1,1,2) [2025-04-02 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820190', 'tblTempUsageDetail_20' ) start [2025-04-02 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820190', 'tblTempUsageDetail_20' ) end [2025-04-02 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:05:23] Production.INFO: ==32000== Releasing lock... [2025-04-02 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:05:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:06:05 [end_date_ymd] => 2025-04-02 19:06:05 [RateCDR] => 1 ) [2025-04-02 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:06:05' and `end` < '2025-04-02 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:06:18] Production.INFO: count ==3840 [2025-04-02 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:06:05 - End Time 2025-04-02 19:06:05 [2025-04-02 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820195', 'tblTempUsageDetail_20' ) start [2025-04-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820195', 'tblTempUsageDetail_20' ) end [2025-04-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820195', 'tblTempVendorCDR_20' ) start [2025-04-02 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820195', 'tblTempVendorCDR_20' ) end [2025-04-02 19:06:20] Production.INFO: ProcessCDR(1,14820195,1,1,2) [2025-04-02 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820195', 'tblTempUsageDetail_20' ) start [2025-04-02 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820195', 'tblTempUsageDetail_20' ) end [2025-04-02 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:06:23] Production.INFO: ==32111== Releasing lock... [2025-04-02 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:06:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-02 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:07:06 [end_date_ymd] => 2025-04-02 19:07:06 [RateCDR] => 1 ) [2025-04-02 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:07:06' and `end` < '2025-04-02 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:07:19] Production.INFO: count ==3841 [2025-04-02 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:07:06 - End Time 2025-04-02 19:07:06 [2025-04-02 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820200', 'tblTempUsageDetail_20' ) start [2025-04-02 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820200', 'tblTempUsageDetail_20' ) end [2025-04-02 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820200', 'tblTempVendorCDR_20' ) start [2025-04-02 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820200', 'tblTempVendorCDR_20' ) end [2025-04-02 19:07:20] Production.INFO: ProcessCDR(1,14820200,1,1,2) [2025-04-02 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820200', 'tblTempUsageDetail_20' ) start [2025-04-02 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820200', 'tblTempUsageDetail_20' ) end [2025-04-02 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:07:26] Production.INFO: ==32184== Releasing lock... [2025-04-02 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:07:26] Production.INFO: 57.5 MB #Memory Used# [2025-04-02 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:08:06 [end_date_ymd] => 2025-04-02 19:08:06 [RateCDR] => 1 ) [2025-04-02 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:08:06' and `end` < '2025-04-02 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:08:19] Production.INFO: count ==3821 [2025-04-02 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:08:06 - End Time 2025-04-02 19:08:06 [2025-04-02 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820205', 'tblTempUsageDetail_20' ) start [2025-04-02 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820205', 'tblTempUsageDetail_20' ) end [2025-04-02 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820205', 'tblTempVendorCDR_20' ) start [2025-04-02 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820205', 'tblTempVendorCDR_20' ) end [2025-04-02 19:08:20] Production.INFO: ProcessCDR(1,14820205,1,1,2) [2025-04-02 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820205', 'tblTempUsageDetail_20' ) start [2025-04-02 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820205', 'tblTempUsageDetail_20' ) end [2025-04-02 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:08:24] Production.INFO: ==32333== Releasing lock... [2025-04-02 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:08:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:09:06 [end_date_ymd] => 2025-04-02 19:09:06 [RateCDR] => 1 ) [2025-04-02 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:09:06' and `end` < '2025-04-02 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:09:19] Production.INFO: count ==3821 [2025-04-02 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:09:06 - End Time 2025-04-02 19:09:06 [2025-04-02 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820210', 'tblTempUsageDetail_20' ) start [2025-04-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820210', 'tblTempUsageDetail_20' ) end [2025-04-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820210', 'tblTempVendorCDR_20' ) start [2025-04-02 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820210', 'tblTempVendorCDR_20' ) end [2025-04-02 19:09:20] Production.INFO: ProcessCDR(1,14820210,1,1,2) [2025-04-02 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820210', 'tblTempUsageDetail_20' ) start [2025-04-02 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820210', 'tblTempUsageDetail_20' ) end [2025-04-02 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:09:25] Production.INFO: ==32404== Releasing lock... [2025-04-02 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:09:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:10:06 [end_date_ymd] => 2025-04-02 19:10:06 [RateCDR] => 1 ) [2025-04-02 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:10:06' and `end` < '2025-04-02 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:10:19] Production.INFO: count ==3806 [2025-04-02 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:10:06 - End Time 2025-04-02 19:10:06 [2025-04-02 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820215', 'tblTempUsageDetail_20' ) start [2025-04-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820215', 'tblTempUsageDetail_20' ) end [2025-04-02 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820215', 'tblTempVendorCDR_20' ) start [2025-04-02 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820215', 'tblTempVendorCDR_20' ) end [2025-04-02 19:10:21] Production.INFO: ProcessCDR(1,14820215,1,1,2) [2025-04-02 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820215', 'tblTempUsageDetail_20' ) start [2025-04-02 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820215', 'tblTempUsageDetail_20' ) end [2025-04-02 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:10:26] Production.INFO: ==32479== Releasing lock... [2025-04-02 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:10:26] Production.INFO: 57 MB #Memory Used# [2025-04-02 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:11:05 [end_date_ymd] => 2025-04-02 19:11:05 [RateCDR] => 1 ) [2025-04-02 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:11:05' and `end` < '2025-04-02 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:11:18] Production.INFO: count ==3730 [2025-04-02 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:11:05 - End Time 2025-04-02 19:11:05 [2025-04-02 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820221', 'tblTempUsageDetail_20' ) start [2025-04-02 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820221', 'tblTempUsageDetail_20' ) end [2025-04-02 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820221', 'tblTempVendorCDR_20' ) start [2025-04-02 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820221', 'tblTempVendorCDR_20' ) end [2025-04-02 19:11:20] Production.INFO: ProcessCDR(1,14820221,1,1,2) [2025-04-02 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820221', 'tblTempUsageDetail_20' ) start [2025-04-02 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820221', 'tblTempUsageDetail_20' ) end [2025-04-02 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:11:23] Production.INFO: ==32558== Releasing lock... [2025-04-02 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:11:23] Production.INFO: 56 MB #Memory Used# [2025-04-02 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:12:05 [end_date_ymd] => 2025-04-02 19:12:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:12:05' and `end` < '2025-04-02 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-04-02 19:12:18] Production.INFO: count ==3704 [2025-04-02 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:12:05 - End Time 2025-04-02 19:12:05 [2025-04-02 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820226', 'tblTempUsageDetail_20' ) start [2025-04-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820226', 'tblTempUsageDetail_20' ) end [2025-04-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820226', 'tblTempVendorCDR_20' ) start [2025-04-02 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820226', 'tblTempVendorCDR_20' ) end [2025-04-02 19:12:19] Production.INFO: ProcessCDR(1,14820226,1,1,2) [2025-04-02 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820226', 'tblTempUsageDetail_20' ) start [2025-04-02 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820226', 'tblTempUsageDetail_20' ) end [2025-04-02 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:12:24] Production.INFO: ==32708== Releasing lock... [2025-04-02 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:12:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-02 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:13:06 [end_date_ymd] => 2025-04-02 19:13:06 [RateCDR] => 1 ) [2025-04-02 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:13:06' and `end` < '2025-04-02 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:13:19] Production.INFO: count ==3704 [2025-04-02 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:13:06 - End Time 2025-04-02 19:13:06 [2025-04-02 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820231', 'tblTempUsageDetail_20' ) start [2025-04-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820231', 'tblTempUsageDetail_20' ) end [2025-04-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820231', 'tblTempVendorCDR_20' ) start [2025-04-02 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820231', 'tblTempVendorCDR_20' ) end [2025-04-02 19:13:20] Production.INFO: ProcessCDR(1,14820231,1,1,2) [2025-04-02 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820231', 'tblTempUsageDetail_20' ) start [2025-04-02 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820231', 'tblTempUsageDetail_20' ) end [2025-04-02 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:13:25] Production.INFO: ==320== Releasing lock... [2025-04-02 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:13:25] Production.INFO: 56 MB #Memory Used# [2025-04-02 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:14:05 [end_date_ymd] => 2025-04-02 19:14:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:14:05' and `end` < '2025-04-02 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-04-02 19:14:19] Production.INFO: count ==3703 [2025-04-02 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:14:05 - End Time 2025-04-02 19:14:05 [2025-04-02 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820236', 'tblTempUsageDetail_20' ) start [2025-04-02 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820236', 'tblTempUsageDetail_20' ) end [2025-04-02 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820236', 'tblTempVendorCDR_20' ) start [2025-04-02 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820236', 'tblTempVendorCDR_20' ) end [2025-04-02 19:14:20] Production.INFO: ProcessCDR(1,14820236,1,1,2) [2025-04-02 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820236', 'tblTempUsageDetail_20' ) start [2025-04-02 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820236', 'tblTempUsageDetail_20' ) end [2025-04-02 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:14:25] Production.INFO: ==401== Releasing lock... [2025-04-02 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:14:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:15:05 [end_date_ymd] => 2025-04-02 19:15:05 [RateCDR] => 1 ) [2025-04-02 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:15:05' and `end` < '2025-04-02 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:15:18] Production.INFO: count ==3702 [2025-04-02 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:15:05 - End Time 2025-04-02 19:15:05 [2025-04-02 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820241', 'tblTempUsageDetail_20' ) start [2025-04-02 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820241', 'tblTempUsageDetail_20' ) end [2025-04-02 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820241', 'tblTempVendorCDR_20' ) start [2025-04-02 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820241', 'tblTempVendorCDR_20' ) end [2025-04-02 19:15:20] Production.INFO: ProcessCDR(1,14820241,1,1,2) [2025-04-02 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820241', 'tblTempUsageDetail_20' ) start [2025-04-02 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820241', 'tblTempUsageDetail_20' ) end [2025-04-02 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:15:23] Production.INFO: ==558== Releasing lock... [2025-04-02 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:15:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-02 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:16:05 [end_date_ymd] => 2025-04-02 19:16:05 [RateCDR] => 1 ) [2025-04-02 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:16:05' and `end` < '2025-04-02 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:16:18] Production.INFO: count ==3694 [2025-04-02 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:16:05 - End Time 2025-04-02 19:16:05 [2025-04-02 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820246', 'tblTempUsageDetail_20' ) start [2025-04-02 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820246', 'tblTempUsageDetail_20' ) end [2025-04-02 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820246', 'tblTempVendorCDR_20' ) start [2025-04-02 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820246', 'tblTempVendorCDR_20' ) end [2025-04-02 19:16:20] Production.INFO: ProcessCDR(1,14820246,1,1,2) [2025-04-02 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820246', 'tblTempUsageDetail_20' ) start [2025-04-02 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820246', 'tblTempUsageDetail_20' ) end [2025-04-02 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:16:25] Production.INFO: ==642== Releasing lock... [2025-04-02 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:16:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:17:06 [end_date_ymd] => 2025-04-02 19:17:06 [RateCDR] => 1 ) [2025-04-02 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:17:06' and `end` < '2025-04-02 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:17:19] Production.INFO: count ==3683 [2025-04-02 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:17:06 - End Time 2025-04-02 19:17:06 [2025-04-02 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820251', 'tblTempUsageDetail_20' ) start [2025-04-02 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820251', 'tblTempUsageDetail_20' ) end [2025-04-02 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820251', 'tblTempVendorCDR_20' ) start [2025-04-02 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820251', 'tblTempVendorCDR_20' ) end [2025-04-02 19:17:20] Production.INFO: ProcessCDR(1,14820251,1,1,2) [2025-04-02 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820251', 'tblTempUsageDetail_20' ) start [2025-04-02 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820251', 'tblTempUsageDetail_20' ) end [2025-04-02 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:17:24] Production.INFO: ==736== Releasing lock... [2025-04-02 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:17:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:18:06 [end_date_ymd] => 2025-04-02 19:18:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:18:06' and `end` < '2025-04-02 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-04-02 19:18:20] Production.INFO: count ==3672 [2025-04-02 19:18:21] Production.ERROR: pbx CDR StartTime 2025-04-02 16:18:06 - End Time 2025-04-02 19:18:06 [2025-04-02 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820256', 'tblTempUsageDetail_20' ) start [2025-04-02 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820256', 'tblTempUsageDetail_20' ) end [2025-04-02 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820256', 'tblTempVendorCDR_20' ) start [2025-04-02 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820256', 'tblTempVendorCDR_20' ) end [2025-04-02 19:18:21] Production.INFO: ProcessCDR(1,14820256,1,1,2) [2025-04-02 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820256', 'tblTempUsageDetail_20' ) start [2025-04-02 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820256', 'tblTempUsageDetail_20' ) end [2025-04-02 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:18:25] Production.INFO: ==810== Releasing lock... [2025-04-02 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:18:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-02 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:19:05 [end_date_ymd] => 2025-04-02 19:19:05 [RateCDR] => 1 ) [2025-04-02 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:19:05' and `end` < '2025-04-02 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:19:19] Production.INFO: count ==3679 [2025-04-02 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:19:05 - End Time 2025-04-02 19:19:05 [2025-04-02 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820261', 'tblTempUsageDetail_20' ) start [2025-04-02 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820261', 'tblTempUsageDetail_20' ) end [2025-04-02 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820261', 'tblTempVendorCDR_20' ) start [2025-04-02 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820261', 'tblTempVendorCDR_20' ) end [2025-04-02 19:19:20] Production.INFO: ProcessCDR(1,14820261,1,1,2) [2025-04-02 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820261', 'tblTempUsageDetail_20' ) start [2025-04-02 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820261', 'tblTempUsageDetail_20' ) end [2025-04-02 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:19:25] Production.INFO: ==880== Releasing lock... [2025-04-02 19:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:19:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-02 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:20:06 [end_date_ymd] => 2025-04-02 19:20:06 [RateCDR] => 1 ) [2025-04-02 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:20:06' and `end` < '2025-04-02 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:20:19] Production.INFO: count ==3673 [2025-04-02 19:20:21] Production.ERROR: pbx CDR StartTime 2025-04-02 16:20:06 - End Time 2025-04-02 19:20:06 [2025-04-02 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820267', 'tblTempUsageDetail_20' ) start [2025-04-02 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820267', 'tblTempUsageDetail_20' ) end [2025-04-02 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820267', 'tblTempVendorCDR_20' ) start [2025-04-02 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820267', 'tblTempVendorCDR_20' ) end [2025-04-02 19:20:21] Production.INFO: ProcessCDR(1,14820267,1,1,2) [2025-04-02 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820267', 'tblTempUsageDetail_20' ) start [2025-04-02 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820267', 'tblTempUsageDetail_20' ) end [2025-04-02 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:20:26] Production.INFO: ==956== Releasing lock... [2025-04-02 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:20:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-02 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:21:05 [end_date_ymd] => 2025-04-02 19:21:05 [RateCDR] => 1 ) [2025-04-02 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:21:05' and `end` < '2025-04-02 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:21:18] Production.INFO: count ==3606 [2025-04-02 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:21:05 - End Time 2025-04-02 19:21:05 [2025-04-02 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820272', 'tblTempUsageDetail_20' ) start [2025-04-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820272', 'tblTempUsageDetail_20' ) end [2025-04-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820272', 'tblTempVendorCDR_20' ) start [2025-04-02 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820272', 'tblTempVendorCDR_20' ) end [2025-04-02 19:21:20] Production.INFO: ProcessCDR(1,14820272,1,1,2) [2025-04-02 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820272', 'tblTempUsageDetail_20' ) start [2025-04-02 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820272', 'tblTempUsageDetail_20' ) end [2025-04-02 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:21:25] Production.INFO: ==1029== Releasing lock... [2025-04-02 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:21:25] Production.INFO: 56 MB #Memory Used# [2025-04-02 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:22:05 [end_date_ymd] => 2025-04-02 19:22:05 [RateCDR] => 1 ) [2025-04-02 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:22:05' and `end` < '2025-04-02 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:22:18] Production.INFO: count ==3585 [2025-04-02 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:22:05 - End Time 2025-04-02 19:22:05 [2025-04-02 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820277', 'tblTempUsageDetail_20' ) start [2025-04-02 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820277', 'tblTempUsageDetail_20' ) end [2025-04-02 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820277', 'tblTempVendorCDR_20' ) start [2025-04-02 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820277', 'tblTempVendorCDR_20' ) end [2025-04-02 19:22:20] Production.INFO: ProcessCDR(1,14820277,1,1,2) [2025-04-02 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820277', 'tblTempUsageDetail_20' ) start [2025-04-02 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820277', 'tblTempUsageDetail_20' ) end [2025-04-02 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:22:23] Production.INFO: ==1142== Releasing lock... [2025-04-02 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:22:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-02 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:23:06 [end_date_ymd] => 2025-04-02 19:23:06 [RateCDR] => 1 ) [2025-04-02 19:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:23:06' and `end` < '2025-04-02 19:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:23:19] Production.INFO: count ==3564 [2025-04-02 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:23:06 - End Time 2025-04-02 19:23:06 [2025-04-02 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820282', 'tblTempUsageDetail_20' ) start [2025-04-02 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820282', 'tblTempUsageDetail_20' ) end [2025-04-02 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820282', 'tblTempVendorCDR_20' ) start [2025-04-02 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820282', 'tblTempVendorCDR_20' ) end [2025-04-02 19:23:20] Production.INFO: ProcessCDR(1,14820282,1,1,2) [2025-04-02 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820282', 'tblTempUsageDetail_20' ) start [2025-04-02 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820282', 'tblTempUsageDetail_20' ) end [2025-04-02 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:23:25] Production.INFO: ==1217== Releasing lock... [2025-04-02 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:23:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-02 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:24:05 [end_date_ymd] => 2025-04-02 19:24:05 [RateCDR] => 1 ) [2025-04-02 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:24:05' and `end` < '2025-04-02 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:24:18] Production.INFO: count ==3554 [2025-04-02 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:24:05 - End Time 2025-04-02 19:24:05 [2025-04-02 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820287', 'tblTempUsageDetail_20' ) start [2025-04-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820287', 'tblTempUsageDetail_20' ) end [2025-04-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820287', 'tblTempVendorCDR_20' ) start [2025-04-02 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820287', 'tblTempVendorCDR_20' ) end [2025-04-02 19:24:19] Production.INFO: ProcessCDR(1,14820287,1,1,2) [2025-04-02 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820287', 'tblTempUsageDetail_20' ) start [2025-04-02 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820287', 'tblTempUsageDetail_20' ) end [2025-04-02 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:24:25] Production.INFO: ==1299== Releasing lock... [2025-04-02 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:24:25] Production.INFO: 55 MB #Memory Used# [2025-04-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:25:05 [end_date_ymd] => 2025-04-02 19:25:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:25:05' and `end` < '2025-04-02 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-04-02 19:25:18] Production.INFO: count ==3550 [2025-04-02 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:25:05 - End Time 2025-04-02 19:25:05 [2025-04-02 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820292', 'tblTempUsageDetail_20' ) start [2025-04-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820292', 'tblTempUsageDetail_20' ) end [2025-04-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820292', 'tblTempVendorCDR_20' ) start [2025-04-02 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820292', 'tblTempVendorCDR_20' ) end [2025-04-02 19:25:20] Production.INFO: ProcessCDR(1,14820292,1,1,2) [2025-04-02 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820292', 'tblTempUsageDetail_20' ) start [2025-04-02 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820292', 'tblTempUsageDetail_20' ) end [2025-04-02 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:25:25] Production.INFO: ==1371== Releasing lock... [2025-04-02 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:25:25] Production.INFO: 55 MB #Memory Used# [2025-04-02 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:26:05 [end_date_ymd] => 2025-04-02 19:26:05 [RateCDR] => 1 ) [2025-04-02 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:26:05' and `end` < '2025-04-02 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:26:18] Production.INFO: count ==3525 [2025-04-02 19:26:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:26:05 - End Time 2025-04-02 19:26:05 [2025-04-02 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820297', 'tblTempUsageDetail_20' ) start [2025-04-02 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820297', 'tblTempUsageDetail_20' ) end [2025-04-02 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820297', 'tblTempVendorCDR_20' ) start [2025-04-02 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820297', 'tblTempVendorCDR_20' ) end [2025-04-02 19:26:20] Production.INFO: ProcessCDR(1,14820297,1,1,2) [2025-04-02 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820297', 'tblTempUsageDetail_20' ) start [2025-04-02 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820297', 'tblTempUsageDetail_20' ) end [2025-04-02 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:26:25] Production.INFO: ==1445== Releasing lock... [2025-04-02 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:26:25] Production.INFO: 55 MB #Memory Used# [2025-04-02 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:27:06 [end_date_ymd] => 2025-04-02 19:27:06 [RateCDR] => 1 ) [2025-04-02 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:27:06' and `end` < '2025-04-02 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:27:19] Production.INFO: count ==3524 [2025-04-02 19:27:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:27:06 - End Time 2025-04-02 19:27:06 [2025-04-02 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820302', 'tblTempUsageDetail_20' ) start [2025-04-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820302', 'tblTempUsageDetail_20' ) end [2025-04-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820302', 'tblTempVendorCDR_20' ) start [2025-04-02 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820302', 'tblTempVendorCDR_20' ) end [2025-04-02 19:27:20] Production.INFO: ProcessCDR(1,14820302,1,1,2) [2025-04-02 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820302', 'tblTempUsageDetail_20' ) start [2025-04-02 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820302', 'tblTempUsageDetail_20' ) end [2025-04-02 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:27:24] Production.INFO: ==1546== Releasing lock... [2025-04-02 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:27:24] Production.INFO: 54.75 MB #Memory Used# [2025-04-02 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:28:05 [end_date_ymd] => 2025-04-02 19:28:05 [RateCDR] => 1 ) [2025-04-02 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:28:05' and `end` < '2025-04-02 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:28:18] Production.INFO: count ==3521 [2025-04-02 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:28:05 - End Time 2025-04-02 19:28:05 [2025-04-02 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820307', 'tblTempUsageDetail_20' ) start [2025-04-02 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820307', 'tblTempUsageDetail_20' ) end [2025-04-02 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820307', 'tblTempVendorCDR_20' ) start [2025-04-02 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820307', 'tblTempVendorCDR_20' ) end [2025-04-02 19:28:20] Production.INFO: ProcessCDR(1,14820307,1,1,2) [2025-04-02 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820307', 'tblTempUsageDetail_20' ) start [2025-04-02 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820307', 'tblTempUsageDetail_20' ) end [2025-04-02 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:28:25] Production.INFO: ==1623== Releasing lock... [2025-04-02 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:28:25] Production.INFO: 55 MB #Memory Used# [2025-04-02 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:29:05 [end_date_ymd] => 2025-04-02 19:29:05 [RateCDR] => 1 ) [2025-04-02 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:29:05' and `end` < '2025-04-02 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:29:18] Production.INFO: count ==3515 [2025-04-02 19:29:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:29:05 - End Time 2025-04-02 19:29:05 [2025-04-02 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820312', 'tblTempUsageDetail_20' ) start [2025-04-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820312', 'tblTempUsageDetail_20' ) end [2025-04-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820312', 'tblTempVendorCDR_20' ) start [2025-04-02 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820312', 'tblTempVendorCDR_20' ) end [2025-04-02 19:29:20] Production.INFO: ProcessCDR(1,14820312,1,1,2) [2025-04-02 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820312', 'tblTempUsageDetail_20' ) start [2025-04-02 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820312', 'tblTempUsageDetail_20' ) end [2025-04-02 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:29:25] Production.INFO: ==1694== Releasing lock... [2025-04-02 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:29:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-02 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:30:06 [end_date_ymd] => 2025-04-02 19:30:06 [RateCDR] => 1 ) [2025-04-02 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:30:06' and `end` < '2025-04-02 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:30:19] Production.INFO: count ==3518 [2025-04-02 19:30:21] Production.ERROR: pbx CDR StartTime 2025-04-02 16:30:06 - End Time 2025-04-02 19:30:06 [2025-04-02 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820318', 'tblTempUsageDetail_20' ) start [2025-04-02 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820318', 'tblTempUsageDetail_20' ) end [2025-04-02 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820318', 'tblTempVendorCDR_20' ) start [2025-04-02 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820318', 'tblTempVendorCDR_20' ) end [2025-04-02 19:30:21] Production.INFO: ProcessCDR(1,14820318,1,1,2) [2025-04-02 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820318', 'tblTempUsageDetail_20' ) start [2025-04-02 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820318', 'tblTempUsageDetail_20' ) end [2025-04-02 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:30:26] Production.INFO: ==1771== Releasing lock... [2025-04-02 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:30:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-02 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:31:05 [end_date_ymd] => 2025-04-02 19:31:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:31:05' and `end` < '2025-04-02 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-04-02 19:31:18] Production.INFO: count ==3435 [2025-04-02 19:31:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:31:05 - End Time 2025-04-02 19:31:05 [2025-04-02 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820323', 'tblTempUsageDetail_20' ) start [2025-04-02 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820323', 'tblTempUsageDetail_20' ) end [2025-04-02 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820323', 'tblTempVendorCDR_20' ) start [2025-04-02 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820323', 'tblTempVendorCDR_20' ) end [2025-04-02 19:31:20] Production.INFO: ProcessCDR(1,14820323,1,1,2) [2025-04-02 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820323', 'tblTempUsageDetail_20' ) start [2025-04-02 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820323', 'tblTempUsageDetail_20' ) end [2025-04-02 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:31:23] Production.INFO: ==1846== Releasing lock... [2025-04-02 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:31:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-02 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:32:05 [end_date_ymd] => 2025-04-02 19:32:05 [RateCDR] => 1 ) [2025-04-02 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:32:05' and `end` < '2025-04-02 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:32:18] Production.INFO: count ==3394 [2025-04-02 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:32:05 - End Time 2025-04-02 19:32:05 [2025-04-02 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820328', 'tblTempUsageDetail_20' ) start [2025-04-02 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820328', 'tblTempUsageDetail_20' ) end [2025-04-02 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820328', 'tblTempVendorCDR_20' ) start [2025-04-02 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820328', 'tblTempVendorCDR_20' ) end [2025-04-02 19:32:20] Production.INFO: ProcessCDR(1,14820328,1,1,2) [2025-04-02 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820328', 'tblTempUsageDetail_20' ) start [2025-04-02 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820328', 'tblTempUsageDetail_20' ) end [2025-04-02 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:32:25] Production.INFO: ==1918== Releasing lock... [2025-04-02 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:32:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-02 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:33:06 [end_date_ymd] => 2025-04-02 19:33:06 [RateCDR] => 1 ) [2025-04-02 19:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:33:06' and `end` < '2025-04-02 19:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:33:19] Production.INFO: count ==3328 [2025-04-02 19:33:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:33:06 - End Time 2025-04-02 19:33:06 [2025-04-02 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820333', 'tblTempUsageDetail_20' ) start [2025-04-02 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820333', 'tblTempUsageDetail_20' ) end [2025-04-02 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820333', 'tblTempVendorCDR_20' ) start [2025-04-02 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820333', 'tblTempVendorCDR_20' ) end [2025-04-02 19:33:20] Production.INFO: ProcessCDR(1,14820333,1,1,2) [2025-04-02 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820333', 'tblTempUsageDetail_20' ) start [2025-04-02 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820333', 'tblTempUsageDetail_20' ) end [2025-04-02 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:33:25] Production.INFO: ==1992== Releasing lock... [2025-04-02 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:33:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-02 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:34:06 [end_date_ymd] => 2025-04-02 19:34:06 [RateCDR] => 1 ) [2025-04-02 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:34:06' and `end` < '2025-04-02 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:34:19] Production.INFO: count ==3307 [2025-04-02 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:34:06 - End Time 2025-04-02 19:34:06 [2025-04-02 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820338', 'tblTempUsageDetail_20' ) start [2025-04-02 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820338', 'tblTempUsageDetail_20' ) end [2025-04-02 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820338', 'tblTempVendorCDR_20' ) start [2025-04-02 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820338', 'tblTempVendorCDR_20' ) end [2025-04-02 19:34:20] Production.INFO: ProcessCDR(1,14820338,1,1,2) [2025-04-02 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820338', 'tblTempUsageDetail_20' ) start [2025-04-02 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820338', 'tblTempUsageDetail_20' ) end [2025-04-02 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:34:25] Production.INFO: ==2063== Releasing lock... [2025-04-02 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:34:25] Production.INFO: 53 MB #Memory Used# [2025-04-02 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:35:05 [end_date_ymd] => 2025-04-02 19:35:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:35:05' and `end` < '2025-04-02 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-04-02 19:35:18] Production.INFO: count ==3299 [2025-04-02 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:35:05 - End Time 2025-04-02 19:35:05 [2025-04-02 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820343', 'tblTempUsageDetail_20' ) start [2025-04-02 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820343', 'tblTempUsageDetail_20' ) end [2025-04-02 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820343', 'tblTempVendorCDR_20' ) start [2025-04-02 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820343', 'tblTempVendorCDR_20' ) end [2025-04-02 19:35:20] Production.INFO: ProcessCDR(1,14820343,1,1,2) [2025-04-02 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820343', 'tblTempUsageDetail_20' ) start [2025-04-02 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820343', 'tblTempUsageDetail_20' ) end [2025-04-02 19:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:35:25] Production.INFO: ==2136== Releasing lock... [2025-04-02 19:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:35:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-02 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:36:05 [end_date_ymd] => 2025-04-02 19:36:05 [RateCDR] => 1 ) [2025-04-02 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:36:05' and `end` < '2025-04-02 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:36:18] Production.INFO: count ==3287 [2025-04-02 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:36:05 - End Time 2025-04-02 19:36:05 [2025-04-02 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820348', 'tblTempUsageDetail_20' ) start [2025-04-02 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820348', 'tblTempUsageDetail_20' ) end [2025-04-02 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820348', 'tblTempVendorCDR_20' ) start [2025-04-02 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820348', 'tblTempVendorCDR_20' ) end [2025-04-02 19:36:20] Production.INFO: ProcessCDR(1,14820348,1,1,2) [2025-04-02 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820348', 'tblTempUsageDetail_20' ) start [2025-04-02 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820348', 'tblTempUsageDetail_20' ) end [2025-04-02 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:36:25] Production.INFO: ==2219== Releasing lock... [2025-04-02 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:36:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-02 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:37:05 [end_date_ymd] => 2025-04-02 19:37:05 [RateCDR] => 1 ) [2025-04-02 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:37:05' and `end` < '2025-04-02 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:37:18] Production.INFO: count ==3268 [2025-04-02 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:37:05 - End Time 2025-04-02 19:37:05 [2025-04-02 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820353', 'tblTempUsageDetail_20' ) start [2025-04-02 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820353', 'tblTempUsageDetail_20' ) end [2025-04-02 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820353', 'tblTempVendorCDR_20' ) start [2025-04-02 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820353', 'tblTempVendorCDR_20' ) end [2025-04-02 19:37:19] Production.INFO: ProcessCDR(1,14820353,1,1,2) [2025-04-02 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820353', 'tblTempUsageDetail_20' ) start [2025-04-02 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820353', 'tblTempUsageDetail_20' ) end [2025-04-02 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:37:23] Production.INFO: ==2338== Releasing lock... [2025-04-02 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:37:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-02 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:38:05 [end_date_ymd] => 2025-04-02 19:38:05 [RateCDR] => 1 ) [2025-04-02 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:38:05' and `end` < '2025-04-02 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:38:18] Production.INFO: count ==3249 [2025-04-02 19:38:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:38:05 - End Time 2025-04-02 19:38:05 [2025-04-02 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820358', 'tblTempUsageDetail_20' ) start [2025-04-02 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820358', 'tblTempUsageDetail_20' ) end [2025-04-02 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820358', 'tblTempVendorCDR_20' ) start [2025-04-02 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820358', 'tblTempVendorCDR_20' ) end [2025-04-02 19:38:20] Production.INFO: ProcessCDR(1,14820358,1,1,2) [2025-04-02 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820358', 'tblTempUsageDetail_20' ) start [2025-04-02 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820358', 'tblTempUsageDetail_20' ) end [2025-04-02 19:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:38:25] Production.INFO: ==2418== Releasing lock... [2025-04-02 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:38:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-02 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:39:05 [end_date_ymd] => 2025-04-02 19:39:05 [RateCDR] => 1 ) [2025-04-02 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:39:05' and `end` < '2025-04-02 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:39:18] Production.INFO: count ==3247 [2025-04-02 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:39:05 - End Time 2025-04-02 19:39:05 [2025-04-02 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820363', 'tblTempUsageDetail_20' ) start [2025-04-02 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820363', 'tblTempUsageDetail_20' ) end [2025-04-02 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820363', 'tblTempVendorCDR_20' ) start [2025-04-02 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820363', 'tblTempVendorCDR_20' ) end [2025-04-02 19:39:20] Production.INFO: ProcessCDR(1,14820363,1,1,2) [2025-04-02 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820363', 'tblTempUsageDetail_20' ) start [2025-04-02 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820363', 'tblTempUsageDetail_20' ) end [2025-04-02 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:39:23] Production.INFO: ==2500== Releasing lock... [2025-04-02 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:39:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-02 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:40:06 [end_date_ymd] => 2025-04-02 19:40:06 [RateCDR] => 1 ) [2025-04-02 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:40:06' and `end` < '2025-04-02 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:40:19] Production.INFO: count ==3246 [2025-04-02 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:40:06 - End Time 2025-04-02 19:40:06 [2025-04-02 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820369', 'tblTempUsageDetail_20' ) start [2025-04-02 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820369', 'tblTempUsageDetail_20' ) end [2025-04-02 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820369', 'tblTempVendorCDR_20' ) start [2025-04-02 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820369', 'tblTempVendorCDR_20' ) end [2025-04-02 19:40:21] Production.INFO: ProcessCDR(1,14820369,1,1,2) [2025-04-02 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820369', 'tblTempUsageDetail_20' ) start [2025-04-02 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820369', 'tblTempUsageDetail_20' ) end [2025-04-02 19:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:40:26] Production.INFO: ==2589== Releasing lock... [2025-04-02 19:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:40:26] Production.INFO: 52.75 MB #Memory Used# [2025-04-02 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:41:05 [end_date_ymd] => 2025-04-02 19:41:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:41:05' and `end` < '2025-04-02 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-04-02 19:41:19] Production.INFO: count ==3203 [2025-04-02 19:41:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:41:05 - End Time 2025-04-02 19:41:05 [2025-04-02 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820374', 'tblTempUsageDetail_20' ) start [2025-04-02 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820374', 'tblTempUsageDetail_20' ) end [2025-04-02 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820374', 'tblTempVendorCDR_20' ) start [2025-04-02 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820374', 'tblTempVendorCDR_20' ) end [2025-04-02 19:41:20] Production.INFO: ProcessCDR(1,14820374,1,1,2) [2025-04-02 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820374', 'tblTempUsageDetail_20' ) start [2025-04-02 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820374', 'tblTempUsageDetail_20' ) end [2025-04-02 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:41:23] Production.INFO: ==2670== Releasing lock... [2025-04-02 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:41:23] Production.INFO: 52 MB #Memory Used# [2025-04-02 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:42:06 [end_date_ymd] => 2025-04-02 19:42:06 [RateCDR] => 1 ) [2025-04-02 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:42:06' and `end` < '2025-04-02 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:42:19] Production.INFO: count ==3207 [2025-04-02 19:42:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:42:06 - End Time 2025-04-02 19:42:06 [2025-04-02 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820379', 'tblTempUsageDetail_20' ) start [2025-04-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820379', 'tblTempUsageDetail_20' ) end [2025-04-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820379', 'tblTempVendorCDR_20' ) start [2025-04-02 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820379', 'tblTempVendorCDR_20' ) end [2025-04-02 19:42:20] Production.INFO: ProcessCDR(1,14820379,1,1,2) [2025-04-02 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820379', 'tblTempUsageDetail_20' ) start [2025-04-02 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820379', 'tblTempUsageDetail_20' ) end [2025-04-02 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:42:24] Production.INFO: ==2753== Releasing lock... [2025-04-02 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:42:24] Production.INFO: 52 MB #Memory Used# [2025-04-02 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:43:05 [end_date_ymd] => 2025-04-02 19:43:05 [RateCDR] => 1 ) [2025-04-02 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:43:05' and `end` < '2025-04-02 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:43:19] Production.INFO: count ==3190 [2025-04-02 19:43:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:43:05 - End Time 2025-04-02 19:43:05 [2025-04-02 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820384', 'tblTempUsageDetail_20' ) start [2025-04-02 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820384', 'tblTempUsageDetail_20' ) end [2025-04-02 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820384', 'tblTempVendorCDR_20' ) start [2025-04-02 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820384', 'tblTempVendorCDR_20' ) end [2025-04-02 19:43:20] Production.INFO: ProcessCDR(1,14820384,1,1,2) [2025-04-02 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820384', 'tblTempUsageDetail_20' ) start [2025-04-02 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820384', 'tblTempUsageDetail_20' ) end [2025-04-02 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:43:23] Production.INFO: ==2828== Releasing lock... [2025-04-02 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:43:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-02 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:44:06 [end_date_ymd] => 2025-04-02 19:44:06 [RateCDR] => 1 ) [2025-04-02 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:44:06' and `end` < '2025-04-02 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:44:19] Production.INFO: count ==3187 [2025-04-02 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:44:06 - End Time 2025-04-02 19:44:06 [2025-04-02 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820389', 'tblTempUsageDetail_20' ) start [2025-04-02 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820389', 'tblTempUsageDetail_20' ) end [2025-04-02 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820389', 'tblTempVendorCDR_20' ) start [2025-04-02 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820389', 'tblTempVendorCDR_20' ) end [2025-04-02 19:44:20] Production.INFO: ProcessCDR(1,14820389,1,1,2) [2025-04-02 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820389', 'tblTempUsageDetail_20' ) start [2025-04-02 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820389', 'tblTempUsageDetail_20' ) end [2025-04-02 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:44:23] Production.INFO: ==2911== Releasing lock... [2025-04-02 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:44:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-02 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:45:05 [end_date_ymd] => 2025-04-02 19:45:05 [RateCDR] => 1 ) [2025-04-02 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:45:05' and `end` < '2025-04-02 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:45:18] Production.INFO: count ==3172 [2025-04-02 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:45:05 - End Time 2025-04-02 19:45:05 [2025-04-02 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820394', 'tblTempUsageDetail_20' ) start [2025-04-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820394', 'tblTempUsageDetail_20' ) end [2025-04-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820394', 'tblTempVendorCDR_20' ) start [2025-04-02 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820394', 'tblTempVendorCDR_20' ) end [2025-04-02 19:45:19] Production.INFO: ProcessCDR(1,14820394,1,1,2) [2025-04-02 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820394', 'tblTempUsageDetail_20' ) start [2025-04-02 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820394', 'tblTempUsageDetail_20' ) end [2025-04-02 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:45:22] Production.INFO: ==2995== Releasing lock... [2025-04-02 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:45:22] Production.INFO: 51.75 MB #Memory Used# [2025-04-02 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:46:05 [end_date_ymd] => 2025-04-02 19:46:05 [RateCDR] => 1 ) [2025-04-02 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:46:05' and `end` < '2025-04-02 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:46:18] Production.INFO: count ==3165 [2025-04-02 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:46:05 - End Time 2025-04-02 19:46:05 [2025-04-02 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820399', 'tblTempUsageDetail_20' ) start [2025-04-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820399', 'tblTempUsageDetail_20' ) end [2025-04-02 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820399', 'tblTempVendorCDR_20' ) start [2025-04-02 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820399', 'tblTempVendorCDR_20' ) end [2025-04-02 19:46:20] Production.INFO: ProcessCDR(1,14820399,1,1,2) [2025-04-02 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820399', 'tblTempUsageDetail_20' ) start [2025-04-02 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820399', 'tblTempUsageDetail_20' ) end [2025-04-02 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:46:23] Production.INFO: ==3074== Releasing lock... [2025-04-02 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:46:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:47:05 [end_date_ymd] => 2025-04-02 19:47:05 [RateCDR] => 1 ) [2025-04-02 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:47:05' and `end` < '2025-04-02 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:47:18] Production.INFO: count ==3151 [2025-04-02 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:47:05 - End Time 2025-04-02 19:47:05 [2025-04-02 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820404', 'tblTempUsageDetail_20' ) start [2025-04-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820404', 'tblTempUsageDetail_20' ) end [2025-04-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820404', 'tblTempVendorCDR_20' ) start [2025-04-02 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820404', 'tblTempVendorCDR_20' ) end [2025-04-02 19:47:19] Production.INFO: ProcessCDR(1,14820404,1,1,2) [2025-04-02 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820404', 'tblTempUsageDetail_20' ) start [2025-04-02 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820404', 'tblTempUsageDetail_20' ) end [2025-04-02 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:47:24] Production.INFO: ==3156== Releasing lock... [2025-04-02 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:47:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:48:05 [end_date_ymd] => 2025-04-02 19:48:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:48:05' and `end` < '2025-04-02 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-04-02 19:48:19] Production.INFO: count ==3141 [2025-04-02 19:48:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:48:05 - End Time 2025-04-02 19:48:05 [2025-04-02 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820409', 'tblTempUsageDetail_20' ) start [2025-04-02 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820409', 'tblTempUsageDetail_20' ) end [2025-04-02 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820409', 'tblTempVendorCDR_20' ) start [2025-04-02 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820409', 'tblTempVendorCDR_20' ) end [2025-04-02 19:48:20] Production.INFO: ProcessCDR(1,14820409,1,1,2) [2025-04-02 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820409', 'tblTempUsageDetail_20' ) start [2025-04-02 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820409', 'tblTempUsageDetail_20' ) end [2025-04-02 19:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:48:26] Production.INFO: ==3237== Releasing lock... [2025-04-02 19:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:48:26] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:49:06 [end_date_ymd] => 2025-04-02 19:49:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:49:06' and `end` < '2025-04-02 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-04-02 19:49:19] Production.INFO: count ==3150 [2025-04-02 19:49:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:49:06 - End Time 2025-04-02 19:49:06 [2025-04-02 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820414', 'tblTempUsageDetail_20' ) start [2025-04-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820414', 'tblTempUsageDetail_20' ) end [2025-04-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820414', 'tblTempVendorCDR_20' ) start [2025-04-02 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820414', 'tblTempVendorCDR_20' ) end [2025-04-02 19:49:20] Production.INFO: ProcessCDR(1,14820414,1,1,2) [2025-04-02 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820414', 'tblTempUsageDetail_20' ) start [2025-04-02 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820414', 'tblTempUsageDetail_20' ) end [2025-04-02 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:49:23] Production.INFO: ==3316== Releasing lock... [2025-04-02 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:49:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:50:06 [end_date_ymd] => 2025-04-02 19:50:06 [RateCDR] => 1 ) [2025-04-02 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:50:06' and `end` < '2025-04-02 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:50:19] Production.INFO: count ==3158 [2025-04-02 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:50:06 - End Time 2025-04-02 19:50:06 [2025-04-02 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820419', 'tblTempUsageDetail_20' ) start [2025-04-02 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820419', 'tblTempUsageDetail_20' ) end [2025-04-02 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820419', 'tblTempVendorCDR_20' ) start [2025-04-02 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820419', 'tblTempVendorCDR_20' ) end [2025-04-02 19:50:20] Production.INFO: ProcessCDR(1,14820419,1,1,2) [2025-04-02 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820419', 'tblTempUsageDetail_20' ) start [2025-04-02 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820419', 'tblTempUsageDetail_20' ) end [2025-04-02 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:50:25] Production.INFO: ==3398== Releasing lock... [2025-04-02 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:50:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-02 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:51:05 [end_date_ymd] => 2025-04-02 19:51:05 [RateCDR] => 1 ) [2025-04-02 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:51:05' and `end` < '2025-04-02 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:51:18] Production.INFO: count ==3069 [2025-04-02 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:51:05 - End Time 2025-04-02 19:51:05 [2025-04-02 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820425', 'tblTempUsageDetail_20' ) start [2025-04-02 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820425', 'tblTempUsageDetail_20' ) end [2025-04-02 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820425', 'tblTempVendorCDR_20' ) start [2025-04-02 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820425', 'tblTempVendorCDR_20' ) end [2025-04-02 19:51:19] Production.INFO: ProcessCDR(1,14820425,1,1,2) [2025-04-02 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820425', 'tblTempUsageDetail_20' ) start [2025-04-02 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820425', 'tblTempUsageDetail_20' ) end [2025-04-02 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:51:23] Production.INFO: ==3484== Releasing lock... [2025-04-02 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:51:23] Production.INFO: 51 MB #Memory Used# [2025-04-02 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:52:05 [end_date_ymd] => 2025-04-02 19:52:05 [RateCDR] => 1 ) [2025-04-02 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:52:05' and `end` < '2025-04-02 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:52:18] Production.INFO: count ==3073 [2025-04-02 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:52:05 - End Time 2025-04-02 19:52:05 [2025-04-02 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820430', 'tblTempUsageDetail_20' ) start [2025-04-02 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820430', 'tblTempUsageDetail_20' ) end [2025-04-02 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820430', 'tblTempVendorCDR_20' ) start [2025-04-02 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820430', 'tblTempVendorCDR_20' ) end [2025-04-02 19:52:20] Production.INFO: ProcessCDR(1,14820430,1,1,2) [2025-04-02 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820430', 'tblTempUsageDetail_20' ) start [2025-04-02 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820430', 'tblTempUsageDetail_20' ) end [2025-04-02 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:52:23] Production.INFO: ==3560== Releasing lock... [2025-04-02 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:52:23] Production.INFO: 51.25 MB #Memory Used# [2025-04-02 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:53:05 [end_date_ymd] => 2025-04-02 19:53:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 16:53:05' and `end` < '2025-04-02 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-04-02 19:53:19] Production.INFO: count ==3066 [2025-04-02 19:53:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:53:05 - End Time 2025-04-02 19:53:05 [2025-04-02 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820435', 'tblTempUsageDetail_20' ) start [2025-04-02 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820435', 'tblTempUsageDetail_20' ) end [2025-04-02 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820435', 'tblTempVendorCDR_20' ) start [2025-04-02 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820435', 'tblTempVendorCDR_20' ) end [2025-04-02 19:53:20] Production.INFO: ProcessCDR(1,14820435,1,1,2) [2025-04-02 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820435', 'tblTempUsageDetail_20' ) start [2025-04-02 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820435', 'tblTempUsageDetail_20' ) end [2025-04-02 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:53:25] Production.INFO: ==3683== Releasing lock... [2025-04-02 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:53:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-02 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:54:04 [end_date_ymd] => 2025-04-02 19:54:04 [RateCDR] => 1 ) [2025-04-02 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:54:04' and `end` < '2025-04-02 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:54:17] Production.INFO: count ==3052 [2025-04-02 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-02 16:54:04 - End Time 2025-04-02 19:54:04 [2025-04-02 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820440', 'tblTempUsageDetail_20' ) start [2025-04-02 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820440', 'tblTempUsageDetail_20' ) end [2025-04-02 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820440', 'tblTempVendorCDR_20' ) start [2025-04-02 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820440', 'tblTempVendorCDR_20' ) end [2025-04-02 19:54:18] Production.INFO: ProcessCDR(1,14820440,1,1,2) [2025-04-02 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820440', 'tblTempUsageDetail_20' ) start [2025-04-02 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820440', 'tblTempUsageDetail_20' ) end [2025-04-02 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:54:22] Production.INFO: ==3767== Releasing lock... [2025-04-02 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:54:22] Production.INFO: 50.75 MB #Memory Used# [2025-04-02 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:55:06 [end_date_ymd] => 2025-04-02 19:55:06 [RateCDR] => 1 ) [2025-04-02 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:55:06' and `end` < '2025-04-02 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:55:19] Production.INFO: count ==3063 [2025-04-02 19:55:20] Production.ERROR: pbx CDR StartTime 2025-04-02 16:55:06 - End Time 2025-04-02 19:55:06 [2025-04-02 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820445', 'tblTempUsageDetail_20' ) start [2025-04-02 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820445', 'tblTempUsageDetail_20' ) end [2025-04-02 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820445', 'tblTempVendorCDR_20' ) start [2025-04-02 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820445', 'tblTempVendorCDR_20' ) end [2025-04-02 19:55:20] Production.INFO: ProcessCDR(1,14820445,1,1,2) [2025-04-02 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820445', 'tblTempUsageDetail_20' ) start [2025-04-02 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820445', 'tblTempUsageDetail_20' ) end [2025-04-02 19:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:55:25] Production.INFO: ==3851== Releasing lock... [2025-04-02 19:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:55:25] Production.INFO: 51 MB #Memory Used# [2025-04-02 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:56:05 [end_date_ymd] => 2025-04-02 19:56:05 [RateCDR] => 1 ) [2025-04-02 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:56:05' and `end` < '2025-04-02 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:56:18] Production.INFO: count ==3100 [2025-04-02 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:56:05 - End Time 2025-04-02 19:56:05 [2025-04-02 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820449', 'tblTempUsageDetail_20' ) start [2025-04-02 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820449', 'tblTempUsageDetail_20' ) end [2025-04-02 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820449', 'tblTempVendorCDR_20' ) start [2025-04-02 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820449', 'tblTempVendorCDR_20' ) end [2025-04-02 19:56:19] Production.INFO: ProcessCDR(1,14820449,1,1,2) [2025-04-02 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820449', 'tblTempUsageDetail_20' ) start [2025-04-02 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820449', 'tblTempUsageDetail_20' ) end [2025-04-02 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:56:24] Production.INFO: ==3933== Releasing lock... [2025-04-02 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:56:24] Production.INFO: 51 MB #Memory Used# [2025-04-02 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:57:05 [end_date_ymd] => 2025-04-02 19:57:05 [RateCDR] => 1 ) [2025-04-02 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:57:05' and `end` < '2025-04-02 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:57:18] Production.INFO: count ==3095 [2025-04-02 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:57:05 - End Time 2025-04-02 19:57:05 [2025-04-02 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820455', 'tblTempUsageDetail_20' ) start [2025-04-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820455', 'tblTempUsageDetail_20' ) end [2025-04-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820455', 'tblTempVendorCDR_20' ) start [2025-04-02 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820455', 'tblTempVendorCDR_20' ) end [2025-04-02 19:57:19] Production.INFO: ProcessCDR(1,14820455,1,1,2) [2025-04-02 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820455', 'tblTempUsageDetail_20' ) start [2025-04-02 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820455', 'tblTempUsageDetail_20' ) end [2025-04-02 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:57:23] Production.INFO: ==4015== Releasing lock... [2025-04-02 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:57:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-02 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:58:04 [end_date_ymd] => 2025-04-02 19:58:04 [RateCDR] => 1 ) [2025-04-02 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:58:04' and `end` < '2025-04-02 19:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:58:18] Production.INFO: count ==3092 [2025-04-02 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:58:04 - End Time 2025-04-02 19:58:04 [2025-04-02 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820460', 'tblTempUsageDetail_20' ) start [2025-04-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820460', 'tblTempUsageDetail_20' ) end [2025-04-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820460', 'tblTempVendorCDR_20' ) start [2025-04-02 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820460', 'tblTempVendorCDR_20' ) end [2025-04-02 19:58:19] Production.INFO: ProcessCDR(1,14820460,1,1,2) [2025-04-02 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820460', 'tblTempUsageDetail_20' ) start [2025-04-02 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820460', 'tblTempUsageDetail_20' ) end [2025-04-02 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:58:24] Production.INFO: ==4094== Releasing lock... [2025-04-02 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:58:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 16:59:05 [end_date_ymd] => 2025-04-02 19:59:05 [RateCDR] => 1 ) [2025-04-02 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 16:59:05' and `end` < '2025-04-02 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 19:59:18] Production.INFO: count ==3100 [2025-04-02 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-02 16:59:05 - End Time 2025-04-02 19:59:05 [2025-04-02 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820465', 'tblTempUsageDetail_20' ) start [2025-04-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820465', 'tblTempUsageDetail_20' ) end [2025-04-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820465', 'tblTempVendorCDR_20' ) start [2025-04-02 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820465', 'tblTempVendorCDR_20' ) end [2025-04-02 19:59:19] Production.INFO: ProcessCDR(1,14820465,1,1,2) [2025-04-02 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820465', 'tblTempUsageDetail_20' ) start [2025-04-02 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820465', 'tblTempUsageDetail_20' ) end [2025-04-02 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 19:59:24] Production.INFO: ==4178== Releasing lock... [2025-04-02 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 19:59:24] Production.INFO: 51 MB #Memory Used# [2025-04-02 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:00:06 [end_date_ymd] => 2025-04-02 20:00:06 [RateCDR] => 1 ) [2025-04-02 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:00:06' and `end` < '2025-04-02 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:00:19] Production.INFO: count ==3106 [2025-04-02 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:00:06 - End Time 2025-04-02 20:00:06 [2025-04-02 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820471', 'tblTempUsageDetail_20' ) start [2025-04-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820471', 'tblTempUsageDetail_20' ) end [2025-04-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820471', 'tblTempVendorCDR_20' ) start [2025-04-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820471', 'tblTempVendorCDR_20' ) end [2025-04-02 20:00:20] Production.INFO: ProcessCDR(1,14820471,1,1,2) [2025-04-02 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820471', 'tblTempUsageDetail_20' ) start [2025-04-02 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820471', 'tblTempUsageDetail_20' ) end [2025-04-02 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:00:24] Production.INFO: ==4265== Releasing lock... [2025-04-02 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:00:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:01:05 [end_date_ymd] => 2025-04-02 20:01:05 [RateCDR] => 1 ) [2025-04-02 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:01:05' and `end` < '2025-04-02 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:01:18] Production.INFO: count ==3055 [2025-04-02 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:01:05 - End Time 2025-04-02 20:01:05 [2025-04-02 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820476', 'tblTempUsageDetail_20' ) start [2025-04-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820476', 'tblTempUsageDetail_20' ) end [2025-04-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820476', 'tblTempVendorCDR_20' ) start [2025-04-02 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820476', 'tblTempVendorCDR_20' ) end [2025-04-02 20:01:19] Production.INFO: ProcessCDR(1,14820476,1,1,2) [2025-04-02 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820476', 'tblTempUsageDetail_20' ) start [2025-04-02 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820476', 'tblTempUsageDetail_20' ) end [2025-04-02 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:01:25] Production.INFO: ==4395== Releasing lock... [2025-04-02 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:01:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-02 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:02:06 [end_date_ymd] => 2025-04-02 20:02:06 [RateCDR] => 1 ) [2025-04-02 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:02:06' and `end` < '2025-04-02 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:02:19] Production.INFO: count ==3026 [2025-04-02 20:02:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:02:06 - End Time 2025-04-02 20:02:06 [2025-04-02 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820481', 'tblTempUsageDetail_20' ) start [2025-04-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820481', 'tblTempUsageDetail_20' ) end [2025-04-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820481', 'tblTempVendorCDR_20' ) start [2025-04-02 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820481', 'tblTempVendorCDR_20' ) end [2025-04-02 20:02:20] Production.INFO: ProcessCDR(1,14820481,1,1,2) [2025-04-02 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820481', 'tblTempUsageDetail_20' ) start [2025-04-02 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820481', 'tblTempUsageDetail_20' ) end [2025-04-02 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:02:24] Production.INFO: ==4480== Releasing lock... [2025-04-02 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:02:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-02 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:03:05 [end_date_ymd] => 2025-04-02 20:03:05 [RateCDR] => 1 ) [2025-04-02 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:03:05' and `end` < '2025-04-02 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:03:18] Production.INFO: count ==3013 [2025-04-02 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:03:05 - End Time 2025-04-02 20:03:05 [2025-04-02 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820486', 'tblTempUsageDetail_20' ) start [2025-04-02 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820486', 'tblTempUsageDetail_20' ) end [2025-04-02 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820486', 'tblTempVendorCDR_20' ) start [2025-04-02 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820486', 'tblTempVendorCDR_20' ) end [2025-04-02 20:03:19] Production.INFO: ProcessCDR(1,14820486,1,1,2) [2025-04-02 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820486', 'tblTempUsageDetail_20' ) start [2025-04-02 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820486', 'tblTempUsageDetail_20' ) end [2025-04-02 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:03:24] Production.INFO: ==4560== Releasing lock... [2025-04-02 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:03:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-02 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:04:05 [end_date_ymd] => 2025-04-02 20:04:05 [RateCDR] => 1 ) [2025-04-02 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:04:05' and `end` < '2025-04-02 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:04:19] Production.INFO: count ==3008 [2025-04-02 20:04:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:04:05 - End Time 2025-04-02 20:04:05 [2025-04-02 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820491', 'tblTempUsageDetail_20' ) start [2025-04-02 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820491', 'tblTempUsageDetail_20' ) end [2025-04-02 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820491', 'tblTempVendorCDR_20' ) start [2025-04-02 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820491', 'tblTempVendorCDR_20' ) end [2025-04-02 20:04:20] Production.INFO: ProcessCDR(1,14820491,1,1,2) [2025-04-02 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820491', 'tblTempUsageDetail_20' ) start [2025-04-02 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820491', 'tblTempUsageDetail_20' ) end [2025-04-02 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:04:25] Production.INFO: ==4656== Releasing lock... [2025-04-02 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:04:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-02 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:05:05 [end_date_ymd] => 2025-04-02 20:05:05 [RateCDR] => 1 ) [2025-04-02 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:05:05' and `end` < '2025-04-02 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:05:18] Production.INFO: count ==2999 [2025-04-02 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:05:05 - End Time 2025-04-02 20:05:05 [2025-04-02 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820496', 'tblTempUsageDetail_20' ) start [2025-04-02 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820496', 'tblTempUsageDetail_20' ) end [2025-04-02 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820496', 'tblTempVendorCDR_20' ) start [2025-04-02 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820496', 'tblTempVendorCDR_20' ) end [2025-04-02 20:05:20] Production.INFO: ProcessCDR(1,14820496,1,1,2) [2025-04-02 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820496', 'tblTempUsageDetail_20' ) start [2025-04-02 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820496', 'tblTempUsageDetail_20' ) end [2025-04-02 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:05:24] Production.INFO: ==4740== Releasing lock... [2025-04-02 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:05:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-02 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:06:05 [end_date_ymd] => 2025-04-02 20:06:05 [RateCDR] => 1 ) [2025-04-02 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:06:05' and `end` < '2025-04-02 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:06:18] Production.INFO: count ==2986 [2025-04-02 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:06:05 - End Time 2025-04-02 20:06:05 [2025-04-02 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820501', 'tblTempUsageDetail_20' ) start [2025-04-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820501', 'tblTempUsageDetail_20' ) end [2025-04-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820501', 'tblTempVendorCDR_20' ) start [2025-04-02 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820501', 'tblTempVendorCDR_20' ) end [2025-04-02 20:06:19] Production.INFO: ProcessCDR(1,14820501,1,1,2) [2025-04-02 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820501', 'tblTempUsageDetail_20' ) start [2025-04-02 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820501', 'tblTempUsageDetail_20' ) end [2025-04-02 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:06:24] Production.INFO: ==4829== Releasing lock... [2025-04-02 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:06:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-02 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:07:05 [end_date_ymd] => 2025-04-02 20:07:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:07:05' and `end` < '2025-04-02 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-04-02 20:07:18] Production.INFO: count ==2976 [2025-04-02 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:07:05 - End Time 2025-04-02 20:07:05 [2025-04-02 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820506', 'tblTempUsageDetail_20' ) start [2025-04-02 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820506', 'tblTempUsageDetail_20' ) end [2025-04-02 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820506', 'tblTempVendorCDR_20' ) start [2025-04-02 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820506', 'tblTempVendorCDR_20' ) end [2025-04-02 20:07:19] Production.INFO: ProcessCDR(1,14820506,1,1,2) [2025-04-02 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820506', 'tblTempUsageDetail_20' ) start [2025-04-02 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820506', 'tblTempUsageDetail_20' ) end [2025-04-02 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:07:24] Production.INFO: ==4913== Releasing lock... [2025-04-02 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:07:24] Production.INFO: 50 MB #Memory Used# [2025-04-02 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:08:06 [end_date_ymd] => 2025-04-02 20:08:06 [RateCDR] => 1 ) [2025-04-02 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:08:06' and `end` < '2025-04-02 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:08:19] Production.INFO: count ==2981 [2025-04-02 20:08:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:08:06 - End Time 2025-04-02 20:08:06 [2025-04-02 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820511', 'tblTempUsageDetail_20' ) start [2025-04-02 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820511', 'tblTempUsageDetail_20' ) end [2025-04-02 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820511', 'tblTempVendorCDR_20' ) start [2025-04-02 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820511', 'tblTempVendorCDR_20' ) end [2025-04-02 20:08:20] Production.INFO: ProcessCDR(1,14820511,1,1,2) [2025-04-02 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820511', 'tblTempUsageDetail_20' ) start [2025-04-02 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820511', 'tblTempUsageDetail_20' ) end [2025-04-02 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:08:25] Production.INFO: ==5049== Releasing lock... [2025-04-02 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:08:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-02 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:09:05 [end_date_ymd] => 2025-04-02 20:09:05 [RateCDR] => 1 ) [2025-04-02 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:09:05' and `end` < '2025-04-02 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:09:18] Production.INFO: count ==2978 [2025-04-02 20:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 17:09:05 - End Time 2025-04-02 20:09:05 [2025-04-02 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820516', 'tblTempUsageDetail_20' ) start [2025-04-02 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820516', 'tblTempUsageDetail_20' ) end [2025-04-02 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820516', 'tblTempVendorCDR_20' ) start [2025-04-02 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820516', 'tblTempVendorCDR_20' ) end [2025-04-02 20:09:19] Production.INFO: ProcessCDR(1,14820516,1,1,2) [2025-04-02 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820516', 'tblTempUsageDetail_20' ) start [2025-04-02 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820516', 'tblTempUsageDetail_20' ) end [2025-04-02 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:09:24] Production.INFO: ==5138== Releasing lock... [2025-04-02 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:09:24] Production.INFO: 50 MB #Memory Used# [2025-04-02 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:10:06 [end_date_ymd] => 2025-04-02 20:10:06 [RateCDR] => 1 ) [2025-04-02 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:10:06' and `end` < '2025-04-02 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:10:19] Production.INFO: count ==2955 [2025-04-02 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:10:06 - End Time 2025-04-02 20:10:06 [2025-04-02 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820522', 'tblTempUsageDetail_20' ) start [2025-04-02 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820522', 'tblTempUsageDetail_20' ) end [2025-04-02 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820522', 'tblTempVendorCDR_20' ) start [2025-04-02 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820522', 'tblTempVendorCDR_20' ) end [2025-04-02 20:10:20] Production.INFO: ProcessCDR(1,14820522,1,1,2) [2025-04-02 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820522', 'tblTempUsageDetail_20' ) start [2025-04-02 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820522', 'tblTempUsageDetail_20' ) end [2025-04-02 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:10:25] Production.INFO: ==5217== Releasing lock... [2025-04-02 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:10:25] Production.INFO: 50 MB #Memory Used# [2025-04-02 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:11:06 [end_date_ymd] => 2025-04-02 20:11:06 [RateCDR] => 1 ) [2025-04-02 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:11:06' and `end` < '2025-04-02 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:11:19] Production.INFO: count ==2881 [2025-04-02 20:11:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:11:06 - End Time 2025-04-02 20:11:06 [2025-04-02 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820527', 'tblTempUsageDetail_20' ) start [2025-04-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820527', 'tblTempUsageDetail_20' ) end [2025-04-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820527', 'tblTempVendorCDR_20' ) start [2025-04-02 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820527', 'tblTempVendorCDR_20' ) end [2025-04-02 20:11:20] Production.INFO: ProcessCDR(1,14820527,1,1,2) [2025-04-02 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820527', 'tblTempUsageDetail_20' ) start [2025-04-02 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820527', 'tblTempUsageDetail_20' ) end [2025-04-02 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:11:25] Production.INFO: ==5309== Releasing lock... [2025-04-02 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:11:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-02 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:12:05 [end_date_ymd] => 2025-04-02 20:12:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:12:05' and `end` < '2025-04-02 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-04-02 20:12:18] Production.INFO: count ==2879 [2025-04-02 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:12:05 - End Time 2025-04-02 20:12:05 [2025-04-02 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820532', 'tblTempUsageDetail_20' ) start [2025-04-02 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820532', 'tblTempUsageDetail_20' ) end [2025-04-02 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820532', 'tblTempVendorCDR_20' ) start [2025-04-02 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820532', 'tblTempVendorCDR_20' ) end [2025-04-02 20:12:19] Production.INFO: ProcessCDR(1,14820532,1,1,2) [2025-04-02 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820532', 'tblTempUsageDetail_20' ) start [2025-04-02 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820532', 'tblTempUsageDetail_20' ) end [2025-04-02 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:12:24] Production.INFO: ==5395== Releasing lock... [2025-04-02 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:12:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-02 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:13:06 [end_date_ymd] => 2025-04-02 20:13:06 [RateCDR] => 1 ) [2025-04-02 20:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:13:06' and `end` < '2025-04-02 20:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:13:19] Production.INFO: count ==2879 [2025-04-02 20:13:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:13:06 - End Time 2025-04-02 20:13:06 [2025-04-02 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820537', 'tblTempUsageDetail_20' ) start [2025-04-02 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820537', 'tblTempUsageDetail_20' ) end [2025-04-02 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820537', 'tblTempVendorCDR_20' ) start [2025-04-02 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820537', 'tblTempVendorCDR_20' ) end [2025-04-02 20:13:20] Production.INFO: ProcessCDR(1,14820537,1,1,2) [2025-04-02 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820537', 'tblTempUsageDetail_20' ) start [2025-04-02 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820537', 'tblTempUsageDetail_20' ) end [2025-04-02 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:13:23] Production.INFO: ==5478== Releasing lock... [2025-04-02 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:13:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:14:05 [end_date_ymd] => 2025-04-02 20:14:05 [RateCDR] => 1 ) [2025-04-02 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:14:05' and `end` < '2025-04-02 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:14:18] Production.INFO: count ==2867 [2025-04-02 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:14:05 - End Time 2025-04-02 20:14:05 [2025-04-02 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820542', 'tblTempUsageDetail_20' ) start [2025-04-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820542', 'tblTempUsageDetail_20' ) end [2025-04-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820542', 'tblTempVendorCDR_20' ) start [2025-04-02 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820542', 'tblTempVendorCDR_20' ) end [2025-04-02 20:14:19] Production.INFO: ProcessCDR(1,14820542,1,1,2) [2025-04-02 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820542', 'tblTempUsageDetail_20' ) start [2025-04-02 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820542', 'tblTempUsageDetail_20' ) end [2025-04-02 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:14:24] Production.INFO: ==5569== Releasing lock... [2025-04-02 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:14:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-02 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:15:05 [end_date_ymd] => 2025-04-02 20:15:05 [RateCDR] => 1 ) [2025-04-02 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:15:05' and `end` < '2025-04-02 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:15:18] Production.INFO: count ==2871 [2025-04-02 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:15:05 - End Time 2025-04-02 20:15:05 [2025-04-02 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820547', 'tblTempUsageDetail_20' ) start [2025-04-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820547', 'tblTempUsageDetail_20' ) end [2025-04-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820547', 'tblTempVendorCDR_20' ) start [2025-04-02 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820547', 'tblTempVendorCDR_20' ) end [2025-04-02 20:15:19] Production.INFO: ProcessCDR(1,14820547,1,1,2) [2025-04-02 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820547', 'tblTempUsageDetail_20' ) start [2025-04-02 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820547', 'tblTempUsageDetail_20' ) end [2025-04-02 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:15:23] Production.INFO: ==5659== Releasing lock... [2025-04-02 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:15:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:16:05 [end_date_ymd] => 2025-04-02 20:16:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:16:05' and `end` < '2025-04-02 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-04-02 20:16:18] Production.INFO: count ==2868 [2025-04-02 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:16:05 - End Time 2025-04-02 20:16:05 [2025-04-02 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820552', 'tblTempUsageDetail_20' ) start [2025-04-02 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820552', 'tblTempUsageDetail_20' ) end [2025-04-02 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820552', 'tblTempVendorCDR_20' ) start [2025-04-02 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820552', 'tblTempVendorCDR_20' ) end [2025-04-02 20:16:19] Production.INFO: ProcessCDR(1,14820552,1,1,2) [2025-04-02 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820552', 'tblTempUsageDetail_20' ) start [2025-04-02 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820552', 'tblTempUsageDetail_20' ) end [2025-04-02 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:16:22] Production.INFO: ==5741== Releasing lock... [2025-04-02 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:16:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:17:06 [end_date_ymd] => 2025-04-02 20:17:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:17:06' and `end` < '2025-04-02 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-04-02 20:17:18] Production.INFO: count ==2862 [2025-04-02 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:17:06 - End Time 2025-04-02 20:17:06 [2025-04-02 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820557', 'tblTempUsageDetail_20' ) start [2025-04-02 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820557', 'tblTempUsageDetail_20' ) end [2025-04-02 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820557', 'tblTempVendorCDR_20' ) start [2025-04-02 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820557', 'tblTempVendorCDR_20' ) end [2025-04-02 20:17:20] Production.INFO: ProcessCDR(1,14820557,1,1,2) [2025-04-02 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820557', 'tblTempUsageDetail_20' ) start [2025-04-02 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820557', 'tblTempUsageDetail_20' ) end [2025-04-02 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:17:23] Production.INFO: ==5828== Releasing lock... [2025-04-02 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:17:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:18:05 [end_date_ymd] => 2025-04-02 20:18:05 [RateCDR] => 1 ) [2025-04-02 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:18:05' and `end` < '2025-04-02 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:18:18] Production.INFO: count ==2859 [2025-04-02 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:18:05 - End Time 2025-04-02 20:18:05 [2025-04-02 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820562', 'tblTempUsageDetail_20' ) start [2025-04-02 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820562', 'tblTempUsageDetail_20' ) end [2025-04-02 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820562', 'tblTempVendorCDR_20' ) start [2025-04-02 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820562', 'tblTempVendorCDR_20' ) end [2025-04-02 20:18:19] Production.INFO: ProcessCDR(1,14820562,1,1,2) [2025-04-02 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820562', 'tblTempUsageDetail_20' ) start [2025-04-02 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820562', 'tblTempUsageDetail_20' ) end [2025-04-02 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:18:22] Production.INFO: ==5911== Releasing lock... [2025-04-02 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:18:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:19:05 [end_date_ymd] => 2025-04-02 20:19:05 [RateCDR] => 1 ) [2025-04-02 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:19:05' and `end` < '2025-04-02 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:19:18] Production.INFO: count ==2858 [2025-04-02 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:19:05 - End Time 2025-04-02 20:19:05 [2025-04-02 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820567', 'tblTempUsageDetail_20' ) start [2025-04-02 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820567', 'tblTempUsageDetail_20' ) end [2025-04-02 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820567', 'tblTempVendorCDR_20' ) start [2025-04-02 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820567', 'tblTempVendorCDR_20' ) end [2025-04-02 20:19:19] Production.INFO: ProcessCDR(1,14820567,1,1,2) [2025-04-02 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820567', 'tblTempUsageDetail_20' ) start [2025-04-02 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820567', 'tblTempUsageDetail_20' ) end [2025-04-02 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:19:24] Production.INFO: ==6000== Releasing lock... [2025-04-02 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:19:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:20:06 [end_date_ymd] => 2025-04-02 20:20:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:20:06' and `end` < '2025-04-02 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-04-02 20:20:19] Production.INFO: count ==2854 [2025-04-02 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:20:06 - End Time 2025-04-02 20:20:06 [2025-04-02 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820573', 'tblTempUsageDetail_20' ) start [2025-04-02 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820573', 'tblTempUsageDetail_20' ) end [2025-04-02 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820573', 'tblTempVendorCDR_20' ) start [2025-04-02 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820573', 'tblTempVendorCDR_20' ) end [2025-04-02 20:20:20] Production.INFO: ProcessCDR(1,14820573,1,1,2) [2025-04-02 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820573', 'tblTempUsageDetail_20' ) start [2025-04-02 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820573', 'tblTempUsageDetail_20' ) end [2025-04-02 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:20:24] Production.INFO: ==6088== Releasing lock... [2025-04-02 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:20:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-02 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:21:06 [end_date_ymd] => 2025-04-02 20:21:06 [RateCDR] => 1 ) [2025-04-02 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:21:06' and `end` < '2025-04-02 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:21:19] Production.INFO: count ==2800 [2025-04-02 20:21:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:21:06 - End Time 2025-04-02 20:21:06 [2025-04-02 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820578', 'tblTempUsageDetail_20' ) start [2025-04-02 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820578', 'tblTempUsageDetail_20' ) end [2025-04-02 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820578', 'tblTempVendorCDR_20' ) start [2025-04-02 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820578', 'tblTempVendorCDR_20' ) end [2025-04-02 20:21:20] Production.INFO: ProcessCDR(1,14820578,1,1,2) [2025-04-02 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820578', 'tblTempUsageDetail_20' ) start [2025-04-02 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820578', 'tblTempUsageDetail_20' ) end [2025-04-02 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:21:25] Production.INFO: ==6174== Releasing lock... [2025-04-02 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:21:25] Production.INFO: 49 MB #Memory Used# [2025-04-02 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:22:05 [end_date_ymd] => 2025-04-02 20:22:05 [RateCDR] => 1 ) [2025-04-02 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:22:05' and `end` < '2025-04-02 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:22:18] Production.INFO: count ==2786 [2025-04-02 20:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:22:05 - End Time 2025-04-02 20:22:05 [2025-04-02 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820583', 'tblTempUsageDetail_20' ) start [2025-04-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820583', 'tblTempUsageDetail_20' ) end [2025-04-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820583', 'tblTempVendorCDR_20' ) start [2025-04-02 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820583', 'tblTempVendorCDR_20' ) end [2025-04-02 20:22:19] Production.INFO: ProcessCDR(1,14820583,1,1,2) [2025-04-02 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820583', 'tblTempUsageDetail_20' ) start [2025-04-02 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820583', 'tblTempUsageDetail_20' ) end [2025-04-02 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:22:23] Production.INFO: ==6254== Releasing lock... [2025-04-02 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:22:23] Production.INFO: 49 MB #Memory Used# [2025-04-02 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:23:06 [end_date_ymd] => 2025-04-02 20:23:06 [RateCDR] => 1 ) [2025-04-02 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:23:06' and `end` < '2025-04-02 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:23:19] Production.INFO: count ==2785 [2025-04-02 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:23:06 - End Time 2025-04-02 20:23:06 [2025-04-02 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820588', 'tblTempUsageDetail_20' ) start [2025-04-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820588', 'tblTempUsageDetail_20' ) end [2025-04-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820588', 'tblTempVendorCDR_20' ) start [2025-04-02 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820588', 'tblTempVendorCDR_20' ) end [2025-04-02 20:23:19] Production.INFO: ProcessCDR(1,14820588,1,1,2) [2025-04-02 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820588', 'tblTempUsageDetail_20' ) start [2025-04-02 20:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820588', 'tblTempUsageDetail_20' ) end [2025-04-02 20:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:23:25] Production.INFO: ==6379== Releasing lock... [2025-04-02 20:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:23:25] Production.INFO: 49 MB #Memory Used# [2025-04-02 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:24:06 [end_date_ymd] => 2025-04-02 20:24:06 [RateCDR] => 1 ) [2025-04-02 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:24:06' and `end` < '2025-04-02 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:24:19] Production.INFO: count ==2788 [2025-04-02 20:24:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:24:06 - End Time 2025-04-02 20:24:06 [2025-04-02 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820593', 'tblTempUsageDetail_20' ) start [2025-04-02 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820593', 'tblTempUsageDetail_20' ) end [2025-04-02 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820593', 'tblTempVendorCDR_20' ) start [2025-04-02 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820593', 'tblTempVendorCDR_20' ) end [2025-04-02 20:24:20] Production.INFO: ProcessCDR(1,14820593,1,1,2) [2025-04-02 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820593', 'tblTempUsageDetail_20' ) start [2025-04-02 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820593', 'tblTempUsageDetail_20' ) end [2025-04-02 20:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:24:25] Production.INFO: ==6459== Releasing lock... [2025-04-02 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:24:25] Production.INFO: 49 MB #Memory Used# [2025-04-02 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:25:06 [end_date_ymd] => 2025-04-02 20:25:06 [RateCDR] => 1 ) [2025-04-02 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:25:06' and `end` < '2025-04-02 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:25:19] Production.INFO: count ==2778 [2025-04-02 20:25:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:25:06 - End Time 2025-04-02 20:25:06 [2025-04-02 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820598', 'tblTempUsageDetail_20' ) start [2025-04-02 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820598', 'tblTempUsageDetail_20' ) end [2025-04-02 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820598', 'tblTempVendorCDR_20' ) start [2025-04-02 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820598', 'tblTempVendorCDR_20' ) end [2025-04-02 20:25:20] Production.INFO: ProcessCDR(1,14820598,1,1,2) [2025-04-02 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820598', 'tblTempUsageDetail_20' ) start [2025-04-02 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820598', 'tblTempUsageDetail_20' ) end [2025-04-02 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:25:23] Production.INFO: ==6540== Releasing lock... [2025-04-02 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:25:23] Production.INFO: 49 MB #Memory Used# [2025-04-02 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:26:05 [end_date_ymd] => 2025-04-02 20:26:05 [RateCDR] => 1 ) [2025-04-02 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:26:05' and `end` < '2025-04-02 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:26:18] Production.INFO: count ==2771 [2025-04-02 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:26:05 - End Time 2025-04-02 20:26:05 [2025-04-02 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820603', 'tblTempUsageDetail_20' ) start [2025-04-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820603', 'tblTempUsageDetail_20' ) end [2025-04-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820603', 'tblTempVendorCDR_20' ) start [2025-04-02 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820603', 'tblTempVendorCDR_20' ) end [2025-04-02 20:26:19] Production.INFO: ProcessCDR(1,14820603,1,1,2) [2025-04-02 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820603', 'tblTempUsageDetail_20' ) start [2025-04-02 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820603', 'tblTempUsageDetail_20' ) end [2025-04-02 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:26:23] Production.INFO: ==6615== Releasing lock... [2025-04-02 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:26:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-02 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:27:06 [end_date_ymd] => 2025-04-02 20:27:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:27:06' and `end` < '2025-04-02 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-04-02 20:27:19] Production.INFO: count ==2756 [2025-04-02 20:27:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:27:06 - End Time 2025-04-02 20:27:06 [2025-04-02 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820608', 'tblTempUsageDetail_20' ) start [2025-04-02 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820608', 'tblTempUsageDetail_20' ) end [2025-04-02 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820608', 'tblTempVendorCDR_20' ) start [2025-04-02 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820608', 'tblTempVendorCDR_20' ) end [2025-04-02 20:27:20] Production.INFO: ProcessCDR(1,14820608,1,1,2) [2025-04-02 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820608', 'tblTempUsageDetail_20' ) start [2025-04-02 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820608', 'tblTempUsageDetail_20' ) end [2025-04-02 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:27:23] Production.INFO: ==6694== Releasing lock... [2025-04-02 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:27:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-02 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:28:05 [end_date_ymd] => 2025-04-02 20:28:05 [RateCDR] => 1 ) [2025-04-02 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:28:05' and `end` < '2025-04-02 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:28:18] Production.INFO: count ==2739 [2025-04-02 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:28:05 - End Time 2025-04-02 20:28:05 [2025-04-02 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820613', 'tblTempUsageDetail_20' ) start [2025-04-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820613', 'tblTempUsageDetail_20' ) end [2025-04-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820613', 'tblTempVendorCDR_20' ) start [2025-04-02 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820613', 'tblTempVendorCDR_20' ) end [2025-04-02 20:28:19] Production.INFO: ProcessCDR(1,14820613,1,1,2) [2025-04-02 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820613', 'tblTempUsageDetail_20' ) start [2025-04-02 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820613', 'tblTempUsageDetail_20' ) end [2025-04-02 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:28:22] Production.INFO: ==6787== Releasing lock... [2025-04-02 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:28:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-02 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:29:05 [end_date_ymd] => 2025-04-02 20:29:05 [RateCDR] => 1 ) [2025-04-02 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:29:05' and `end` < '2025-04-02 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:29:18] Production.INFO: count ==2729 [2025-04-02 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:29:05 - End Time 2025-04-02 20:29:05 [2025-04-02 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820618', 'tblTempUsageDetail_20' ) start [2025-04-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820618', 'tblTempUsageDetail_20' ) end [2025-04-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820618', 'tblTempVendorCDR_20' ) start [2025-04-02 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820618', 'tblTempVendorCDR_20' ) end [2025-04-02 20:29:19] Production.INFO: ProcessCDR(1,14820618,1,1,2) [2025-04-02 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820618', 'tblTempUsageDetail_20' ) start [2025-04-02 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820618', 'tblTempUsageDetail_20' ) end [2025-04-02 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:29:23] Production.INFO: ==6877== Releasing lock... [2025-04-02 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:29:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-02 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:30:06 [end_date_ymd] => 2025-04-02 20:30:06 [RateCDR] => 1 ) [2025-04-02 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:30:06' and `end` < '2025-04-02 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:30:19] Production.INFO: count ==2716 [2025-04-02 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:30:06 - End Time 2025-04-02 20:30:06 [2025-04-02 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820623', 'tblTempUsageDetail_20' ) start [2025-04-02 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820623', 'tblTempUsageDetail_20' ) end [2025-04-02 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820623', 'tblTempVendorCDR_20' ) start [2025-04-02 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820623', 'tblTempVendorCDR_20' ) end [2025-04-02 20:30:20] Production.INFO: ProcessCDR(1,14820623,1,1,2) [2025-04-02 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820623', 'tblTempUsageDetail_20' ) start [2025-04-02 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820623', 'tblTempUsageDetail_20' ) end [2025-04-02 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:30:23] Production.INFO: ==6966== Releasing lock... [2025-04-02 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:30:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-02 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:31:05 [end_date_ymd] => 2025-04-02 20:31:05 [RateCDR] => 1 ) [2025-04-02 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:31:05' and `end` < '2025-04-02 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:31:18] Production.INFO: count ==2627 [2025-04-02 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:31:05 - End Time 2025-04-02 20:31:05 [2025-04-02 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820629', 'tblTempUsageDetail_20' ) start [2025-04-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820629', 'tblTempUsageDetail_20' ) end [2025-04-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820629', 'tblTempVendorCDR_20' ) start [2025-04-02 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820629', 'tblTempVendorCDR_20' ) end [2025-04-02 20:31:19] Production.INFO: ProcessCDR(1,14820629,1,1,2) [2025-04-02 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820629', 'tblTempUsageDetail_20' ) start [2025-04-02 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820629', 'tblTempUsageDetail_20' ) end [2025-04-02 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:31:23] Production.INFO: ==7056== Releasing lock... [2025-04-02 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:31:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-02 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:32:05 [end_date_ymd] => 2025-04-02 20:32:05 [RateCDR] => 1 ) [2025-04-02 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:32:05' and `end` < '2025-04-02 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:32:18] Production.INFO: count ==2605 [2025-04-02 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:32:05 - End Time 2025-04-02 20:32:05 [2025-04-02 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820634', 'tblTempUsageDetail_20' ) start [2025-04-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820634', 'tblTempUsageDetail_20' ) end [2025-04-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820634', 'tblTempVendorCDR_20' ) start [2025-04-02 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820634', 'tblTempVendorCDR_20' ) end [2025-04-02 20:32:19] Production.INFO: ProcessCDR(1,14820634,1,1,2) [2025-04-02 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820634', 'tblTempUsageDetail_20' ) start [2025-04-02 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820634', 'tblTempUsageDetail_20' ) end [2025-04-02 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:32:23] Production.INFO: ==7145== Releasing lock... [2025-04-02 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:32:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-02 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:33:05 [end_date_ymd] => 2025-04-02 20:33:05 [RateCDR] => 1 ) [2025-04-02 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:33:05' and `end` < '2025-04-02 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:33:18] Production.INFO: count ==2603 [2025-04-02 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:33:05 - End Time 2025-04-02 20:33:05 [2025-04-02 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820639', 'tblTempUsageDetail_20' ) start [2025-04-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820639', 'tblTempUsageDetail_20' ) end [2025-04-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820639', 'tblTempVendorCDR_20' ) start [2025-04-02 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820639', 'tblTempVendorCDR_20' ) end [2025-04-02 20:33:19] Production.INFO: ProcessCDR(1,14820639,1,1,2) [2025-04-02 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820639', 'tblTempUsageDetail_20' ) start [2025-04-02 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820639', 'tblTempUsageDetail_20' ) end [2025-04-02 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:33:22] Production.INFO: ==7235== Releasing lock... [2025-04-02 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:33:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-02 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:34:05 [end_date_ymd] => 2025-04-02 20:34:05 [RateCDR] => 1 ) [2025-04-02 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:34:05' and `end` < '2025-04-02 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:34:18] Production.INFO: count ==2579 [2025-04-02 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:34:05 - End Time 2025-04-02 20:34:05 [2025-04-02 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820644', 'tblTempUsageDetail_20' ) start [2025-04-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820644', 'tblTempUsageDetail_20' ) end [2025-04-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820644', 'tblTempVendorCDR_20' ) start [2025-04-02 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820644', 'tblTempVendorCDR_20' ) end [2025-04-02 20:34:19] Production.INFO: ProcessCDR(1,14820644,1,1,2) [2025-04-02 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820644', 'tblTempUsageDetail_20' ) start [2025-04-02 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820644', 'tblTempUsageDetail_20' ) end [2025-04-02 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:34:22] Production.INFO: ==7325== Releasing lock... [2025-04-02 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:34:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-02 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:35:05 [end_date_ymd] => 2025-04-02 20:35:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:35:05' and `end` < '2025-04-02 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-04-02 20:35:18] Production.INFO: count ==2563 [2025-04-02 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:35:05 - End Time 2025-04-02 20:35:05 [2025-04-02 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820649', 'tblTempUsageDetail_20' ) start [2025-04-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820649', 'tblTempUsageDetail_20' ) end [2025-04-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820649', 'tblTempVendorCDR_20' ) start [2025-04-02 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820649', 'tblTempVendorCDR_20' ) end [2025-04-02 20:35:19] Production.INFO: ProcessCDR(1,14820649,1,1,2) [2025-04-02 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820649', 'tblTempUsageDetail_20' ) start [2025-04-02 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820649', 'tblTempUsageDetail_20' ) end [2025-04-02 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:35:23] Production.INFO: ==7425== Releasing lock... [2025-04-02 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:35:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-02 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:36:05 [end_date_ymd] => 2025-04-02 20:36:05 [RateCDR] => 1 ) [2025-04-02 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:36:05' and `end` < '2025-04-02 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:36:18] Production.INFO: count ==2546 [2025-04-02 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:36:05 - End Time 2025-04-02 20:36:05 [2025-04-02 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820654', 'tblTempUsageDetail_20' ) start [2025-04-02 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820654', 'tblTempUsageDetail_20' ) end [2025-04-02 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820654', 'tblTempVendorCDR_20' ) start [2025-04-02 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820654', 'tblTempVendorCDR_20' ) end [2025-04-02 20:36:19] Production.INFO: ProcessCDR(1,14820654,1,1,2) [2025-04-02 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820654', 'tblTempUsageDetail_20' ) start [2025-04-02 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820654', 'tblTempUsageDetail_20' ) end [2025-04-02 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:36:23] Production.INFO: ==7519== Releasing lock... [2025-04-02 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:36:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-02 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:37:05 [end_date_ymd] => 2025-04-02 20:37:05 [RateCDR] => 1 ) [2025-04-02 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:37:05' and `end` < '2025-04-02 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:37:18] Production.INFO: count ==2534 [2025-04-02 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:37:05 - End Time 2025-04-02 20:37:05 [2025-04-02 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820659', 'tblTempUsageDetail_20' ) start [2025-04-02 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820659', 'tblTempUsageDetail_20' ) end [2025-04-02 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820659', 'tblTempVendorCDR_20' ) start [2025-04-02 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820659', 'tblTempVendorCDR_20' ) end [2025-04-02 20:37:19] Production.INFO: ProcessCDR(1,14820659,1,1,2) [2025-04-02 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820659', 'tblTempUsageDetail_20' ) start [2025-04-02 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820659', 'tblTempUsageDetail_20' ) end [2025-04-02 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:37:23] Production.INFO: ==7619== Releasing lock... [2025-04-02 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:37:23] Production.INFO: 47 MB #Memory Used# [2025-04-02 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:38:05 [end_date_ymd] => 2025-04-02 20:38:05 [RateCDR] => 1 ) [2025-04-02 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:38:05' and `end` < '2025-04-02 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:38:18] Production.INFO: count ==2532 [2025-04-02 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:38:05 - End Time 2025-04-02 20:38:05 [2025-04-02 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820664', 'tblTempUsageDetail_20' ) start [2025-04-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820664', 'tblTempUsageDetail_20' ) end [2025-04-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820664', 'tblTempVendorCDR_20' ) start [2025-04-02 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820664', 'tblTempVendorCDR_20' ) end [2025-04-02 20:38:19] Production.INFO: ProcessCDR(1,14820664,1,1,2) [2025-04-02 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820664', 'tblTempUsageDetail_20' ) start [2025-04-02 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820664', 'tblTempUsageDetail_20' ) end [2025-04-02 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:38:22] Production.INFO: ==7713== Releasing lock... [2025-04-02 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:38:22] Production.INFO: 47 MB #Memory Used# [2025-04-02 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:39:05 [end_date_ymd] => 2025-04-02 20:39:05 [RateCDR] => 1 ) [2025-04-02 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:39:05' and `end` < '2025-04-02 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:39:18] Production.INFO: count ==2531 [2025-04-02 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:39:05 - End Time 2025-04-02 20:39:05 [2025-04-02 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820669', 'tblTempUsageDetail_20' ) start [2025-04-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820669', 'tblTempUsageDetail_20' ) end [2025-04-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820669', 'tblTempVendorCDR_20' ) start [2025-04-02 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820669', 'tblTempVendorCDR_20' ) end [2025-04-02 20:39:19] Production.INFO: ProcessCDR(1,14820669,1,1,2) [2025-04-02 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820669', 'tblTempUsageDetail_20' ) start [2025-04-02 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820669', 'tblTempUsageDetail_20' ) end [2025-04-02 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:39:24] Production.INFO: ==7842== Releasing lock... [2025-04-02 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:39:24] Production.INFO: 47 MB #Memory Used# [2025-04-02 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:40:06 [end_date_ymd] => 2025-04-02 20:40:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:40:06' and `end` < '2025-04-02 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-04-02 20:40:19] Production.INFO: count ==2519 [2025-04-02 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:40:06 - End Time 2025-04-02 20:40:06 [2025-04-02 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820675', 'tblTempUsageDetail_20' ) start [2025-04-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820675', 'tblTempUsageDetail_20' ) end [2025-04-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820675', 'tblTempVendorCDR_20' ) start [2025-04-02 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820675', 'tblTempVendorCDR_20' ) end [2025-04-02 20:40:19] Production.INFO: ProcessCDR(1,14820675,1,1,2) [2025-04-02 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820675', 'tblTempUsageDetail_20' ) start [2025-04-02 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820675', 'tblTempUsageDetail_20' ) end [2025-04-02 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:40:25] Production.INFO: ==7933== Releasing lock... [2025-04-02 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:40:25] Production.INFO: 47 MB #Memory Used# [2025-04-02 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:41:05 [end_date_ymd] => 2025-04-02 20:41:05 [RateCDR] => 1 ) [2025-04-02 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:41:05' and `end` < '2025-04-02 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:41:18] Production.INFO: count ==2487 [2025-04-02 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:41:05 - End Time 2025-04-02 20:41:05 [2025-04-02 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820680', 'tblTempUsageDetail_20' ) start [2025-04-02 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820680', 'tblTempUsageDetail_20' ) end [2025-04-02 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820680', 'tblTempVendorCDR_20' ) start [2025-04-02 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820680', 'tblTempVendorCDR_20' ) end [2025-04-02 20:41:19] Production.INFO: ProcessCDR(1,14820680,1,1,2) [2025-04-02 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820680', 'tblTempUsageDetail_20' ) start [2025-04-02 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820680', 'tblTempUsageDetail_20' ) end [2025-04-02 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:41:23] Production.INFO: ==8023== Releasing lock... [2025-04-02 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:41:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:42:05 [end_date_ymd] => 2025-04-02 20:42:05 [RateCDR] => 1 ) [2025-04-02 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:42:05' and `end` < '2025-04-02 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:42:18] Production.INFO: count ==2486 [2025-04-02 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:42:05 - End Time 2025-04-02 20:42:05 [2025-04-02 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820685', 'tblTempUsageDetail_20' ) start [2025-04-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820685', 'tblTempUsageDetail_20' ) end [2025-04-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820685', 'tblTempVendorCDR_20' ) start [2025-04-02 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820685', 'tblTempVendorCDR_20' ) end [2025-04-02 20:42:19] Production.INFO: ProcessCDR(1,14820685,1,1,2) [2025-04-02 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820685', 'tblTempUsageDetail_20' ) start [2025-04-02 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820685', 'tblTempUsageDetail_20' ) end [2025-04-02 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:42:23] Production.INFO: ==8104== Releasing lock... [2025-04-02 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:42:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:43:05 [end_date_ymd] => 2025-04-02 20:43:05 [RateCDR] => 1 ) [2025-04-02 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:43:05' and `end` < '2025-04-02 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:43:18] Production.INFO: count ==2478 [2025-04-02 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:43:05 - End Time 2025-04-02 20:43:05 [2025-04-02 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820690', 'tblTempUsageDetail_20' ) start [2025-04-02 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820690', 'tblTempUsageDetail_20' ) end [2025-04-02 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820690', 'tblTempVendorCDR_20' ) start [2025-04-02 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820690', 'tblTempVendorCDR_20' ) end [2025-04-02 20:43:19] Production.INFO: ProcessCDR(1,14820690,1,1,2) [2025-04-02 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820690', 'tblTempUsageDetail_20' ) start [2025-04-02 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820690', 'tblTempUsageDetail_20' ) end [2025-04-02 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:43:23] Production.INFO: ==8189== Releasing lock... [2025-04-02 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:43:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:44:05 [end_date_ymd] => 2025-04-02 20:44:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:44:05' and `end` < '2025-04-02 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-04-02 20:44:18] Production.INFO: count ==2484 [2025-04-02 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:44:05 - End Time 2025-04-02 20:44:05 [2025-04-02 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820695', 'tblTempUsageDetail_20' ) start [2025-04-02 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820695', 'tblTempUsageDetail_20' ) end [2025-04-02 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820695', 'tblTempVendorCDR_20' ) start [2025-04-02 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820695', 'tblTempVendorCDR_20' ) end [2025-04-02 20:44:19] Production.INFO: ProcessCDR(1,14820695,1,1,2) [2025-04-02 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820695', 'tblTempUsageDetail_20' ) start [2025-04-02 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820695', 'tblTempUsageDetail_20' ) end [2025-04-02 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:44:22] Production.INFO: ==8276== Releasing lock... [2025-04-02 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:44:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:45:05 [end_date_ymd] => 2025-04-02 20:45:05 [RateCDR] => 1 ) [2025-04-02 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:45:05' and `end` < '2025-04-02 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:45:18] Production.INFO: count ==2485 [2025-04-02 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 17:45:05 - End Time 2025-04-02 20:45:05 [2025-04-02 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820700', 'tblTempUsageDetail_20' ) start [2025-04-02 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820700', 'tblTempUsageDetail_20' ) end [2025-04-02 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820700', 'tblTempVendorCDR_20' ) start [2025-04-02 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820700', 'tblTempVendorCDR_20' ) end [2025-04-02 20:45:19] Production.INFO: ProcessCDR(1,14820700,1,1,2) [2025-04-02 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820700', 'tblTempUsageDetail_20' ) start [2025-04-02 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820700', 'tblTempUsageDetail_20' ) end [2025-04-02 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:45:22] Production.INFO: ==8364== Releasing lock... [2025-04-02 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:45:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:46:05 [end_date_ymd] => 2025-04-02 20:46:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:46:05' and `end` < '2025-04-02 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-04-02 20:46:17] Production.INFO: count ==2480 [2025-04-02 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 17:46:05 - End Time 2025-04-02 20:46:05 [2025-04-02 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820705', 'tblTempUsageDetail_20' ) start [2025-04-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820705', 'tblTempUsageDetail_20' ) end [2025-04-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820705', 'tblTempVendorCDR_20' ) start [2025-04-02 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820705', 'tblTempVendorCDR_20' ) end [2025-04-02 20:46:18] Production.INFO: ProcessCDR(1,14820705,1,1,2) [2025-04-02 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820705', 'tblTempUsageDetail_20' ) start [2025-04-02 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820705', 'tblTempUsageDetail_20' ) end [2025-04-02 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:46:22] Production.INFO: ==8446== Releasing lock... [2025-04-02 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:46:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:47:05 [end_date_ymd] => 2025-04-02 20:47:05 [RateCDR] => 1 ) [2025-04-02 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:47:05' and `end` < '2025-04-02 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:47:18] Production.INFO: count ==2478 [2025-04-02 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:47:05 - End Time 2025-04-02 20:47:05 [2025-04-02 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820710', 'tblTempUsageDetail_20' ) start [2025-04-02 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820710', 'tblTempUsageDetail_20' ) end [2025-04-02 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820710', 'tblTempVendorCDR_20' ) start [2025-04-02 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820710', 'tblTempVendorCDR_20' ) end [2025-04-02 20:47:19] Production.INFO: ProcessCDR(1,14820710,1,1,2) [2025-04-02 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820710', 'tblTempUsageDetail_20' ) start [2025-04-02 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820710', 'tblTempUsageDetail_20' ) end [2025-04-02 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:47:23] Production.INFO: ==8529== Releasing lock... [2025-04-02 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:47:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:48:05 [end_date_ymd] => 2025-04-02 20:48:05 [RateCDR] => 1 ) [2025-04-02 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:48:05' and `end` < '2025-04-02 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:48:18] Production.INFO: count ==2477 [2025-04-02 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:48:05 - End Time 2025-04-02 20:48:05 [2025-04-02 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820715', 'tblTempUsageDetail_20' ) start [2025-04-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820715', 'tblTempUsageDetail_20' ) end [2025-04-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820715', 'tblTempVendorCDR_20' ) start [2025-04-02 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820715', 'tblTempVendorCDR_20' ) end [2025-04-02 20:48:19] Production.INFO: ProcessCDR(1,14820715,1,1,2) [2025-04-02 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820715', 'tblTempUsageDetail_20' ) start [2025-04-02 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820715', 'tblTempUsageDetail_20' ) end [2025-04-02 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:48:22] Production.INFO: ==8612== Releasing lock... [2025-04-02 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:48:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-02 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:49:05 [end_date_ymd] => 2025-04-02 20:49:05 [RateCDR] => 1 ) [2025-04-02 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:49:05' and `end` < '2025-04-02 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:49:18] Production.INFO: count ==2460 [2025-04-02 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:49:05 - End Time 2025-04-02 20:49:05 [2025-04-02 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820720', 'tblTempUsageDetail_20' ) start [2025-04-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820720', 'tblTempUsageDetail_20' ) end [2025-04-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820720', 'tblTempVendorCDR_20' ) start [2025-04-02 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820720', 'tblTempVendorCDR_20' ) end [2025-04-02 20:49:19] Production.INFO: ProcessCDR(1,14820720,1,1,2) [2025-04-02 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820720', 'tblTempUsageDetail_20' ) start [2025-04-02 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820720', 'tblTempUsageDetail_20' ) end [2025-04-02 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:49:24] Production.INFO: ==8696== Releasing lock... [2025-04-02 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:49:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-02 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:50:06 [end_date_ymd] => 2025-04-02 20:50:06 [RateCDR] => 1 ) [2025-04-02 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:50:06' and `end` < '2025-04-02 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:50:19] Production.INFO: count ==2468 [2025-04-02 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:50:06 - End Time 2025-04-02 20:50:06 [2025-04-02 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820726', 'tblTempUsageDetail_20' ) start [2025-04-02 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820726', 'tblTempUsageDetail_20' ) end [2025-04-02 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820726', 'tblTempVendorCDR_20' ) start [2025-04-02 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820726', 'tblTempVendorCDR_20' ) end [2025-04-02 20:50:20] Production.INFO: ProcessCDR(1,14820726,1,1,2) [2025-04-02 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820726', 'tblTempUsageDetail_20' ) start [2025-04-02 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820726', 'tblTempUsageDetail_20' ) end [2025-04-02 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:50:25] Production.INFO: ==8783== Releasing lock... [2025-04-02 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:50:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-02 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:51:05 [end_date_ymd] => 2025-04-02 20:51:05 [RateCDR] => 1 ) [2025-04-02 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:51:05' and `end` < '2025-04-02 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:51:18] Production.INFO: count ==2403 [2025-04-02 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:51:05 - End Time 2025-04-02 20:51:05 [2025-04-02 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820731', 'tblTempUsageDetail_20' ) start [2025-04-02 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820731', 'tblTempUsageDetail_20' ) end [2025-04-02 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820731', 'tblTempVendorCDR_20' ) start [2025-04-02 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820731', 'tblTempVendorCDR_20' ) end [2025-04-02 20:51:19] Production.INFO: ProcessCDR(1,14820731,1,1,2) [2025-04-02 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820731', 'tblTempUsageDetail_20' ) start [2025-04-02 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820731', 'tblTempUsageDetail_20' ) end [2025-04-02 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:51:23] Production.INFO: ==8867== Releasing lock... [2025-04-02 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:51:23] Production.INFO: 46 MB #Memory Used# [2025-04-02 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:52:05 [end_date_ymd] => 2025-04-02 20:52:05 [RateCDR] => 1 ) [2025-04-02 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:52:05' and `end` < '2025-04-02 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:52:18] Production.INFO: count ==2409 [2025-04-02 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:52:05 - End Time 2025-04-02 20:52:05 [2025-04-02 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820736', 'tblTempUsageDetail_20' ) start [2025-04-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820736', 'tblTempUsageDetail_20' ) end [2025-04-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820736', 'tblTempVendorCDR_20' ) start [2025-04-02 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820736', 'tblTempVendorCDR_20' ) end [2025-04-02 20:52:19] Production.INFO: ProcessCDR(1,14820736,1,1,2) [2025-04-02 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820736', 'tblTempUsageDetail_20' ) start [2025-04-02 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820736', 'tblTempUsageDetail_20' ) end [2025-04-02 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:52:23] Production.INFO: ==8958== Releasing lock... [2025-04-02 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:52:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-02 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:53:05 [end_date_ymd] => 2025-04-02 20:53:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:53:05' and `end` < '2025-04-02 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-04-02 20:53:18] Production.INFO: count ==2399 [2025-04-02 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:53:05 - End Time 2025-04-02 20:53:05 [2025-04-02 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820741', 'tblTempUsageDetail_20' ) start [2025-04-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820741', 'tblTempUsageDetail_20' ) end [2025-04-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820741', 'tblTempVendorCDR_20' ) start [2025-04-02 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820741', 'tblTempVendorCDR_20' ) end [2025-04-02 20:53:19] Production.INFO: ProcessCDR(1,14820741,1,1,2) [2025-04-02 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820741', 'tblTempUsageDetail_20' ) start [2025-04-02 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820741', 'tblTempUsageDetail_20' ) end [2025-04-02 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:53:22] Production.INFO: ==9046== Releasing lock... [2025-04-02 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:53:22] Production.INFO: 46 MB #Memory Used# [2025-04-02 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:54:06 [end_date_ymd] => 2025-04-02 20:54:06 [RateCDR] => 1 ) [2025-04-02 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:54:06' and `end` < '2025-04-02 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:54:18] Production.INFO: count ==2387 [2025-04-02 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:54:06 - End Time 2025-04-02 20:54:06 [2025-04-02 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820746', 'tblTempUsageDetail_20' ) start [2025-04-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820746', 'tblTempUsageDetail_20' ) end [2025-04-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820746', 'tblTempVendorCDR_20' ) start [2025-04-02 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820746', 'tblTempVendorCDR_20' ) end [2025-04-02 20:54:19] Production.INFO: ProcessCDR(1,14820746,1,1,2) [2025-04-02 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820746', 'tblTempUsageDetail_20' ) start [2025-04-02 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820746', 'tblTempUsageDetail_20' ) end [2025-04-02 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:54:23] Production.INFO: ==9170== Releasing lock... [2025-04-02 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:54:23] Production.INFO: 46 MB #Memory Used# [2025-04-02 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:55:05 [end_date_ymd] => 2025-04-02 20:55:05 [RateCDR] => 1 ) [2025-04-02 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:55:05' and `end` < '2025-04-02 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:55:18] Production.INFO: count ==2381 [2025-04-02 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:55:05 - End Time 2025-04-02 20:55:05 [2025-04-02 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820751', 'tblTempUsageDetail_20' ) start [2025-04-02 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820751', 'tblTempUsageDetail_20' ) end [2025-04-02 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820751', 'tblTempVendorCDR_20' ) start [2025-04-02 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820751', 'tblTempVendorCDR_20' ) end [2025-04-02 20:55:19] Production.INFO: ProcessCDR(1,14820751,1,1,2) [2025-04-02 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820751', 'tblTempUsageDetail_20' ) start [2025-04-02 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820751', 'tblTempUsageDetail_20' ) end [2025-04-02 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:55:22] Production.INFO: ==9253== Releasing lock... [2025-04-02 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:55:22] Production.INFO: 46 MB #Memory Used# [2025-04-02 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:56:06 [end_date_ymd] => 2025-04-02 20:56:06 [RateCDR] => 1 ) [2025-04-02 20:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:56:06' and `end` < '2025-04-02 20:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:56:19] Production.INFO: count ==2382 [2025-04-02 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:56:06 - End Time 2025-04-02 20:56:06 [2025-04-02 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820756', 'tblTempUsageDetail_20' ) start [2025-04-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820756', 'tblTempUsageDetail_20' ) end [2025-04-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820756', 'tblTempVendorCDR_20' ) start [2025-04-02 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820756', 'tblTempVendorCDR_20' ) end [2025-04-02 20:56:20] Production.INFO: ProcessCDR(1,14820756,1,1,2) [2025-04-02 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820756', 'tblTempUsageDetail_20' ) start [2025-04-02 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820756', 'tblTempUsageDetail_20' ) end [2025-04-02 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:56:24] Production.INFO: ==9336== Releasing lock... [2025-04-02 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:56:24] Production.INFO: 46 MB #Memory Used# [2025-04-02 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:57:05 [end_date_ymd] => 2025-04-02 20:57:05 [RateCDR] => 1 ) [2025-04-02 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:57:05' and `end` < '2025-04-02 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:57:18] Production.INFO: count ==2380 [2025-04-02 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:57:05 - End Time 2025-04-02 20:57:05 [2025-04-02 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820761', 'tblTempUsageDetail_20' ) start [2025-04-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820761', 'tblTempUsageDetail_20' ) end [2025-04-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820761', 'tblTempVendorCDR_20' ) start [2025-04-02 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820761', 'tblTempVendorCDR_20' ) end [2025-04-02 20:57:19] Production.INFO: ProcessCDR(1,14820761,1,1,2) [2025-04-02 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820761', 'tblTempUsageDetail_20' ) start [2025-04-02 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820761', 'tblTempUsageDetail_20' ) end [2025-04-02 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:57:24] Production.INFO: ==9425== Releasing lock... [2025-04-02 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:57:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-02 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:58:06 [end_date_ymd] => 2025-04-02 20:58:06 [RateCDR] => 1 ) [2025-04-02 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 17:58:06' and `end` < '2025-04-02 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 20:58:19] Production.INFO: count ==2393 [2025-04-02 20:58:20] Production.ERROR: pbx CDR StartTime 2025-04-02 17:58:06 - End Time 2025-04-02 20:58:06 [2025-04-02 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820766', 'tblTempUsageDetail_20' ) start [2025-04-02 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820766', 'tblTempUsageDetail_20' ) end [2025-04-02 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820766', 'tblTempVendorCDR_20' ) start [2025-04-02 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820766', 'tblTempVendorCDR_20' ) end [2025-04-02 20:58:20] Production.INFO: ProcessCDR(1,14820766,1,1,2) [2025-04-02 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820766', 'tblTempUsageDetail_20' ) start [2025-04-02 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820766', 'tblTempUsageDetail_20' ) end [2025-04-02 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:58:23] Production.INFO: ==9507== Releasing lock... [2025-04-02 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:58:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 17:59:05 [end_date_ymd] => 2025-04-02 20:59:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 17:59:05' and `end` < '2025-04-02 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-04-02 20:59:18] Production.INFO: count ==2393 [2025-04-02 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-02 17:59:05 - End Time 2025-04-02 20:59:05 [2025-04-02 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820771', 'tblTempUsageDetail_20' ) start [2025-04-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820771', 'tblTempUsageDetail_20' ) end [2025-04-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820771', 'tblTempVendorCDR_20' ) start [2025-04-02 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820771', 'tblTempVendorCDR_20' ) end [2025-04-02 20:59:19] Production.INFO: ProcessCDR(1,14820771,1,1,2) [2025-04-02 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820771', 'tblTempUsageDetail_20' ) start [2025-04-02 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820771', 'tblTempUsageDetail_20' ) end [2025-04-02 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 20:59:22] Production.INFO: ==9587== Releasing lock... [2025-04-02 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 20:59:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:00:06 [end_date_ymd] => 2025-04-02 21:00:06 [RateCDR] => 1 ) [2025-04-02 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:00:06' and `end` < '2025-04-02 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:00:19] Production.INFO: count ==2379 [2025-04-02 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:00:06 - End Time 2025-04-02 21:00:06 [2025-04-02 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820776', 'tblTempUsageDetail_20' ) start [2025-04-02 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820776', 'tblTempUsageDetail_20' ) end [2025-04-02 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820776', 'tblTempVendorCDR_20' ) start [2025-04-02 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820776', 'tblTempVendorCDR_20' ) end [2025-04-02 21:00:20] Production.INFO: ProcessCDR(1,14820776,1,1,2) [2025-04-02 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820776', 'tblTempUsageDetail_20' ) start [2025-04-02 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820776', 'tblTempUsageDetail_20' ) end [2025-04-02 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:00:23] Production.INFO: ==9673== Releasing lock... [2025-04-02 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:00:23] Production.INFO: 46 MB #Memory Used# [2025-04-02 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:01:06 [end_date_ymd] => 2025-04-02 21:01:06 [RateCDR] => 1 ) [2025-04-02 21:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:01:06' and `end` < '2025-04-02 21:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:01:19] Production.INFO: count ==2346 [2025-04-02 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:01:06 - End Time 2025-04-02 21:01:06 [2025-04-02 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820782', 'tblTempUsageDetail_20' ) start [2025-04-02 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820782', 'tblTempUsageDetail_20' ) end [2025-04-02 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820782', 'tblTempVendorCDR_20' ) start [2025-04-02 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820782', 'tblTempVendorCDR_20' ) end [2025-04-02 21:01:20] Production.INFO: ProcessCDR(1,14820782,1,1,2) [2025-04-02 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820782', 'tblTempUsageDetail_20' ) start [2025-04-02 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820782', 'tblTempUsageDetail_20' ) end [2025-04-02 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:01:23] Production.INFO: ==9770== Releasing lock... [2025-04-02 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:01:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:02:06 [end_date_ymd] => 2025-04-02 21:02:06 [RateCDR] => 1 ) [2025-04-02 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:02:06' and `end` < '2025-04-02 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:02:19] Production.INFO: count ==2353 [2025-04-02 21:02:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:02:06 - End Time 2025-04-02 21:02:06 [2025-04-02 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820787', 'tblTempUsageDetail_20' ) start [2025-04-02 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820787', 'tblTempUsageDetail_20' ) end [2025-04-02 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820787', 'tblTempVendorCDR_20' ) start [2025-04-02 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820787', 'tblTempVendorCDR_20' ) end [2025-04-02 21:02:20] Production.INFO: ProcessCDR(1,14820787,1,1,2) [2025-04-02 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820787', 'tblTempUsageDetail_20' ) start [2025-04-02 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820787', 'tblTempUsageDetail_20' ) end [2025-04-02 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:02:23] Production.INFO: ==9854== Releasing lock... [2025-04-02 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:02:23] Production.INFO: 46 MB #Memory Used# [2025-04-02 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:03:05 [end_date_ymd] => 2025-04-02 21:03:05 [RateCDR] => 1 ) [2025-04-02 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:03:05' and `end` < '2025-04-02 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:03:18] Production.INFO: count ==2341 [2025-04-02 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:03:05 - End Time 2025-04-02 21:03:05 [2025-04-02 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820792', 'tblTempUsageDetail_20' ) start [2025-04-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820792', 'tblTempUsageDetail_20' ) end [2025-04-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820792', 'tblTempVendorCDR_20' ) start [2025-04-02 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820792', 'tblTempVendorCDR_20' ) end [2025-04-02 21:03:19] Production.INFO: ProcessCDR(1,14820792,1,1,2) [2025-04-02 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820792', 'tblTempUsageDetail_20' ) start [2025-04-02 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820792', 'tblTempUsageDetail_20' ) end [2025-04-02 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:03:22] Production.INFO: ==9937== Releasing lock... [2025-04-02 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:03:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-02 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:04:06 [end_date_ymd] => 2025-04-02 21:04:06 [RateCDR] => 1 ) [2025-04-02 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:04:06' and `end` < '2025-04-02 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:04:19] Production.INFO: count ==2352 [2025-04-02 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:04:06 - End Time 2025-04-02 21:04:06 [2025-04-02 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820797', 'tblTempUsageDetail_20' ) start [2025-04-02 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820797', 'tblTempUsageDetail_20' ) end [2025-04-02 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820797', 'tblTempVendorCDR_20' ) start [2025-04-02 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820797', 'tblTempVendorCDR_20' ) end [2025-04-02 21:04:19] Production.INFO: ProcessCDR(1,14820797,1,1,2) [2025-04-02 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820797', 'tblTempUsageDetail_20' ) start [2025-04-02 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820797', 'tblTempUsageDetail_20' ) end [2025-04-02 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:04:23] Production.INFO: ==10022== Releasing lock... [2025-04-02 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:04:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:05:05 [end_date_ymd] => 2025-04-02 21:05:05 [RateCDR] => 1 ) [2025-04-02 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:05:05' and `end` < '2025-04-02 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:05:18] Production.INFO: count ==2349 [2025-04-02 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:05:05 - End Time 2025-04-02 21:05:05 [2025-04-02 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820802', 'tblTempUsageDetail_20' ) start [2025-04-02 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820802', 'tblTempUsageDetail_20' ) end [2025-04-02 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820802', 'tblTempVendorCDR_20' ) start [2025-04-02 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820802', 'tblTempVendorCDR_20' ) end [2025-04-02 21:05:19] Production.INFO: ProcessCDR(1,14820802,1,1,2) [2025-04-02 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820802', 'tblTempUsageDetail_20' ) start [2025-04-02 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820802', 'tblTempUsageDetail_20' ) end [2025-04-02 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:05:22] Production.INFO: ==10104== Releasing lock... [2025-04-02 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:05:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:06:06 [end_date_ymd] => 2025-04-02 21:06:06 [RateCDR] => 1 ) [2025-04-02 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:06:06' and `end` < '2025-04-02 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:06:18] Production.INFO: count ==2352 [2025-04-02 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:06:06 - End Time 2025-04-02 21:06:06 [2025-04-02 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820807', 'tblTempUsageDetail_20' ) start [2025-04-02 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820807', 'tblTempUsageDetail_20' ) end [2025-04-02 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820807', 'tblTempVendorCDR_20' ) start [2025-04-02 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820807', 'tblTempVendorCDR_20' ) end [2025-04-02 21:06:19] Production.INFO: ProcessCDR(1,14820807,1,1,2) [2025-04-02 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820807', 'tblTempUsageDetail_20' ) start [2025-04-02 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820807', 'tblTempUsageDetail_20' ) end [2025-04-02 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:06:24] Production.INFO: ==10191== Releasing lock... [2025-04-02 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:06:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-02 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:07:05 [end_date_ymd] => 2025-04-02 21:07:05 [RateCDR] => 1 ) [2025-04-02 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:07:05' and `end` < '2025-04-02 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:07:18] Production.INFO: count ==2315 [2025-04-02 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:07:05 - End Time 2025-04-02 21:07:05 [2025-04-02 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820812', 'tblTempUsageDetail_20' ) start [2025-04-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820812', 'tblTempUsageDetail_20' ) end [2025-04-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820812', 'tblTempVendorCDR_20' ) start [2025-04-02 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820812', 'tblTempVendorCDR_20' ) end [2025-04-02 21:07:19] Production.INFO: ProcessCDR(1,14820812,1,1,2) [2025-04-02 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820812', 'tblTempUsageDetail_20' ) start [2025-04-02 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820812', 'tblTempUsageDetail_20' ) end [2025-04-02 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:07:22] Production.INFO: ==10276== Releasing lock... [2025-04-02 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:07:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-02 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:08:06 [end_date_ymd] => 2025-04-02 21:08:06 [RateCDR] => 1 ) [2025-04-02 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:08:06' and `end` < '2025-04-02 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:08:19] Production.INFO: count ==2311 [2025-04-02 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:08:06 - End Time 2025-04-02 21:08:06 [2025-04-02 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820817', 'tblTempUsageDetail_20' ) start [2025-04-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820817', 'tblTempUsageDetail_20' ) end [2025-04-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820817', 'tblTempVendorCDR_20' ) start [2025-04-02 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820817', 'tblTempVendorCDR_20' ) end [2025-04-02 21:08:19] Production.INFO: ProcessCDR(1,14820817,1,1,2) [2025-04-02 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820817', 'tblTempUsageDetail_20' ) start [2025-04-02 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820817', 'tblTempUsageDetail_20' ) end [2025-04-02 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:08:23] Production.INFO: ==10360== Releasing lock... [2025-04-02 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:08:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-02 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:09:05 [end_date_ymd] => 2025-04-02 21:09:05 [RateCDR] => 1 ) [2025-04-02 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:09:05' and `end` < '2025-04-02 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:09:18] Production.INFO: count ==2304 [2025-04-02 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:09:05 - End Time 2025-04-02 21:09:05 [2025-04-02 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820822', 'tblTempUsageDetail_20' ) start [2025-04-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820822', 'tblTempUsageDetail_20' ) end [2025-04-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820822', 'tblTempVendorCDR_20' ) start [2025-04-02 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820822', 'tblTempVendorCDR_20' ) end [2025-04-02 21:09:19] Production.INFO: ProcessCDR(1,14820822,1,1,2) [2025-04-02 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820822', 'tblTempUsageDetail_20' ) start [2025-04-02 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820822', 'tblTempUsageDetail_20' ) end [2025-04-02 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:09:24] Production.INFO: ==10443== Releasing lock... [2025-04-02 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:09:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:10:06 [end_date_ymd] => 2025-04-02 21:10:06 [RateCDR] => 1 ) [2025-04-02 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:10:06' and `end` < '2025-04-02 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:10:19] Production.INFO: count ==2299 [2025-04-02 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:10:06 - End Time 2025-04-02 21:10:06 [2025-04-02 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820828', 'tblTempUsageDetail_20' ) start [2025-04-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820828', 'tblTempUsageDetail_20' ) end [2025-04-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820828', 'tblTempVendorCDR_20' ) start [2025-04-02 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820828', 'tblTempVendorCDR_20' ) end [2025-04-02 21:10:19] Production.INFO: ProcessCDR(1,14820828,1,1,2) [2025-04-02 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820828', 'tblTempUsageDetail_20' ) start [2025-04-02 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820828', 'tblTempUsageDetail_20' ) end [2025-04-02 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:10:23] Production.INFO: ==10570== Releasing lock... [2025-04-02 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:10:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:11:05 [end_date_ymd] => 2025-04-02 21:11:05 [RateCDR] => 1 ) [2025-04-02 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:11:05' and `end` < '2025-04-02 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:11:18] Production.INFO: count ==2282 [2025-04-02 21:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:11:05 - End Time 2025-04-02 21:11:05 [2025-04-02 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820833', 'tblTempUsageDetail_20' ) start [2025-04-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820833', 'tblTempUsageDetail_20' ) end [2025-04-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820833', 'tblTempVendorCDR_20' ) start [2025-04-02 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820833', 'tblTempVendorCDR_20' ) end [2025-04-02 21:11:18] Production.INFO: ProcessCDR(1,14820833,1,1,2) [2025-04-02 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820833', 'tblTempUsageDetail_20' ) start [2025-04-02 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820833', 'tblTempUsageDetail_20' ) end [2025-04-02 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:11:22] Production.INFO: ==10659== Releasing lock... [2025-04-02 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:11:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:12:05 [end_date_ymd] => 2025-04-02 21:12:05 [RateCDR] => 1 ) [2025-04-02 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:12:05' and `end` < '2025-04-02 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:12:18] Production.INFO: count ==2281 [2025-04-02 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:12:05 - End Time 2025-04-02 21:12:05 [2025-04-02 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820838', 'tblTempUsageDetail_20' ) start [2025-04-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820838', 'tblTempUsageDetail_20' ) end [2025-04-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820838', 'tblTempVendorCDR_20' ) start [2025-04-02 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820838', 'tblTempVendorCDR_20' ) end [2025-04-02 21:12:19] Production.INFO: ProcessCDR(1,14820838,1,1,2) [2025-04-02 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820838', 'tblTempUsageDetail_20' ) start [2025-04-02 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820838', 'tblTempUsageDetail_20' ) end [2025-04-02 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:12:24] Production.INFO: ==10745== Releasing lock... [2025-04-02 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:12:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:13:06 [end_date_ymd] => 2025-04-02 21:13:06 [RateCDR] => 1 ) [2025-04-02 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:13:06' and `end` < '2025-04-02 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:13:19] Production.INFO: count ==2272 [2025-04-02 21:13:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:13:06 - End Time 2025-04-02 21:13:06 [2025-04-02 21:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820843', 'tblTempUsageDetail_20' ) start [2025-04-02 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820843', 'tblTempUsageDetail_20' ) end [2025-04-02 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820843', 'tblTempVendorCDR_20' ) start [2025-04-02 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820843', 'tblTempVendorCDR_20' ) end [2025-04-02 21:13:20] Production.INFO: ProcessCDR(1,14820843,1,1,2) [2025-04-02 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820843', 'tblTempUsageDetail_20' ) start [2025-04-02 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820843', 'tblTempUsageDetail_20' ) end [2025-04-02 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:13:23] Production.INFO: ==10831== Releasing lock... [2025-04-02 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:13:23] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:14:06 [end_date_ymd] => 2025-04-02 21:14:06 [RateCDR] => 1 ) [2025-04-02 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:14:06' and `end` < '2025-04-02 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:14:19] Production.INFO: count ==2279 [2025-04-02 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:14:06 - End Time 2025-04-02 21:14:06 [2025-04-02 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820848', 'tblTempUsageDetail_20' ) start [2025-04-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820848', 'tblTempUsageDetail_20' ) end [2025-04-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820848', 'tblTempVendorCDR_20' ) start [2025-04-02 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820848', 'tblTempVendorCDR_20' ) end [2025-04-02 21:14:19] Production.INFO: ProcessCDR(1,14820848,1,1,2) [2025-04-02 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820848', 'tblTempUsageDetail_20' ) start [2025-04-02 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820848', 'tblTempUsageDetail_20' ) end [2025-04-02 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:14:23] Production.INFO: ==10919== Releasing lock... [2025-04-02 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:14:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:15:05 [end_date_ymd] => 2025-04-02 21:15:05 [RateCDR] => 1 ) [2025-04-02 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:15:05' and `end` < '2025-04-02 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:15:18] Production.INFO: count ==2283 [2025-04-02 21:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:15:05 - End Time 2025-04-02 21:15:05 [2025-04-02 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820853', 'tblTempUsageDetail_20' ) start [2025-04-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820853', 'tblTempUsageDetail_20' ) end [2025-04-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820853', 'tblTempVendorCDR_20' ) start [2025-04-02 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820853', 'tblTempVendorCDR_20' ) end [2025-04-02 21:15:18] Production.INFO: ProcessCDR(1,14820853,1,1,2) [2025-04-02 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820853', 'tblTempUsageDetail_20' ) start [2025-04-02 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820853', 'tblTempUsageDetail_20' ) end [2025-04-02 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:15:22] Production.INFO: ==11002== Releasing lock... [2025-04-02 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:15:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:16:05 [end_date_ymd] => 2025-04-02 21:16:05 [RateCDR] => 1 ) [2025-04-02 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:16:05' and `end` < '2025-04-02 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:16:18] Production.INFO: count ==2289 [2025-04-02 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:16:05 - End Time 2025-04-02 21:16:05 [2025-04-02 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820858', 'tblTempUsageDetail_20' ) start [2025-04-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820858', 'tblTempUsageDetail_20' ) end [2025-04-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820858', 'tblTempVendorCDR_20' ) start [2025-04-02 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820858', 'tblTempVendorCDR_20' ) end [2025-04-02 21:16:19] Production.INFO: ProcessCDR(1,14820858,1,1,2) [2025-04-02 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820858', 'tblTempUsageDetail_20' ) start [2025-04-02 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820858', 'tblTempUsageDetail_20' ) end [2025-04-02 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:16:23] Production.INFO: ==11087== Releasing lock... [2025-04-02 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:16:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:17:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:17:07 [end_date_ymd] => 2025-04-02 21:17:07 [RateCDR] => 1 ) [2025-04-02 21:17:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:17:07' and `end` < '2025-04-02 21:17:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:17:20] Production.INFO: count ==2292 [2025-04-02 21:17:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:17:07 - End Time 2025-04-02 21:17:07 [2025-04-02 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820863', 'tblTempUsageDetail_20' ) start [2025-04-02 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820863', 'tblTempUsageDetail_20' ) end [2025-04-02 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820863', 'tblTempVendorCDR_20' ) start [2025-04-02 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820863', 'tblTempVendorCDR_20' ) end [2025-04-02 21:17:21] Production.INFO: ProcessCDR(1,14820863,1,1,2) [2025-04-02 21:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820863', 'tblTempUsageDetail_20' ) start [2025-04-02 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820863', 'tblTempUsageDetail_20' ) end [2025-04-02 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:17:24] Production.INFO: ==11171== Releasing lock... [2025-04-02 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:17:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:18:05 [end_date_ymd] => 2025-04-02 21:18:05 [RateCDR] => 1 ) [2025-04-02 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:18:05' and `end` < '2025-04-02 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:18:18] Production.INFO: count ==2291 [2025-04-02 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:18:05 - End Time 2025-04-02 21:18:05 [2025-04-02 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820868', 'tblTempUsageDetail_20' ) start [2025-04-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820868', 'tblTempUsageDetail_20' ) end [2025-04-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820868', 'tblTempVendorCDR_20' ) start [2025-04-02 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820868', 'tblTempVendorCDR_20' ) end [2025-04-02 21:18:19] Production.INFO: ProcessCDR(1,14820868,1,1,2) [2025-04-02 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820868', 'tblTempUsageDetail_20' ) start [2025-04-02 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820868', 'tblTempUsageDetail_20' ) end [2025-04-02 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:18:22] Production.INFO: ==11264== Releasing lock... [2025-04-02 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:18:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-02 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:19:06 [end_date_ymd] => 2025-04-02 21:19:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:19:06' and `end` < '2025-04-02 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-04-02 21:19:19] Production.INFO: count ==2294 [2025-04-02 21:19:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:19:06 - End Time 2025-04-02 21:19:06 [2025-04-02 21:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820873', 'tblTempUsageDetail_20' ) start [2025-04-02 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820873', 'tblTempUsageDetail_20' ) end [2025-04-02 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820873', 'tblTempVendorCDR_20' ) start [2025-04-02 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820873', 'tblTempVendorCDR_20' ) end [2025-04-02 21:19:20] Production.INFO: ProcessCDR(1,14820873,1,1,2) [2025-04-02 21:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820873', 'tblTempUsageDetail_20' ) start [2025-04-02 21:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820873', 'tblTempUsageDetail_20' ) end [2025-04-02 21:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:19:25] Production.INFO: ==11346== Releasing lock... [2025-04-02 21:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:19:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:20:06 [end_date_ymd] => 2025-04-02 21:20:06 [RateCDR] => 1 ) [2025-04-02 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:20:06' and `end` < '2025-04-02 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:20:19] Production.INFO: count ==2300 [2025-04-02 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:20:06 - End Time 2025-04-02 21:20:06 [2025-04-02 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820879', 'tblTempUsageDetail_20' ) start [2025-04-02 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820879', 'tblTempUsageDetail_20' ) end [2025-04-02 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820879', 'tblTempVendorCDR_20' ) start [2025-04-02 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820879', 'tblTempVendorCDR_20' ) end [2025-04-02 21:20:20] Production.INFO: ProcessCDR(1,14820879,1,1,2) [2025-04-02 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820879', 'tblTempUsageDetail_20' ) start [2025-04-02 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820879', 'tblTempUsageDetail_20' ) end [2025-04-02 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:20:24] Production.INFO: ==11425== Releasing lock... [2025-04-02 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:20:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-02 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:21:05 [end_date_ymd] => 2025-04-02 21:21:05 [RateCDR] => 1 ) [2025-04-02 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:21:05' and `end` < '2025-04-02 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:21:18] Production.INFO: count ==2264 [2025-04-02 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:21:05 - End Time 2025-04-02 21:21:05 [2025-04-02 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820884', 'tblTempUsageDetail_20' ) start [2025-04-02 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820884', 'tblTempUsageDetail_20' ) end [2025-04-02 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820884', 'tblTempVendorCDR_20' ) start [2025-04-02 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820884', 'tblTempVendorCDR_20' ) end [2025-04-02 21:21:19] Production.INFO: ProcessCDR(1,14820884,1,1,2) [2025-04-02 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820884', 'tblTempUsageDetail_20' ) start [2025-04-02 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820884', 'tblTempUsageDetail_20' ) end [2025-04-02 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:21:24] Production.INFO: ==11503== Releasing lock... [2025-04-02 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:21:24] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:22:05 [end_date_ymd] => 2025-04-02 21:22:05 [RateCDR] => 1 ) [2025-04-02 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:22:05' and `end` < '2025-04-02 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:22:18] Production.INFO: count ==2271 [2025-04-02 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:22:05 - End Time 2025-04-02 21:22:05 [2025-04-02 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820889', 'tblTempUsageDetail_20' ) start [2025-04-02 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820889', 'tblTempUsageDetail_20' ) end [2025-04-02 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820889', 'tblTempVendorCDR_20' ) start [2025-04-02 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820889', 'tblTempVendorCDR_20' ) end [2025-04-02 21:22:19] Production.INFO: ProcessCDR(1,14820889,1,1,2) [2025-04-02 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820889', 'tblTempUsageDetail_20' ) start [2025-04-02 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820889', 'tblTempUsageDetail_20' ) end [2025-04-02 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:22:23] Production.INFO: ==11577== Releasing lock... [2025-04-02 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:22:23] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:23:06 [end_date_ymd] => 2025-04-02 21:23:06 [RateCDR] => 1 ) [2025-04-02 21:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:23:06' and `end` < '2025-04-02 21:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:23:19] Production.INFO: count ==2254 [2025-04-02 21:23:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:23:06 - End Time 2025-04-02 21:23:06 [2025-04-02 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820894', 'tblTempUsageDetail_20' ) start [2025-04-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820894', 'tblTempUsageDetail_20' ) end [2025-04-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820894', 'tblTempVendorCDR_20' ) start [2025-04-02 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820894', 'tblTempVendorCDR_20' ) end [2025-04-02 21:23:20] Production.INFO: ProcessCDR(1,14820894,1,1,2) [2025-04-02 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820894', 'tblTempUsageDetail_20' ) start [2025-04-02 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820894', 'tblTempUsageDetail_20' ) end [2025-04-02 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:23:23] Production.INFO: ==11650== Releasing lock... [2025-04-02 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:23:23] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:24:05 [end_date_ymd] => 2025-04-02 21:24:05 [RateCDR] => 1 ) [2025-04-02 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:24:05' and `end` < '2025-04-02 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:24:18] Production.INFO: count ==2252 [2025-04-02 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:24:05 - End Time 2025-04-02 21:24:05 [2025-04-02 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820899', 'tblTempUsageDetail_20' ) start [2025-04-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820899', 'tblTempUsageDetail_20' ) end [2025-04-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820899', 'tblTempVendorCDR_20' ) start [2025-04-02 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820899', 'tblTempVendorCDR_20' ) end [2025-04-02 21:24:19] Production.INFO: ProcessCDR(1,14820899,1,1,2) [2025-04-02 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820899', 'tblTempUsageDetail_20' ) start [2025-04-02 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820899', 'tblTempUsageDetail_20' ) end [2025-04-02 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:24:22] Production.INFO: ==11722== Releasing lock... [2025-04-02 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:24:22] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:25:05 [end_date_ymd] => 2025-04-02 21:25:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:25:05' and `end` < '2025-04-02 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-04-02 21:25:18] Production.INFO: count ==2247 [2025-04-02 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:25:05 - End Time 2025-04-02 21:25:05 [2025-04-02 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820904', 'tblTempUsageDetail_20' ) start [2025-04-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820904', 'tblTempUsageDetail_20' ) end [2025-04-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820904', 'tblTempVendorCDR_20' ) start [2025-04-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820904', 'tblTempVendorCDR_20' ) end [2025-04-02 21:25:19] Production.INFO: ProcessCDR(1,14820904,1,1,2) [2025-04-02 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820904', 'tblTempUsageDetail_20' ) start [2025-04-02 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820904', 'tblTempUsageDetail_20' ) end [2025-04-02 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:25:23] Production.INFO: ==11833== Releasing lock... [2025-04-02 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:25:23] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:26:05 [end_date_ymd] => 2025-04-02 21:26:05 [RateCDR] => 1 ) [2025-04-02 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:26:05' and `end` < '2025-04-02 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:26:19] Production.INFO: count ==2235 [2025-04-02 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:26:05 - End Time 2025-04-02 21:26:05 [2025-04-02 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820909', 'tblTempUsageDetail_20' ) start [2025-04-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820909', 'tblTempUsageDetail_20' ) end [2025-04-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820909', 'tblTempVendorCDR_20' ) start [2025-04-02 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820909', 'tblTempVendorCDR_20' ) end [2025-04-02 21:26:19] Production.INFO: ProcessCDR(1,14820909,1,1,2) [2025-04-02 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820909', 'tblTempUsageDetail_20' ) start [2025-04-02 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820909', 'tblTempUsageDetail_20' ) end [2025-04-02 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:26:23] Production.INFO: ==11905== Releasing lock... [2025-04-02 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:26:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-02 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:27:05 [end_date_ymd] => 2025-04-02 21:27:05 [RateCDR] => 1 ) [2025-04-02 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:27:05' and `end` < '2025-04-02 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:27:18] Production.INFO: count ==2247 [2025-04-02 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:27:05 - End Time 2025-04-02 21:27:05 [2025-04-02 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820914', 'tblTempUsageDetail_20' ) start [2025-04-02 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820914', 'tblTempUsageDetail_20' ) end [2025-04-02 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820914', 'tblTempVendorCDR_20' ) start [2025-04-02 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820914', 'tblTempVendorCDR_20' ) end [2025-04-02 21:27:19] Production.INFO: ProcessCDR(1,14820914,1,1,2) [2025-04-02 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820914', 'tblTempUsageDetail_20' ) start [2025-04-02 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820914', 'tblTempUsageDetail_20' ) end [2025-04-02 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:27:23] Production.INFO: ==11980== Releasing lock... [2025-04-02 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:27:23] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:28:05 [end_date_ymd] => 2025-04-02 21:28:05 [RateCDR] => 1 ) [2025-04-02 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:28:05' and `end` < '2025-04-02 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:28:18] Production.INFO: count ==2231 [2025-04-02 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:28:05 - End Time 2025-04-02 21:28:05 [2025-04-02 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820919', 'tblTempUsageDetail_20' ) start [2025-04-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820919', 'tblTempUsageDetail_20' ) end [2025-04-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820919', 'tblTempVendorCDR_20' ) start [2025-04-02 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820919', 'tblTempVendorCDR_20' ) end [2025-04-02 21:28:19] Production.INFO: ProcessCDR(1,14820919,1,1,2) [2025-04-02 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820919', 'tblTempUsageDetail_20' ) start [2025-04-02 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820919', 'tblTempUsageDetail_20' ) end [2025-04-02 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:28:23] Production.INFO: ==12053== Releasing lock... [2025-04-02 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:28:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-02 21:29:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:29:07 [end_date_ymd] => 2025-04-02 21:29:07 [RateCDR] => 1 ) [2025-04-02 21:29:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:29:07' and `end` < '2025-04-02 21:29:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:29:19] Production.INFO: count ==2244 [2025-04-02 21:29:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:29:07 - End Time 2025-04-02 21:29:07 [2025-04-02 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820924', 'tblTempUsageDetail_20' ) start [2025-04-02 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820924', 'tblTempUsageDetail_20' ) end [2025-04-02 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820924', 'tblTempVendorCDR_20' ) start [2025-04-02 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820924', 'tblTempVendorCDR_20' ) end [2025-04-02 21:29:20] Production.INFO: ProcessCDR(1,14820924,1,1,2) [2025-04-02 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820924', 'tblTempUsageDetail_20' ) start [2025-04-02 21:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820924', 'tblTempUsageDetail_20' ) end [2025-04-02 21:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:29:26] Production.INFO: ==12126== Releasing lock... [2025-04-02 21:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:29:26] Production.INFO: 45 MB #Memory Used# [2025-04-02 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:30:06 [end_date_ymd] => 2025-04-02 21:30:06 [RateCDR] => 1 ) [2025-04-02 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:30:06' and `end` < '2025-04-02 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:30:19] Production.INFO: count ==2239 [2025-04-02 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:30:06 - End Time 2025-04-02 21:30:06 [2025-04-02 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820930', 'tblTempUsageDetail_20' ) start [2025-04-02 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820930', 'tblTempUsageDetail_20' ) end [2025-04-02 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820930', 'tblTempVendorCDR_20' ) start [2025-04-02 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820930', 'tblTempVendorCDR_20' ) end [2025-04-02 21:30:20] Production.INFO: ProcessCDR(1,14820930,1,1,2) [2025-04-02 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820930', 'tblTempUsageDetail_20' ) start [2025-04-02 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820930', 'tblTempUsageDetail_20' ) end [2025-04-02 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:30:23] Production.INFO: ==12202== Releasing lock... [2025-04-02 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:30:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-02 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:31:06 [end_date_ymd] => 2025-04-02 21:31:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:31:06' and `end` < '2025-04-02 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-04-02 21:31:19] Production.INFO: count ==2175 [2025-04-02 21:31:20] Production.ERROR: pbx CDR StartTime 2025-04-02 18:31:06 - End Time 2025-04-02 21:31:06 [2025-04-02 21:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820935', 'tblTempUsageDetail_20' ) start [2025-04-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820935', 'tblTempUsageDetail_20' ) end [2025-04-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820935', 'tblTempVendorCDR_20' ) start [2025-04-02 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820935', 'tblTempVendorCDR_20' ) end [2025-04-02 21:31:20] Production.INFO: ProcessCDR(1,14820935,1,1,2) [2025-04-02 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820935', 'tblTempUsageDetail_20' ) start [2025-04-02 21:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820935', 'tblTempUsageDetail_20' ) end [2025-04-02 21:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:31:25] Production.INFO: ==12276== Releasing lock... [2025-04-02 21:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:31:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-02 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:32:05 [end_date_ymd] => 2025-04-02 21:32:05 [RateCDR] => 1 ) [2025-04-02 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:32:05' and `end` < '2025-04-02 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:32:18] Production.INFO: count ==2177 [2025-04-02 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:32:05 - End Time 2025-04-02 21:32:05 [2025-04-02 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820940', 'tblTempUsageDetail_20' ) start [2025-04-02 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820940', 'tblTempUsageDetail_20' ) end [2025-04-02 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820940', 'tblTempVendorCDR_20' ) start [2025-04-02 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820940', 'tblTempVendorCDR_20' ) end [2025-04-02 21:32:19] Production.INFO: ProcessCDR(1,14820940,1,1,2) [2025-04-02 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820940', 'tblTempUsageDetail_20' ) start [2025-04-02 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820940', 'tblTempUsageDetail_20' ) end [2025-04-02 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:32:24] Production.INFO: ==12356== Releasing lock... [2025-04-02 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:32:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-02 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:33:05 [end_date_ymd] => 2025-04-02 21:33:05 [RateCDR] => 1 ) [2025-04-02 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:33:05' and `end` < '2025-04-02 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:33:18] Production.INFO: count ==2170 [2025-04-02 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:33:05 - End Time 2025-04-02 21:33:05 [2025-04-02 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820945', 'tblTempUsageDetail_20' ) start [2025-04-02 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820945', 'tblTempUsageDetail_20' ) end [2025-04-02 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820945', 'tblTempVendorCDR_20' ) start [2025-04-02 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820945', 'tblTempVendorCDR_20' ) end [2025-04-02 21:33:19] Production.INFO: ProcessCDR(1,14820945,1,1,2) [2025-04-02 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820945', 'tblTempUsageDetail_20' ) start [2025-04-02 21:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820945', 'tblTempUsageDetail_20' ) end [2025-04-02 21:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:33:25] Production.INFO: ==12427== Releasing lock... [2025-04-02 21:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:33:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:34:05 [end_date_ymd] => 2025-04-02 21:34:05 [RateCDR] => 1 ) [2025-04-02 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:34:05' and `end` < '2025-04-02 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:34:18] Production.INFO: count ==2169 [2025-04-02 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:34:05 - End Time 2025-04-02 21:34:05 [2025-04-02 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820950', 'tblTempUsageDetail_20' ) start [2025-04-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820950', 'tblTempUsageDetail_20' ) end [2025-04-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820950', 'tblTempVendorCDR_20' ) start [2025-04-02 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820950', 'tblTempVendorCDR_20' ) end [2025-04-02 21:34:19] Production.INFO: ProcessCDR(1,14820950,1,1,2) [2025-04-02 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820950', 'tblTempUsageDetail_20' ) start [2025-04-02 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820950', 'tblTempUsageDetail_20' ) end [2025-04-02 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:34:23] Production.INFO: ==12499== Releasing lock... [2025-04-02 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:34:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:35:05 [end_date_ymd] => 2025-04-02 21:35:05 [RateCDR] => 1 ) [2025-04-02 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:35:05' and `end` < '2025-04-02 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:35:18] Production.INFO: count ==2161 [2025-04-02 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:35:05 - End Time 2025-04-02 21:35:05 [2025-04-02 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820955', 'tblTempUsageDetail_20' ) start [2025-04-02 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820955', 'tblTempUsageDetail_20' ) end [2025-04-02 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820955', 'tblTempVendorCDR_20' ) start [2025-04-02 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820955', 'tblTempVendorCDR_20' ) end [2025-04-02 21:35:19] Production.INFO: ProcessCDR(1,14820955,1,1,2) [2025-04-02 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820955', 'tblTempUsageDetail_20' ) start [2025-04-02 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820955', 'tblTempUsageDetail_20' ) end [2025-04-02 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:35:22] Production.INFO: ==12578== Releasing lock... [2025-04-02 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:35:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:36:05 [end_date_ymd] => 2025-04-02 21:36:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:36:05' and `end` < '2025-04-02 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-04-02 21:36:18] Production.INFO: count ==2157 [2025-04-02 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:36:05 - End Time 2025-04-02 21:36:05 [2025-04-02 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820960', 'tblTempUsageDetail_20' ) start [2025-04-02 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820960', 'tblTempUsageDetail_20' ) end [2025-04-02 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820960', 'tblTempVendorCDR_20' ) start [2025-04-02 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820960', 'tblTempVendorCDR_20' ) end [2025-04-02 21:36:18] Production.INFO: ProcessCDR(1,14820960,1,1,2) [2025-04-02 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820960', 'tblTempUsageDetail_20' ) start [2025-04-02 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820960', 'tblTempUsageDetail_20' ) end [2025-04-02 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:36:22] Production.INFO: ==12653== Releasing lock... [2025-04-02 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:36:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:37:06 [end_date_ymd] => 2025-04-02 21:37:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:37:06' and `end` < '2025-04-02 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-04-02 21:37:19] Production.INFO: count ==2156 [2025-04-02 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:37:06 - End Time 2025-04-02 21:37:06 [2025-04-02 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820965', 'tblTempUsageDetail_20' ) start [2025-04-02 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820965', 'tblTempUsageDetail_20' ) end [2025-04-02 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820965', 'tblTempVendorCDR_20' ) start [2025-04-02 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820965', 'tblTempVendorCDR_20' ) end [2025-04-02 21:37:20] Production.INFO: ProcessCDR(1,14820965,1,1,2) [2025-04-02 21:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820965', 'tblTempUsageDetail_20' ) start [2025-04-02 21:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820965', 'tblTempUsageDetail_20' ) end [2025-04-02 21:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:37:25] Production.INFO: ==12727== Releasing lock... [2025-04-02 21:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:37:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:38:05 [end_date_ymd] => 2025-04-02 21:38:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:38:05' and `end` < '2025-04-02 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-04-02 21:38:18] Production.INFO: count ==2144 [2025-04-02 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:38:05 - End Time 2025-04-02 21:38:05 [2025-04-02 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820970', 'tblTempUsageDetail_20' ) start [2025-04-02 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820970', 'tblTempUsageDetail_20' ) end [2025-04-02 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820970', 'tblTempVendorCDR_20' ) start [2025-04-02 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820970', 'tblTempVendorCDR_20' ) end [2025-04-02 21:38:19] Production.INFO: ProcessCDR(1,14820970,1,1,2) [2025-04-02 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820970', 'tblTempUsageDetail_20' ) start [2025-04-02 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820970', 'tblTempUsageDetail_20' ) end [2025-04-02 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:38:23] Production.INFO: ==12798== Releasing lock... [2025-04-02 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:38:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-02 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:39:05 [end_date_ymd] => 2025-04-02 21:39:05 [RateCDR] => 1 ) [2025-04-02 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:39:05' and `end` < '2025-04-02 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:39:18] Production.INFO: count ==2129 [2025-04-02 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:39:05 - End Time 2025-04-02 21:39:05 [2025-04-02 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820975', 'tblTempUsageDetail_20' ) start [2025-04-02 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820975', 'tblTempUsageDetail_20' ) end [2025-04-02 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820975', 'tblTempVendorCDR_20' ) start [2025-04-02 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820975', 'tblTempVendorCDR_20' ) end [2025-04-02 21:39:19] Production.INFO: ProcessCDR(1,14820975,1,1,2) [2025-04-02 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820975', 'tblTempUsageDetail_20' ) start [2025-04-02 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820975', 'tblTempUsageDetail_20' ) end [2025-04-02 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:39:24] Production.INFO: ==12871== Releasing lock... [2025-04-02 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:39:24] Production.INFO: 44 MB #Memory Used# [2025-04-02 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:40:06 [end_date_ymd] => 2025-04-02 21:40:06 [RateCDR] => 1 ) [2025-04-02 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:40:06' and `end` < '2025-04-02 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:40:19] Production.INFO: count ==2117 [2025-04-02 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:40:06 - End Time 2025-04-02 21:40:06 [2025-04-02 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820981', 'tblTempUsageDetail_20' ) start [2025-04-02 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820981', 'tblTempUsageDetail_20' ) end [2025-04-02 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820981', 'tblTempVendorCDR_20' ) start [2025-04-02 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820981', 'tblTempVendorCDR_20' ) end [2025-04-02 21:40:20] Production.INFO: ProcessCDR(1,14820981,1,1,2) [2025-04-02 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820981', 'tblTempUsageDetail_20' ) start [2025-04-02 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820981', 'tblTempUsageDetail_20' ) end [2025-04-02 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:40:25] Production.INFO: ==12947== Releasing lock... [2025-04-02 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:40:25] Production.INFO: 44 MB #Memory Used# [2025-04-02 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:41:05 [end_date_ymd] => 2025-04-02 21:41:05 [RateCDR] => 1 ) [2025-04-02 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:41:05' and `end` < '2025-04-02 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:41:19] Production.INFO: count ==2061 [2025-04-02 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:41:05 - End Time 2025-04-02 21:41:05 [2025-04-02 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820986', 'tblTempUsageDetail_20' ) start [2025-04-02 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820986', 'tblTempUsageDetail_20' ) end [2025-04-02 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820986', 'tblTempVendorCDR_20' ) start [2025-04-02 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820986', 'tblTempVendorCDR_20' ) end [2025-04-02 21:41:19] Production.INFO: ProcessCDR(1,14820986,1,1,2) [2025-04-02 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820986', 'tblTempUsageDetail_20' ) start [2025-04-02 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820986', 'tblTempUsageDetail_20' ) end [2025-04-02 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:41:23] Production.INFO: ==13061== Releasing lock... [2025-04-02 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:41:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-02 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:42:04 [end_date_ymd] => 2025-04-02 21:42:04 [RateCDR] => 1 ) [2025-04-02 21:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:42:04' and `end` < '2025-04-02 21:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:42:17] Production.INFO: count ==2045 [2025-04-02 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:42:04 - End Time 2025-04-02 21:42:04 [2025-04-02 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820991', 'tblTempUsageDetail_20' ) start [2025-04-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820991', 'tblTempUsageDetail_20' ) end [2025-04-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820991', 'tblTempVendorCDR_20' ) start [2025-04-02 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820991', 'tblTempVendorCDR_20' ) end [2025-04-02 21:42:18] Production.INFO: ProcessCDR(1,14820991,1,1,2) [2025-04-02 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820991', 'tblTempUsageDetail_20' ) start [2025-04-02 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820991', 'tblTempUsageDetail_20' ) end [2025-04-02 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:42:23] Production.INFO: ==13137== Releasing lock... [2025-04-02 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:42:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-02 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:43:05 [end_date_ymd] => 2025-04-02 21:43:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:43:05' and `end` < '2025-04-02 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-04-02 21:43:18] Production.INFO: count ==2030 [2025-04-02 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:43:05 - End Time 2025-04-02 21:43:05 [2025-04-02 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820996', 'tblTempUsageDetail_20' ) start [2025-04-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14820996', 'tblTempUsageDetail_20' ) end [2025-04-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820996', 'tblTempVendorCDR_20' ) start [2025-04-02 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14820996', 'tblTempVendorCDR_20' ) end [2025-04-02 21:43:19] Production.INFO: ProcessCDR(1,14820996,1,1,2) [2025-04-02 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14820996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14820996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14820996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14820996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820996', 'tblTempUsageDetail_20' ) start [2025-04-02 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14820996', 'tblTempUsageDetail_20' ) end [2025-04-02 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:43:22] Production.INFO: ==13207== Releasing lock... [2025-04-02 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:43:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:44:05 [end_date_ymd] => 2025-04-02 21:44:05 [RateCDR] => 1 ) [2025-04-02 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:44:05' and `end` < '2025-04-02 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:44:18] Production.INFO: count ==2029 [2025-04-02 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:44:05 - End Time 2025-04-02 21:44:05 [2025-04-02 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821001', 'tblTempUsageDetail_20' ) start [2025-04-02 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821001', 'tblTempUsageDetail_20' ) end [2025-04-02 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821001', 'tblTempVendorCDR_20' ) start [2025-04-02 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821001', 'tblTempVendorCDR_20' ) end [2025-04-02 21:44:19] Production.INFO: ProcessCDR(1,14821001,1,1,2) [2025-04-02 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821001', 'tblTempUsageDetail_20' ) start [2025-04-02 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821001', 'tblTempUsageDetail_20' ) end [2025-04-02 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:44:22] Production.INFO: ==13280== Releasing lock... [2025-04-02 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:44:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:45:05 [end_date_ymd] => 2025-04-02 21:45:05 [RateCDR] => 1 ) [2025-04-02 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:45:05' and `end` < '2025-04-02 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:45:18] Production.INFO: count ==2032 [2025-04-02 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:45:05 - End Time 2025-04-02 21:45:05 [2025-04-02 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821006', 'tblTempUsageDetail_20' ) start [2025-04-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821006', 'tblTempUsageDetail_20' ) end [2025-04-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821006', 'tblTempVendorCDR_20' ) start [2025-04-02 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821006', 'tblTempVendorCDR_20' ) end [2025-04-02 21:45:18] Production.INFO: ProcessCDR(1,14821006,1,1,2) [2025-04-02 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821006', 'tblTempUsageDetail_20' ) start [2025-04-02 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821006', 'tblTempUsageDetail_20' ) end [2025-04-02 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:45:22] Production.INFO: ==13354== Releasing lock... [2025-04-02 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:45:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-02 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:46:06 [end_date_ymd] => 2025-04-02 21:46:06 [RateCDR] => 1 ) [2025-04-02 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:46:06' and `end` < '2025-04-02 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:46:18] Production.INFO: count ==2028 [2025-04-02 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:46:06 - End Time 2025-04-02 21:46:06 [2025-04-02 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821011', 'tblTempUsageDetail_20' ) start [2025-04-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821011', 'tblTempUsageDetail_20' ) end [2025-04-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821011', 'tblTempVendorCDR_20' ) start [2025-04-02 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821011', 'tblTempVendorCDR_20' ) end [2025-04-02 21:46:19] Production.INFO: ProcessCDR(1,14821011,1,1,2) [2025-04-02 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821011', 'tblTempUsageDetail_20' ) start [2025-04-02 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821011', 'tblTempUsageDetail_20' ) end [2025-04-02 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:46:24] Production.INFO: ==13429== Releasing lock... [2025-04-02 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:46:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:47:05 [end_date_ymd] => 2025-04-02 21:47:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:47:05' and `end` < '2025-04-02 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-04-02 21:47:18] Production.INFO: count ==2031 [2025-04-02 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:47:05 - End Time 2025-04-02 21:47:05 [2025-04-02 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821016', 'tblTempUsageDetail_20' ) start [2025-04-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821016', 'tblTempUsageDetail_20' ) end [2025-04-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821016', 'tblTempVendorCDR_20' ) start [2025-04-02 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821016', 'tblTempVendorCDR_20' ) end [2025-04-02 21:47:19] Production.INFO: ProcessCDR(1,14821016,1,1,2) [2025-04-02 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821016', 'tblTempUsageDetail_20' ) start [2025-04-02 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821016', 'tblTempUsageDetail_20' ) end [2025-04-02 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:47:22] Production.INFO: ==13501== Releasing lock... [2025-04-02 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:47:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:48:05 [end_date_ymd] => 2025-04-02 21:48:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:48:05' and `end` < '2025-04-02 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-04-02 21:48:18] Production.INFO: count ==2022 [2025-04-02 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:48:05 - End Time 2025-04-02 21:48:05 [2025-04-02 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821021', 'tblTempUsageDetail_20' ) start [2025-04-02 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821021', 'tblTempUsageDetail_20' ) end [2025-04-02 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821021', 'tblTempVendorCDR_20' ) start [2025-04-02 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821021', 'tblTempVendorCDR_20' ) end [2025-04-02 21:48:19] Production.INFO: ProcessCDR(1,14821021,1,1,2) [2025-04-02 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821021', 'tblTempUsageDetail_20' ) start [2025-04-02 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821021', 'tblTempUsageDetail_20' ) end [2025-04-02 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:48:23] Production.INFO: ==13575== Releasing lock... [2025-04-02 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:48:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:49:05 [end_date_ymd] => 2025-04-02 21:49:05 [RateCDR] => 1 ) [2025-04-02 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:49:05' and `end` < '2025-04-02 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:49:18] Production.INFO: count ==1992 [2025-04-02 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:49:05 - End Time 2025-04-02 21:49:05 [2025-04-02 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821026', 'tblTempUsageDetail_20' ) start [2025-04-02 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821026', 'tblTempUsageDetail_20' ) end [2025-04-02 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821026', 'tblTempVendorCDR_20' ) start [2025-04-02 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821026', 'tblTempVendorCDR_20' ) end [2025-04-02 21:49:18] Production.INFO: ProcessCDR(1,14821026,1,1,2) [2025-04-02 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821026', 'tblTempUsageDetail_20' ) start [2025-04-02 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821026', 'tblTempUsageDetail_20' ) end [2025-04-02 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:49:22] Production.INFO: ==13652== Releasing lock... [2025-04-02 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:49:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:50:06 [end_date_ymd] => 2025-04-02 21:50:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:50:06' and `end` < '2025-04-02 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-04-02 21:50:19] Production.INFO: count ==1992 [2025-04-02 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:50:06 - End Time 2025-04-02 21:50:06 [2025-04-02 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821031', 'tblTempUsageDetail_20' ) start [2025-04-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821031', 'tblTempUsageDetail_20' ) end [2025-04-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821031', 'tblTempVendorCDR_20' ) start [2025-04-02 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821031', 'tblTempVendorCDR_20' ) end [2025-04-02 21:50:19] Production.INFO: ProcessCDR(1,14821031,1,1,2) [2025-04-02 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821031', 'tblTempUsageDetail_20' ) start [2025-04-02 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821031', 'tblTempUsageDetail_20' ) end [2025-04-02 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:50:23] Production.INFO: ==13730== Releasing lock... [2025-04-02 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:50:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-02 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:51:05 [end_date_ymd] => 2025-04-02 21:51:05 [RateCDR] => 1 ) [2025-04-02 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:51:05' and `end` < '2025-04-02 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:51:18] Production.INFO: count ==1930 [2025-04-02 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:51:05 - End Time 2025-04-02 21:51:05 [2025-04-02 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821037', 'tblTempUsageDetail_20' ) start [2025-04-02 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821037', 'tblTempUsageDetail_20' ) end [2025-04-02 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821037', 'tblTempVendorCDR_20' ) start [2025-04-02 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821037', 'tblTempVendorCDR_20' ) end [2025-04-02 21:51:18] Production.INFO: ProcessCDR(1,14821037,1,1,2) [2025-04-02 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821037', 'tblTempUsageDetail_20' ) start [2025-04-02 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821037', 'tblTempUsageDetail_20' ) end [2025-04-02 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:51:22] Production.INFO: ==13810== Releasing lock... [2025-04-02 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:51:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-02 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:52:06 [end_date_ymd] => 2025-04-02 21:52:06 [RateCDR] => 1 ) [2025-04-02 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:52:06' and `end` < '2025-04-02 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:52:19] Production.INFO: count ==1917 [2025-04-02 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:52:06 - End Time 2025-04-02 21:52:06 [2025-04-02 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821042', 'tblTempUsageDetail_20' ) start [2025-04-02 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821042', 'tblTempUsageDetail_20' ) end [2025-04-02 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821042', 'tblTempVendorCDR_20' ) start [2025-04-02 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821042', 'tblTempVendorCDR_20' ) end [2025-04-02 21:52:19] Production.INFO: ProcessCDR(1,14821042,1,1,2) [2025-04-02 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821042', 'tblTempUsageDetail_20' ) start [2025-04-02 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821042', 'tblTempUsageDetail_20' ) end [2025-04-02 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:52:23] Production.INFO: ==13886== Releasing lock... [2025-04-02 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:52:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-02 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:53:06 [end_date_ymd] => 2025-04-02 21:53:06 [RateCDR] => 1 ) [2025-04-02 21:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:53:06' and `end` < '2025-04-02 21:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:53:18] Production.INFO: count ==1911 [2025-04-02 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:53:06 - End Time 2025-04-02 21:53:06 [2025-04-02 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821047', 'tblTempUsageDetail_20' ) start [2025-04-02 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821047', 'tblTempUsageDetail_20' ) end [2025-04-02 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821047', 'tblTempVendorCDR_20' ) start [2025-04-02 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821047', 'tblTempVendorCDR_20' ) end [2025-04-02 21:53:19] Production.INFO: ProcessCDR(1,14821047,1,1,2) [2025-04-02 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821047', 'tblTempUsageDetail_20' ) start [2025-04-02 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821047', 'tblTempUsageDetail_20' ) end [2025-04-02 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:53:24] Production.INFO: ==13959== Releasing lock... [2025-04-02 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:53:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-02 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:54:05 [end_date_ymd] => 2025-04-02 21:54:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:54:05' and `end` < '2025-04-02 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-04-02 21:54:18] Production.INFO: count ==1908 [2025-04-02 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:54:05 - End Time 2025-04-02 21:54:05 [2025-04-02 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821052', 'tblTempUsageDetail_20' ) start [2025-04-02 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821052', 'tblTempUsageDetail_20' ) end [2025-04-02 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821052', 'tblTempVendorCDR_20' ) start [2025-04-02 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821052', 'tblTempVendorCDR_20' ) end [2025-04-02 21:54:19] Production.INFO: ProcessCDR(1,14821052,1,1,2) [2025-04-02 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821052', 'tblTempUsageDetail_20' ) start [2025-04-02 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821052', 'tblTempUsageDetail_20' ) end [2025-04-02 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:54:22] Production.INFO: ==14033== Releasing lock... [2025-04-02 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:54:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-02 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:55:05 [end_date_ymd] => 2025-04-02 21:55:05 [RateCDR] => 1 ) [2025-04-02 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:55:05' and `end` < '2025-04-02 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:55:18] Production.INFO: count ==1903 [2025-04-02 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:55:05 - End Time 2025-04-02 21:55:05 [2025-04-02 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821057', 'tblTempUsageDetail_20' ) start [2025-04-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821057', 'tblTempUsageDetail_20' ) end [2025-04-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821057', 'tblTempVendorCDR_20' ) start [2025-04-02 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821057', 'tblTempVendorCDR_20' ) end [2025-04-02 21:55:19] Production.INFO: ProcessCDR(1,14821057,1,1,2) [2025-04-02 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821057', 'tblTempUsageDetail_20' ) start [2025-04-02 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821057', 'tblTempUsageDetail_20' ) end [2025-04-02 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:55:22] Production.INFO: ==14107== Releasing lock... [2025-04-02 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:55:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-02 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:56:06 [end_date_ymd] => 2025-04-02 21:56:06 [RateCDR] => 1 ) [2025-04-02 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:56:06' and `end` < '2025-04-02 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:56:19] Production.INFO: count ==1894 [2025-04-02 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:56:06 - End Time 2025-04-02 21:56:06 [2025-04-02 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821062', 'tblTempUsageDetail_20' ) start [2025-04-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821062', 'tblTempUsageDetail_20' ) end [2025-04-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821062', 'tblTempVendorCDR_20' ) start [2025-04-02 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821062', 'tblTempVendorCDR_20' ) end [2025-04-02 21:56:19] Production.INFO: ProcessCDR(1,14821062,1,1,2) [2025-04-02 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821062', 'tblTempUsageDetail_20' ) start [2025-04-02 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821062', 'tblTempUsageDetail_20' ) end [2025-04-02 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:56:23] Production.INFO: ==14224== Releasing lock... [2025-04-02 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:56:23] Production.INFO: 42 MB #Memory Used# [2025-04-02 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:57:05 [end_date_ymd] => 2025-04-02 21:57:05 [RateCDR] => 1 ) [2025-04-02 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:57:05' and `end` < '2025-04-02 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:57:18] Production.INFO: count ==1893 [2025-04-02 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:57:05 - End Time 2025-04-02 21:57:05 [2025-04-02 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821067', 'tblTempUsageDetail_20' ) start [2025-04-02 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821067', 'tblTempUsageDetail_20' ) end [2025-04-02 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821067', 'tblTempVendorCDR_20' ) start [2025-04-02 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821067', 'tblTempVendorCDR_20' ) end [2025-04-02 21:57:19] Production.INFO: ProcessCDR(1,14821067,1,1,2) [2025-04-02 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821067', 'tblTempUsageDetail_20' ) start [2025-04-02 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821067', 'tblTempUsageDetail_20' ) end [2025-04-02 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:57:22] Production.INFO: ==14299== Releasing lock... [2025-04-02 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-02 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:58:05 [end_date_ymd] => 2025-04-02 21:58:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 18:58:05' and `end` < '2025-04-02 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:58:18] Production.INFO: count ==1895 [2025-04-02 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 18:58:05 - End Time 2025-04-02 21:58:05 [2025-04-02 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821072', 'tblTempUsageDetail_20' ) start [2025-04-02 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821072', 'tblTempUsageDetail_20' ) end [2025-04-02 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821072', 'tblTempVendorCDR_20' ) start [2025-04-02 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821072', 'tblTempVendorCDR_20' ) end [2025-04-02 21:58:19] Production.INFO: ProcessCDR(1,14821072,1,1,2) [2025-04-02 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821072', 'tblTempUsageDetail_20' ) start [2025-04-02 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821072', 'tblTempUsageDetail_20' ) end [2025-04-02 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:58:22] Production.INFO: ==14370== Releasing lock... [2025-04-02 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:58:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-02 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 18:59:05 [end_date_ymd] => 2025-04-02 21:59:05 [RateCDR] => 1 ) [2025-04-02 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 18:59:05' and `end` < '2025-04-02 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 21:59:18] Production.INFO: count ==1889 [2025-04-02 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 18:59:05 - End Time 2025-04-02 21:59:05 [2025-04-02 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821077', 'tblTempUsageDetail_20' ) start [2025-04-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821077', 'tblTempUsageDetail_20' ) end [2025-04-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821077', 'tblTempVendorCDR_20' ) start [2025-04-02 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821077', 'tblTempVendorCDR_20' ) end [2025-04-02 21:59:18] Production.INFO: ProcessCDR(1,14821077,1,1,2) [2025-04-02 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821077', 'tblTempUsageDetail_20' ) start [2025-04-02 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821077', 'tblTempUsageDetail_20' ) end [2025-04-02 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 21:59:22] Production.INFO: ==14443== Releasing lock... [2025-04-02 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 21:59:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-02 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:00:06 [end_date_ymd] => 2025-04-02 22:00:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:00:06' and `end` < '2025-04-02 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-04-02 22:00:19] Production.INFO: count ==1883 [2025-04-02 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 19:00:06 - End Time 2025-04-02 22:00:06 [2025-04-02 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821083', 'tblTempUsageDetail_20' ) start [2025-04-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821083', 'tblTempUsageDetail_20' ) end [2025-04-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821083', 'tblTempVendorCDR_20' ) start [2025-04-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821083', 'tblTempVendorCDR_20' ) end [2025-04-02 22:00:20] Production.INFO: ProcessCDR(1,14821083,1,1,2) [2025-04-02 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821083', 'tblTempUsageDetail_20' ) start [2025-04-02 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821083', 'tblTempUsageDetail_20' ) end [2025-04-02 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:00:23] Production.INFO: ==14519== Releasing lock... [2025-04-02 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:00:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-02 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:01:05 [end_date_ymd] => 2025-04-02 22:01:05 [RateCDR] => 1 ) [2025-04-02 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:01:05' and `end` < '2025-04-02 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:01:18] Production.INFO: count ==1872 [2025-04-02 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:01:05 - End Time 2025-04-02 22:01:05 [2025-04-02 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821088', 'tblTempUsageDetail_20' ) start [2025-04-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821088', 'tblTempUsageDetail_20' ) end [2025-04-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821088', 'tblTempVendorCDR_20' ) start [2025-04-02 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821088', 'tblTempVendorCDR_20' ) end [2025-04-02 22:01:18] Production.INFO: ProcessCDR(1,14821088,1,1,2) [2025-04-02 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821088', 'tblTempUsageDetail_20' ) start [2025-04-02 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821088', 'tblTempUsageDetail_20' ) end [2025-04-02 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:01:22] Production.INFO: ==14605== Releasing lock... [2025-04-02 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:01:22] Production.INFO: 42 MB #Memory Used# [2025-04-02 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:02:06 [end_date_ymd] => 2025-04-02 22:02:06 [RateCDR] => 1 ) [2025-04-02 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:02:06' and `end` < '2025-04-02 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:02:19] Production.INFO: count ==1865 [2025-04-02 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:02:06 - End Time 2025-04-02 22:02:06 [2025-04-02 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821093', 'tblTempUsageDetail_20' ) start [2025-04-02 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821093', 'tblTempUsageDetail_20' ) end [2025-04-02 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821093', 'tblTempVendorCDR_20' ) start [2025-04-02 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821093', 'tblTempVendorCDR_20' ) end [2025-04-02 22:02:19] Production.INFO: ProcessCDR(1,14821093,1,1,2) [2025-04-02 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821093', 'tblTempUsageDetail_20' ) start [2025-04-02 22:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821093', 'tblTempUsageDetail_20' ) end [2025-04-02 22:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:02:25] Production.INFO: ==14677== Releasing lock... [2025-04-02 22:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:02:25] Production.INFO: 42 MB #Memory Used# [2025-04-02 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:03:05 [end_date_ymd] => 2025-04-02 22:03:05 [RateCDR] => 1 ) [2025-04-02 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:03:05' and `end` < '2025-04-02 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:03:18] Production.INFO: count ==1871 [2025-04-02 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:03:05 - End Time 2025-04-02 22:03:05 [2025-04-02 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821098', 'tblTempUsageDetail_20' ) start [2025-04-02 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821098', 'tblTempUsageDetail_20' ) end [2025-04-02 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821098', 'tblTempVendorCDR_20' ) start [2025-04-02 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821098', 'tblTempVendorCDR_20' ) end [2025-04-02 22:03:19] Production.INFO: ProcessCDR(1,14821098,1,1,2) [2025-04-02 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821098', 'tblTempUsageDetail_20' ) start [2025-04-02 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821098', 'tblTempUsageDetail_20' ) end [2025-04-02 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:03:22] Production.INFO: ==14753== Releasing lock... [2025-04-02 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:03:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-02 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:04:05 [end_date_ymd] => 2025-04-02 22:04:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:04:05' and `end` < '2025-04-02 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:04:18] Production.INFO: count ==1852 [2025-04-02 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:04:05 - End Time 2025-04-02 22:04:05 [2025-04-02 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821103', 'tblTempUsageDetail_20' ) start [2025-04-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821103', 'tblTempUsageDetail_20' ) end [2025-04-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821103', 'tblTempVendorCDR_20' ) start [2025-04-02 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821103', 'tblTempVendorCDR_20' ) end [2025-04-02 22:04:19] Production.INFO: ProcessCDR(1,14821103,1,1,2) [2025-04-02 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821103', 'tblTempUsageDetail_20' ) start [2025-04-02 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821103', 'tblTempUsageDetail_20' ) end [2025-04-02 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:04:22] Production.INFO: ==14827== Releasing lock... [2025-04-02 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:04:22] Production.INFO: 42 MB #Memory Used# [2025-04-02 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:05:05 [end_date_ymd] => 2025-04-02 22:05:05 [RateCDR] => 1 ) [2025-04-02 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:05:05' and `end` < '2025-04-02 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:05:18] Production.INFO: count ==1835 [2025-04-02 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:05:05 - End Time 2025-04-02 22:05:05 [2025-04-02 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821108', 'tblTempUsageDetail_20' ) start [2025-04-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821108', 'tblTempUsageDetail_20' ) end [2025-04-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821108', 'tblTempVendorCDR_20' ) start [2025-04-02 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821108', 'tblTempVendorCDR_20' ) end [2025-04-02 22:05:18] Production.INFO: ProcessCDR(1,14821108,1,1,2) [2025-04-02 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821108', 'tblTempUsageDetail_20' ) start [2025-04-02 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821108', 'tblTempUsageDetail_20' ) end [2025-04-02 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:05:22] Production.INFO: ==14901== Releasing lock... [2025-04-02 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:05:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:06:05 [end_date_ymd] => 2025-04-02 22:06:05 [RateCDR] => 1 ) [2025-04-02 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:06:05' and `end` < '2025-04-02 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:06:18] Production.INFO: count ==1821 [2025-04-02 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:06:05 - End Time 2025-04-02 22:06:05 [2025-04-02 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821113', 'tblTempUsageDetail_20' ) start [2025-04-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821113', 'tblTempUsageDetail_20' ) end [2025-04-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821113', 'tblTempVendorCDR_20' ) start [2025-04-02 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821113', 'tblTempVendorCDR_20' ) end [2025-04-02 22:06:18] Production.INFO: ProcessCDR(1,14821113,1,1,2) [2025-04-02 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821113', 'tblTempUsageDetail_20' ) start [2025-04-02 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821113', 'tblTempUsageDetail_20' ) end [2025-04-02 22:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:06:24] Production.INFO: ==14975== Releasing lock... [2025-04-02 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:06:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:07:06 [end_date_ymd] => 2025-04-02 22:07:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:07:06' and `end` < '2025-04-02 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-04-02 22:07:18] Production.INFO: count ==1824 [2025-04-02 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:07:06 - End Time 2025-04-02 22:07:06 [2025-04-02 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821118', 'tblTempUsageDetail_20' ) start [2025-04-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821118', 'tblTempUsageDetail_20' ) end [2025-04-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821118', 'tblTempVendorCDR_20' ) start [2025-04-02 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821118', 'tblTempVendorCDR_20' ) end [2025-04-02 22:07:19] Production.INFO: ProcessCDR(1,14821118,1,1,2) [2025-04-02 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821118', 'tblTempUsageDetail_20' ) start [2025-04-02 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821118', 'tblTempUsageDetail_20' ) end [2025-04-02 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:07:23] Production.INFO: ==15048== Releasing lock... [2025-04-02 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:08:05 [end_date_ymd] => 2025-04-02 22:08:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:08:05' and `end` < '2025-04-02 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-04-02 22:08:18] Production.INFO: count ==1825 [2025-04-02 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:08:05 - End Time 2025-04-02 22:08:05 [2025-04-02 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821123', 'tblTempUsageDetail_20' ) start [2025-04-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821123', 'tblTempUsageDetail_20' ) end [2025-04-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821123', 'tblTempVendorCDR_20' ) start [2025-04-02 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821123', 'tblTempVendorCDR_20' ) end [2025-04-02 22:08:18] Production.INFO: ProcessCDR(1,14821123,1,1,2) [2025-04-02 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821123', 'tblTempUsageDetail_20' ) start [2025-04-02 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821123', 'tblTempUsageDetail_20' ) end [2025-04-02 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:08:22] Production.INFO: ==15122== Releasing lock... [2025-04-02 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:08:22] Production.INFO: 42 MB #Memory Used# [2025-04-02 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:09:05 [end_date_ymd] => 2025-04-02 22:09:05 [RateCDR] => 1 ) [2025-04-02 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:09:05' and `end` < '2025-04-02 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:09:18] Production.INFO: count ==1821 [2025-04-02 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:09:05 - End Time 2025-04-02 22:09:05 [2025-04-02 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821128', 'tblTempUsageDetail_20' ) start [2025-04-02 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821128', 'tblTempUsageDetail_20' ) end [2025-04-02 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821128', 'tblTempVendorCDR_20' ) start [2025-04-02 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821128', 'tblTempVendorCDR_20' ) end [2025-04-02 22:09:19] Production.INFO: ProcessCDR(1,14821128,1,1,2) [2025-04-02 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821128', 'tblTempUsageDetail_20' ) start [2025-04-02 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821128', 'tblTempUsageDetail_20' ) end [2025-04-02 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:09:24] Production.INFO: ==15194== Releasing lock... [2025-04-02 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:09:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:10:06 [end_date_ymd] => 2025-04-02 22:10:06 [RateCDR] => 1 ) [2025-04-02 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:10:06' and `end` < '2025-04-02 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:10:19] Production.INFO: count ==1818 [2025-04-02 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:10:06 - End Time 2025-04-02 22:10:06 [2025-04-02 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821134', 'tblTempUsageDetail_20' ) start [2025-04-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821134', 'tblTempUsageDetail_20' ) end [2025-04-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821134', 'tblTempVendorCDR_20' ) start [2025-04-02 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821134', 'tblTempVendorCDR_20' ) end [2025-04-02 22:10:19] Production.INFO: ProcessCDR(1,14821134,1,1,2) [2025-04-02 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821134', 'tblTempUsageDetail_20' ) start [2025-04-02 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821134', 'tblTempUsageDetail_20' ) end [2025-04-02 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:10:24] Production.INFO: ==15273== Releasing lock... [2025-04-02 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:10:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:11:05 [end_date_ymd] => 2025-04-02 22:11:05 [RateCDR] => 1 ) [2025-04-02 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:11:05' and `end` < '2025-04-02 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:11:18] Production.INFO: count ==1791 [2025-04-02 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:11:05 - End Time 2025-04-02 22:11:05 [2025-04-02 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821139', 'tblTempUsageDetail_20' ) start [2025-04-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821139', 'tblTempUsageDetail_20' ) end [2025-04-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821139', 'tblTempVendorCDR_20' ) start [2025-04-02 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821139', 'tblTempVendorCDR_20' ) end [2025-04-02 22:11:19] Production.INFO: ProcessCDR(1,14821139,1,1,2) [2025-04-02 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821139', 'tblTempUsageDetail_20' ) start [2025-04-02 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821139', 'tblTempUsageDetail_20' ) end [2025-04-02 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:11:23] Production.INFO: ==15352== Releasing lock... [2025-04-02 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:11:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-02 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:12:05 [end_date_ymd] => 2025-04-02 22:12:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:12:05' and `end` < '2025-04-02 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-04-02 22:12:18] Production.INFO: count ==1793 [2025-04-02 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:12:05 - End Time 2025-04-02 22:12:05 [2025-04-02 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821144', 'tblTempUsageDetail_20' ) start [2025-04-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821144', 'tblTempUsageDetail_20' ) end [2025-04-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821144', 'tblTempVendorCDR_20' ) start [2025-04-02 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821144', 'tblTempVendorCDR_20' ) end [2025-04-02 22:12:19] Production.INFO: ProcessCDR(1,14821144,1,1,2) [2025-04-02 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821144', 'tblTempUsageDetail_20' ) start [2025-04-02 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821144', 'tblTempUsageDetail_20' ) end [2025-04-02 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:12:22] Production.INFO: ==15462== Releasing lock... [2025-04-02 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:12:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:13:05 [end_date_ymd] => 2025-04-02 22:13:05 [RateCDR] => 1 ) [2025-04-02 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:13:05' and `end` < '2025-04-02 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:13:18] Production.INFO: count ==1785 [2025-04-02 22:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:13:05 - End Time 2025-04-02 22:13:05 [2025-04-02 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821149', 'tblTempUsageDetail_20' ) start [2025-04-02 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821149', 'tblTempUsageDetail_20' ) end [2025-04-02 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821149', 'tblTempVendorCDR_20' ) start [2025-04-02 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821149', 'tblTempVendorCDR_20' ) end [2025-04-02 22:13:19] Production.INFO: ProcessCDR(1,14821149,1,1,2) [2025-04-02 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821149', 'tblTempUsageDetail_20' ) start [2025-04-02 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821149', 'tblTempUsageDetail_20' ) end [2025-04-02 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:13:22] Production.INFO: ==15535== Releasing lock... [2025-04-02 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:13:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-02 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:14:05 [end_date_ymd] => 2025-04-02 22:14:05 [RateCDR] => 1 ) [2025-04-02 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:14:05' and `end` < '2025-04-02 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:14:17] Production.INFO: count ==1783 [2025-04-02 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:14:05 - End Time 2025-04-02 22:14:05 [2025-04-02 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821154', 'tblTempUsageDetail_20' ) start [2025-04-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821154', 'tblTempUsageDetail_20' ) end [2025-04-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821154', 'tblTempVendorCDR_20' ) start [2025-04-02 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821154', 'tblTempVendorCDR_20' ) end [2025-04-02 22:14:18] Production.INFO: ProcessCDR(1,14821154,1,1,2) [2025-04-02 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821154', 'tblTempUsageDetail_20' ) start [2025-04-02 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821154', 'tblTempUsageDetail_20' ) end [2025-04-02 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:14:22] Production.INFO: ==15607== Releasing lock... [2025-04-02 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:14:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-02 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:15:05 [end_date_ymd] => 2025-04-02 22:15:05 [RateCDR] => 1 ) [2025-04-02 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:15:05' and `end` < '2025-04-02 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:15:18] Production.INFO: count ==1768 [2025-04-02 22:15:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:15:05 - End Time 2025-04-02 22:15:05 [2025-04-02 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821159', 'tblTempUsageDetail_20' ) start [2025-04-02 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821159', 'tblTempUsageDetail_20' ) end [2025-04-02 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821159', 'tblTempVendorCDR_20' ) start [2025-04-02 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821159', 'tblTempVendorCDR_20' ) end [2025-04-02 22:15:19] Production.INFO: ProcessCDR(1,14821159,1,1,2) [2025-04-02 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821159', 'tblTempUsageDetail_20' ) start [2025-04-02 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821159', 'tblTempUsageDetail_20' ) end [2025-04-02 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:15:22] Production.INFO: ==15682== Releasing lock... [2025-04-02 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:15:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-02 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:16:05 [end_date_ymd] => 2025-04-02 22:16:05 [RateCDR] => 1 ) [2025-04-02 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:16:05' and `end` < '2025-04-02 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:16:18] Production.INFO: count ==1762 [2025-04-02 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:16:05 - End Time 2025-04-02 22:16:05 [2025-04-02 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821164', 'tblTempUsageDetail_20' ) start [2025-04-02 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821164', 'tblTempUsageDetail_20' ) end [2025-04-02 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821164', 'tblTempVendorCDR_20' ) start [2025-04-02 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821164', 'tblTempVendorCDR_20' ) end [2025-04-02 22:16:18] Production.INFO: ProcessCDR(1,14821164,1,1,2) [2025-04-02 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821164', 'tblTempUsageDetail_20' ) start [2025-04-02 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821164', 'tblTempUsageDetail_20' ) end [2025-04-02 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:16:22] Production.INFO: ==15756== Releasing lock... [2025-04-02 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:16:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-02 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:17:05 [end_date_ymd] => 2025-04-02 22:17:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:17:05' and `end` < '2025-04-02 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-04-02 22:17:18] Production.INFO: count ==1733 [2025-04-02 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:17:05 - End Time 2025-04-02 22:17:05 [2025-04-02 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821169', 'tblTempUsageDetail_20' ) start [2025-04-02 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821169', 'tblTempUsageDetail_20' ) end [2025-04-02 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821169', 'tblTempVendorCDR_20' ) start [2025-04-02 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821169', 'tblTempVendorCDR_20' ) end [2025-04-02 22:17:19] Production.INFO: ProcessCDR(1,14821169,1,1,2) [2025-04-02 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821169', 'tblTempUsageDetail_20' ) start [2025-04-02 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821169', 'tblTempUsageDetail_20' ) end [2025-04-02 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:17:22] Production.INFO: ==15832== Releasing lock... [2025-04-02 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:17:22] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:18:05 [end_date_ymd] => 2025-04-02 22:18:05 [RateCDR] => 1 ) [2025-04-02 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:18:05' and `end` < '2025-04-02 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:18:18] Production.INFO: count ==1728 [2025-04-02 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:18:05 - End Time 2025-04-02 22:18:05 [2025-04-02 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821174', 'tblTempUsageDetail_20' ) start [2025-04-02 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821174', 'tblTempUsageDetail_20' ) end [2025-04-02 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821174', 'tblTempVendorCDR_20' ) start [2025-04-02 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821174', 'tblTempVendorCDR_20' ) end [2025-04-02 22:18:19] Production.INFO: ProcessCDR(1,14821174,1,1,2) [2025-04-02 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821174', 'tblTempUsageDetail_20' ) start [2025-04-02 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821174', 'tblTempUsageDetail_20' ) end [2025-04-02 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:18:22] Production.INFO: ==15904== Releasing lock... [2025-04-02 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:18:22] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:19:05 [end_date_ymd] => 2025-04-02 22:19:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:19:05' and `end` < '2025-04-02 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-04-02 22:19:18] Production.INFO: count ==1726 [2025-04-02 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:19:05 - End Time 2025-04-02 22:19:05 [2025-04-02 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821179', 'tblTempUsageDetail_20' ) start [2025-04-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821179', 'tblTempUsageDetail_20' ) end [2025-04-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821179', 'tblTempVendorCDR_20' ) start [2025-04-02 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821179', 'tblTempVendorCDR_20' ) end [2025-04-02 22:19:19] Production.INFO: ProcessCDR(1,14821179,1,1,2) [2025-04-02 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821179', 'tblTempUsageDetail_20' ) start [2025-04-02 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821179', 'tblTempUsageDetail_20' ) end [2025-04-02 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:19:22] Production.INFO: ==15979== Releasing lock... [2025-04-02 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:19:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-02 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:20:06 [end_date_ymd] => 2025-04-02 22:20:06 [RateCDR] => 1 ) [2025-04-02 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:20:06' and `end` < '2025-04-02 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:20:19] Production.INFO: count ==1725 [2025-04-02 22:20:20] Production.ERROR: pbx CDR StartTime 2025-04-02 19:20:06 - End Time 2025-04-02 22:20:06 [2025-04-02 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821185', 'tblTempUsageDetail_20' ) start [2025-04-02 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821185', 'tblTempUsageDetail_20' ) end [2025-04-02 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821185', 'tblTempVendorCDR_20' ) start [2025-04-02 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821185', 'tblTempVendorCDR_20' ) end [2025-04-02 22:20:20] Production.INFO: ProcessCDR(1,14821185,1,1,2) [2025-04-02 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821185', 'tblTempUsageDetail_20' ) start [2025-04-02 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821185', 'tblTempUsageDetail_20' ) end [2025-04-02 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:20:23] Production.INFO: ==16054== Releasing lock... [2025-04-02 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:20:23] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:21:05 [end_date_ymd] => 2025-04-02 22:21:05 [RateCDR] => 1 ) [2025-04-02 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:21:05' and `end` < '2025-04-02 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:21:18] Production.INFO: count ==1685 [2025-04-02 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:21:05 - End Time 2025-04-02 22:21:05 [2025-04-02 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821190', 'tblTempUsageDetail_20' ) start [2025-04-02 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821190', 'tblTempUsageDetail_20' ) end [2025-04-02 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821190', 'tblTempVendorCDR_20' ) start [2025-04-02 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821190', 'tblTempVendorCDR_20' ) end [2025-04-02 22:21:19] Production.INFO: ProcessCDR(1,14821190,1,1,2) [2025-04-02 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821190', 'tblTempUsageDetail_20' ) start [2025-04-02 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821190', 'tblTempUsageDetail_20' ) end [2025-04-02 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:21:22] Production.INFO: ==16132== Releasing lock... [2025-04-02 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:21:22] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:22:06 [end_date_ymd] => 2025-04-02 22:22:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:22:06' and `end` < '2025-04-02 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-04-02 22:22:18] Production.INFO: count ==1687 [2025-04-02 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:22:06 - End Time 2025-04-02 22:22:06 [2025-04-02 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821195', 'tblTempUsageDetail_20' ) start [2025-04-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821195', 'tblTempUsageDetail_20' ) end [2025-04-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821195', 'tblTempVendorCDR_20' ) start [2025-04-02 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821195', 'tblTempVendorCDR_20' ) end [2025-04-02 22:22:19] Production.INFO: ProcessCDR(1,14821195,1,1,2) [2025-04-02 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821195', 'tblTempUsageDetail_20' ) start [2025-04-02 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821195', 'tblTempUsageDetail_20' ) end [2025-04-02 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:22:23] Production.INFO: ==16205== Releasing lock... [2025-04-02 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:22:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-02 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:23:05 [end_date_ymd] => 2025-04-02 22:23:05 [RateCDR] => 1 ) [2025-04-02 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:23:05' and `end` < '2025-04-02 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:23:18] Production.INFO: count ==1693 [2025-04-02 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:23:05 - End Time 2025-04-02 22:23:05 [2025-04-02 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821200', 'tblTempUsageDetail_20' ) start [2025-04-02 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821200', 'tblTempUsageDetail_20' ) end [2025-04-02 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821200', 'tblTempVendorCDR_20' ) start [2025-04-02 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821200', 'tblTempVendorCDR_20' ) end [2025-04-02 22:23:19] Production.INFO: ProcessCDR(1,14821200,1,1,2) [2025-04-02 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821200', 'tblTempUsageDetail_20' ) start [2025-04-02 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821200', 'tblTempUsageDetail_20' ) end [2025-04-02 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:23:22] Production.INFO: ==16277== Releasing lock... [2025-04-02 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:23:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-02 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:24:06 [end_date_ymd] => 2025-04-02 22:24:06 [RateCDR] => 1 ) [2025-04-02 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:24:06' and `end` < '2025-04-02 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:24:19] Production.INFO: count ==1690 [2025-04-02 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:24:06 - End Time 2025-04-02 22:24:06 [2025-04-02 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821205', 'tblTempUsageDetail_20' ) start [2025-04-02 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821205', 'tblTempUsageDetail_20' ) end [2025-04-02 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821205', 'tblTempVendorCDR_20' ) start [2025-04-02 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821205', 'tblTempVendorCDR_20' ) end [2025-04-02 22:24:19] Production.INFO: ProcessCDR(1,14821205,1,1,2) [2025-04-02 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821205', 'tblTempUsageDetail_20' ) start [2025-04-02 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821205', 'tblTempUsageDetail_20' ) end [2025-04-02 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:24:23] Production.INFO: ==16350== Releasing lock... [2025-04-02 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:24:23] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:25:05 [end_date_ymd] => 2025-04-02 22:25:05 [RateCDR] => 1 ) [2025-04-02 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:25:05' and `end` < '2025-04-02 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:25:18] Production.INFO: count ==1670 [2025-04-02 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:25:05 - End Time 2025-04-02 22:25:05 [2025-04-02 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821210', 'tblTempUsageDetail_20' ) start [2025-04-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821210', 'tblTempUsageDetail_20' ) end [2025-04-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821210', 'tblTempVendorCDR_20' ) start [2025-04-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821210', 'tblTempVendorCDR_20' ) end [2025-04-02 22:25:18] Production.INFO: ProcessCDR(1,14821210,1,1,2) [2025-04-02 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821210', 'tblTempUsageDetail_20' ) start [2025-04-02 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821210', 'tblTempUsageDetail_20' ) end [2025-04-02 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:25:22] Production.INFO: ==16421== Releasing lock... [2025-04-02 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:25:22] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:26:05 [end_date_ymd] => 2025-04-02 22:26:05 [RateCDR] => 1 ) [2025-04-02 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:26:05' and `end` < '2025-04-02 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:26:18] Production.INFO: count ==1669 [2025-04-02 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:26:05 - End Time 2025-04-02 22:26:05 [2025-04-02 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821215', 'tblTempUsageDetail_20' ) start [2025-04-02 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821215', 'tblTempUsageDetail_20' ) end [2025-04-02 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821215', 'tblTempVendorCDR_20' ) start [2025-04-02 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821215', 'tblTempVendorCDR_20' ) end [2025-04-02 22:26:19] Production.INFO: ProcessCDR(1,14821215,1,1,2) [2025-04-02 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821215', 'tblTempUsageDetail_20' ) start [2025-04-02 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821215', 'tblTempUsageDetail_20' ) end [2025-04-02 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:26:23] Production.INFO: ==16493== Releasing lock... [2025-04-02 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-02 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:27:05 [end_date_ymd] => 2025-04-02 22:27:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:27:05' and `end` < '2025-04-02 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-04-02 22:27:18] Production.INFO: count ==1658 [2025-04-02 22:27:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:27:05 - End Time 2025-04-02 22:27:05 [2025-04-02 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821220', 'tblTempUsageDetail_20' ) start [2025-04-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821220', 'tblTempUsageDetail_20' ) end [2025-04-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821220', 'tblTempVendorCDR_20' ) start [2025-04-02 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821220', 'tblTempVendorCDR_20' ) end [2025-04-02 22:27:19] Production.INFO: ProcessCDR(1,14821220,1,1,2) [2025-04-02 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821220', 'tblTempUsageDetail_20' ) start [2025-04-02 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821220', 'tblTempUsageDetail_20' ) end [2025-04-02 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:27:22] Production.INFO: ==16604== Releasing lock... [2025-04-02 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-02 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:28:05 [end_date_ymd] => 2025-04-02 22:28:05 [RateCDR] => 1 ) [2025-04-02 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:28:05' and `end` < '2025-04-02 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:28:18] Production.INFO: count ==1655 [2025-04-02 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:28:05 - End Time 2025-04-02 22:28:05 [2025-04-02 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821225', 'tblTempUsageDetail_20' ) start [2025-04-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821225', 'tblTempUsageDetail_20' ) end [2025-04-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821225', 'tblTempVendorCDR_20' ) start [2025-04-02 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821225', 'tblTempVendorCDR_20' ) end [2025-04-02 22:28:19] Production.INFO: ProcessCDR(1,14821225,1,1,2) [2025-04-02 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821225', 'tblTempUsageDetail_20' ) start [2025-04-02 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821225', 'tblTempUsageDetail_20' ) end [2025-04-02 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:28:22] Production.INFO: ==16678== Releasing lock... [2025-04-02 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:28:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-02 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:29:05 [end_date_ymd] => 2025-04-02 22:29:05 [RateCDR] => 1 ) [2025-04-02 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:29:05' and `end` < '2025-04-02 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:29:18] Production.INFO: count ==1657 [2025-04-02 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:29:05 - End Time 2025-04-02 22:29:05 [2025-04-02 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821230', 'tblTempUsageDetail_20' ) start [2025-04-02 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821230', 'tblTempUsageDetail_20' ) end [2025-04-02 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821230', 'tblTempVendorCDR_20' ) start [2025-04-02 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821230', 'tblTempVendorCDR_20' ) end [2025-04-02 22:29:19] Production.INFO: ProcessCDR(1,14821230,1,1,2) [2025-04-02 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821230', 'tblTempUsageDetail_20' ) start [2025-04-02 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821230', 'tblTempUsageDetail_20' ) end [2025-04-02 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:29:22] Production.INFO: ==16751== Releasing lock... [2025-04-02 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:29:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-02 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:30:06 [end_date_ymd] => 2025-04-02 22:30:06 [RateCDR] => 1 ) [2025-04-02 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:30:06' and `end` < '2025-04-02 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:30:19] Production.INFO: count ==1656 [2025-04-02 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:30:06 - End Time 2025-04-02 22:30:06 [2025-04-02 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821235', 'tblTempUsageDetail_20' ) start [2025-04-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821235', 'tblTempUsageDetail_20' ) end [2025-04-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821235', 'tblTempVendorCDR_20' ) start [2025-04-02 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821235', 'tblTempVendorCDR_20' ) end [2025-04-02 22:30:20] Production.INFO: ProcessCDR(1,14821235,1,1,2) [2025-04-02 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821235', 'tblTempUsageDetail_20' ) start [2025-04-02 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821235', 'tblTempUsageDetail_20' ) end [2025-04-02 22:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:30:25] Production.INFO: ==16832== Releasing lock... [2025-04-02 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:30:25] Production.INFO: 41 MB #Memory Used# [2025-04-02 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:31:05 [end_date_ymd] => 2025-04-02 22:31:05 [RateCDR] => 1 ) [2025-04-02 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:31:05' and `end` < '2025-04-02 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:31:17] Production.INFO: count ==1620 [2025-04-02 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:31:05 - End Time 2025-04-02 22:31:05 [2025-04-02 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821241', 'tblTempUsageDetail_20' ) start [2025-04-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821241', 'tblTempUsageDetail_20' ) end [2025-04-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821241', 'tblTempVendorCDR_20' ) start [2025-04-02 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821241', 'tblTempVendorCDR_20' ) end [2025-04-02 22:31:18] Production.INFO: ProcessCDR(1,14821241,1,1,2) [2025-04-02 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821241', 'tblTempUsageDetail_20' ) start [2025-04-02 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821241', 'tblTempUsageDetail_20' ) end [2025-04-02 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:31:23] Production.INFO: ==16907== Releasing lock... [2025-04-02 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:31:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-02 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:32:05 [end_date_ymd] => 2025-04-02 22:32:05 [RateCDR] => 1 ) [2025-04-02 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:32:05' and `end` < '2025-04-02 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:32:18] Production.INFO: count ==1617 [2025-04-02 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:32:05 - End Time 2025-04-02 22:32:05 [2025-04-02 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821246', 'tblTempUsageDetail_20' ) start [2025-04-02 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821246', 'tblTempUsageDetail_20' ) end [2025-04-02 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821246', 'tblTempVendorCDR_20' ) start [2025-04-02 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821246', 'tblTempVendorCDR_20' ) end [2025-04-02 22:32:19] Production.INFO: ProcessCDR(1,14821246,1,1,2) [2025-04-02 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821246', 'tblTempUsageDetail_20' ) start [2025-04-02 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821246', 'tblTempUsageDetail_20' ) end [2025-04-02 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:32:23] Production.INFO: ==16987== Releasing lock... [2025-04-02 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:32:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-02 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:33:05 [end_date_ymd] => 2025-04-02 22:33:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:33:05' and `end` < '2025-04-02 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-04-02 22:33:18] Production.INFO: count ==1613 [2025-04-02 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:33:05 - End Time 2025-04-02 22:33:05 [2025-04-02 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821251', 'tblTempUsageDetail_20' ) start [2025-04-02 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821251', 'tblTempUsageDetail_20' ) end [2025-04-02 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821251', 'tblTempVendorCDR_20' ) start [2025-04-02 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821251', 'tblTempVendorCDR_20' ) end [2025-04-02 22:33:18] Production.INFO: ProcessCDR(1,14821251,1,1,2) [2025-04-02 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821251', 'tblTempUsageDetail_20' ) start [2025-04-02 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821251', 'tblTempUsageDetail_20' ) end [2025-04-02 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:33:22] Production.INFO: ==17057== Releasing lock... [2025-04-02 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:33:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-02 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:34:06 [end_date_ymd] => 2025-04-02 22:34:06 [RateCDR] => 1 ) [2025-04-02 22:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:34:06' and `end` < '2025-04-02 22:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:34:19] Production.INFO: count ==1607 [2025-04-02 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:34:06 - End Time 2025-04-02 22:34:06 [2025-04-02 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821256', 'tblTempUsageDetail_20' ) start [2025-04-02 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821256', 'tblTempUsageDetail_20' ) end [2025-04-02 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821256', 'tblTempVendorCDR_20' ) start [2025-04-02 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821256', 'tblTempVendorCDR_20' ) end [2025-04-02 22:34:19] Production.INFO: ProcessCDR(1,14821256,1,1,2) [2025-04-02 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821256', 'tblTempUsageDetail_20' ) start [2025-04-02 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821256', 'tblTempUsageDetail_20' ) end [2025-04-02 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:34:23] Production.INFO: ==17128== Releasing lock... [2025-04-02 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:34:23] Production.INFO: 40 MB #Memory Used# [2025-04-02 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:35:05 [end_date_ymd] => 2025-04-02 22:35:05 [RateCDR] => 1 ) [2025-04-02 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:35:05' and `end` < '2025-04-02 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:35:18] Production.INFO: count ==1606 [2025-04-02 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:35:05 - End Time 2025-04-02 22:35:05 [2025-04-02 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821261', 'tblTempUsageDetail_20' ) start [2025-04-02 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821261', 'tblTempUsageDetail_20' ) end [2025-04-02 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821261', 'tblTempVendorCDR_20' ) start [2025-04-02 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821261', 'tblTempVendorCDR_20' ) end [2025-04-02 22:35:19] Production.INFO: ProcessCDR(1,14821261,1,1,2) [2025-04-02 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821261', 'tblTempUsageDetail_20' ) start [2025-04-02 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821261', 'tblTempUsageDetail_20' ) end [2025-04-02 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:35:22] Production.INFO: ==17199== Releasing lock... [2025-04-02 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:35:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:36:06 [end_date_ymd] => 2025-04-02 22:36:06 [RateCDR] => 1 ) [2025-04-02 22:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:36:06' and `end` < '2025-04-02 22:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:36:19] Production.INFO: count ==1600 [2025-04-02 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:36:06 - End Time 2025-04-02 22:36:06 [2025-04-02 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821266', 'tblTempUsageDetail_20' ) start [2025-04-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821266', 'tblTempUsageDetail_20' ) end [2025-04-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821266', 'tblTempVendorCDR_20' ) start [2025-04-02 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821266', 'tblTempVendorCDR_20' ) end [2025-04-02 22:36:19] Production.INFO: ProcessCDR(1,14821266,1,1,2) [2025-04-02 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821266', 'tblTempUsageDetail_20' ) start [2025-04-02 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821266', 'tblTempUsageDetail_20' ) end [2025-04-02 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:36:23] Production.INFO: ==17269== Releasing lock... [2025-04-02 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:36:23] Production.INFO: 40 MB #Memory Used# [2025-04-02 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:37:05 [end_date_ymd] => 2025-04-02 22:37:05 [RateCDR] => 1 ) [2025-04-02 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:37:05' and `end` < '2025-04-02 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:37:18] Production.INFO: count ==1598 [2025-04-02 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:37:05 - End Time 2025-04-02 22:37:05 [2025-04-02 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821271', 'tblTempUsageDetail_20' ) start [2025-04-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821271', 'tblTempUsageDetail_20' ) end [2025-04-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821271', 'tblTempVendorCDR_20' ) start [2025-04-02 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821271', 'tblTempVendorCDR_20' ) end [2025-04-02 22:37:19] Production.INFO: ProcessCDR(1,14821271,1,1,2) [2025-04-02 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821271', 'tblTempUsageDetail_20' ) start [2025-04-02 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821271', 'tblTempUsageDetail_20' ) end [2025-04-02 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:37:22] Production.INFO: ==17338== Releasing lock... [2025-04-02 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:37:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-02 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:38:06 [end_date_ymd] => 2025-04-02 22:38:06 [RateCDR] => 1 ) [2025-04-02 22:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:38:06' and `end` < '2025-04-02 22:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:38:18] Production.INFO: count ==1606 [2025-04-02 22:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:38:06 - End Time 2025-04-02 22:38:06 [2025-04-02 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821276', 'tblTempUsageDetail_20' ) start [2025-04-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821276', 'tblTempUsageDetail_20' ) end [2025-04-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821276', 'tblTempVendorCDR_20' ) start [2025-04-02 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821276', 'tblTempVendorCDR_20' ) end [2025-04-02 22:38:19] Production.INFO: ProcessCDR(1,14821276,1,1,2) [2025-04-02 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821276', 'tblTempUsageDetail_20' ) start [2025-04-02 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821276', 'tblTempUsageDetail_20' ) end [2025-04-02 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:38:23] Production.INFO: ==17409== Releasing lock... [2025-04-02 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:38:23] Production.INFO: 40 MB #Memory Used# [2025-04-02 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:39:05 [end_date_ymd] => 2025-04-02 22:39:05 [RateCDR] => 1 ) [2025-04-02 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:39:05' and `end` < '2025-04-02 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:39:18] Production.INFO: count ==1612 [2025-04-02 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:39:05 - End Time 2025-04-02 22:39:05 [2025-04-02 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821281', 'tblTempUsageDetail_20' ) start [2025-04-02 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821281', 'tblTempUsageDetail_20' ) end [2025-04-02 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821281', 'tblTempVendorCDR_20' ) start [2025-04-02 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821281', 'tblTempVendorCDR_20' ) end [2025-04-02 22:39:19] Production.INFO: ProcessCDR(1,14821281,1,1,2) [2025-04-02 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821281', 'tblTempUsageDetail_20' ) start [2025-04-02 22:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821281', 'tblTempUsageDetail_20' ) end [2025-04-02 22:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:39:24] Production.INFO: ==17480== Releasing lock... [2025-04-02 22:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:39:24] Production.INFO: 40 MB #Memory Used# [2025-04-02 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:40:06 [end_date_ymd] => 2025-04-02 22:40:06 [RateCDR] => 1 ) [2025-04-02 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:40:06' and `end` < '2025-04-02 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:40:19] Production.INFO: count ==1608 [2025-04-02 22:40:20] Production.ERROR: pbx CDR StartTime 2025-04-02 19:40:06 - End Time 2025-04-02 22:40:06 [2025-04-02 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821286', 'tblTempUsageDetail_20' ) start [2025-04-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821286', 'tblTempUsageDetail_20' ) end [2025-04-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821286', 'tblTempVendorCDR_20' ) start [2025-04-02 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821286', 'tblTempVendorCDR_20' ) end [2025-04-02 22:40:20] Production.INFO: ProcessCDR(1,14821286,1,1,2) [2025-04-02 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821286', 'tblTempUsageDetail_20' ) start [2025-04-02 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821286', 'tblTempUsageDetail_20' ) end [2025-04-02 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:40:23] Production.INFO: ==17556== Releasing lock... [2025-04-02 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:40:23] Production.INFO: 40 MB #Memory Used# [2025-04-02 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:41:05 [end_date_ymd] => 2025-04-02 22:41:05 [RateCDR] => 1 ) [2025-04-02 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:41:05' and `end` < '2025-04-02 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:41:18] Production.INFO: count ==1549 [2025-04-02 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:41:05 - End Time 2025-04-02 22:41:05 [2025-04-02 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821292', 'tblTempUsageDetail_20' ) start [2025-04-02 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821292', 'tblTempUsageDetail_20' ) end [2025-04-02 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821292', 'tblTempVendorCDR_20' ) start [2025-04-02 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821292', 'tblTempVendorCDR_20' ) end [2025-04-02 22:41:19] Production.INFO: ProcessCDR(1,14821292,1,1,2) [2025-04-02 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821292', 'tblTempUsageDetail_20' ) start [2025-04-02 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821292', 'tblTempUsageDetail_20' ) end [2025-04-02 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:41:24] Production.INFO: ==17630== Releasing lock... [2025-04-02 22:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:41:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:42:05 [end_date_ymd] => 2025-04-02 22:42:05 [RateCDR] => 1 ) [2025-04-02 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:42:05' and `end` < '2025-04-02 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:42:18] Production.INFO: count ==1547 [2025-04-02 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:42:05 - End Time 2025-04-02 22:42:05 [2025-04-02 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821297', 'tblTempUsageDetail_20' ) start [2025-04-02 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821297', 'tblTempUsageDetail_20' ) end [2025-04-02 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821297', 'tblTempVendorCDR_20' ) start [2025-04-02 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821297', 'tblTempVendorCDR_20' ) end [2025-04-02 22:42:19] Production.INFO: ProcessCDR(1,14821297,1,1,2) [2025-04-02 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821297', 'tblTempUsageDetail_20' ) start [2025-04-02 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821297', 'tblTempUsageDetail_20' ) end [2025-04-02 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:42:24] Production.INFO: ==17740== Releasing lock... [2025-04-02 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:42:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:43:05 [end_date_ymd] => 2025-04-02 22:43:05 [RateCDR] => 1 ) [2025-04-02 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:43:05' and `end` < '2025-04-02 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:43:18] Production.INFO: count ==1551 [2025-04-02 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:43:05 - End Time 2025-04-02 22:43:05 [2025-04-02 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821302', 'tblTempUsageDetail_20' ) start [2025-04-02 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821302', 'tblTempUsageDetail_20' ) end [2025-04-02 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821302', 'tblTempVendorCDR_20' ) start [2025-04-02 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821302', 'tblTempVendorCDR_20' ) end [2025-04-02 22:43:18] Production.INFO: ProcessCDR(1,14821302,1,1,2) [2025-04-02 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821302', 'tblTempUsageDetail_20' ) start [2025-04-02 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821302', 'tblTempUsageDetail_20' ) end [2025-04-02 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:43:22] Production.INFO: ==17809== Releasing lock... [2025-04-02 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:43:22] Production.INFO: 40 MB #Memory Used# [2025-04-02 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:44:05 [end_date_ymd] => 2025-04-02 22:44:05 [RateCDR] => 1 ) [2025-04-02 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:44:05' and `end` < '2025-04-02 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:44:18] Production.INFO: count ==1546 [2025-04-02 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:44:05 - End Time 2025-04-02 22:44:05 [2025-04-02 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821307', 'tblTempUsageDetail_20' ) start [2025-04-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821307', 'tblTempUsageDetail_20' ) end [2025-04-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821307', 'tblTempVendorCDR_20' ) start [2025-04-02 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821307', 'tblTempVendorCDR_20' ) end [2025-04-02 22:44:19] Production.INFO: ProcessCDR(1,14821307,1,1,2) [2025-04-02 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821307', 'tblTempUsageDetail_20' ) start [2025-04-02 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821307', 'tblTempUsageDetail_20' ) end [2025-04-02 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:44:22] Production.INFO: ==17879== Releasing lock... [2025-04-02 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:45:05 [end_date_ymd] => 2025-04-02 22:45:05 [RateCDR] => 1 ) [2025-04-02 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:45:05' and `end` < '2025-04-02 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:45:18] Production.INFO: count ==1549 [2025-04-02 22:45:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:45:05 - End Time 2025-04-02 22:45:05 [2025-04-02 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821312', 'tblTempUsageDetail_20' ) start [2025-04-02 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821312', 'tblTempUsageDetail_20' ) end [2025-04-02 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821312', 'tblTempVendorCDR_20' ) start [2025-04-02 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821312', 'tblTempVendorCDR_20' ) end [2025-04-02 22:45:19] Production.INFO: ProcessCDR(1,14821312,1,1,2) [2025-04-02 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821312', 'tblTempUsageDetail_20' ) start [2025-04-02 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821312', 'tblTempUsageDetail_20' ) end [2025-04-02 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:45:22] Production.INFO: ==17950== Releasing lock... [2025-04-02 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:46:05 [end_date_ymd] => 2025-04-02 22:46:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:46:05' and `end` < '2025-04-02 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-04-02 22:46:18] Production.INFO: count ==1548 [2025-04-02 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:46:05 - End Time 2025-04-02 22:46:05 [2025-04-02 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821317', 'tblTempUsageDetail_20' ) start [2025-04-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821317', 'tblTempUsageDetail_20' ) end [2025-04-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821317', 'tblTempVendorCDR_20' ) start [2025-04-02 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821317', 'tblTempVendorCDR_20' ) end [2025-04-02 22:46:19] Production.INFO: ProcessCDR(1,14821317,1,1,2) [2025-04-02 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821317', 'tblTempUsageDetail_20' ) start [2025-04-02 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821317', 'tblTempUsageDetail_20' ) end [2025-04-02 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:46:22] Production.INFO: ==18027== Releasing lock... [2025-04-02 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:47:06 [end_date_ymd] => 2025-04-02 22:47:06 [RateCDR] => 1 ) [2025-04-02 22:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:47:06' and `end` < '2025-04-02 22:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:47:19] Production.INFO: count ==1554 [2025-04-02 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:47:06 - End Time 2025-04-02 22:47:06 [2025-04-02 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821322', 'tblTempUsageDetail_20' ) start [2025-04-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821322', 'tblTempUsageDetail_20' ) end [2025-04-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821322', 'tblTempVendorCDR_20' ) start [2025-04-02 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821322', 'tblTempVendorCDR_20' ) end [2025-04-02 22:47:19] Production.INFO: ProcessCDR(1,14821322,1,1,2) [2025-04-02 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821322', 'tblTempUsageDetail_20' ) start [2025-04-02 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821322', 'tblTempUsageDetail_20' ) end [2025-04-02 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:47:24] Production.INFO: ==18097== Releasing lock... [2025-04-02 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:47:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:48:05 [end_date_ymd] => 2025-04-02 22:48:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:48:05' and `end` < '2025-04-02 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-04-02 22:48:18] Production.INFO: count ==1547 [2025-04-02 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:48:05 - End Time 2025-04-02 22:48:05 [2025-04-02 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821327', 'tblTempUsageDetail_20' ) start [2025-04-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821327', 'tblTempUsageDetail_20' ) end [2025-04-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821327', 'tblTempVendorCDR_20' ) start [2025-04-02 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821327', 'tblTempVendorCDR_20' ) end [2025-04-02 22:48:18] Production.INFO: ProcessCDR(1,14821327,1,1,2) [2025-04-02 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821327', 'tblTempUsageDetail_20' ) start [2025-04-02 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821327', 'tblTempUsageDetail_20' ) end [2025-04-02 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:48:23] Production.INFO: ==18167== Releasing lock... [2025-04-02 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:49:05 [end_date_ymd] => 2025-04-02 22:49:05 [RateCDR] => 1 ) [2025-04-02 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:49:05' and `end` < '2025-04-02 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:49:18] Production.INFO: count ==1524 [2025-04-02 22:49:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:49:05 - End Time 2025-04-02 22:49:05 [2025-04-02 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821332', 'tblTempUsageDetail_20' ) start [2025-04-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821332', 'tblTempUsageDetail_20' ) end [2025-04-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821332', 'tblTempVendorCDR_20' ) start [2025-04-02 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821332', 'tblTempVendorCDR_20' ) end [2025-04-02 22:49:19] Production.INFO: ProcessCDR(1,14821332,1,1,2) [2025-04-02 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821332', 'tblTempUsageDetail_20' ) start [2025-04-02 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821332', 'tblTempUsageDetail_20' ) end [2025-04-02 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:49:24] Production.INFO: ==18245== Releasing lock... [2025-04-02 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:49:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-02 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:50:05 [end_date_ymd] => 2025-04-02 22:50:05 [RateCDR] => 1 ) [2025-04-02 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:50:05' and `end` < '2025-04-02 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:50:18] Production.INFO: count ==1501 [2025-04-02 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:50:05 - End Time 2025-04-02 22:50:05 [2025-04-02 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821337', 'tblTempUsageDetail_20' ) start [2025-04-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821337', 'tblTempUsageDetail_20' ) end [2025-04-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821337', 'tblTempVendorCDR_20' ) start [2025-04-02 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821337', 'tblTempVendorCDR_20' ) end [2025-04-02 22:50:19] Production.INFO: ProcessCDR(1,14821337,1,1,2) [2025-04-02 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821337', 'tblTempUsageDetail_20' ) start [2025-04-02 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821337', 'tblTempUsageDetail_20' ) end [2025-04-02 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:50:22] Production.INFO: ==18320== Releasing lock... [2025-04-02 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:50:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-02 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:51:06 [end_date_ymd] => 2025-04-02 22:51:06 [RateCDR] => 1 ) [2025-04-02 22:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:51:06' and `end` < '2025-04-02 22:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:51:19] Production.INFO: count ==1461 [2025-04-02 22:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:51:06 - End Time 2025-04-02 22:51:06 [2025-04-02 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821343', 'tblTempUsageDetail_20' ) start [2025-04-02 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821343', 'tblTempUsageDetail_20' ) end [2025-04-02 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821343', 'tblTempVendorCDR_20' ) start [2025-04-02 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821343', 'tblTempVendorCDR_20' ) end [2025-04-02 22:51:19] Production.INFO: ProcessCDR(1,14821343,1,1,2) [2025-04-02 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821343', 'tblTempUsageDetail_20' ) start [2025-04-02 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821343', 'tblTempUsageDetail_20' ) end [2025-04-02 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:51:23] Production.INFO: ==18394== Releasing lock... [2025-04-02 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:51:23] Production.INFO: 39 MB #Memory Used# [2025-04-02 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:52:06 [end_date_ymd] => 2025-04-02 22:52:06 [RateCDR] => 1 ) [2025-04-02 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:52:06' and `end` < '2025-04-02 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:52:18] Production.INFO: count ==1450 [2025-04-02 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:52:06 - End Time 2025-04-02 22:52:06 [2025-04-02 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821348', 'tblTempUsageDetail_20' ) start [2025-04-02 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821348', 'tblTempUsageDetail_20' ) end [2025-04-02 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821348', 'tblTempVendorCDR_20' ) start [2025-04-02 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821348', 'tblTempVendorCDR_20' ) end [2025-04-02 22:52:19] Production.INFO: ProcessCDR(1,14821348,1,1,2) [2025-04-02 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821348', 'tblTempUsageDetail_20' ) start [2025-04-02 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821348', 'tblTempUsageDetail_20' ) end [2025-04-02 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:52:22] Production.INFO: ==18463== Releasing lock... [2025-04-02 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-02 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:53:06 [end_date_ymd] => 2025-04-02 22:53:06 [RateCDR] => 1 ) [2025-04-02 22:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:53:06' and `end` < '2025-04-02 22:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:53:18] Production.INFO: count ==1447 [2025-04-02 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:53:06 - End Time 2025-04-02 22:53:06 [2025-04-02 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821353', 'tblTempUsageDetail_20' ) start [2025-04-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821353', 'tblTempUsageDetail_20' ) end [2025-04-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821353', 'tblTempVendorCDR_20' ) start [2025-04-02 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821353', 'tblTempVendorCDR_20' ) end [2025-04-02 22:53:19] Production.INFO: ProcessCDR(1,14821353,1,1,2) [2025-04-02 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821353', 'tblTempUsageDetail_20' ) start [2025-04-02 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821353', 'tblTempUsageDetail_20' ) end [2025-04-02 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:53:22] Production.INFO: ==18535== Releasing lock... [2025-04-02 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:53:22] Production.INFO: 39 MB #Memory Used# [2025-04-02 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:54:05 [end_date_ymd] => 2025-04-02 22:54:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 19:54:05' and `end` < '2025-04-02 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-04-02 22:54:18] Production.INFO: count ==1440 [2025-04-02 22:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:54:05 - End Time 2025-04-02 22:54:05 [2025-04-02 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821358', 'tblTempUsageDetail_20' ) start [2025-04-02 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821358', 'tblTempUsageDetail_20' ) end [2025-04-02 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821358', 'tblTempVendorCDR_20' ) start [2025-04-02 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821358', 'tblTempVendorCDR_20' ) end [2025-04-02 22:54:19] Production.INFO: ProcessCDR(1,14821358,1,1,2) [2025-04-02 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821358', 'tblTempUsageDetail_20' ) start [2025-04-02 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821358', 'tblTempUsageDetail_20' ) end [2025-04-02 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:54:22] Production.INFO: ==18605== Releasing lock... [2025-04-02 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:55:05 [end_date_ymd] => 2025-04-02 22:55:05 [RateCDR] => 1 ) [2025-04-02 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:55:05' and `end` < '2025-04-02 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:55:18] Production.INFO: count ==1411 [2025-04-02 22:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:55:05 - End Time 2025-04-02 22:55:05 [2025-04-02 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821363', 'tblTempUsageDetail_20' ) start [2025-04-02 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821363', 'tblTempUsageDetail_20' ) end [2025-04-02 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821363', 'tblTempVendorCDR_20' ) start [2025-04-02 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821363', 'tblTempVendorCDR_20' ) end [2025-04-02 22:55:19] Production.INFO: ProcessCDR(1,14821363,1,1,2) [2025-04-02 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821363', 'tblTempUsageDetail_20' ) start [2025-04-02 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821363', 'tblTempUsageDetail_20' ) end [2025-04-02 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:55:22] Production.INFO: ==18680== Releasing lock... [2025-04-02 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:55:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-02 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:56:05 [end_date_ymd] => 2025-04-02 22:56:05 [RateCDR] => 1 ) [2025-04-02 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:56:05' and `end` < '2025-04-02 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:56:18] Production.INFO: count ==1396 [2025-04-02 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-02 19:56:05 - End Time 2025-04-02 22:56:05 [2025-04-02 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821368', 'tblTempUsageDetail_20' ) start [2025-04-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821368', 'tblTempUsageDetail_20' ) end [2025-04-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821368', 'tblTempVendorCDR_20' ) start [2025-04-02 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821368', 'tblTempVendorCDR_20' ) end [2025-04-02 22:56:18] Production.INFO: ProcessCDR(1,14821368,1,1,2) [2025-04-02 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821368', 'tblTempUsageDetail_20' ) start [2025-04-02 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821368', 'tblTempUsageDetail_20' ) end [2025-04-02 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:56:22] Production.INFO: ==18759== Releasing lock... [2025-04-02 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:56:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-02 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:57:06 [end_date_ymd] => 2025-04-02 22:57:06 [RateCDR] => 1 ) [2025-04-02 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:57:06' and `end` < '2025-04-02 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:57:18] Production.INFO: count ==1402 [2025-04-02 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:57:06 - End Time 2025-04-02 22:57:06 [2025-04-02 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821373', 'tblTempUsageDetail_20' ) start [2025-04-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821373', 'tblTempUsageDetail_20' ) end [2025-04-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821373', 'tblTempVendorCDR_20' ) start [2025-04-02 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821373', 'tblTempVendorCDR_20' ) end [2025-04-02 22:57:19] Production.INFO: ProcessCDR(1,14821373,1,1,2) [2025-04-02 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821373', 'tblTempUsageDetail_20' ) start [2025-04-02 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821373', 'tblTempUsageDetail_20' ) end [2025-04-02 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:57:22] Production.INFO: ==18848== Releasing lock... [2025-04-02 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:57:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-02 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:58:05 [end_date_ymd] => 2025-04-02 22:58:05 [RateCDR] => 1 ) [2025-04-02 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:58:05' and `end` < '2025-04-02 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:58:18] Production.INFO: count ==1382 [2025-04-02 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:58:05 - End Time 2025-04-02 22:58:05 [2025-04-02 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821378', 'tblTempUsageDetail_20' ) start [2025-04-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821378', 'tblTempUsageDetail_20' ) end [2025-04-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821378', 'tblTempVendorCDR_20' ) start [2025-04-02 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821378', 'tblTempVendorCDR_20' ) end [2025-04-02 22:58:19] Production.INFO: ProcessCDR(1,14821378,1,1,2) [2025-04-02 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821378', 'tblTempUsageDetail_20' ) start [2025-04-02 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821378', 'tblTempUsageDetail_20' ) end [2025-04-02 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:58:22] Production.INFO: ==18966== Releasing lock... [2025-04-02 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:58:22] Production.INFO: 39 MB #Memory Used# [2025-04-02 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 19:59:06 [end_date_ymd] => 2025-04-02 22:59:06 [RateCDR] => 1 ) [2025-04-02 22:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 19:59:06' and `end` < '2025-04-02 22:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 22:59:18] Production.INFO: count ==1361 [2025-04-02 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-02 19:59:06 - End Time 2025-04-02 22:59:06 [2025-04-02 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821383', 'tblTempUsageDetail_20' ) start [2025-04-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821383', 'tblTempUsageDetail_20' ) end [2025-04-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821383', 'tblTempVendorCDR_20' ) start [2025-04-02 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821383', 'tblTempVendorCDR_20' ) end [2025-04-02 22:59:19] Production.INFO: ProcessCDR(1,14821383,1,1,2) [2025-04-02 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821383', 'tblTempUsageDetail_20' ) start [2025-04-02 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821383', 'tblTempUsageDetail_20' ) end [2025-04-02 22:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 22:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 22:59:24] Production.INFO: ==19051== Releasing lock... [2025-04-02 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 22:59:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:00:06 [end_date_ymd] => 2025-04-02 23:00:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:00:06' and `end` < '2025-04-02 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-04-02 23:00:18] Production.INFO: count ==1347 [2025-04-02 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:00:06 - End Time 2025-04-02 23:00:06 [2025-04-02 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821389', 'tblTempUsageDetail_20' ) start [2025-04-02 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821389', 'tblTempUsageDetail_20' ) end [2025-04-02 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821389', 'tblTempVendorCDR_20' ) start [2025-04-02 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821389', 'tblTempVendorCDR_20' ) end [2025-04-02 23:00:19] Production.INFO: ProcessCDR(1,14821389,1,1,2) [2025-04-02 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821389', 'tblTempUsageDetail_20' ) start [2025-04-02 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821389', 'tblTempUsageDetail_20' ) end [2025-04-02 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:00:22] Production.INFO: ==19147== Releasing lock... [2025-04-02 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:00:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:01:05 [end_date_ymd] => 2025-04-02 23:01:05 [RateCDR] => 1 ) [2025-04-02 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:01:05' and `end` < '2025-04-02 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:01:18] Production.INFO: count ==1343 [2025-04-02 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:01:05 - End Time 2025-04-02 23:01:05 [2025-04-02 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821394', 'tblTempUsageDetail_20' ) start [2025-04-02 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821394', 'tblTempUsageDetail_20' ) end [2025-04-02 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821394', 'tblTempVendorCDR_20' ) start [2025-04-02 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821394', 'tblTempVendorCDR_20' ) end [2025-04-02 23:01:19] Production.INFO: ProcessCDR(1,14821394,1,1,2) [2025-04-02 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821394', 'tblTempUsageDetail_20' ) start [2025-04-02 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821394', 'tblTempUsageDetail_20' ) end [2025-04-02 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:01:24] Production.INFO: ==19244== Releasing lock... [2025-04-02 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:01:24] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:02:06 [end_date_ymd] => 2025-04-02 23:02:06 [RateCDR] => 1 ) [2025-04-02 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:02:06' and `end` < '2025-04-02 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:02:19] Production.INFO: count ==1348 [2025-04-02 23:02:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:02:06 - End Time 2025-04-02 23:02:06 [2025-04-02 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821399', 'tblTempUsageDetail_20' ) start [2025-04-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821399', 'tblTempUsageDetail_20' ) end [2025-04-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821399', 'tblTempVendorCDR_20' ) start [2025-04-02 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821399', 'tblTempVendorCDR_20' ) end [2025-04-02 23:02:19] Production.INFO: ProcessCDR(1,14821399,1,1,2) [2025-04-02 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821399', 'tblTempUsageDetail_20' ) start [2025-04-02 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821399', 'tblTempUsageDetail_20' ) end [2025-04-02 23:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:02:24] Production.INFO: ==19400== Releasing lock... [2025-04-02 23:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:02:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:03:05 [end_date_ymd] => 2025-04-02 23:03:05 [RateCDR] => 1 ) [2025-04-02 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:03:05' and `end` < '2025-04-02 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:03:18] Production.INFO: count ==1352 [2025-04-02 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:03:05 - End Time 2025-04-02 23:03:05 [2025-04-02 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821404', 'tblTempUsageDetail_20' ) start [2025-04-02 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821404', 'tblTempUsageDetail_20' ) end [2025-04-02 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821404', 'tblTempVendorCDR_20' ) start [2025-04-02 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821404', 'tblTempVendorCDR_20' ) end [2025-04-02 23:03:19] Production.INFO: ProcessCDR(1,14821404,1,1,2) [2025-04-02 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821404', 'tblTempUsageDetail_20' ) start [2025-04-02 23:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821404', 'tblTempUsageDetail_20' ) end [2025-04-02 23:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:03:24] Production.INFO: ==19471== Releasing lock... [2025-04-02 23:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:03:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:04:06 [end_date_ymd] => 2025-04-02 23:04:06 [RateCDR] => 1 ) [2025-04-02 23:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:04:06' and `end` < '2025-04-02 23:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:04:18] Production.INFO: count ==1344 [2025-04-02 23:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:04:06 - End Time 2025-04-02 23:04:06 [2025-04-02 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821409', 'tblTempUsageDetail_20' ) start [2025-04-02 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821409', 'tblTempUsageDetail_20' ) end [2025-04-02 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821409', 'tblTempVendorCDR_20' ) start [2025-04-02 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821409', 'tblTempVendorCDR_20' ) end [2025-04-02 23:04:19] Production.INFO: ProcessCDR(1,14821409,1,1,2) [2025-04-02 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821409', 'tblTempUsageDetail_20' ) start [2025-04-02 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821409', 'tblTempUsageDetail_20' ) end [2025-04-02 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:04:22] Production.INFO: ==19542== Releasing lock... [2025-04-02 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:05:06 [end_date_ymd] => 2025-04-02 23:05:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:05:06' and `end` < '2025-04-02 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-04-02 23:05:18] Production.INFO: count ==1354 [2025-04-02 23:05:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:05:06 - End Time 2025-04-02 23:05:06 [2025-04-02 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821414', 'tblTempUsageDetail_20' ) start [2025-04-02 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821414', 'tblTempUsageDetail_20' ) end [2025-04-02 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821414', 'tblTempVendorCDR_20' ) start [2025-04-02 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821414', 'tblTempVendorCDR_20' ) end [2025-04-02 23:05:19] Production.INFO: ProcessCDR(1,14821414,1,1,2) [2025-04-02 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821414', 'tblTempUsageDetail_20' ) start [2025-04-02 23:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821414', 'tblTempUsageDetail_20' ) end [2025-04-02 23:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:05:24] Production.INFO: ==19690== Releasing lock... [2025-04-02 23:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:05:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-02 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:06:06 [end_date_ymd] => 2025-04-02 23:06:06 [RateCDR] => 1 ) [2025-04-02 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:06:06' and `end` < '2025-04-02 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:06:19] Production.INFO: count ==1342 [2025-04-02 23:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:06:06 - End Time 2025-04-02 23:06:06 [2025-04-02 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821419', 'tblTempUsageDetail_20' ) start [2025-04-02 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821419', 'tblTempUsageDetail_20' ) end [2025-04-02 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821419', 'tblTempVendorCDR_20' ) start [2025-04-02 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821419', 'tblTempVendorCDR_20' ) end [2025-04-02 23:06:19] Production.INFO: ProcessCDR(1,14821419,1,1,2) [2025-04-02 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821419', 'tblTempUsageDetail_20' ) start [2025-04-02 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821419', 'tblTempUsageDetail_20' ) end [2025-04-02 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:06:23] Production.INFO: ==19761== Releasing lock... [2025-04-02 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:06:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:07:06 [end_date_ymd] => 2025-04-02 23:07:06 [RateCDR] => 1 ) [2025-04-02 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:07:06' and `end` < '2025-04-02 23:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:07:18] Production.INFO: count ==1340 [2025-04-02 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:07:06 - End Time 2025-04-02 23:07:06 [2025-04-02 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821424', 'tblTempUsageDetail_20' ) start [2025-04-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821424', 'tblTempUsageDetail_20' ) end [2025-04-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821424', 'tblTempVendorCDR_20' ) start [2025-04-02 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821424', 'tblTempVendorCDR_20' ) end [2025-04-02 23:07:19] Production.INFO: ProcessCDR(1,14821424,1,1,2) [2025-04-02 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821424', 'tblTempUsageDetail_20' ) start [2025-04-02 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821424', 'tblTempUsageDetail_20' ) end [2025-04-02 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:07:22] Production.INFO: ==19831== Releasing lock... [2025-04-02 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:07:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:08:06 [end_date_ymd] => 2025-04-02 23:08:06 [RateCDR] => 1 ) [2025-04-02 23:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:08:06' and `end` < '2025-04-02 23:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:08:19] Production.INFO: count ==1336 [2025-04-02 23:08:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:08:06 - End Time 2025-04-02 23:08:06 [2025-04-02 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821429', 'tblTempUsageDetail_20' ) start [2025-04-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821429', 'tblTempUsageDetail_20' ) end [2025-04-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821429', 'tblTempVendorCDR_20' ) start [2025-04-02 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821429', 'tblTempVendorCDR_20' ) end [2025-04-02 23:08:19] Production.INFO: ProcessCDR(1,14821429,1,1,2) [2025-04-02 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821429', 'tblTempUsageDetail_20' ) start [2025-04-02 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821429', 'tblTempUsageDetail_20' ) end [2025-04-02 23:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:08:24] Production.INFO: ==19945== Releasing lock... [2025-04-02 23:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:08:24] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:09:05 [end_date_ymd] => 2025-04-02 23:09:05 [RateCDR] => 1 ) [2025-04-02 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:09:05' and `end` < '2025-04-02 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:09:18] Production.INFO: count ==1330 [2025-04-02 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:09:05 - End Time 2025-04-02 23:09:05 [2025-04-02 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821434', 'tblTempUsageDetail_20' ) start [2025-04-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821434', 'tblTempUsageDetail_20' ) end [2025-04-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821434', 'tblTempVendorCDR_20' ) start [2025-04-02 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821434', 'tblTempVendorCDR_20' ) end [2025-04-02 23:09:19] Production.INFO: ProcessCDR(1,14821434,1,1,2) [2025-04-02 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821434', 'tblTempUsageDetail_20' ) start [2025-04-02 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821434', 'tblTempUsageDetail_20' ) end [2025-04-02 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:09:22] Production.INFO: ==20057== Releasing lock... [2025-04-02 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:09:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:10:06 [end_date_ymd] => 2025-04-02 23:10:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:10:06' and `end` < '2025-04-02 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-04-02 23:10:19] Production.INFO: count ==1326 [2025-04-02 23:10:20] Production.ERROR: pbx CDR StartTime 2025-04-02 20:10:06 - End Time 2025-04-02 23:10:06 [2025-04-02 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821440', 'tblTempUsageDetail_20' ) start [2025-04-02 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821440', 'tblTempUsageDetail_20' ) end [2025-04-02 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821440', 'tblTempVendorCDR_20' ) start [2025-04-02 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821440', 'tblTempVendorCDR_20' ) end [2025-04-02 23:10:20] Production.INFO: ProcessCDR(1,14821440,1,1,2) [2025-04-02 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821440', 'tblTempUsageDetail_20' ) start [2025-04-02 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821440', 'tblTempUsageDetail_20' ) end [2025-04-02 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:10:23] Production.INFO: ==20134== Releasing lock... [2025-04-02 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:10:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:11:05 [end_date_ymd] => 2025-04-02 23:11:05 [RateCDR] => 1 ) [2025-04-02 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:11:05' and `end` < '2025-04-02 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:11:18] Production.INFO: count ==1301 [2025-04-02 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:11:05 - End Time 2025-04-02 23:11:05 [2025-04-02 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821445', 'tblTempUsageDetail_20' ) start [2025-04-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821445', 'tblTempUsageDetail_20' ) end [2025-04-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821445', 'tblTempVendorCDR_20' ) start [2025-04-02 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821445', 'tblTempVendorCDR_20' ) end [2025-04-02 23:11:18] Production.INFO: ProcessCDR(1,14821445,1,1,2) [2025-04-02 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821445', 'tblTempUsageDetail_20' ) start [2025-04-02 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821445', 'tblTempUsageDetail_20' ) end [2025-04-02 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:11:22] Production.INFO: ==20210== Releasing lock... [2025-04-02 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:11:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:12:06 [end_date_ymd] => 2025-04-02 23:12:06 [RateCDR] => 1 ) [2025-04-02 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:12:06' and `end` < '2025-04-02 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:12:18] Production.INFO: count ==1300 [2025-04-02 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:12:06 - End Time 2025-04-02 23:12:06 [2025-04-02 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821450', 'tblTempUsageDetail_20' ) start [2025-04-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821450', 'tblTempUsageDetail_20' ) end [2025-04-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821450', 'tblTempVendorCDR_20' ) start [2025-04-02 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821450', 'tblTempVendorCDR_20' ) end [2025-04-02 23:12:19] Production.INFO: ProcessCDR(1,14821450,1,1,2) [2025-04-02 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821450', 'tblTempUsageDetail_20' ) start [2025-04-02 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821450', 'tblTempUsageDetail_20' ) end [2025-04-02 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:12:22] Production.INFO: ==20361== Releasing lock... [2025-04-02 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:12:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:13:05 [end_date_ymd] => 2025-04-02 23:13:05 [RateCDR] => 1 ) [2025-04-02 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:13:05' and `end` < '2025-04-02 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:13:18] Production.INFO: count ==1293 [2025-04-02 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:13:05 - End Time 2025-04-02 23:13:05 [2025-04-02 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821455', 'tblTempUsageDetail_20' ) start [2025-04-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821455', 'tblTempUsageDetail_20' ) end [2025-04-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821455', 'tblTempVendorCDR_20' ) start [2025-04-02 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821455', 'tblTempVendorCDR_20' ) end [2025-04-02 23:13:18] Production.INFO: ProcessCDR(1,14821455,1,1,2) [2025-04-02 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821455', 'tblTempUsageDetail_20' ) start [2025-04-02 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821455', 'tblTempUsageDetail_20' ) end [2025-04-02 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:13:22] Production.INFO: ==20471== Releasing lock... [2025-04-02 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:13:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:14:05 [end_date_ymd] => 2025-04-02 23:14:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:14:05' and `end` < '2025-04-02 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-04-02 23:14:18] Production.INFO: count ==1300 [2025-04-02 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:14:05 - End Time 2025-04-02 23:14:05 [2025-04-02 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821460', 'tblTempUsageDetail_20' ) start [2025-04-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821460', 'tblTempUsageDetail_20' ) end [2025-04-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821460', 'tblTempVendorCDR_20' ) start [2025-04-02 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821460', 'tblTempVendorCDR_20' ) end [2025-04-02 23:14:19] Production.INFO: ProcessCDR(1,14821460,1,1,2) [2025-04-02 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821460', 'tblTempUsageDetail_20' ) start [2025-04-02 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821460', 'tblTempUsageDetail_20' ) end [2025-04-02 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:14:23] Production.INFO: ==20548== Releasing lock... [2025-04-02 23:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:14:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:15:05 [end_date_ymd] => 2025-04-02 23:15:05 [RateCDR] => 1 ) [2025-04-02 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:15:05' and `end` < '2025-04-02 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:15:18] Production.INFO: count ==1289 [2025-04-02 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:15:05 - End Time 2025-04-02 23:15:05 [2025-04-02 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821465', 'tblTempUsageDetail_20' ) start [2025-04-02 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821465', 'tblTempUsageDetail_20' ) end [2025-04-02 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821465', 'tblTempVendorCDR_20' ) start [2025-04-02 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821465', 'tblTempVendorCDR_20' ) end [2025-04-02 23:15:18] Production.INFO: ProcessCDR(1,14821465,1,1,2) [2025-04-02 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821465', 'tblTempUsageDetail_20' ) start [2025-04-02 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821465', 'tblTempUsageDetail_20' ) end [2025-04-02 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:15:23] Production.INFO: ==20658== Releasing lock... [2025-04-02 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:15:23] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:16:05 [end_date_ymd] => 2025-04-02 23:16:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:16:05' and `end` < '2025-04-02 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-04-02 23:16:18] Production.INFO: count ==1283 [2025-04-02 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:16:05 - End Time 2025-04-02 23:16:05 [2025-04-02 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821470', 'tblTempUsageDetail_20' ) start [2025-04-02 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821470', 'tblTempUsageDetail_20' ) end [2025-04-02 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821470', 'tblTempVendorCDR_20' ) start [2025-04-02 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821470', 'tblTempVendorCDR_20' ) end [2025-04-02 23:16:19] Production.INFO: ProcessCDR(1,14821470,1,1,2) [2025-04-02 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821470', 'tblTempUsageDetail_20' ) start [2025-04-02 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821470', 'tblTempUsageDetail_20' ) end [2025-04-02 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:16:22] Production.INFO: ==20770== Releasing lock... [2025-04-02 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:16:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:17:04 [end_date_ymd] => 2025-04-02 23:17:04 [RateCDR] => 1 ) [2025-04-02 23:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:17:04' and `end` < '2025-04-02 23:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:17:17] Production.INFO: count ==1284 [2025-04-02 23:17:17] Production.ERROR: pbx CDR StartTime 2025-04-02 20:17:04 - End Time 2025-04-02 23:17:04 [2025-04-02 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821475', 'tblTempUsageDetail_20' ) start [2025-04-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821475', 'tblTempUsageDetail_20' ) end [2025-04-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821475', 'tblTempVendorCDR_20' ) start [2025-04-02 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821475', 'tblTempVendorCDR_20' ) end [2025-04-02 23:17:17] Production.INFO: ProcessCDR(1,14821475,1,1,2) [2025-04-02 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821475', 'tblTempUsageDetail_20' ) start [2025-04-02 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821475', 'tblTempUsageDetail_20' ) end [2025-04-02 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:17:22] Production.INFO: ==20842== Releasing lock... [2025-04-02 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:17:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:18:05 [end_date_ymd] => 2025-04-02 23:18:05 [RateCDR] => 1 ) [2025-04-02 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:18:05' and `end` < '2025-04-02 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:18:18] Production.INFO: count ==1284 [2025-04-02 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:18:05 - End Time 2025-04-02 23:18:05 [2025-04-02 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821480', 'tblTempUsageDetail_20' ) start [2025-04-02 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821480', 'tblTempUsageDetail_20' ) end [2025-04-02 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821480', 'tblTempVendorCDR_20' ) start [2025-04-02 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821480', 'tblTempVendorCDR_20' ) end [2025-04-02 23:18:19] Production.INFO: ProcessCDR(1,14821480,1,1,2) [2025-04-02 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821480', 'tblTempUsageDetail_20' ) start [2025-04-02 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821480', 'tblTempUsageDetail_20' ) end [2025-04-02 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:18:22] Production.INFO: ==20921== Releasing lock... [2025-04-02 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:18:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:19:04 [end_date_ymd] => 2025-04-02 23:19:04 [RateCDR] => 1 ) [2025-04-02 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:19:04' and `end` < '2025-04-02 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:19:17] Production.INFO: count ==1276 [2025-04-02 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:19:04 - End Time 2025-04-02 23:19:04 [2025-04-02 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821485', 'tblTempUsageDetail_20' ) start [2025-04-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821485', 'tblTempUsageDetail_20' ) end [2025-04-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821485', 'tblTempVendorCDR_20' ) start [2025-04-02 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821485', 'tblTempVendorCDR_20' ) end [2025-04-02 23:19:18] Production.INFO: ProcessCDR(1,14821485,1,1,2) [2025-04-02 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821485', 'tblTempUsageDetail_20' ) start [2025-04-02 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821485', 'tblTempUsageDetail_20' ) end [2025-04-02 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:19:21] Production.INFO: ==20997== Releasing lock... [2025-04-02 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:19:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:20:06 [end_date_ymd] => 2025-04-02 23:20:06 [RateCDR] => 1 ) [2025-04-02 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:20:06' and `end` < '2025-04-02 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:20:19] Production.INFO: count ==1274 [2025-04-02 23:20:20] Production.ERROR: pbx CDR StartTime 2025-04-02 20:20:06 - End Time 2025-04-02 23:20:06 [2025-04-02 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821491', 'tblTempUsageDetail_20' ) start [2025-04-02 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821491', 'tblTempUsageDetail_20' ) end [2025-04-02 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821491', 'tblTempVendorCDR_20' ) start [2025-04-02 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821491', 'tblTempVendorCDR_20' ) end [2025-04-02 23:20:20] Production.INFO: ProcessCDR(1,14821491,1,1,2) [2025-04-02 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821491', 'tblTempUsageDetail_20' ) start [2025-04-02 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821491', 'tblTempUsageDetail_20' ) end [2025-04-02 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:20:23] Production.INFO: ==21070== Releasing lock... [2025-04-02 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:20:23] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:21:05 [end_date_ymd] => 2025-04-02 23:21:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:21:05' and `end` < '2025-04-02 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-04-02 23:21:18] Production.INFO: count ==1263 [2025-04-02 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:21:05 - End Time 2025-04-02 23:21:05 [2025-04-02 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821496', 'tblTempUsageDetail_20' ) start [2025-04-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821496', 'tblTempUsageDetail_20' ) end [2025-04-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821496', 'tblTempVendorCDR_20' ) start [2025-04-02 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821496', 'tblTempVendorCDR_20' ) end [2025-04-02 23:21:19] Production.INFO: ProcessCDR(1,14821496,1,1,2) [2025-04-02 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821496', 'tblTempUsageDetail_20' ) start [2025-04-02 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821496', 'tblTempUsageDetail_20' ) end [2025-04-02 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:21:22] Production.INFO: ==21144== Releasing lock... [2025-04-02 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:22:05 [end_date_ymd] => 2025-04-02 23:22:05 [RateCDR] => 1 ) [2025-04-02 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:22:05' and `end` < '2025-04-02 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:22:18] Production.INFO: count ==1261 [2025-04-02 23:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:22:05 - End Time 2025-04-02 23:22:05 [2025-04-02 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821501', 'tblTempUsageDetail_20' ) start [2025-04-02 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821501', 'tblTempUsageDetail_20' ) end [2025-04-02 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821501', 'tblTempVendorCDR_20' ) start [2025-04-02 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821501', 'tblTempVendorCDR_20' ) end [2025-04-02 23:22:19] Production.INFO: ProcessCDR(1,14821501,1,1,2) [2025-04-02 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821501', 'tblTempUsageDetail_20' ) start [2025-04-02 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821501', 'tblTempUsageDetail_20' ) end [2025-04-02 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:22:24] Production.INFO: ==21217== Releasing lock... [2025-04-02 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:22:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:23:06 [end_date_ymd] => 2025-04-02 23:23:06 [RateCDR] => 1 ) [2025-04-02 23:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:23:06' and `end` < '2025-04-02 23:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:23:18] Production.INFO: count ==1256 [2025-04-02 23:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:23:06 - End Time 2025-04-02 23:23:06 [2025-04-02 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821506', 'tblTempUsageDetail_20' ) start [2025-04-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821506', 'tblTempUsageDetail_20' ) end [2025-04-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821506', 'tblTempVendorCDR_20' ) start [2025-04-02 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821506', 'tblTempVendorCDR_20' ) end [2025-04-02 23:23:19] Production.INFO: ProcessCDR(1,14821506,1,1,2) [2025-04-02 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821506', 'tblTempUsageDetail_20' ) start [2025-04-02 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821506', 'tblTempUsageDetail_20' ) end [2025-04-02 23:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:23:24] Production.INFO: ==21290== Releasing lock... [2025-04-02 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:23:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:24:05 [end_date_ymd] => 2025-04-02 23:24:05 [RateCDR] => 1 ) [2025-04-02 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:24:05' and `end` < '2025-04-02 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:24:18] Production.INFO: count ==1259 [2025-04-02 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:24:05 - End Time 2025-04-02 23:24:05 [2025-04-02 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821511', 'tblTempUsageDetail_20' ) start [2025-04-02 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821511', 'tblTempUsageDetail_20' ) end [2025-04-02 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821511', 'tblTempVendorCDR_20' ) start [2025-04-02 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821511', 'tblTempVendorCDR_20' ) end [2025-04-02 23:24:18] Production.INFO: ProcessCDR(1,14821511,1,1,2) [2025-04-02 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821511', 'tblTempUsageDetail_20' ) start [2025-04-02 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821511', 'tblTempUsageDetail_20' ) end [2025-04-02 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:24:22] Production.INFO: ==21400== Releasing lock... [2025-04-02 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:25:06 [end_date_ymd] => 2025-04-02 23:25:06 [RateCDR] => 1 ) [2025-04-02 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:25:06' and `end` < '2025-04-02 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:25:18] Production.INFO: count ==1267 [2025-04-02 23:25:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:25:06 - End Time 2025-04-02 23:25:06 [2025-04-02 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821516', 'tblTempUsageDetail_20' ) start [2025-04-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821516', 'tblTempUsageDetail_20' ) end [2025-04-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821516', 'tblTempVendorCDR_20' ) start [2025-04-02 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821516', 'tblTempVendorCDR_20' ) end [2025-04-02 23:25:19] Production.INFO: ProcessCDR(1,14821516,1,1,2) [2025-04-02 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821516', 'tblTempUsageDetail_20' ) start [2025-04-02 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821516', 'tblTempUsageDetail_20' ) end [2025-04-02 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:25:22] Production.INFO: ==21516== Releasing lock... [2025-04-02 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:26:05 [end_date_ymd] => 2025-04-02 23:26:05 [RateCDR] => 1 ) [2025-04-02 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:26:05' and `end` < '2025-04-02 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:26:18] Production.INFO: count ==1267 [2025-04-02 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:26:05 - End Time 2025-04-02 23:26:05 [2025-04-02 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821521', 'tblTempUsageDetail_20' ) start [2025-04-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821521', 'tblTempUsageDetail_20' ) end [2025-04-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821521', 'tblTempVendorCDR_20' ) start [2025-04-02 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821521', 'tblTempVendorCDR_20' ) end [2025-04-02 23:26:18] Production.INFO: ProcessCDR(1,14821521,1,1,2) [2025-04-02 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821521', 'tblTempUsageDetail_20' ) start [2025-04-02 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821521', 'tblTempUsageDetail_20' ) end [2025-04-02 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:26:22] Production.INFO: ==21589== Releasing lock... [2025-04-02 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:26:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:27:05 [end_date_ymd] => 2025-04-02 23:27:05 [RateCDR] => 1 ) [2025-04-02 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:27:05' and `end` < '2025-04-02 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:27:18] Production.INFO: count ==1267 [2025-04-02 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:27:05 - End Time 2025-04-02 23:27:05 [2025-04-02 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821526', 'tblTempUsageDetail_20' ) start [2025-04-02 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821526', 'tblTempUsageDetail_20' ) end [2025-04-02 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821526', 'tblTempVendorCDR_20' ) start [2025-04-02 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821526', 'tblTempVendorCDR_20' ) end [2025-04-02 23:27:18] Production.INFO: ProcessCDR(1,14821526,1,1,2) [2025-04-02 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821526', 'tblTempUsageDetail_20' ) start [2025-04-02 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821526', 'tblTempUsageDetail_20' ) end [2025-04-02 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:27:22] Production.INFO: ==21666== Releasing lock... [2025-04-02 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:28:05 [end_date_ymd] => 2025-04-02 23:28:05 [RateCDR] => 1 ) [2025-04-02 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:28:05' and `end` < '2025-04-02 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:28:18] Production.INFO: count ==1267 [2025-04-02 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:28:05 - End Time 2025-04-02 23:28:05 [2025-04-02 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821531', 'tblTempUsageDetail_20' ) start [2025-04-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821531', 'tblTempUsageDetail_20' ) end [2025-04-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821531', 'tblTempVendorCDR_20' ) start [2025-04-02 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821531', 'tblTempVendorCDR_20' ) end [2025-04-02 23:28:18] Production.INFO: ProcessCDR(1,14821531,1,1,2) [2025-04-02 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821531', 'tblTempUsageDetail_20' ) start [2025-04-02 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821531', 'tblTempUsageDetail_20' ) end [2025-04-02 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:28:22] Production.INFO: ==21745== Releasing lock... [2025-04-02 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:29:06 [end_date_ymd] => 2025-04-02 23:29:06 [RateCDR] => 1 ) [2025-04-02 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:29:06' and `end` < '2025-04-02 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:29:19] Production.INFO: count ==1269 [2025-04-02 23:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:29:06 - End Time 2025-04-02 23:29:06 [2025-04-02 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821536', 'tblTempUsageDetail_20' ) start [2025-04-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821536', 'tblTempUsageDetail_20' ) end [2025-04-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821536', 'tblTempVendorCDR_20' ) start [2025-04-02 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821536', 'tblTempVendorCDR_20' ) end [2025-04-02 23:29:19] Production.INFO: ProcessCDR(1,14821536,1,1,2) [2025-04-02 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821536', 'tblTempUsageDetail_20' ) start [2025-04-02 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821536', 'tblTempUsageDetail_20' ) end [2025-04-02 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:29:22] Production.INFO: ==21862== Releasing lock... [2025-04-02 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:29:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:30:06 [end_date_ymd] => 2025-04-02 23:30:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:30:06' and `end` < '2025-04-02 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-04-02 23:30:18] Production.INFO: count ==1279 [2025-04-02 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:30:06 - End Time 2025-04-02 23:30:06 [2025-04-02 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821542', 'tblTempUsageDetail_20' ) start [2025-04-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821542', 'tblTempUsageDetail_20' ) end [2025-04-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821542', 'tblTempVendorCDR_20' ) start [2025-04-02 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821542', 'tblTempVendorCDR_20' ) end [2025-04-02 23:30:19] Production.INFO: ProcessCDR(1,14821542,1,1,2) [2025-04-02 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821542', 'tblTempUsageDetail_20' ) start [2025-04-02 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821542', 'tblTempUsageDetail_20' ) end [2025-04-02 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:30:22] Production.INFO: ==21937== Releasing lock... [2025-04-02 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:31:06 [end_date_ymd] => 2025-04-02 23:31:06 [RateCDR] => 1 ) [2025-04-02 23:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:31:06' and `end` < '2025-04-02 23:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:31:19] Production.INFO: count ==1261 [2025-04-02 23:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:31:06 - End Time 2025-04-02 23:31:06 [2025-04-02 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821547', 'tblTempUsageDetail_20' ) start [2025-04-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821547', 'tblTempUsageDetail_20' ) end [2025-04-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821547', 'tblTempVendorCDR_20' ) start [2025-04-02 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821547', 'tblTempVendorCDR_20' ) end [2025-04-02 23:31:19] Production.INFO: ProcessCDR(1,14821547,1,1,2) [2025-04-02 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821547', 'tblTempUsageDetail_20' ) start [2025-04-02 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821547', 'tblTempUsageDetail_20' ) end [2025-04-02 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:31:23] Production.INFO: ==22012== Releasing lock... [2025-04-02 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:31:23] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:32:05 [end_date_ymd] => 2025-04-02 23:32:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:32:05' and `end` < '2025-04-02 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-04-02 23:32:18] Production.INFO: count ==1259 [2025-04-02 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:32:05 - End Time 2025-04-02 23:32:05 [2025-04-02 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821552', 'tblTempUsageDetail_20' ) start [2025-04-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821552', 'tblTempUsageDetail_20' ) end [2025-04-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821552', 'tblTempVendorCDR_20' ) start [2025-04-02 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821552', 'tblTempVendorCDR_20' ) end [2025-04-02 23:32:18] Production.INFO: ProcessCDR(1,14821552,1,1,2) [2025-04-02 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821552', 'tblTempUsageDetail_20' ) start [2025-04-02 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821552', 'tblTempUsageDetail_20' ) end [2025-04-02 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:32:22] Production.INFO: ==22085== Releasing lock... [2025-04-02 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:33:06 [end_date_ymd] => 2025-04-02 23:33:06 [RateCDR] => 1 ) [2025-04-02 23:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:33:06' and `end` < '2025-04-02 23:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:33:19] Production.INFO: count ==1262 [2025-04-02 23:33:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:33:06 - End Time 2025-04-02 23:33:06 [2025-04-02 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821557', 'tblTempUsageDetail_20' ) start [2025-04-02 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821557', 'tblTempUsageDetail_20' ) end [2025-04-02 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821557', 'tblTempVendorCDR_20' ) start [2025-04-02 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821557', 'tblTempVendorCDR_20' ) end [2025-04-02 23:33:19] Production.INFO: ProcessCDR(1,14821557,1,1,2) [2025-04-02 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821557', 'tblTempUsageDetail_20' ) start [2025-04-02 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821557', 'tblTempUsageDetail_20' ) end [2025-04-02 23:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:33:24] Production.INFO: ==22163== Releasing lock... [2025-04-02 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:33:24] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:34:05 [end_date_ymd] => 2025-04-02 23:34:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:34:05' and `end` < '2025-04-02 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-04-02 23:34:18] Production.INFO: count ==1269 [2025-04-02 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:34:05 - End Time 2025-04-02 23:34:05 [2025-04-02 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821562', 'tblTempUsageDetail_20' ) start [2025-04-02 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821562', 'tblTempUsageDetail_20' ) end [2025-04-02 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821562', 'tblTempVendorCDR_20' ) start [2025-04-02 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821562', 'tblTempVendorCDR_20' ) end [2025-04-02 23:34:18] Production.INFO: ProcessCDR(1,14821562,1,1,2) [2025-04-02 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821562', 'tblTempUsageDetail_20' ) start [2025-04-02 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821562', 'tblTempUsageDetail_20' ) end [2025-04-02 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:34:22] Production.INFO: ==22235== Releasing lock... [2025-04-02 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:34:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:35:05 [end_date_ymd] => 2025-04-02 23:35:05 [RateCDR] => 1 ) [2025-04-02 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:35:05' and `end` < '2025-04-02 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:35:18] Production.INFO: count ==1279 [2025-04-02 23:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:35:05 - End Time 2025-04-02 23:35:05 [2025-04-02 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821567', 'tblTempUsageDetail_20' ) start [2025-04-02 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821567', 'tblTempUsageDetail_20' ) end [2025-04-02 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821567', 'tblTempVendorCDR_20' ) start [2025-04-02 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821567', 'tblTempVendorCDR_20' ) end [2025-04-02 23:35:19] Production.INFO: ProcessCDR(1,14821567,1,1,2) [2025-04-02 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821567', 'tblTempUsageDetail_20' ) start [2025-04-02 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821567', 'tblTempUsageDetail_20' ) end [2025-04-02 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:35:22] Production.INFO: ==22306== Releasing lock... [2025-04-02 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:36:06 [end_date_ymd] => 2025-04-02 23:36:06 [RateCDR] => 1 ) [2025-04-02 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:36:06' and `end` < '2025-04-02 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:36:19] Production.INFO: count ==1283 [2025-04-02 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:36:06 - End Time 2025-04-02 23:36:06 [2025-04-02 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821572', 'tblTempUsageDetail_20' ) start [2025-04-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821572', 'tblTempUsageDetail_20' ) end [2025-04-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821572', 'tblTempVendorCDR_20' ) start [2025-04-02 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821572', 'tblTempVendorCDR_20' ) end [2025-04-02 23:36:19] Production.INFO: ProcessCDR(1,14821572,1,1,2) [2025-04-02 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821572', 'tblTempUsageDetail_20' ) start [2025-04-02 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821572', 'tblTempUsageDetail_20' ) end [2025-04-02 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:36:23] Production.INFO: ==22379== Releasing lock... [2025-04-02 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:36:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:37:05 [end_date_ymd] => 2025-04-02 23:37:05 [RateCDR] => 1 ) [2025-04-02 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:37:05' and `end` < '2025-04-02 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:37:18] Production.INFO: count ==1301 [2025-04-02 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:37:05 - End Time 2025-04-02 23:37:05 [2025-04-02 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821577', 'tblTempUsageDetail_20' ) start [2025-04-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821577', 'tblTempUsageDetail_20' ) end [2025-04-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821577', 'tblTempVendorCDR_20' ) start [2025-04-02 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821577', 'tblTempVendorCDR_20' ) end [2025-04-02 23:37:18] Production.INFO: ProcessCDR(1,14821577,1,1,2) [2025-04-02 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821577', 'tblTempUsageDetail_20' ) start [2025-04-02 23:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821577', 'tblTempUsageDetail_20' ) end [2025-04-02 23:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:37:24] Production.INFO: ==22452== Releasing lock... [2025-04-02 23:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:37:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:38:05 [end_date_ymd] => 2025-04-02 23:38:05 [RateCDR] => 1 ) [2025-04-02 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:38:05' and `end` < '2025-04-02 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:38:18] Production.INFO: count ==1307 [2025-04-02 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:38:05 - End Time 2025-04-02 23:38:05 [2025-04-02 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821582', 'tblTempUsageDetail_20' ) start [2025-04-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821582', 'tblTempUsageDetail_20' ) end [2025-04-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821582', 'tblTempVendorCDR_20' ) start [2025-04-02 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821582', 'tblTempVendorCDR_20' ) end [2025-04-02 23:38:18] Production.INFO: ProcessCDR(1,14821582,1,1,2) [2025-04-02 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821582', 'tblTempUsageDetail_20' ) start [2025-04-02 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821582', 'tblTempUsageDetail_20' ) end [2025-04-02 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:38:22] Production.INFO: ==22524== Releasing lock... [2025-04-02 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:38:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:39:05 [end_date_ymd] => 2025-04-02 23:39:05 [RateCDR] => 1 ) [2025-04-02 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:39:05' and `end` < '2025-04-02 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:39:18] Production.INFO: count ==1312 [2025-04-02 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:39:05 - End Time 2025-04-02 23:39:05 [2025-04-02 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821587', 'tblTempUsageDetail_20' ) start [2025-04-02 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821587', 'tblTempUsageDetail_20' ) end [2025-04-02 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821587', 'tblTempVendorCDR_20' ) start [2025-04-02 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821587', 'tblTempVendorCDR_20' ) end [2025-04-02 23:39:19] Production.INFO: ProcessCDR(1,14821587,1,1,2) [2025-04-02 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821587', 'tblTempUsageDetail_20' ) start [2025-04-02 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821587', 'tblTempUsageDetail_20' ) end [2025-04-02 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:39:22] Production.INFO: ==22599== Releasing lock... [2025-04-02 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:39:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:40:05 [end_date_ymd] => 2025-04-02 23:40:05 [RateCDR] => 1 ) [2025-04-02 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:40:05' and `end` < '2025-04-02 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:40:18] Production.INFO: count ==1307 [2025-04-02 23:40:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:40:05 - End Time 2025-04-02 23:40:05 [2025-04-02 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821592', 'tblTempUsageDetail_20' ) start [2025-04-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821592', 'tblTempUsageDetail_20' ) end [2025-04-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821592', 'tblTempVendorCDR_20' ) start [2025-04-02 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821592', 'tblTempVendorCDR_20' ) end [2025-04-02 23:40:19] Production.INFO: ProcessCDR(1,14821592,1,1,2) [2025-04-02 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821592', 'tblTempUsageDetail_20' ) start [2025-04-02 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821592', 'tblTempUsageDetail_20' ) end [2025-04-02 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:40:22] Production.INFO: ==22670== Releasing lock... [2025-04-02 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:41:05 [end_date_ymd] => 2025-04-02 23:41:05 [RateCDR] => 1 ) [2025-04-02 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:41:05' and `end` < '2025-04-02 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:41:18] Production.INFO: count ==1285 [2025-04-02 23:41:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:41:05 - End Time 2025-04-02 23:41:05 [2025-04-02 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821598', 'tblTempUsageDetail_20' ) start [2025-04-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821598', 'tblTempUsageDetail_20' ) end [2025-04-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821598', 'tblTempVendorCDR_20' ) start [2025-04-02 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821598', 'tblTempVendorCDR_20' ) end [2025-04-02 23:41:19] Production.INFO: ProcessCDR(1,14821598,1,1,2) [2025-04-02 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821598', 'tblTempUsageDetail_20' ) start [2025-04-02 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821598', 'tblTempUsageDetail_20' ) end [2025-04-02 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:41:22] Production.INFO: ==22745== Releasing lock... [2025-04-02 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:41:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-02 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:42:06 [end_date_ymd] => 2025-04-02 23:42:06 [RateCDR] => 1 ) [2025-04-02 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:42:06' and `end` < '2025-04-02 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:42:18] Production.INFO: count ==1289 [2025-04-02 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:42:06 - End Time 2025-04-02 23:42:06 [2025-04-02 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821603', 'tblTempUsageDetail_20' ) start [2025-04-02 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821603', 'tblTempUsageDetail_20' ) end [2025-04-02 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821603', 'tblTempVendorCDR_20' ) start [2025-04-02 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821603', 'tblTempVendorCDR_20' ) end [2025-04-02 23:42:19] Production.INFO: ProcessCDR(1,14821603,1,1,2) [2025-04-02 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821603', 'tblTempUsageDetail_20' ) start [2025-04-02 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821603', 'tblTempUsageDetail_20' ) end [2025-04-02 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:42:22] Production.INFO: ==22821== Releasing lock... [2025-04-02 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:43:05 [end_date_ymd] => 2025-04-02 23:43:05 [RateCDR] => 1 ) [2025-04-02 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:43:05' and `end` < '2025-04-02 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:43:18] Production.INFO: count ==1290 [2025-04-02 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:43:05 - End Time 2025-04-02 23:43:05 [2025-04-02 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821608', 'tblTempUsageDetail_20' ) start [2025-04-02 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821608', 'tblTempUsageDetail_20' ) end [2025-04-02 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821608', 'tblTempVendorCDR_20' ) start [2025-04-02 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821608', 'tblTempVendorCDR_20' ) end [2025-04-02 23:43:18] Production.INFO: ProcessCDR(1,14821608,1,1,2) [2025-04-02 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821608', 'tblTempUsageDetail_20' ) start [2025-04-02 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821608', 'tblTempUsageDetail_20' ) end [2025-04-02 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:43:22] Production.INFO: ==22892== Releasing lock... [2025-04-02 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:43:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:44:06 [end_date_ymd] => 2025-04-02 23:44:06 [RateCDR] => 1 ) [2025-04-02 23:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:44:06' and `end` < '2025-04-02 23:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:44:19] Production.INFO: count ==1276 [2025-04-02 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:44:06 - End Time 2025-04-02 23:44:06 [2025-04-02 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821613', 'tblTempUsageDetail_20' ) start [2025-04-02 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821613', 'tblTempUsageDetail_20' ) end [2025-04-02 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821613', 'tblTempVendorCDR_20' ) start [2025-04-02 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821613', 'tblTempVendorCDR_20' ) end [2025-04-02 23:44:19] Production.INFO: ProcessCDR(1,14821613,1,1,2) [2025-04-02 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821613', 'tblTempUsageDetail_20' ) start [2025-04-02 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821613', 'tblTempUsageDetail_20' ) end [2025-04-02 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:44:23] Production.INFO: ==23004== Releasing lock... [2025-04-02 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:44:23] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:45:05 [end_date_ymd] => 2025-04-02 23:45:05 [RateCDR] => 1 ) [2025-04-02 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:45:05' and `end` < '2025-04-02 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:45:18] Production.INFO: count ==1273 [2025-04-02 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:45:05 - End Time 2025-04-02 23:45:05 [2025-04-02 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821618', 'tblTempUsageDetail_20' ) start [2025-04-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821618', 'tblTempUsageDetail_20' ) end [2025-04-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821618', 'tblTempVendorCDR_20' ) start [2025-04-02 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821618', 'tblTempVendorCDR_20' ) end [2025-04-02 23:45:18] Production.INFO: ProcessCDR(1,14821618,1,1,2) [2025-04-02 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821618', 'tblTempUsageDetail_20' ) start [2025-04-02 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821618', 'tblTempUsageDetail_20' ) end [2025-04-02 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:45:22] Production.INFO: ==23075== Releasing lock... [2025-04-02 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:45:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:46:05 [end_date_ymd] => 2025-04-02 23:46:05 [RateCDR] => 1 ) [2025-04-02 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:46:05' and `end` < '2025-04-02 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:46:18] Production.INFO: count ==1273 [2025-04-02 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:46:05 - End Time 2025-04-02 23:46:05 [2025-04-02 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821623', 'tblTempUsageDetail_20' ) start [2025-04-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821623', 'tblTempUsageDetail_20' ) end [2025-04-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821623', 'tblTempVendorCDR_20' ) start [2025-04-02 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821623', 'tblTempVendorCDR_20' ) end [2025-04-02 23:46:18] Production.INFO: ProcessCDR(1,14821623,1,1,2) [2025-04-02 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821623', 'tblTempUsageDetail_20' ) start [2025-04-02 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821623', 'tblTempUsageDetail_20' ) end [2025-04-02 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:46:22] Production.INFO: ==23148== Releasing lock... [2025-04-02 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:46:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:47:05 [end_date_ymd] => 2025-04-02 23:47:05 [RateCDR] => 1 ) [2025-04-02 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:47:05' and `end` < '2025-04-02 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:47:18] Production.INFO: count ==1271 [2025-04-02 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:47:05 - End Time 2025-04-02 23:47:05 [2025-04-02 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821628', 'tblTempUsageDetail_20' ) start [2025-04-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821628', 'tblTempUsageDetail_20' ) end [2025-04-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821628', 'tblTempVendorCDR_20' ) start [2025-04-02 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821628', 'tblTempVendorCDR_20' ) end [2025-04-02 23:47:18] Production.INFO: ProcessCDR(1,14821628,1,1,2) [2025-04-02 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821628', 'tblTempUsageDetail_20' ) start [2025-04-02 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821628', 'tblTempUsageDetail_20' ) end [2025-04-02 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:47:21] Production.INFO: ==23225== Releasing lock... [2025-04-02 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:48:05 [end_date_ymd] => 2025-04-02 23:48:05 [RateCDR] => 1 ) [2025-04-02 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:48:05' and `end` < '2025-04-02 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:48:18] Production.INFO: count ==1272 [2025-04-02 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:48:05 - End Time 2025-04-02 23:48:05 [2025-04-02 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821633', 'tblTempUsageDetail_20' ) start [2025-04-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821633', 'tblTempUsageDetail_20' ) end [2025-04-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821633', 'tblTempVendorCDR_20' ) start [2025-04-02 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821633', 'tblTempVendorCDR_20' ) end [2025-04-02 23:48:18] Production.INFO: ProcessCDR(1,14821633,1,1,2) [2025-04-02 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821633', 'tblTempUsageDetail_20' ) start [2025-04-02 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821633', 'tblTempUsageDetail_20' ) end [2025-04-02 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:48:22] Production.INFO: ==23300== Releasing lock... [2025-04-02 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:49:04 [end_date_ymd] => 2025-04-02 23:49:04 [RateCDR] => 1 ) [2025-04-02 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:49:04' and `end` < '2025-04-02 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:49:17] Production.INFO: count ==1270 [2025-04-02 23:49:17] Production.ERROR: pbx CDR StartTime 2025-04-02 20:49:04 - End Time 2025-04-02 23:49:04 [2025-04-02 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821638', 'tblTempUsageDetail_20' ) start [2025-04-02 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821638', 'tblTempUsageDetail_20' ) end [2025-04-02 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821638', 'tblTempVendorCDR_20' ) start [2025-04-02 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821638', 'tblTempVendorCDR_20' ) end [2025-04-02 23:49:18] Production.INFO: ProcessCDR(1,14821638,1,1,2) [2025-04-02 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821638', 'tblTempUsageDetail_20' ) start [2025-04-02 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821638', 'tblTempUsageDetail_20' ) end [2025-04-02 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:49:21] Production.INFO: ==23375== Releasing lock... [2025-04-02 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:49:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:50:06 [end_date_ymd] => 2025-04-02 23:50:06 [RateCDR] => 1 ) [2025-04-02 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:50:06' and `end` < '2025-04-02 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:50:19] Production.INFO: count ==1252 [2025-04-02 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:50:06 - End Time 2025-04-02 23:50:06 [2025-04-02 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821643', 'tblTempUsageDetail_20' ) start [2025-04-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821643', 'tblTempUsageDetail_20' ) end [2025-04-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821643', 'tblTempVendorCDR_20' ) start [2025-04-02 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821643', 'tblTempVendorCDR_20' ) end [2025-04-02 23:50:19] Production.INFO: ProcessCDR(1,14821643,1,1,2) [2025-04-02 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821643', 'tblTempUsageDetail_20' ) start [2025-04-02 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821643', 'tblTempUsageDetail_20' ) end [2025-04-02 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:50:23] Production.INFO: ==23446== Releasing lock... [2025-04-02 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:50:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:51:05 [end_date_ymd] => 2025-04-02 23:51:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:51:05' and `end` < '2025-04-02 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-04-02 23:51:18] Production.INFO: count ==1257 [2025-04-02 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:51:05 - End Time 2025-04-02 23:51:05 [2025-04-02 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821649', 'tblTempUsageDetail_20' ) start [2025-04-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821649', 'tblTempUsageDetail_20' ) end [2025-04-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821649', 'tblTempVendorCDR_20' ) start [2025-04-02 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821649', 'tblTempVendorCDR_20' ) end [2025-04-02 23:51:18] Production.INFO: ProcessCDR(1,14821649,1,1,2) [2025-04-02 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821649', 'tblTempUsageDetail_20' ) start [2025-04-02 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821649', 'tblTempUsageDetail_20' ) end [2025-04-02 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:51:22] Production.INFO: ==23520== Releasing lock... [2025-04-02 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-02 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:52:05 [end_date_ymd] => 2025-04-02 23:52:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:52:05' and `end` < '2025-04-02 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-04-02 23:52:18] Production.INFO: count ==1235 [2025-04-02 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:52:05 - End Time 2025-04-02 23:52:05 [2025-04-02 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821654', 'tblTempUsageDetail_20' ) start [2025-04-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821654', 'tblTempUsageDetail_20' ) end [2025-04-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821654', 'tblTempVendorCDR_20' ) start [2025-04-02 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821654', 'tblTempVendorCDR_20' ) end [2025-04-02 23:52:18] Production.INFO: ProcessCDR(1,14821654,1,1,2) [2025-04-02 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821654', 'tblTempUsageDetail_20' ) start [2025-04-02 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821654', 'tblTempUsageDetail_20' ) end [2025-04-02 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:52:22] Production.INFO: ==23594== Releasing lock... [2025-04-02 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:52:22] Production.INFO: 38 MB #Memory Used# [2025-04-02 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:53:05 [end_date_ymd] => 2025-04-02 23:53:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:53:05' and `end` < '2025-04-02 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-04-02 23:53:18] Production.INFO: count ==1227 [2025-04-02 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:53:05 - End Time 2025-04-02 23:53:05 [2025-04-02 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821659', 'tblTempUsageDetail_20' ) start [2025-04-02 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821659', 'tblTempUsageDetail_20' ) end [2025-04-02 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821659', 'tblTempVendorCDR_20' ) start [2025-04-02 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821659', 'tblTempVendorCDR_20' ) end [2025-04-02 23:53:18] Production.INFO: ProcessCDR(1,14821659,1,1,2) [2025-04-02 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821659', 'tblTempUsageDetail_20' ) start [2025-04-02 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821659', 'tblTempUsageDetail_20' ) end [2025-04-02 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:53:22] Production.INFO: ==23668== Releasing lock... [2025-04-02 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:54:05 [end_date_ymd] => 2025-04-02 23:54:05 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:54:05' and `end` < '2025-04-02 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-04-02 23:54:18] Production.INFO: count ==1228 [2025-04-02 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:54:05 - End Time 2025-04-02 23:54:05 [2025-04-02 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821664', 'tblTempUsageDetail_20' ) start [2025-04-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821664', 'tblTempUsageDetail_20' ) end [2025-04-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821664', 'tblTempVendorCDR_20' ) start [2025-04-02 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821664', 'tblTempVendorCDR_20' ) end [2025-04-02 23:54:18] Production.INFO: ProcessCDR(1,14821664,1,1,2) [2025-04-02 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821664', 'tblTempUsageDetail_20' ) start [2025-04-02 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821664', 'tblTempUsageDetail_20' ) end [2025-04-02 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:54:22] Production.INFO: ==23741== Releasing lock... [2025-04-02 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-02 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:55:06 [end_date_ymd] => 2025-04-02 23:55:06 [RateCDR] => 1 ) [2025-04-02 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-04-02 20:55:06' and `end` < '2025-04-02 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-04-02 23:55:19] Production.INFO: count ==1233 [2025-04-02 23:55:20] Production.ERROR: pbx CDR StartTime 2025-04-02 20:55:06 - End Time 2025-04-02 23:55:06 [2025-04-02 23:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821669', 'tblTempUsageDetail_20' ) start [2025-04-02 23:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821669', 'tblTempUsageDetail_20' ) end [2025-04-02 23:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821669', 'tblTempVendorCDR_20' ) start [2025-04-02 23:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821669', 'tblTempVendorCDR_20' ) end [2025-04-02 23:55:20] Production.INFO: ProcessCDR(1,14821669,1,1,2) [2025-04-02 23:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821669', 'tblTempUsageDetail_20' ) start [2025-04-02 23:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821669', 'tblTempUsageDetail_20' ) end [2025-04-02 23:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:55:23] Production.INFO: ==23811== Releasing lock... [2025-04-02 23:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:55:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-02 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:56:06 [end_date_ymd] => 2025-04-02 23:56:06 [RateCDR] => 1 ) [2025-04-02 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:56:06' and `end` < '2025-04-02 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:56:18] Production.INFO: count ==1236 [2025-04-02 23:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:56:06 - End Time 2025-04-02 23:56:06 [2025-04-02 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821674', 'tblTempUsageDetail_20' ) start [2025-04-02 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821674', 'tblTempUsageDetail_20' ) end [2025-04-02 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821674', 'tblTempVendorCDR_20' ) start [2025-04-02 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821674', 'tblTempVendorCDR_20' ) end [2025-04-02 23:56:19] Production.INFO: ProcessCDR(1,14821674,1,1,2) [2025-04-02 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821674', 'tblTempUsageDetail_20' ) start [2025-04-02 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821674', 'tblTempUsageDetail_20' ) end [2025-04-02 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:56:23] Production.INFO: ==23886== Releasing lock... [2025-04-02 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:56:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:57:05 [end_date_ymd] => 2025-04-02 23:57:05 [RateCDR] => 1 ) [2025-04-02 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:57:05' and `end` < '2025-04-02 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:57:18] Production.INFO: count ==1235 [2025-04-02 23:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:57:05 - End Time 2025-04-02 23:57:05 [2025-04-02 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821679', 'tblTempUsageDetail_20' ) start [2025-04-02 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821679', 'tblTempUsageDetail_20' ) end [2025-04-02 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821679', 'tblTempVendorCDR_20' ) start [2025-04-02 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821679', 'tblTempVendorCDR_20' ) end [2025-04-02 23:57:19] Production.INFO: ProcessCDR(1,14821679,1,1,2) [2025-04-02 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821679', 'tblTempUsageDetail_20' ) start [2025-04-02 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821679', 'tblTempUsageDetail_20' ) end [2025-04-02 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:57:22] Production.INFO: ==23963== Releasing lock... [2025-04-02 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:58:05 [end_date_ymd] => 2025-04-02 23:58:05 [RateCDR] => 1 ) [2025-04-02 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:58:05' and `end` < '2025-04-02 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:58:18] Production.INFO: count ==1234 [2025-04-02 23:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 20:58:05 - End Time 2025-04-02 23:58:05 [2025-04-02 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821684', 'tblTempUsageDetail_20' ) start [2025-04-02 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821684', 'tblTempUsageDetail_20' ) end [2025-04-02 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821684', 'tblTempVendorCDR_20' ) start [2025-04-02 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821684', 'tblTempVendorCDR_20' ) end [2025-04-02 23:58:19] Production.INFO: ProcessCDR(1,14821684,1,1,2) [2025-04-02 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821684', 'tblTempUsageDetail_20' ) start [2025-04-02 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821684', 'tblTempUsageDetail_20' ) end [2025-04-02 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:58:22] Production.INFO: ==24038== Releasing lock... [2025-04-02 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:58:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-02 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 20:59:05 [end_date_ymd] => 2025-04-02 23:59:05 [RateCDR] => 1 ) [2025-04-02 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 20:59:05' and `end` < '2025-04-02 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-02 23:59:18] Production.INFO: count ==1237 [2025-04-02 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 20:59:05 - End Time 2025-04-02 23:59:05 [2025-04-02 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821689', 'tblTempUsageDetail_20' ) start [2025-04-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821689', 'tblTempUsageDetail_20' ) end [2025-04-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821689', 'tblTempVendorCDR_20' ) start [2025-04-02 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821689', 'tblTempVendorCDR_20' ) end [2025-04-02 23:59:18] Production.INFO: ProcessCDR(1,14821689,1,1,2) [2025-04-02 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-02 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-02 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821689', 'tblTempUsageDetail_20' ) start [2025-04-02 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821689', 'tblTempUsageDetail_20' ) end [2025-04-02 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-02 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-02 23:59:23] Production.INFO: ==24106== Releasing lock... [2025-04-02 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-02 23:59:23] Production.INFO: 37.25 MB #Memory Used#