[2025-04-17 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:00:06 [end_date_ymd] => 2025-04-17 00:00:06 [RateCDR] => 1 ) [2025-04-17 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:00:06' and `end` < '2025-04-17 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:00:18] Production.INFO: count ==702 [2025-04-17 00:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:00:06 - End Time 2025-04-17 00:00:06 [2025-04-17 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924441', 'tblTempUsageDetail_20' ) start [2025-04-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924441', 'tblTempUsageDetail_20' ) end [2025-04-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924441', 'tblTempVendorCDR_20' ) start [2025-04-17 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924441', 'tblTempVendorCDR_20' ) end [2025-04-17 00:00:18] Production.INFO: ProcessCDR(1,14924441,1,1,2) [2025-04-17 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924441', 'tblTempUsageDetail_20' ) start [2025-04-17 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924441', 'tblTempUsageDetail_20' ) end [2025-04-17 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:00:23] Production.INFO: ==12784== Releasing lock... [2025-04-17 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-17 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:01:05 [end_date_ymd] => 2025-04-17 00:01:05 [RateCDR] => 1 ) [2025-04-17 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:01:05' and `end` < '2025-04-17 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:01:18] Production.INFO: count ==219 [2025-04-17 00:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:01:05 - End Time 2025-04-17 00:01:05 [2025-04-17 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924447', 'tblTempUsageDetail_20' ) start [2025-04-17 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924447', 'tblTempUsageDetail_20' ) end [2025-04-17 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924447', 'tblTempVendorCDR_20' ) start [2025-04-17 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924447', 'tblTempVendorCDR_20' ) end [2025-04-17 00:01:18] Production.INFO: ProcessCDR(1,14924447,1,1,2) [2025-04-17 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924447', 'tblTempUsageDetail_20' ) start [2025-04-17 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924447', 'tblTempUsageDetail_20' ) end [2025-04-17 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:01:22] Production.INFO: ==12877== Releasing lock... [2025-04-17 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:02:05 [end_date_ymd] => 2025-04-17 00:02:05 [RateCDR] => 1 ) [2025-04-17 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:02:05' and `end` < '2025-04-17 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:02:20] Production.INFO: count ==220 [2025-04-17 00:02:20] Production.ERROR: pbx CDR StartTime 2025-04-16 21:02:05 - End Time 2025-04-17 00:02:05 [2025-04-17 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924452', 'tblTempUsageDetail_20' ) start [2025-04-17 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924452', 'tblTempUsageDetail_20' ) end [2025-04-17 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924452', 'tblTempVendorCDR_20' ) start [2025-04-17 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924452', 'tblTempVendorCDR_20' ) end [2025-04-17 00:02:20] Production.INFO: ProcessCDR(1,14924452,1,1,2) [2025-04-17 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924452', 'tblTempUsageDetail_20' ) start [2025-04-17 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924452', 'tblTempUsageDetail_20' ) end [2025-04-17 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:02:23] Production.INFO: ==12950== Releasing lock... [2025-04-17 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:02:23] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:03:05 [end_date_ymd] => 2025-04-17 00:03:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:03:05' and `end` < '2025-04-17 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-17 00:03:25] Production.INFO: count ==219 [2025-04-17 00:03:25] Production.ERROR: pbx CDR StartTime 2025-04-16 21:03:05 - End Time 2025-04-17 00:03:05 [2025-04-17 00:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924457', 'tblTempUsageDetail_20' ) start [2025-04-17 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924457', 'tblTempUsageDetail_20' ) end [2025-04-17 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924457', 'tblTempVendorCDR_20' ) start [2025-04-17 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924457', 'tblTempVendorCDR_20' ) end [2025-04-17 00:03:25] Production.INFO: ProcessCDR(1,14924457,1,1,2) [2025-04-17 00:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924457', 'tblTempUsageDetail_20' ) start [2025-04-17 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924457', 'tblTempUsageDetail_20' ) end [2025-04-17 00:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:03:28] Production.INFO: ==13034== Releasing lock... [2025-04-17 00:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:03:28] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:04:05 [end_date_ymd] => 2025-04-17 00:04:05 [RateCDR] => 1 ) [2025-04-17 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:04:05' and `end` < '2025-04-17 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:04:18] Production.INFO: count ==222 [2025-04-17 00:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:04:05 - End Time 2025-04-17 00:04:05 [2025-04-17 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924462', 'tblTempUsageDetail_20' ) start [2025-04-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924462', 'tblTempUsageDetail_20' ) end [2025-04-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924462', 'tblTempVendorCDR_20' ) start [2025-04-17 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924462', 'tblTempVendorCDR_20' ) end [2025-04-17 00:04:18] Production.INFO: ProcessCDR(1,14924462,1,1,2) [2025-04-17 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924462', 'tblTempUsageDetail_20' ) start [2025-04-17 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924462', 'tblTempUsageDetail_20' ) end [2025-04-17 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:04:21] Production.INFO: ==13106== Releasing lock... [2025-04-17 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:05:05 [end_date_ymd] => 2025-04-17 00:05:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:05:05' and `end` < '2025-04-17 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-17 00:05:33] Production.INFO: count ==222 [2025-04-17 00:05:33] Production.ERROR: pbx CDR StartTime 2025-04-16 21:05:05 - End Time 2025-04-17 00:05:05 [2025-04-17 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924467', 'tblTempUsageDetail_20' ) start [2025-04-17 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924467', 'tblTempUsageDetail_20' ) end [2025-04-17 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924467', 'tblTempVendorCDR_20' ) start [2025-04-17 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924467', 'tblTempVendorCDR_20' ) end [2025-04-17 00:05:33] Production.INFO: ProcessCDR(1,14924467,1,1,2) [2025-04-17 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924467', 'tblTempUsageDetail_20' ) start [2025-04-17 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924467', 'tblTempUsageDetail_20' ) end [2025-04-17 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:05:37] Production.INFO: ==13183== Releasing lock... [2025-04-17 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:05:37] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:06:05 [end_date_ymd] => 2025-04-17 00:06:05 [RateCDR] => 1 ) [2025-04-17 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:06:05' and `end` < '2025-04-17 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:06:29] Production.INFO: count ==222 [2025-04-17 00:06:29] Production.ERROR: pbx CDR StartTime 2025-04-16 21:06:05 - End Time 2025-04-17 00:06:05 [2025-04-17 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924472', 'tblTempUsageDetail_20' ) start [2025-04-17 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924472', 'tblTempUsageDetail_20' ) end [2025-04-17 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924472', 'tblTempVendorCDR_20' ) start [2025-04-17 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924472', 'tblTempVendorCDR_20' ) end [2025-04-17 00:06:30] Production.INFO: ProcessCDR(1,14924472,1,1,2) [2025-04-17 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924472', 'tblTempUsageDetail_20' ) start [2025-04-17 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924472', 'tblTempUsageDetail_20' ) end [2025-04-17 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:06:33] Production.INFO: ==13261== Releasing lock... [2025-04-17 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:06:33] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:07:05 [end_date_ymd] => 2025-04-17 00:07:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:07:05' and `end` < '2025-04-17 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-17 00:07:29] Production.INFO: count ==225 [2025-04-17 00:07:29] Production.ERROR: pbx CDR StartTime 2025-04-16 21:07:05 - End Time 2025-04-17 00:07:05 [2025-04-17 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924477', 'tblTempUsageDetail_20' ) start [2025-04-17 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924477', 'tblTempUsageDetail_20' ) end [2025-04-17 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924477', 'tblTempVendorCDR_20' ) start [2025-04-17 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924477', 'tblTempVendorCDR_20' ) end [2025-04-17 00:07:29] Production.INFO: ProcessCDR(1,14924477,1,1,2) [2025-04-17 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924477', 'tblTempUsageDetail_20' ) start [2025-04-17 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924477', 'tblTempUsageDetail_20' ) end [2025-04-17 00:07:32] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:07:32] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:07:32] Production.INFO: ==13337== Releasing lock... [2025-04-17 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:07:32] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:08:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:08:06 [end_date_ymd] => 2025-04-17 00:08:06 [RateCDR] => 1 ) [2025-04-17 00: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-16 21:08:06' and `end` < '2025-04-17 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-17 00:08:27] Production.INFO: count ==224 [2025-04-17 00:08:27] Production.ERROR: pbx CDR StartTime 2025-04-16 21:08:06 - End Time 2025-04-17 00:08:06 [2025-04-17 00:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924482', 'tblTempUsageDetail_20' ) start [2025-04-17 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924482', 'tblTempUsageDetail_20' ) end [2025-04-17 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924482', 'tblTempVendorCDR_20' ) start [2025-04-17 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924482', 'tblTempVendorCDR_20' ) end [2025-04-17 00:08:27] Production.INFO: ProcessCDR(1,14924482,1,1,2) [2025-04-17 00:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924482', 'tblTempUsageDetail_20' ) start [2025-04-17 00:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924482', 'tblTempUsageDetail_20' ) end [2025-04-17 00:08:31] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:08:31] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:08:31] Production.INFO: ==13417== Releasing lock... [2025-04-17 00:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:08:31] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:09:05 [end_date_ymd] => 2025-04-17 00:09:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:09:05' and `end` < '2025-04-17 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-17 00:09:18] Production.INFO: count ==223 [2025-04-17 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:09:05 - End Time 2025-04-17 00:09:05 [2025-04-17 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924487', 'tblTempUsageDetail_20' ) start [2025-04-17 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924487', 'tblTempUsageDetail_20' ) end [2025-04-17 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924487', 'tblTempVendorCDR_20' ) start [2025-04-17 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924487', 'tblTempVendorCDR_20' ) end [2025-04-17 00:09:19] Production.INFO: ProcessCDR(1,14924487,1,1,2) [2025-04-17 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924487', 'tblTempUsageDetail_20' ) start [2025-04-17 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924487', 'tblTempUsageDetail_20' ) end [2025-04-17 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:09:22] Production.INFO: ==13486== Releasing lock... [2025-04-17 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:10:06 [end_date_ymd] => 2025-04-17 00:10:06 [RateCDR] => 1 ) [2025-04-17 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:10:06' and `end` < '2025-04-17 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:10:20] Production.INFO: count ==234 [2025-04-17 00:10:20] Production.ERROR: pbx CDR StartTime 2025-04-16 21:10:06 - End Time 2025-04-17 00:10:06 [2025-04-17 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924493', 'tblTempUsageDetail_20' ) start [2025-04-17 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924493', 'tblTempUsageDetail_20' ) end [2025-04-17 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924493', 'tblTempVendorCDR_20' ) start [2025-04-17 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924493', 'tblTempVendorCDR_20' ) end [2025-04-17 00:10:20] Production.INFO: ProcessCDR(1,14924493,1,1,2) [2025-04-17 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924493', 'tblTempUsageDetail_20' ) start [2025-04-17 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924493', 'tblTempUsageDetail_20' ) end [2025-04-17 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:10:23] Production.INFO: ==13573== Releasing lock... [2025-04-17 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:11:05 [end_date_ymd] => 2025-04-17 00:11:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:11:05' and `end` < '2025-04-17 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-17 00:11:18] Production.INFO: count ==241 [2025-04-17 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:11:05 - End Time 2025-04-17 00:11:05 [2025-04-17 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924498', 'tblTempUsageDetail_20' ) start [2025-04-17 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924498', 'tblTempUsageDetail_20' ) end [2025-04-17 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924498', 'tblTempVendorCDR_20' ) start [2025-04-17 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924498', 'tblTempVendorCDR_20' ) end [2025-04-17 00:11:18] Production.INFO: ProcessCDR(1,14924498,1,1,2) [2025-04-17 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924498', 'tblTempUsageDetail_20' ) start [2025-04-17 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924498', 'tblTempUsageDetail_20' ) end [2025-04-17 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:11:23] Production.INFO: ==13650== Releasing lock... [2025-04-17 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:12:05 [end_date_ymd] => 2025-04-17 00:12:05 [RateCDR] => 1 ) [2025-04-17 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:12:05' and `end` < '2025-04-17 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:12:18] Production.INFO: count ==241 [2025-04-17 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:12:05 - End Time 2025-04-17 00:12:05 [2025-04-17 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924503', 'tblTempUsageDetail_20' ) start [2025-04-17 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924503', 'tblTempUsageDetail_20' ) end [2025-04-17 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924503', 'tblTempVendorCDR_20' ) start [2025-04-17 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924503', 'tblTempVendorCDR_20' ) end [2025-04-17 00:12:18] Production.INFO: ProcessCDR(1,14924503,1,1,2) [2025-04-17 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924503', 'tblTempUsageDetail_20' ) start [2025-04-17 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924503', 'tblTempUsageDetail_20' ) end [2025-04-17 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:12:21] Production.INFO: ==13763== Releasing lock... [2025-04-17 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:13:05 [end_date_ymd] => 2025-04-17 00:13:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:13:05' and `end` < '2025-04-17 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-17 00:13:17] Production.INFO: count ==241 [2025-04-17 00:13:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:13:05 - End Time 2025-04-17 00:13:05 [2025-04-17 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924508', 'tblTempUsageDetail_20' ) start [2025-04-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924508', 'tblTempUsageDetail_20' ) end [2025-04-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924508', 'tblTempVendorCDR_20' ) start [2025-04-17 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924508', 'tblTempVendorCDR_20' ) end [2025-04-17 00:13:17] Production.INFO: ProcessCDR(1,14924508,1,1,2) [2025-04-17 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924508', 'tblTempUsageDetail_20' ) start [2025-04-17 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924508', 'tblTempUsageDetail_20' ) end [2025-04-17 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:13:21] Production.INFO: ==13839== Releasing lock... [2025-04-17 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:14:05 [end_date_ymd] => 2025-04-17 00:14:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:14:05' and `end` < '2025-04-17 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-17 00:14:18] Production.INFO: count ==243 [2025-04-17 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:14:05 - End Time 2025-04-17 00:14:05 [2025-04-17 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924513', 'tblTempUsageDetail_20' ) start [2025-04-17 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924513', 'tblTempUsageDetail_20' ) end [2025-04-17 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924513', 'tblTempVendorCDR_20' ) start [2025-04-17 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924513', 'tblTempVendorCDR_20' ) end [2025-04-17 00:14:18] Production.INFO: ProcessCDR(1,14924513,1,1,2) [2025-04-17 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924513', 'tblTempUsageDetail_20' ) start [2025-04-17 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924513', 'tblTempUsageDetail_20' ) end [2025-04-17 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:14:21] Production.INFO: ==13910== Releasing lock... [2025-04-17 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:15:05 [end_date_ymd] => 2025-04-17 00:15:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:15:05' and `end` < '2025-04-17 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-17 00:15:18] Production.INFO: count ==241 [2025-04-17 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:15:05 - End Time 2025-04-17 00:15:05 [2025-04-17 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924518', 'tblTempUsageDetail_20' ) start [2025-04-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924518', 'tblTempUsageDetail_20' ) end [2025-04-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924518', 'tblTempVendorCDR_20' ) start [2025-04-17 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924518', 'tblTempVendorCDR_20' ) end [2025-04-17 00:15:18] Production.INFO: ProcessCDR(1,14924518,1,1,2) [2025-04-17 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924518', 'tblTempUsageDetail_20' ) start [2025-04-17 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924518', 'tblTempUsageDetail_20' ) end [2025-04-17 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:15:21] Production.INFO: ==13985== Releasing lock... [2025-04-17 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:16:05 [end_date_ymd] => 2025-04-17 00:16:05 [RateCDR] => 1 ) [2025-04-17 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:16:05' and `end` < '2025-04-17 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:16:17] Production.INFO: count ==238 [2025-04-17 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:16:05 - End Time 2025-04-17 00:16:05 [2025-04-17 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924523', 'tblTempUsageDetail_20' ) start [2025-04-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924523', 'tblTempUsageDetail_20' ) end [2025-04-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924523', 'tblTempVendorCDR_20' ) start [2025-04-17 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924523', 'tblTempVendorCDR_20' ) end [2025-04-17 00:16:18] Production.INFO: ProcessCDR(1,14924523,1,1,2) [2025-04-17 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924523', 'tblTempUsageDetail_20' ) start [2025-04-17 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924523', 'tblTempUsageDetail_20' ) end [2025-04-17 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:16:21] Production.INFO: ==14056== Releasing lock... [2025-04-17 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:17:06 [end_date_ymd] => 2025-04-17 00:17:06 [RateCDR] => 1 ) [2025-04-17 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:17:06' and `end` < '2025-04-17 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:17:18] Production.INFO: count ==235 [2025-04-17 00:17:19] Production.ERROR: pbx CDR StartTime 2025-04-16 21:17:06 - End Time 2025-04-17 00:17:06 [2025-04-17 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924528', 'tblTempUsageDetail_20' ) start [2025-04-17 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924528', 'tblTempUsageDetail_20' ) end [2025-04-17 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924528', 'tblTempVendorCDR_20' ) start [2025-04-17 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924528', 'tblTempVendorCDR_20' ) end [2025-04-17 00:17:19] Production.INFO: ProcessCDR(1,14924528,1,1,2) [2025-04-17 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924528', 'tblTempUsageDetail_20' ) start [2025-04-17 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924528', 'tblTempUsageDetail_20' ) end [2025-04-17 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:17:22] Production.INFO: ==14130== Releasing lock... [2025-04-17 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:18:05 [end_date_ymd] => 2025-04-17 00:18:05 [RateCDR] => 1 ) [2025-04-17 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:18:05' and `end` < '2025-04-17 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:18:18] Production.INFO: count ==237 [2025-04-17 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:18:05 - End Time 2025-04-17 00:18:05 [2025-04-17 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924533', 'tblTempUsageDetail_20' ) start [2025-04-17 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924533', 'tblTempUsageDetail_20' ) end [2025-04-17 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924533', 'tblTempVendorCDR_20' ) start [2025-04-17 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924533', 'tblTempVendorCDR_20' ) end [2025-04-17 00:18:18] Production.INFO: ProcessCDR(1,14924533,1,1,2) [2025-04-17 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924533', 'tblTempUsageDetail_20' ) start [2025-04-17 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924533', 'tblTempUsageDetail_20' ) end [2025-04-17 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:18:21] Production.INFO: ==14203== Releasing lock... [2025-04-17 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:19:05 [end_date_ymd] => 2025-04-17 00:19:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:19:05' and `end` < '2025-04-17 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-17 00:19:18] Production.INFO: count ==235 [2025-04-17 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:19:05 - End Time 2025-04-17 00:19:05 [2025-04-17 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924538', 'tblTempUsageDetail_20' ) start [2025-04-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924538', 'tblTempUsageDetail_20' ) end [2025-04-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924538', 'tblTempVendorCDR_20' ) start [2025-04-17 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924538', 'tblTempVendorCDR_20' ) end [2025-04-17 00:19:18] Production.INFO: ProcessCDR(1,14924538,1,1,2) [2025-04-17 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924538', 'tblTempUsageDetail_20' ) start [2025-04-17 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924538', 'tblTempUsageDetail_20' ) end [2025-04-17 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:19:21] Production.INFO: ==14278== Releasing lock... [2025-04-17 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:20:06 [end_date_ymd] => 2025-04-17 00:20:06 [RateCDR] => 1 ) [2025-04-17 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:20:06' and `end` < '2025-04-17 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:20:18] Production.INFO: count ==234 [2025-04-17 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:20:06 - End Time 2025-04-17 00:20:06 [2025-04-17 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924544', 'tblTempUsageDetail_20' ) start [2025-04-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924544', 'tblTempUsageDetail_20' ) end [2025-04-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924544', 'tblTempVendorCDR_20' ) start [2025-04-17 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924544', 'tblTempVendorCDR_20' ) end [2025-04-17 00:20:18] Production.INFO: ProcessCDR(1,14924544,1,1,2) [2025-04-17 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924544', 'tblTempUsageDetail_20' ) start [2025-04-17 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924544', 'tblTempUsageDetail_20' ) end [2025-04-17 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:20:22] Production.INFO: ==14353== Releasing lock... [2025-04-17 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:21:05 [end_date_ymd] => 2025-04-17 00:21:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:21:05' and `end` < '2025-04-17 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-17 00:21:17] Production.INFO: count ==230 [2025-04-17 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:21:05 - End Time 2025-04-17 00:21:05 [2025-04-17 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924549', 'tblTempUsageDetail_20' ) start [2025-04-17 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924549', 'tblTempUsageDetail_20' ) end [2025-04-17 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924549', 'tblTempVendorCDR_20' ) start [2025-04-17 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924549', 'tblTempVendorCDR_20' ) end [2025-04-17 00:21:18] Production.INFO: ProcessCDR(1,14924549,1,1,2) [2025-04-17 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924549', 'tblTempUsageDetail_20' ) start [2025-04-17 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924549', 'tblTempUsageDetail_20' ) end [2025-04-17 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:21:21] Production.INFO: ==14426== Releasing lock... [2025-04-17 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:22:05 [end_date_ymd] => 2025-04-17 00:22:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:22:05' and `end` < '2025-04-17 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-17 00:22:18] Production.INFO: count ==226 [2025-04-17 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:22:05 - End Time 2025-04-17 00:22:05 [2025-04-17 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924554', 'tblTempUsageDetail_20' ) start [2025-04-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924554', 'tblTempUsageDetail_20' ) end [2025-04-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924554', 'tblTempVendorCDR_20' ) start [2025-04-17 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924554', 'tblTempVendorCDR_20' ) end [2025-04-17 00:22:18] Production.INFO: ProcessCDR(1,14924554,1,1,2) [2025-04-17 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924554', 'tblTempUsageDetail_20' ) start [2025-04-17 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924554', 'tblTempUsageDetail_20' ) end [2025-04-17 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:22:21] Production.INFO: ==14498== Releasing lock... [2025-04-17 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:23:05 [end_date_ymd] => 2025-04-17 00:23:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:23:05' and `end` < '2025-04-17 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-17 00:23:18] Production.INFO: count ==223 [2025-04-17 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:23:05 - End Time 2025-04-17 00:23:05 [2025-04-17 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924559', 'tblTempUsageDetail_20' ) start [2025-04-17 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924559', 'tblTempUsageDetail_20' ) end [2025-04-17 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924559', 'tblTempVendorCDR_20' ) start [2025-04-17 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924559', 'tblTempVendorCDR_20' ) end [2025-04-17 00:23:18] Production.INFO: ProcessCDR(1,14924559,1,1,2) [2025-04-17 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924559', 'tblTempUsageDetail_20' ) start [2025-04-17 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924559', 'tblTempUsageDetail_20' ) end [2025-04-17 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:23:21] Production.INFO: ==14571== Releasing lock... [2025-04-17 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:24:06 [end_date_ymd] => 2025-04-17 00:24:06 [RateCDR] => 1 ) [2025-04-17 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:24:06' and `end` < '2025-04-17 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:24:18] Production.INFO: count ==223 [2025-04-17 00:24:19] Production.ERROR: pbx CDR StartTime 2025-04-16 21:24:06 - End Time 2025-04-17 00:24:06 [2025-04-17 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924564', 'tblTempUsageDetail_20' ) start [2025-04-17 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924564', 'tblTempUsageDetail_20' ) end [2025-04-17 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924564', 'tblTempVendorCDR_20' ) start [2025-04-17 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924564', 'tblTempVendorCDR_20' ) end [2025-04-17 00:24:19] Production.INFO: ProcessCDR(1,14924564,1,1,2) [2025-04-17 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924564', 'tblTempUsageDetail_20' ) start [2025-04-17 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924564', 'tblTempUsageDetail_20' ) end [2025-04-17 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:24:22] Production.INFO: ==14648== Releasing lock... [2025-04-17 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:25:05 [end_date_ymd] => 2025-04-17 00:25:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:25:05' and `end` < '2025-04-17 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-17 00:25:17] Production.INFO: count ==223 [2025-04-17 00:25:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:25:05 - End Time 2025-04-17 00:25:05 [2025-04-17 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924569', 'tblTempUsageDetail_20' ) start [2025-04-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924569', 'tblTempUsageDetail_20' ) end [2025-04-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924569', 'tblTempVendorCDR_20' ) start [2025-04-17 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924569', 'tblTempVendorCDR_20' ) end [2025-04-17 00:25:17] Production.INFO: ProcessCDR(1,14924569,1,1,2) [2025-04-17 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924569', 'tblTempUsageDetail_20' ) start [2025-04-17 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924569', 'tblTempUsageDetail_20' ) end [2025-04-17 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:25:21] Production.INFO: ==14726== Releasing lock... [2025-04-17 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:26:05 [end_date_ymd] => 2025-04-17 00:26:05 [RateCDR] => 1 ) [2025-04-17 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:26:05' and `end` < '2025-04-17 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:26:18] Production.INFO: count ==222 [2025-04-17 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:26:05 - End Time 2025-04-17 00:26:05 [2025-04-17 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924574', 'tblTempUsageDetail_20' ) start [2025-04-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924574', 'tblTempUsageDetail_20' ) end [2025-04-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924574', 'tblTempVendorCDR_20' ) start [2025-04-17 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924574', 'tblTempVendorCDR_20' ) end [2025-04-17 00:26:18] Production.INFO: ProcessCDR(1,14924574,1,1,2) [2025-04-17 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924574', 'tblTempUsageDetail_20' ) start [2025-04-17 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924574', 'tblTempUsageDetail_20' ) end [2025-04-17 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:26:21] Production.INFO: ==14802== Releasing lock... [2025-04-17 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:26:21] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:27:05 [end_date_ymd] => 2025-04-17 00:27:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:27:05' and `end` < '2025-04-17 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-17 00:27:17] Production.INFO: count ==219 [2025-04-17 00:27:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:27:05 - End Time 2025-04-17 00:27:05 [2025-04-17 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924579', 'tblTempUsageDetail_20' ) start [2025-04-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924579', 'tblTempUsageDetail_20' ) end [2025-04-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924579', 'tblTempVendorCDR_20' ) start [2025-04-17 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924579', 'tblTempVendorCDR_20' ) end [2025-04-17 00:27:17] Production.INFO: ProcessCDR(1,14924579,1,1,2) [2025-04-17 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924579', 'tblTempUsageDetail_20' ) start [2025-04-17 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924579', 'tblTempUsageDetail_20' ) end [2025-04-17 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:27:22] Production.INFO: ==14915== Releasing lock... [2025-04-17 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:27:22] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:28:05 [end_date_ymd] => 2025-04-17 00:28:05 [RateCDR] => 1 ) [2025-04-17 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:28:05' and `end` < '2025-04-17 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:28:18] Production.INFO: count ==220 [2025-04-17 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:28:05 - End Time 2025-04-17 00:28:05 [2025-04-17 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924584', 'tblTempUsageDetail_20' ) start [2025-04-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924584', 'tblTempUsageDetail_20' ) end [2025-04-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924584', 'tblTempVendorCDR_20' ) start [2025-04-17 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924584', 'tblTempVendorCDR_20' ) end [2025-04-17 00:28:18] Production.INFO: ProcessCDR(1,14924584,1,1,2) [2025-04-17 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924584', 'tblTempUsageDetail_20' ) start [2025-04-17 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924584', 'tblTempUsageDetail_20' ) end [2025-04-17 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:28:21] Production.INFO: ==14987== Releasing lock... [2025-04-17 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-17 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:29:05 [end_date_ymd] => 2025-04-17 00:29:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:29:05' and `end` < '2025-04-17 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-17 00:29:17] Production.INFO: count ==222 [2025-04-17 00:29:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:29:05 - End Time 2025-04-17 00:29:05 [2025-04-17 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924589', 'tblTempUsageDetail_20' ) start [2025-04-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924589', 'tblTempUsageDetail_20' ) end [2025-04-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924589', 'tblTempVendorCDR_20' ) start [2025-04-17 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924589', 'tblTempVendorCDR_20' ) end [2025-04-17 00:29:17] Production.INFO: ProcessCDR(1,14924589,1,1,2) [2025-04-17 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924589', 'tblTempUsageDetail_20' ) start [2025-04-17 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924589', 'tblTempUsageDetail_20' ) end [2025-04-17 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:29:21] Production.INFO: ==15055== Releasing lock... [2025-04-17 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-17 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:30:06 [end_date_ymd] => 2025-04-17 00:30:06 [RateCDR] => 1 ) [2025-04-17 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-16 21:30:06' and `end` < '2025-04-17 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-17 00:30:18] Production.INFO: count ==232 [2025-04-17 00:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:30:06 - End Time 2025-04-17 00:30:06 [2025-04-17 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924594', 'tblTempUsageDetail_20' ) start [2025-04-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924594', 'tblTempUsageDetail_20' ) end [2025-04-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924594', 'tblTempVendorCDR_20' ) start [2025-04-17 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924594', 'tblTempVendorCDR_20' ) end [2025-04-17 00:30:18] Production.INFO: ProcessCDR(1,14924594,1,1,2) [2025-04-17 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924594', 'tblTempUsageDetail_20' ) start [2025-04-17 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924594', 'tblTempUsageDetail_20' ) end [2025-04-17 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:30:23] Production.INFO: ==15131== Releasing lock... [2025-04-17 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:31:06 [end_date_ymd] => 2025-04-17 00:31:06 [RateCDR] => 1 ) [2025-04-17 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:31:06' and `end` < '2025-04-17 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:31:18] Production.INFO: count ==255 [2025-04-17 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:31:06 - End Time 2025-04-17 00:31:06 [2025-04-17 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924600', 'tblTempUsageDetail_20' ) start [2025-04-17 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924600', 'tblTempUsageDetail_20' ) end [2025-04-17 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924600', 'tblTempVendorCDR_20' ) start [2025-04-17 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924600', 'tblTempVendorCDR_20' ) end [2025-04-17 00:31:18] Production.INFO: ProcessCDR(1,14924600,1,1,2) [2025-04-17 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924600', 'tblTempUsageDetail_20' ) start [2025-04-17 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924600', 'tblTempUsageDetail_20' ) end [2025-04-17 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:31:23] Production.INFO: ==15212== Releasing lock... [2025-04-17 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:31:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:32:05 [end_date_ymd] => 2025-04-17 00:32:05 [RateCDR] => 1 ) [2025-04-17 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:32:05' and `end` < '2025-04-17 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:32:17] Production.INFO: count ==263 [2025-04-17 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:32:05 - End Time 2025-04-17 00:32:05 [2025-04-17 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924605', 'tblTempUsageDetail_20' ) start [2025-04-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924605', 'tblTempUsageDetail_20' ) end [2025-04-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924605', 'tblTempVendorCDR_20' ) start [2025-04-17 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924605', 'tblTempVendorCDR_20' ) end [2025-04-17 00:32:18] Production.INFO: ProcessCDR(1,14924605,1,1,2) [2025-04-17 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924605', 'tblTempUsageDetail_20' ) start [2025-04-17 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924605', 'tblTempUsageDetail_20' ) end [2025-04-17 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:32:22] Production.INFO: ==15289== Releasing lock... [2025-04-17 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:32:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:33:05 [end_date_ymd] => 2025-04-17 00:33:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:33:05' and `end` < '2025-04-17 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-17 00:33:17] Production.INFO: count ==263 [2025-04-17 00:33:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:33:05 - End Time 2025-04-17 00:33:05 [2025-04-17 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924610', 'tblTempUsageDetail_20' ) start [2025-04-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924610', 'tblTempUsageDetail_20' ) end [2025-04-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924610', 'tblTempVendorCDR_20' ) start [2025-04-17 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924610', 'tblTempVendorCDR_20' ) end [2025-04-17 00:33:17] Production.INFO: ProcessCDR(1,14924610,1,1,2) [2025-04-17 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924610', 'tblTempUsageDetail_20' ) start [2025-04-17 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924610', 'tblTempUsageDetail_20' ) end [2025-04-17 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:33:21] Production.INFO: ==15361== Releasing lock... [2025-04-17 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:34:05 [end_date_ymd] => 2025-04-17 00:34:05 [RateCDR] => 1 ) [2025-04-17 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:34:05' and `end` < '2025-04-17 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:34:17] Production.INFO: count ==263 [2025-04-17 00:34:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:34:05 - End Time 2025-04-17 00:34:05 [2025-04-17 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924615', 'tblTempUsageDetail_20' ) start [2025-04-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924615', 'tblTempUsageDetail_20' ) end [2025-04-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924615', 'tblTempVendorCDR_20' ) start [2025-04-17 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924615', 'tblTempVendorCDR_20' ) end [2025-04-17 00:34:17] Production.INFO: ProcessCDR(1,14924615,1,1,2) [2025-04-17 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924615', 'tblTempUsageDetail_20' ) start [2025-04-17 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924615', 'tblTempUsageDetail_20' ) end [2025-04-17 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:34:21] Production.INFO: ==15431== Releasing lock... [2025-04-17 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:35:05 [end_date_ymd] => 2025-04-17 00:35:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:35:05' and `end` < '2025-04-17 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-17 00:35:18] Production.INFO: count ==265 [2025-04-17 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:35:05 - End Time 2025-04-17 00:35:05 [2025-04-17 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924620', 'tblTempUsageDetail_20' ) start [2025-04-17 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924620', 'tblTempUsageDetail_20' ) end [2025-04-17 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924620', 'tblTempVendorCDR_20' ) start [2025-04-17 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924620', 'tblTempVendorCDR_20' ) end [2025-04-17 00:35:18] Production.INFO: ProcessCDR(1,14924620,1,1,2) [2025-04-17 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924620', 'tblTempUsageDetail_20' ) start [2025-04-17 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924620', 'tblTempUsageDetail_20' ) end [2025-04-17 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:35:21] Production.INFO: ==15505== Releasing lock... [2025-04-17 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:36:05 [end_date_ymd] => 2025-04-17 00:36:05 [RateCDR] => 1 ) [2025-04-17 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:36:05' and `end` < '2025-04-17 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:36:17] Production.INFO: count ==266 [2025-04-17 00:36:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:36:05 - End Time 2025-04-17 00:36:05 [2025-04-17 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924625', 'tblTempUsageDetail_20' ) start [2025-04-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924625', 'tblTempUsageDetail_20' ) end [2025-04-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924625', 'tblTempVendorCDR_20' ) start [2025-04-17 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924625', 'tblTempVendorCDR_20' ) end [2025-04-17 00:36:17] Production.INFO: ProcessCDR(1,14924625,1,1,2) [2025-04-17 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924625', 'tblTempUsageDetail_20' ) start [2025-04-17 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924625', 'tblTempUsageDetail_20' ) end [2025-04-17 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:36:21] Production.INFO: ==15580== Releasing lock... [2025-04-17 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:36:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:37:05 [end_date_ymd] => 2025-04-17 00:37:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:37:05' and `end` < '2025-04-17 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-17 00:37:17] Production.INFO: count ==267 [2025-04-17 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:37:05 - End Time 2025-04-17 00:37:05 [2025-04-17 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924630', 'tblTempUsageDetail_20' ) start [2025-04-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924630', 'tblTempUsageDetail_20' ) end [2025-04-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924630', 'tblTempVendorCDR_20' ) start [2025-04-17 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924630', 'tblTempVendorCDR_20' ) end [2025-04-17 00:37:18] Production.INFO: ProcessCDR(1,14924630,1,1,2) [2025-04-17 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924630', 'tblTempUsageDetail_20' ) start [2025-04-17 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924630', 'tblTempUsageDetail_20' ) end [2025-04-17 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:37:22] Production.INFO: ==15658== Releasing lock... [2025-04-17 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:37:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:38:05 [end_date_ymd] => 2025-04-17 00:38:05 [RateCDR] => 1 ) [2025-04-17 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:38:05' and `end` < '2025-04-17 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:38:18] Production.INFO: count ==268 [2025-04-17 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:38:05 - End Time 2025-04-17 00:38:05 [2025-04-17 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924635', 'tblTempUsageDetail_20' ) start [2025-04-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924635', 'tblTempUsageDetail_20' ) end [2025-04-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924635', 'tblTempVendorCDR_20' ) start [2025-04-17 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924635', 'tblTempVendorCDR_20' ) end [2025-04-17 00:38:18] Production.INFO: ProcessCDR(1,14924635,1,1,2) [2025-04-17 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924635', 'tblTempUsageDetail_20' ) start [2025-04-17 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924635', 'tblTempUsageDetail_20' ) end [2025-04-17 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:38:22] Production.INFO: ==15734== Releasing lock... [2025-04-17 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:39:05 [end_date_ymd] => 2025-04-17 00:39:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:39:05' and `end` < '2025-04-17 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-17 00:39:17] Production.INFO: count ==266 [2025-04-17 00:39:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:39:05 - End Time 2025-04-17 00:39:05 [2025-04-17 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924640', 'tblTempUsageDetail_20' ) start [2025-04-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924640', 'tblTempUsageDetail_20' ) end [2025-04-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924640', 'tblTempVendorCDR_20' ) start [2025-04-17 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924640', 'tblTempVendorCDR_20' ) end [2025-04-17 00:39:17] Production.INFO: ProcessCDR(1,14924640,1,1,2) [2025-04-17 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924640', 'tblTempUsageDetail_20' ) start [2025-04-17 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924640', 'tblTempUsageDetail_20' ) end [2025-04-17 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:39:21] Production.INFO: ==15808== Releasing lock... [2025-04-17 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:40:05 [end_date_ymd] => 2025-04-17 00:40:05 [RateCDR] => 1 ) [2025-04-17 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:40:05' and `end` < '2025-04-17 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:40:18] Production.INFO: count ==271 [2025-04-17 00:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:40:05 - End Time 2025-04-17 00:40:05 [2025-04-17 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924644', 'tblTempUsageDetail_20' ) start [2025-04-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924644', 'tblTempUsageDetail_20' ) end [2025-04-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924644', 'tblTempVendorCDR_20' ) start [2025-04-17 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924644', 'tblTempVendorCDR_20' ) end [2025-04-17 00:40:18] Production.INFO: ProcessCDR(1,14924644,1,1,2) [2025-04-17 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924644', 'tblTempUsageDetail_20' ) start [2025-04-17 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924644', 'tblTempUsageDetail_20' ) end [2025-04-17 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:40:21] Production.INFO: ==15887== Releasing lock... [2025-04-17 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:40:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:41:05 [end_date_ymd] => 2025-04-17 00:41:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:41:05' and `end` < '2025-04-17 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-17 00:41:18] Production.INFO: count ==287 [2025-04-17 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:41:05 - End Time 2025-04-17 00:41:05 [2025-04-17 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924651', 'tblTempUsageDetail_20' ) start [2025-04-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924651', 'tblTempUsageDetail_20' ) end [2025-04-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924651', 'tblTempVendorCDR_20' ) start [2025-04-17 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924651', 'tblTempVendorCDR_20' ) end [2025-04-17 00:41:18] Production.INFO: ProcessCDR(1,14924651,1,1,2) [2025-04-17 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924651', 'tblTempUsageDetail_20' ) start [2025-04-17 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924651', 'tblTempUsageDetail_20' ) end [2025-04-17 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:41:21] Production.INFO: ==15966== Releasing lock... [2025-04-17 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:41:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:42:05 [end_date_ymd] => 2025-04-17 00:42:05 [RateCDR] => 1 ) [2025-04-17 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:42:05' and `end` < '2025-04-17 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:42:18] Production.INFO: count ==292 [2025-04-17 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:42:05 - End Time 2025-04-17 00:42:05 [2025-04-17 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924656', 'tblTempUsageDetail_20' ) start [2025-04-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924656', 'tblTempUsageDetail_20' ) end [2025-04-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924656', 'tblTempVendorCDR_20' ) start [2025-04-17 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924656', 'tblTempVendorCDR_20' ) end [2025-04-17 00:42:18] Production.INFO: ProcessCDR(1,14924656,1,1,2) [2025-04-17 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924656', 'tblTempUsageDetail_20' ) start [2025-04-17 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924656', 'tblTempUsageDetail_20' ) end [2025-04-17 00:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:42:23] Production.INFO: ==16040== Releasing lock... [2025-04-17 00:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:42:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:43:05 [end_date_ymd] => 2025-04-17 00:43:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:43:05' and `end` < '2025-04-17 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-17 00:43:17] Production.INFO: count ==290 [2025-04-17 00:43:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:43:05 - End Time 2025-04-17 00:43:05 [2025-04-17 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924661', 'tblTempUsageDetail_20' ) start [2025-04-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924661', 'tblTempUsageDetail_20' ) end [2025-04-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924661', 'tblTempVendorCDR_20' ) start [2025-04-17 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924661', 'tblTempVendorCDR_20' ) end [2025-04-17 00:43:17] Production.INFO: ProcessCDR(1,14924661,1,1,2) [2025-04-17 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924661', 'tblTempUsageDetail_20' ) start [2025-04-17 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924661', 'tblTempUsageDetail_20' ) end [2025-04-17 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:43:22] Production.INFO: ==16153== Releasing lock... [2025-04-17 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:44:06 [end_date_ymd] => 2025-04-17 00:44:06 [RateCDR] => 1 ) [2025-04-17 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:44:06' and `end` < '2025-04-17 00:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:44:18] Production.INFO: count ==292 [2025-04-17 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:44:06 - End Time 2025-04-17 00:44:06 [2025-04-17 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924666', 'tblTempUsageDetail_20' ) start [2025-04-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924666', 'tblTempUsageDetail_20' ) end [2025-04-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924666', 'tblTempVendorCDR_20' ) start [2025-04-17 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924666', 'tblTempVendorCDR_20' ) end [2025-04-17 00:44:18] Production.INFO: ProcessCDR(1,14924666,1,1,2) [2025-04-17 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924666', 'tblTempUsageDetail_20' ) start [2025-04-17 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924666', 'tblTempUsageDetail_20' ) end [2025-04-17 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:44:22] Production.INFO: ==16226== Releasing lock... [2025-04-17 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:45:04 [end_date_ymd] => 2025-04-17 00:45:04 [RateCDR] => 1 ) [2025-04-17 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:45:04' and `end` < '2025-04-17 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:45:17] Production.INFO: count ==292 [2025-04-17 00:45:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:45:04 - End Time 2025-04-17 00:45:04 [2025-04-17 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924671', 'tblTempUsageDetail_20' ) start [2025-04-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924671', 'tblTempUsageDetail_20' ) end [2025-04-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924671', 'tblTempVendorCDR_20' ) start [2025-04-17 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924671', 'tblTempVendorCDR_20' ) end [2025-04-17 00:45:17] Production.INFO: ProcessCDR(1,14924671,1,1,2) [2025-04-17 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924671', 'tblTempUsageDetail_20' ) start [2025-04-17 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924671', 'tblTempUsageDetail_20' ) end [2025-04-17 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:45:20] Production.INFO: ==16300== Releasing lock... [2025-04-17 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:45:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:46:05 [end_date_ymd] => 2025-04-17 00:46:05 [RateCDR] => 1 ) [2025-04-17 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:46:05' and `end` < '2025-04-17 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:46:18] Production.INFO: count ==295 [2025-04-17 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:46:05 - End Time 2025-04-17 00:46:05 [2025-04-17 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924676', 'tblTempUsageDetail_20' ) start [2025-04-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924676', 'tblTempUsageDetail_20' ) end [2025-04-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924676', 'tblTempVendorCDR_20' ) start [2025-04-17 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924676', 'tblTempVendorCDR_20' ) end [2025-04-17 00:46:18] Production.INFO: ProcessCDR(1,14924676,1,1,2) [2025-04-17 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924676', 'tblTempUsageDetail_20' ) start [2025-04-17 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924676', 'tblTempUsageDetail_20' ) end [2025-04-17 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:46:21] Production.INFO: ==16380== Releasing lock... [2025-04-17 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:46:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:47:05 [end_date_ymd] => 2025-04-17 00:47:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:47:05' and `end` < '2025-04-17 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-17 00:47:17] Production.INFO: count ==296 [2025-04-17 00:47:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:47:05 - End Time 2025-04-17 00:47:05 [2025-04-17 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924681', 'tblTempUsageDetail_20' ) start [2025-04-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924681', 'tblTempUsageDetail_20' ) end [2025-04-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924681', 'tblTempVendorCDR_20' ) start [2025-04-17 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924681', 'tblTempVendorCDR_20' ) end [2025-04-17 00:47:17] Production.INFO: ProcessCDR(1,14924681,1,1,2) [2025-04-17 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924681', 'tblTempUsageDetail_20' ) start [2025-04-17 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924681', 'tblTempUsageDetail_20' ) end [2025-04-17 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:47:21] Production.INFO: ==16451== Releasing lock... [2025-04-17 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:47:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:48:05 [end_date_ymd] => 2025-04-17 00:48:05 [RateCDR] => 1 ) [2025-04-17 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:48:05' and `end` < '2025-04-17 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:48:18] Production.INFO: count ==296 [2025-04-17 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:48:05 - End Time 2025-04-17 00:48:05 [2025-04-17 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924686', 'tblTempUsageDetail_20' ) start [2025-04-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924686', 'tblTempUsageDetail_20' ) end [2025-04-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924686', 'tblTempVendorCDR_20' ) start [2025-04-17 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924686', 'tblTempVendorCDR_20' ) end [2025-04-17 00:48:18] Production.INFO: ProcessCDR(1,14924686,1,1,2) [2025-04-17 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924686', 'tblTempUsageDetail_20' ) start [2025-04-17 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924686', 'tblTempUsageDetail_20' ) end [2025-04-17 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:48:21] Production.INFO: ==16522== Releasing lock... [2025-04-17 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:48:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:49:06 [end_date_ymd] => 2025-04-17 00:49:06 [RateCDR] => 1 ) [2025-04-17 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-16 21:49:06' and `end` < '2025-04-17 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-17 00:49:18] Production.INFO: count ==297 [2025-04-17 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:49:06 - End Time 2025-04-17 00:49:06 [2025-04-17 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924691', 'tblTempUsageDetail_20' ) start [2025-04-17 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924691', 'tblTempUsageDetail_20' ) end [2025-04-17 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924691', 'tblTempVendorCDR_20' ) start [2025-04-17 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924691', 'tblTempVendorCDR_20' ) end [2025-04-17 00:49:18] Production.INFO: ProcessCDR(1,14924691,1,1,2) [2025-04-17 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924691', 'tblTempUsageDetail_20' ) start [2025-04-17 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924691', 'tblTempUsageDetail_20' ) end [2025-04-17 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:49:22] Production.INFO: ==16596== Releasing lock... [2025-04-17 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:49:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:50:05 [end_date_ymd] => 2025-04-17 00:50:05 [RateCDR] => 1 ) [2025-04-17 00: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-16 21:50:05' and `end` < '2025-04-17 00: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-17 00:50:18] Production.INFO: count ==305 [2025-04-17 00:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:50:05 - End Time 2025-04-17 00:50:05 [2025-04-17 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924697', 'tblTempUsageDetail_20' ) start [2025-04-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924697', 'tblTempUsageDetail_20' ) end [2025-04-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924697', 'tblTempVendorCDR_20' ) start [2025-04-17 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924697', 'tblTempVendorCDR_20' ) end [2025-04-17 00:50:18] Production.INFO: ProcessCDR(1,14924697,1,1,2) [2025-04-17 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924697', 'tblTempUsageDetail_20' ) start [2025-04-17 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924697', 'tblTempUsageDetail_20' ) end [2025-04-17 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:50:21] Production.INFO: ==16668== Releasing lock... [2025-04-17 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:50:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:51:05 [end_date_ymd] => 2025-04-17 00:51:05 [RateCDR] => 1 ) [2025-04-17 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:51:05' and `end` < '2025-04-17 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:51:18] Production.INFO: count ==315 [2025-04-17 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:51:05 - End Time 2025-04-17 00:51:05 [2025-04-17 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924702', 'tblTempUsageDetail_20' ) start [2025-04-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924702', 'tblTempUsageDetail_20' ) end [2025-04-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924702', 'tblTempVendorCDR_20' ) start [2025-04-17 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924702', 'tblTempVendorCDR_20' ) end [2025-04-17 00:51:18] Production.INFO: ProcessCDR(1,14924702,1,1,2) [2025-04-17 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924702', 'tblTempUsageDetail_20' ) start [2025-04-17 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924702', 'tblTempUsageDetail_20' ) end [2025-04-17 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:51:21] Production.INFO: ==16756== Releasing lock... [2025-04-17 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:52:05 [end_date_ymd] => 2025-04-17 00:52:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:52:05' and `end` < '2025-04-17 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-17 00:52:18] Production.INFO: count ==315 [2025-04-17 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:52:05 - End Time 2025-04-17 00:52:05 [2025-04-17 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924707', 'tblTempUsageDetail_20' ) start [2025-04-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924707', 'tblTempUsageDetail_20' ) end [2025-04-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924707', 'tblTempVendorCDR_20' ) start [2025-04-17 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924707', 'tblTempVendorCDR_20' ) end [2025-04-17 00:52:18] Production.INFO: ProcessCDR(1,14924707,1,1,2) [2025-04-17 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924707', 'tblTempUsageDetail_20' ) start [2025-04-17 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924707', 'tblTempUsageDetail_20' ) end [2025-04-17 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:52:21] Production.INFO: ==16830== Releasing lock... [2025-04-17 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:53:05 [end_date_ymd] => 2025-04-17 00:53:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:53:05' and `end` < '2025-04-17 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-17 00:53:18] Production.INFO: count ==315 [2025-04-17 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:53:05 - End Time 2025-04-17 00:53:05 [2025-04-17 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924712', 'tblTempUsageDetail_20' ) start [2025-04-17 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924712', 'tblTempUsageDetail_20' ) end [2025-04-17 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924712', 'tblTempVendorCDR_20' ) start [2025-04-17 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924712', 'tblTempVendorCDR_20' ) end [2025-04-17 00:53:18] Production.INFO: ProcessCDR(1,14924712,1,1,2) [2025-04-17 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924712', 'tblTempUsageDetail_20' ) start [2025-04-17 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924712', 'tblTempUsageDetail_20' ) end [2025-04-17 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:53:21] Production.INFO: ==16907== Releasing lock... [2025-04-17 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:53:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:54:05 [end_date_ymd] => 2025-04-17 00:54:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:54:05' and `end` < '2025-04-17 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-17 00:54:17] Production.INFO: count ==337 [2025-04-17 00:54:17] Production.ERROR: pbx CDR StartTime 2025-04-16 21:54:05 - End Time 2025-04-17 00:54:05 [2025-04-17 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924717', 'tblTempUsageDetail_20' ) start [2025-04-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924717', 'tblTempUsageDetail_20' ) end [2025-04-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924717', 'tblTempVendorCDR_20' ) start [2025-04-17 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924717', 'tblTempVendorCDR_20' ) end [2025-04-17 00:54:17] Production.INFO: ProcessCDR(1,14924717,1,1,2) [2025-04-17 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924717', 'tblTempUsageDetail_20' ) start [2025-04-17 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924717', 'tblTempUsageDetail_20' ) end [2025-04-17 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:54:22] Production.INFO: ==16980== Releasing lock... [2025-04-17 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:54:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:55:05 [end_date_ymd] => 2025-04-17 00:55:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:55:05' and `end` < '2025-04-17 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-17 00:55:18] Production.INFO: count ==335 [2025-04-17 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:55:05 - End Time 2025-04-17 00:55:05 [2025-04-17 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924722', 'tblTempUsageDetail_20' ) start [2025-04-17 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924722', 'tblTempUsageDetail_20' ) end [2025-04-17 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924722', 'tblTempVendorCDR_20' ) start [2025-04-17 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924722', 'tblTempVendorCDR_20' ) end [2025-04-17 00:55:18] Production.INFO: ProcessCDR(1,14924722,1,1,2) [2025-04-17 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924722', 'tblTempUsageDetail_20' ) start [2025-04-17 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924722', 'tblTempUsageDetail_20' ) end [2025-04-17 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:55:21] Production.INFO: ==17061== Releasing lock... [2025-04-17 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:55:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:56:05 [end_date_ymd] => 2025-04-17 00:56:05 [RateCDR] => 1 ) [2025-04-17 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:56:05' and `end` < '2025-04-17 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:56:18] Production.INFO: count ==338 [2025-04-17 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:56:05 - End Time 2025-04-17 00:56:05 [2025-04-17 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924727', 'tblTempUsageDetail_20' ) start [2025-04-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924727', 'tblTempUsageDetail_20' ) end [2025-04-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924727', 'tblTempVendorCDR_20' ) start [2025-04-17 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924727', 'tblTempVendorCDR_20' ) end [2025-04-17 00:56:18] Production.INFO: ProcessCDR(1,14924727,1,1,2) [2025-04-17 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924727', 'tblTempUsageDetail_20' ) start [2025-04-17 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924727', 'tblTempUsageDetail_20' ) end [2025-04-17 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:56:21] Production.INFO: ==17139== Releasing lock... [2025-04-17 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:56:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:57:06 [end_date_ymd] => 2025-04-17 00:57:06 [RateCDR] => 1 ) [2025-04-17 00:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:57:06' and `end` < '2025-04-17 00:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:57:18] Production.INFO: count ==342 [2025-04-17 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:57:06 - End Time 2025-04-17 00:57:06 [2025-04-17 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924732', 'tblTempUsageDetail_20' ) start [2025-04-17 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924732', 'tblTempUsageDetail_20' ) end [2025-04-17 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924732', 'tblTempVendorCDR_20' ) start [2025-04-17 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924732', 'tblTempVendorCDR_20' ) end [2025-04-17 00:57:18] Production.INFO: ProcessCDR(1,14924732,1,1,2) [2025-04-17 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924732', 'tblTempUsageDetail_20' ) start [2025-04-17 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924732', 'tblTempUsageDetail_20' ) end [2025-04-17 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:57:23] Production.INFO: ==17215== Releasing lock... [2025-04-17 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:57:23] Production.INFO: 31 MB #Memory Used# [2025-04-17 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:58:05 [end_date_ymd] => 2025-04-17 00:58:05 [RateCDR] => 1 ) [2025-04-17 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 21:58:05' and `end` < '2025-04-17 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 00:58:17] Production.INFO: count ==338 [2025-04-17 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:58:05 - End Time 2025-04-17 00:58:05 [2025-04-17 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924737', 'tblTempUsageDetail_20' ) start [2025-04-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924737', 'tblTempUsageDetail_20' ) end [2025-04-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924737', 'tblTempVendorCDR_20' ) start [2025-04-17 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924737', 'tblTempVendorCDR_20' ) end [2025-04-17 00:58:18] Production.INFO: ProcessCDR(1,14924737,1,1,2) [2025-04-17 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924737', 'tblTempUsageDetail_20' ) start [2025-04-17 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924737', 'tblTempUsageDetail_20' ) end [2025-04-17 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:58:21] Production.INFO: ==17328== Releasing lock... [2025-04-17 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 21:59:05 [end_date_ymd] => 2025-04-17 00:59:05 [RateCDR] => 1 ) [2025-04-17 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-16 21:59:05' and `end` < '2025-04-17 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-17 00:59:17] Production.INFO: count ==339 [2025-04-17 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 21:59:05 - End Time 2025-04-17 00:59:05 [2025-04-17 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924742', 'tblTempUsageDetail_20' ) start [2025-04-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924742', 'tblTempUsageDetail_20' ) end [2025-04-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924742', 'tblTempVendorCDR_20' ) start [2025-04-17 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924742', 'tblTempVendorCDR_20' ) end [2025-04-17 00:59:18] Production.INFO: ProcessCDR(1,14924742,1,1,2) [2025-04-17 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924742', 'tblTempUsageDetail_20' ) start [2025-04-17 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924742', 'tblTempUsageDetail_20' ) end [2025-04-17 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 00:59:22] Production.INFO: ==17402== Releasing lock... [2025-04-17 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 00:59:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:00:05 [end_date_ymd] => 2025-04-17 01:00:05 [RateCDR] => 1 ) [2025-04-17 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:00:05' and `end` < '2025-04-17 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:00:18] Production.INFO: count ==348 [2025-04-17 01:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:00:05 - End Time 2025-04-17 01:00:05 [2025-04-17 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924747', 'tblTempUsageDetail_20' ) start [2025-04-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924747', 'tblTempUsageDetail_20' ) end [2025-04-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924747', 'tblTempVendorCDR_20' ) start [2025-04-17 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924747', 'tblTempVendorCDR_20' ) end [2025-04-17 01:00:18] Production.INFO: ProcessCDR(1,14924747,1,1,2) [2025-04-17 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924747', 'tblTempUsageDetail_20' ) start [2025-04-17 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924747', 'tblTempUsageDetail_20' ) end [2025-04-17 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:00:21] Production.INFO: ==17479== Releasing lock... [2025-04-17 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:00:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:01:05 [end_date_ymd] => 2025-04-17 01:01:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:01:05' and `end` < '2025-04-17 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-17 01:01:17] Production.INFO: count ==347 [2025-04-17 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:01:05 - End Time 2025-04-17 01:01:05 [2025-04-17 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924753', 'tblTempUsageDetail_20' ) start [2025-04-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924753', 'tblTempUsageDetail_20' ) end [2025-04-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924753', 'tblTempVendorCDR_20' ) start [2025-04-17 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924753', 'tblTempVendorCDR_20' ) end [2025-04-17 01:01:18] Production.INFO: ProcessCDR(1,14924753,1,1,2) [2025-04-17 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924753', 'tblTempUsageDetail_20' ) start [2025-04-17 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924753', 'tblTempUsageDetail_20' ) end [2025-04-17 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:01:21] Production.INFO: ==17576== Releasing lock... [2025-04-17 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:02:05 [end_date_ymd] => 2025-04-17 01:02:05 [RateCDR] => 1 ) [2025-04-17 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:02:05' and `end` < '2025-04-17 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:02:18] Production.INFO: count ==348 [2025-04-17 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:02:05 - End Time 2025-04-17 01:02:05 [2025-04-17 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924758', 'tblTempUsageDetail_20' ) start [2025-04-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924758', 'tblTempUsageDetail_20' ) end [2025-04-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924758', 'tblTempVendorCDR_20' ) start [2025-04-17 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924758', 'tblTempVendorCDR_20' ) end [2025-04-17 01:02:18] Production.INFO: ProcessCDR(1,14924758,1,1,2) [2025-04-17 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924758', 'tblTempUsageDetail_20' ) start [2025-04-17 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924758', 'tblTempUsageDetail_20' ) end [2025-04-17 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:02:22] Production.INFO: ==17650== Releasing lock... [2025-04-17 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:03:05 [end_date_ymd] => 2025-04-17 01:03:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:03:05' and `end` < '2025-04-17 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-17 01:03:18] Production.INFO: count ==347 [2025-04-17 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:03:05 - End Time 2025-04-17 01:03:05 [2025-04-17 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924763', 'tblTempUsageDetail_20' ) start [2025-04-17 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924763', 'tblTempUsageDetail_20' ) end [2025-04-17 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924763', 'tblTempVendorCDR_20' ) start [2025-04-17 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924763', 'tblTempVendorCDR_20' ) end [2025-04-17 01:03:18] Production.INFO: ProcessCDR(1,14924763,1,1,2) [2025-04-17 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924763', 'tblTempUsageDetail_20' ) start [2025-04-17 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924763', 'tblTempUsageDetail_20' ) end [2025-04-17 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:03:21] Production.INFO: ==17725== Releasing lock... [2025-04-17 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:04:05 [end_date_ymd] => 2025-04-17 01:04:05 [RateCDR] => 1 ) [2025-04-17 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:04:05' and `end` < '2025-04-17 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:04:18] Production.INFO: count ==347 [2025-04-17 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:04:05 - End Time 2025-04-17 01:04:05 [2025-04-17 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924768', 'tblTempUsageDetail_20' ) start [2025-04-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924768', 'tblTempUsageDetail_20' ) end [2025-04-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924768', 'tblTempVendorCDR_20' ) start [2025-04-17 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924768', 'tblTempVendorCDR_20' ) end [2025-04-17 01:04:18] Production.INFO: ProcessCDR(1,14924768,1,1,2) [2025-04-17 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924768', 'tblTempUsageDetail_20' ) start [2025-04-17 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924768', 'tblTempUsageDetail_20' ) end [2025-04-17 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:04:21] Production.INFO: ==17796== Releasing lock... [2025-04-17 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:05:04 [end_date_ymd] => 2025-04-17 01:05:04 [RateCDR] => 1 ) [2025-04-17 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:05:04' and `end` < '2025-04-17 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:05:17] Production.INFO: count ==348 [2025-04-17 01:05:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:05:04 - End Time 2025-04-17 01:05:04 [2025-04-17 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924773', 'tblTempUsageDetail_20' ) start [2025-04-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924773', 'tblTempUsageDetail_20' ) end [2025-04-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924773', 'tblTempVendorCDR_20' ) start [2025-04-17 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924773', 'tblTempVendorCDR_20' ) end [2025-04-17 01:05:17] Production.INFO: ProcessCDR(1,14924773,1,1,2) [2025-04-17 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924773', 'tblTempUsageDetail_20' ) start [2025-04-17 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924773', 'tblTempUsageDetail_20' ) end [2025-04-17 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:05:20] Production.INFO: ==17875== Releasing lock... [2025-04-17 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:05:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:06:05 [end_date_ymd] => 2025-04-17 01:06:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:06:05' and `end` < '2025-04-17 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-17 01:06:17] Production.INFO: count ==349 [2025-04-17 01:06:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:06:05 - End Time 2025-04-17 01:06:05 [2025-04-17 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924776', 'tblTempUsageDetail_20' ) start [2025-04-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924776', 'tblTempUsageDetail_20' ) end [2025-04-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924776', 'tblTempVendorCDR_20' ) start [2025-04-17 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924776', 'tblTempVendorCDR_20' ) end [2025-04-17 01:06:17] Production.INFO: ProcessCDR(1,14924776,1,1,2) [2025-04-17 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924776', 'tblTempUsageDetail_20' ) start [2025-04-17 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924776', 'tblTempUsageDetail_20' ) end [2025-04-17 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:06:22] Production.INFO: ==17955== Releasing lock... [2025-04-17 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:07:05 [end_date_ymd] => 2025-04-17 01:07:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:07:05' and `end` < '2025-04-17 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-17 01:07:18] Production.INFO: count ==350 [2025-04-17 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:07:05 - End Time 2025-04-17 01:07:05 [2025-04-17 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924783', 'tblTempUsageDetail_20' ) start [2025-04-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924783', 'tblTempUsageDetail_20' ) end [2025-04-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924783', 'tblTempVendorCDR_20' ) start [2025-04-17 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924783', 'tblTempVendorCDR_20' ) end [2025-04-17 01:07:18] Production.INFO: ProcessCDR(1,14924783,1,1,2) [2025-04-17 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924783', 'tblTempUsageDetail_20' ) start [2025-04-17 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924783', 'tblTempUsageDetail_20' ) end [2025-04-17 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:07:21] Production.INFO: ==18031== Releasing lock... [2025-04-17 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:08:05 [end_date_ymd] => 2025-04-17 01:08:05 [RateCDR] => 1 ) [2025-04-17 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:08:05' and `end` < '2025-04-17 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:08:18] Production.INFO: count ==352 [2025-04-17 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:08:05 - End Time 2025-04-17 01:08:05 [2025-04-17 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924788', 'tblTempUsageDetail_20' ) start [2025-04-17 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924788', 'tblTempUsageDetail_20' ) end [2025-04-17 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924788', 'tblTempVendorCDR_20' ) start [2025-04-17 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924788', 'tblTempVendorCDR_20' ) end [2025-04-17 01:08:18] Production.INFO: ProcessCDR(1,14924788,1,1,2) [2025-04-17 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924788', 'tblTempUsageDetail_20' ) start [2025-04-17 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924788', 'tblTempUsageDetail_20' ) end [2025-04-17 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:08:21] Production.INFO: ==18104== Releasing lock... [2025-04-17 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:09:04 [end_date_ymd] => 2025-04-17 01:09:04 [RateCDR] => 1 ) [2025-04-17 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:09:04' and `end` < '2025-04-17 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:09:17] Production.INFO: count ==349 [2025-04-17 01:09:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:09:04 - End Time 2025-04-17 01:09:04 [2025-04-17 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924793', 'tblTempUsageDetail_20' ) start [2025-04-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924793', 'tblTempUsageDetail_20' ) end [2025-04-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924793', 'tblTempVendorCDR_20' ) start [2025-04-17 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924793', 'tblTempVendorCDR_20' ) end [2025-04-17 01:09:17] Production.INFO: ProcessCDR(1,14924793,1,1,2) [2025-04-17 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924793', 'tblTempUsageDetail_20' ) start [2025-04-17 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924793', 'tblTempUsageDetail_20' ) end [2025-04-17 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:09:20] Production.INFO: ==18178== Releasing lock... [2025-04-17 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:09:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:10:06 [end_date_ymd] => 2025-04-17 01:10:06 [RateCDR] => 1 ) [2025-04-17 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:10:06' and `end` < '2025-04-17 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:10:18] Production.INFO: count ==346 [2025-04-17 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-16 22:10:06 - End Time 2025-04-17 01:10:06 [2025-04-17 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924799', 'tblTempUsageDetail_20' ) start [2025-04-17 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924799', 'tblTempUsageDetail_20' ) end [2025-04-17 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924799', 'tblTempVendorCDR_20' ) start [2025-04-17 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924799', 'tblTempVendorCDR_20' ) end [2025-04-17 01:10:19] Production.INFO: ProcessCDR(1,14924799,1,1,2) [2025-04-17 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924799', 'tblTempUsageDetail_20' ) start [2025-04-17 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924799', 'tblTempUsageDetail_20' ) end [2025-04-17 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:10:22] Production.INFO: ==18264== Releasing lock... [2025-04-17 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:11:05 [end_date_ymd] => 2025-04-17 01:11:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:11:05' and `end` < '2025-04-17 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-17 01:11:17] Production.INFO: count ==344 [2025-04-17 01:11:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:11:05 - End Time 2025-04-17 01:11:05 [2025-04-17 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924804', 'tblTempUsageDetail_20' ) start [2025-04-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924804', 'tblTempUsageDetail_20' ) end [2025-04-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924804', 'tblTempVendorCDR_20' ) start [2025-04-17 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924804', 'tblTempVendorCDR_20' ) end [2025-04-17 01:11:17] Production.INFO: ProcessCDR(1,14924804,1,1,2) [2025-04-17 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924804', 'tblTempUsageDetail_20' ) start [2025-04-17 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924804', 'tblTempUsageDetail_20' ) end [2025-04-17 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:11:21] Production.INFO: ==18348== Releasing lock... [2025-04-17 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:12:06 [end_date_ymd] => 2025-04-17 01:12:06 [RateCDR] => 1 ) [2025-04-17 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-16 22:12:06' and `end` < '2025-04-17 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-17 01:12:18] Production.INFO: count ==343 [2025-04-17 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:12:06 - End Time 2025-04-17 01:12:06 [2025-04-17 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924809', 'tblTempUsageDetail_20' ) start [2025-04-17 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924809', 'tblTempUsageDetail_20' ) end [2025-04-17 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924809', 'tblTempVendorCDR_20' ) start [2025-04-17 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924809', 'tblTempVendorCDR_20' ) end [2025-04-17 01:12:18] Production.INFO: ProcessCDR(1,14924809,1,1,2) [2025-04-17 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924809', 'tblTempUsageDetail_20' ) start [2025-04-17 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924809', 'tblTempUsageDetail_20' ) end [2025-04-17 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:12:22] Production.INFO: ==18425== Releasing lock... [2025-04-17 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:13:05 [end_date_ymd] => 2025-04-17 01:13:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:13:05' and `end` < '2025-04-17 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-17 01:13:17] Production.INFO: count ==343 [2025-04-17 01:13:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:13:05 - End Time 2025-04-17 01:13:05 [2025-04-17 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924814', 'tblTempUsageDetail_20' ) start [2025-04-17 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924814', 'tblTempUsageDetail_20' ) end [2025-04-17 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924814', 'tblTempVendorCDR_20' ) start [2025-04-17 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924814', 'tblTempVendorCDR_20' ) end [2025-04-17 01:13:17] Production.INFO: ProcessCDR(1,14924814,1,1,2) [2025-04-17 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924814', 'tblTempUsageDetail_20' ) start [2025-04-17 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924814', 'tblTempUsageDetail_20' ) end [2025-04-17 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:13:21] Production.INFO: ==18495== Releasing lock... [2025-04-17 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:14:05 [end_date_ymd] => 2025-04-17 01:14:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:14:05' and `end` < '2025-04-17 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-17 01:14:18] Production.INFO: count ==343 [2025-04-17 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:14:05 - End Time 2025-04-17 01:14:05 [2025-04-17 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924819', 'tblTempUsageDetail_20' ) start [2025-04-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924819', 'tblTempUsageDetail_20' ) end [2025-04-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924819', 'tblTempVendorCDR_20' ) start [2025-04-17 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924819', 'tblTempVendorCDR_20' ) end [2025-04-17 01:14:18] Production.INFO: ProcessCDR(1,14924819,1,1,2) [2025-04-17 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924819', 'tblTempUsageDetail_20' ) start [2025-04-17 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924819', 'tblTempUsageDetail_20' ) end [2025-04-17 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:14:21] Production.INFO: ==18608== Releasing lock... [2025-04-17 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:15:05 [end_date_ymd] => 2025-04-17 01:15:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:15:05' and `end` < '2025-04-17 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-17 01:15:18] Production.INFO: count ==344 [2025-04-17 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:15:05 - End Time 2025-04-17 01:15:05 [2025-04-17 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924824', 'tblTempUsageDetail_20' ) start [2025-04-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924824', 'tblTempUsageDetail_20' ) end [2025-04-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924824', 'tblTempVendorCDR_20' ) start [2025-04-17 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924824', 'tblTempVendorCDR_20' ) end [2025-04-17 01:15:18] Production.INFO: ProcessCDR(1,14924824,1,1,2) [2025-04-17 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924824', 'tblTempUsageDetail_20' ) start [2025-04-17 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924824', 'tblTempUsageDetail_20' ) end [2025-04-17 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:15:22] Production.INFO: ==18684== Releasing lock... [2025-04-17 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:15:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:16:04 [end_date_ymd] => 2025-04-17 01:16:04 [RateCDR] => 1 ) [2025-04-17 01:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:16:04' and `end` < '2025-04-17 01:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:16:17] Production.INFO: count ==344 [2025-04-17 01:16:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:16:04 - End Time 2025-04-17 01:16:04 [2025-04-17 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924829', 'tblTempUsageDetail_20' ) start [2025-04-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924829', 'tblTempUsageDetail_20' ) end [2025-04-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924829', 'tblTempVendorCDR_20' ) start [2025-04-17 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924829', 'tblTempVendorCDR_20' ) end [2025-04-17 01:16:17] Production.INFO: ProcessCDR(1,14924829,1,1,2) [2025-04-17 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924829', 'tblTempUsageDetail_20' ) start [2025-04-17 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924829', 'tblTempUsageDetail_20' ) end [2025-04-17 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:16:20] Production.INFO: ==18759== Releasing lock... [2025-04-17 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:16:20] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:17:05 [end_date_ymd] => 2025-04-17 01:17:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:17:05' and `end` < '2025-04-17 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-17 01:17:18] Production.INFO: count ==344 [2025-04-17 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:17:05 - End Time 2025-04-17 01:17:05 [2025-04-17 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924834', 'tblTempUsageDetail_20' ) start [2025-04-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924834', 'tblTempUsageDetail_20' ) end [2025-04-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924834', 'tblTempVendorCDR_20' ) start [2025-04-17 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924834', 'tblTempVendorCDR_20' ) end [2025-04-17 01:17:18] Production.INFO: ProcessCDR(1,14924834,1,1,2) [2025-04-17 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924834', 'tblTempUsageDetail_20' ) start [2025-04-17 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924834', 'tblTempUsageDetail_20' ) end [2025-04-17 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:17:22] Production.INFO: ==18841== Releasing lock... [2025-04-17 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:17:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:18:05 [end_date_ymd] => 2025-04-17 01:18:05 [RateCDR] => 1 ) [2025-04-17 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:18:05' and `end` < '2025-04-17 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:18:18] Production.INFO: count ==342 [2025-04-17 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:18:05 - End Time 2025-04-17 01:18:05 [2025-04-17 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924839', 'tblTempUsageDetail_20' ) start [2025-04-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924839', 'tblTempUsageDetail_20' ) end [2025-04-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924839', 'tblTempVendorCDR_20' ) start [2025-04-17 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924839', 'tblTempVendorCDR_20' ) end [2025-04-17 01:18:18] Production.INFO: ProcessCDR(1,14924839,1,1,2) [2025-04-17 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924839', 'tblTempUsageDetail_20' ) start [2025-04-17 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924839', 'tblTempUsageDetail_20' ) end [2025-04-17 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:18:21] Production.INFO: ==18928== Releasing lock... [2025-04-17 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:19:05 [end_date_ymd] => 2025-04-17 01:19:05 [RateCDR] => 1 ) [2025-04-17 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:19:05' and `end` < '2025-04-17 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:19:18] Production.INFO: count ==343 [2025-04-17 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:19:05 - End Time 2025-04-17 01:19:05 [2025-04-17 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924844', 'tblTempUsageDetail_20' ) start [2025-04-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924844', 'tblTempUsageDetail_20' ) end [2025-04-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924844', 'tblTempVendorCDR_20' ) start [2025-04-17 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924844', 'tblTempVendorCDR_20' ) end [2025-04-17 01:19:18] Production.INFO: ProcessCDR(1,14924844,1,1,2) [2025-04-17 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924844', 'tblTempUsageDetail_20' ) start [2025-04-17 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924844', 'tblTempUsageDetail_20' ) end [2025-04-17 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:19:22] Production.INFO: ==18998== Releasing lock... [2025-04-17 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:20:06 [end_date_ymd] => 2025-04-17 01:20:06 [RateCDR] => 1 ) [2025-04-17 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-16 22:20:06' and `end` < '2025-04-17 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-17 01:20:19] Production.INFO: count ==352 [2025-04-17 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 22:20:06 - End Time 2025-04-17 01:20:06 [2025-04-17 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924850', 'tblTempUsageDetail_20' ) start [2025-04-17 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924850', 'tblTempUsageDetail_20' ) end [2025-04-17 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924850', 'tblTempVendorCDR_20' ) start [2025-04-17 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924850', 'tblTempVendorCDR_20' ) end [2025-04-17 01:20:19] Production.INFO: ProcessCDR(1,14924850,1,1,2) [2025-04-17 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924850', 'tblTempUsageDetail_20' ) start [2025-04-17 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924850', 'tblTempUsageDetail_20' ) end [2025-04-17 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:20:22] Production.INFO: ==19081== Releasing lock... [2025-04-17 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:21:05 [end_date_ymd] => 2025-04-17 01:21:05 [RateCDR] => 1 ) [2025-04-17 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:21:05' and `end` < '2025-04-17 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:21:18] Production.INFO: count ==352 [2025-04-17 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:21:05 - End Time 2025-04-17 01:21:05 [2025-04-17 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924855', 'tblTempUsageDetail_20' ) start [2025-04-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924855', 'tblTempUsageDetail_20' ) end [2025-04-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924855', 'tblTempVendorCDR_20' ) start [2025-04-17 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924855', 'tblTempVendorCDR_20' ) end [2025-04-17 01:21:18] Production.INFO: ProcessCDR(1,14924855,1,1,2) [2025-04-17 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924855', 'tblTempUsageDetail_20' ) start [2025-04-17 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924855', 'tblTempUsageDetail_20' ) end [2025-04-17 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:21:21] Production.INFO: ==19164== Releasing lock... [2025-04-17 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:21:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:22:05 [end_date_ymd] => 2025-04-17 01:22:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:22:05' and `end` < '2025-04-17 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-17 01:22:18] Production.INFO: count ==352 [2025-04-17 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:22:05 - End Time 2025-04-17 01:22:05 [2025-04-17 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924860', 'tblTempUsageDetail_20' ) start [2025-04-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924860', 'tblTempUsageDetail_20' ) end [2025-04-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924860', 'tblTempVendorCDR_20' ) start [2025-04-17 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924860', 'tblTempVendorCDR_20' ) end [2025-04-17 01:22:18] Production.INFO: ProcessCDR(1,14924860,1,1,2) [2025-04-17 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924860', 'tblTempUsageDetail_20' ) start [2025-04-17 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924860', 'tblTempUsageDetail_20' ) end [2025-04-17 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:22:22] Production.INFO: ==19241== Releasing lock... [2025-04-17 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:22:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:23:05 [end_date_ymd] => 2025-04-17 01:23:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:23:05' and `end` < '2025-04-17 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-17 01:23:18] Production.INFO: count ==351 [2025-04-17 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:23:05 - End Time 2025-04-17 01:23:05 [2025-04-17 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924865', 'tblTempUsageDetail_20' ) start [2025-04-17 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924865', 'tblTempUsageDetail_20' ) end [2025-04-17 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924865', 'tblTempVendorCDR_20' ) start [2025-04-17 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924865', 'tblTempVendorCDR_20' ) end [2025-04-17 01:23:18] Production.INFO: ProcessCDR(1,14924865,1,1,2) [2025-04-17 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924865', 'tblTempUsageDetail_20' ) start [2025-04-17 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924865', 'tblTempUsageDetail_20' ) end [2025-04-17 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:23:21] Production.INFO: ==19316== Releasing lock... [2025-04-17 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:24:05 [end_date_ymd] => 2025-04-17 01:24:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:24:05' and `end` < '2025-04-17 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-17 01:24:18] Production.INFO: count ==350 [2025-04-17 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:24:05 - End Time 2025-04-17 01:24:05 [2025-04-17 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924870', 'tblTempUsageDetail_20' ) start [2025-04-17 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924870', 'tblTempUsageDetail_20' ) end [2025-04-17 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924870', 'tblTempVendorCDR_20' ) start [2025-04-17 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924870', 'tblTempVendorCDR_20' ) end [2025-04-17 01:24:18] Production.INFO: ProcessCDR(1,14924870,1,1,2) [2025-04-17 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924870', 'tblTempUsageDetail_20' ) start [2025-04-17 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924870', 'tblTempUsageDetail_20' ) end [2025-04-17 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:24:21] Production.INFO: ==19387== Releasing lock... [2025-04-17 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:24:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:25:05 [end_date_ymd] => 2025-04-17 01:25:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:25:05' and `end` < '2025-04-17 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-17 01:25:17] Production.INFO: count ==349 [2025-04-17 01:25:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:25:05 - End Time 2025-04-17 01:25:05 [2025-04-17 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924875', 'tblTempUsageDetail_20' ) start [2025-04-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924875', 'tblTempUsageDetail_20' ) end [2025-04-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924875', 'tblTempVendorCDR_20' ) start [2025-04-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924875', 'tblTempVendorCDR_20' ) end [2025-04-17 01:25:17] Production.INFO: ProcessCDR(1,14924875,1,1,2) [2025-04-17 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924875', 'tblTempUsageDetail_20' ) start [2025-04-17 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924875', 'tblTempUsageDetail_20' ) end [2025-04-17 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:25:20] Production.INFO: ==19466== Releasing lock... [2025-04-17 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:25:20] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:26:05 [end_date_ymd] => 2025-04-17 01:26:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:26:05' and `end` < '2025-04-17 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-17 01:26:18] Production.INFO: count ==348 [2025-04-17 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:26:05 - End Time 2025-04-17 01:26:05 [2025-04-17 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924880', 'tblTempUsageDetail_20' ) start [2025-04-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924880', 'tblTempUsageDetail_20' ) end [2025-04-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924880', 'tblTempVendorCDR_20' ) start [2025-04-17 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924880', 'tblTempVendorCDR_20' ) end [2025-04-17 01:26:18] Production.INFO: ProcessCDR(1,14924880,1,1,2) [2025-04-17 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924880', 'tblTempUsageDetail_20' ) start [2025-04-17 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924880', 'tblTempUsageDetail_20' ) end [2025-04-17 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:26:21] Production.INFO: ==19538== Releasing lock... [2025-04-17 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:27:05 [end_date_ymd] => 2025-04-17 01:27:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:27:05' and `end` < '2025-04-17 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-17 01:27:18] Production.INFO: count ==348 [2025-04-17 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:27:05 - End Time 2025-04-17 01:27:05 [2025-04-17 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924885', 'tblTempUsageDetail_20' ) start [2025-04-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924885', 'tblTempUsageDetail_20' ) end [2025-04-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924885', 'tblTempVendorCDR_20' ) start [2025-04-17 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924885', 'tblTempVendorCDR_20' ) end [2025-04-17 01:27:18] Production.INFO: ProcessCDR(1,14924885,1,1,2) [2025-04-17 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924885', 'tblTempUsageDetail_20' ) start [2025-04-17 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924885', 'tblTempUsageDetail_20' ) end [2025-04-17 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:27:21] Production.INFO: ==19618== Releasing lock... [2025-04-17 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:28:05 [end_date_ymd] => 2025-04-17 01:28:05 [RateCDR] => 1 ) [2025-04-17 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:28:05' and `end` < '2025-04-17 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:28:18] Production.INFO: count ==348 [2025-04-17 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:28:05 - End Time 2025-04-17 01:28:05 [2025-04-17 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924890', 'tblTempUsageDetail_20' ) start [2025-04-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924890', 'tblTempUsageDetail_20' ) end [2025-04-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924890', 'tblTempVendorCDR_20' ) start [2025-04-17 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924890', 'tblTempVendorCDR_20' ) end [2025-04-17 01:28:18] Production.INFO: ProcessCDR(1,14924890,1,1,2) [2025-04-17 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924890', 'tblTempUsageDetail_20' ) start [2025-04-17 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924890', 'tblTempUsageDetail_20' ) end [2025-04-17 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:28:21] Production.INFO: ==19692== Releasing lock... [2025-04-17 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:29:05 [end_date_ymd] => 2025-04-17 01:29:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:29:05' and `end` < '2025-04-17 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-17 01:29:18] Production.INFO: count ==346 [2025-04-17 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:29:05 - End Time 2025-04-17 01:29:05 [2025-04-17 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924895', 'tblTempUsageDetail_20' ) start [2025-04-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924895', 'tblTempUsageDetail_20' ) end [2025-04-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924895', 'tblTempVendorCDR_20' ) start [2025-04-17 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924895', 'tblTempVendorCDR_20' ) end [2025-04-17 01:29:18] Production.INFO: ProcessCDR(1,14924895,1,1,2) [2025-04-17 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924895', 'tblTempUsageDetail_20' ) start [2025-04-17 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924895', 'tblTempUsageDetail_20' ) end [2025-04-17 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:29:21] Production.INFO: ==19806== Releasing lock... [2025-04-17 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:29:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:30:06 [end_date_ymd] => 2025-04-17 01:30:06 [RateCDR] => 1 ) [2025-04-17 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:30:06' and `end` < '2025-04-17 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:30:18] Production.INFO: count ==356 [2025-04-17 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-16 22:30:06 - End Time 2025-04-17 01:30:06 [2025-04-17 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924900', 'tblTempUsageDetail_20' ) start [2025-04-17 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924900', 'tblTempUsageDetail_20' ) end [2025-04-17 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924900', 'tblTempVendorCDR_20' ) start [2025-04-17 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924900', 'tblTempVendorCDR_20' ) end [2025-04-17 01:30:19] Production.INFO: ProcessCDR(1,14924900,1,1,2) [2025-04-17 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924900', 'tblTempUsageDetail_20' ) start [2025-04-17 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924900', 'tblTempUsageDetail_20' ) end [2025-04-17 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:30:22] Production.INFO: ==19884== Releasing lock... [2025-04-17 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:30:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:31:05 [end_date_ymd] => 2025-04-17 01:31:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:31:05' and `end` < '2025-04-17 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-17 01:31:18] Production.INFO: count ==367 [2025-04-17 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:31:05 - End Time 2025-04-17 01:31:05 [2025-04-17 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924906', 'tblTempUsageDetail_20' ) start [2025-04-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924906', 'tblTempUsageDetail_20' ) end [2025-04-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924906', 'tblTempVendorCDR_20' ) start [2025-04-17 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924906', 'tblTempVendorCDR_20' ) end [2025-04-17 01:31:18] Production.INFO: ProcessCDR(1,14924906,1,1,2) [2025-04-17 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924906', 'tblTempUsageDetail_20' ) start [2025-04-17 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924906', 'tblTempUsageDetail_20' ) end [2025-04-17 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:31:23] Production.INFO: ==19966== Releasing lock... [2025-04-17 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:31:23] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:32:05 [end_date_ymd] => 2025-04-17 01:32:05 [RateCDR] => 1 ) [2025-04-17 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:32:05' and `end` < '2025-04-17 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:32:17] Production.INFO: count ==369 [2025-04-17 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:32:05 - End Time 2025-04-17 01:32:05 [2025-04-17 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924911', 'tblTempUsageDetail_20' ) start [2025-04-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924911', 'tblTempUsageDetail_20' ) end [2025-04-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924911', 'tblTempVendorCDR_20' ) start [2025-04-17 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924911', 'tblTempVendorCDR_20' ) end [2025-04-17 01:32:18] Production.INFO: ProcessCDR(1,14924911,1,1,2) [2025-04-17 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924911', 'tblTempUsageDetail_20' ) start [2025-04-17 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924911', 'tblTempUsageDetail_20' ) end [2025-04-17 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:32:22] Production.INFO: ==20044== Releasing lock... [2025-04-17 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:33:05 [end_date_ymd] => 2025-04-17 01:33:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:33:05' and `end` < '2025-04-17 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-17 01:33:17] Production.INFO: count ==370 [2025-04-17 01:33:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:33:05 - End Time 2025-04-17 01:33:05 [2025-04-17 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924916', 'tblTempUsageDetail_20' ) start [2025-04-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924916', 'tblTempUsageDetail_20' ) end [2025-04-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924916', 'tblTempVendorCDR_20' ) start [2025-04-17 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924916', 'tblTempVendorCDR_20' ) end [2025-04-17 01:33:17] Production.INFO: ProcessCDR(1,14924916,1,1,2) [2025-04-17 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924916', 'tblTempUsageDetail_20' ) start [2025-04-17 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924916', 'tblTempUsageDetail_20' ) end [2025-04-17 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:33:22] Production.INFO: ==20118== Releasing lock... [2025-04-17 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:33:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:34:05 [end_date_ymd] => 2025-04-17 01:34:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:34:05' and `end` < '2025-04-17 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:34:18] Production.INFO: count ==369 [2025-04-17 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:34:05 - End Time 2025-04-17 01:34:05 [2025-04-17 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924921', 'tblTempUsageDetail_20' ) start [2025-04-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924921', 'tblTempUsageDetail_20' ) end [2025-04-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924921', 'tblTempVendorCDR_20' ) start [2025-04-17 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924921', 'tblTempVendorCDR_20' ) end [2025-04-17 01:34:18] Production.INFO: ProcessCDR(1,14924921,1,1,2) [2025-04-17 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924921', 'tblTempUsageDetail_20' ) start [2025-04-17 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924921', 'tblTempUsageDetail_20' ) end [2025-04-17 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:34:22] Production.INFO: ==20201== Releasing lock... [2025-04-17 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:35:05 [end_date_ymd] => 2025-04-17 01:35:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:35:05' and `end` < '2025-04-17 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-17 01:35:18] Production.INFO: count ==367 [2025-04-17 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:35:05 - End Time 2025-04-17 01:35:05 [2025-04-17 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924926', 'tblTempUsageDetail_20' ) start [2025-04-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924926', 'tblTempUsageDetail_20' ) end [2025-04-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924926', 'tblTempVendorCDR_20' ) start [2025-04-17 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924926', 'tblTempVendorCDR_20' ) end [2025-04-17 01:35:18] Production.INFO: ProcessCDR(1,14924926,1,1,2) [2025-04-17 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924926', 'tblTempUsageDetail_20' ) start [2025-04-17 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924926', 'tblTempUsageDetail_20' ) end [2025-04-17 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:35:21] Production.INFO: ==20274== Releasing lock... [2025-04-17 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:36:05 [end_date_ymd] => 2025-04-17 01:36:05 [RateCDR] => 1 ) [2025-04-17 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:36:05' and `end` < '2025-04-17 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:36:17] Production.INFO: count ==368 [2025-04-17 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:36:05 - End Time 2025-04-17 01:36:05 [2025-04-17 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924931', 'tblTempUsageDetail_20' ) start [2025-04-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924931', 'tblTempUsageDetail_20' ) end [2025-04-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924931', 'tblTempVendorCDR_20' ) start [2025-04-17 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924931', 'tblTempVendorCDR_20' ) end [2025-04-17 01:36:18] Production.INFO: ProcessCDR(1,14924931,1,1,2) [2025-04-17 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924931', 'tblTempUsageDetail_20' ) start [2025-04-17 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924931', 'tblTempUsageDetail_20' ) end [2025-04-17 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:36:21] Production.INFO: ==20348== Releasing lock... [2025-04-17 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:37:05 [end_date_ymd] => 2025-04-17 01:37:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:37:05' and `end` < '2025-04-17 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-17 01:37:17] Production.INFO: count ==370 [2025-04-17 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:37:05 - End Time 2025-04-17 01:37:05 [2025-04-17 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924936', 'tblTempUsageDetail_20' ) start [2025-04-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924936', 'tblTempUsageDetail_20' ) end [2025-04-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924936', 'tblTempVendorCDR_20' ) start [2025-04-17 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924936', 'tblTempVendorCDR_20' ) end [2025-04-17 01:37:17] Production.INFO: ProcessCDR(1,14924936,1,1,2) [2025-04-17 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924936', 'tblTempUsageDetail_20' ) start [2025-04-17 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924936', 'tblTempUsageDetail_20' ) end [2025-04-17 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:37:21] Production.INFO: ==20423== Releasing lock... [2025-04-17 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:37:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:38:05 [end_date_ymd] => 2025-04-17 01:38:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:38:05' and `end` < '2025-04-17 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-17 01:38:17] Production.INFO: count ==370 [2025-04-17 01:38:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:38:05 - End Time 2025-04-17 01:38:05 [2025-04-17 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924941', 'tblTempUsageDetail_20' ) start [2025-04-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924941', 'tblTempUsageDetail_20' ) end [2025-04-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924941', 'tblTempVendorCDR_20' ) start [2025-04-17 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924941', 'tblTempVendorCDR_20' ) end [2025-04-17 01:38:18] Production.INFO: ProcessCDR(1,14924941,1,1,2) [2025-04-17 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924941', 'tblTempUsageDetail_20' ) start [2025-04-17 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924941', 'tblTempUsageDetail_20' ) end [2025-04-17 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:38:21] Production.INFO: ==20496== Releasing lock... [2025-04-17 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:38:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:39:04 [end_date_ymd] => 2025-04-17 01:39:04 [RateCDR] => 1 ) [2025-04-17 01:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:39:04' and `end` < '2025-04-17 01:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:39:17] Production.INFO: count ==370 [2025-04-17 01:39:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:39:04 - End Time 2025-04-17 01:39:04 [2025-04-17 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924946', 'tblTempUsageDetail_20' ) start [2025-04-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924946', 'tblTempUsageDetail_20' ) end [2025-04-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924946', 'tblTempVendorCDR_20' ) start [2025-04-17 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924946', 'tblTempVendorCDR_20' ) end [2025-04-17 01:39:17] Production.INFO: ProcessCDR(1,14924946,1,1,2) [2025-04-17 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924946', 'tblTempUsageDetail_20' ) start [2025-04-17 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924946', 'tblTempUsageDetail_20' ) end [2025-04-17 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:39:20] Production.INFO: ==20573== Releasing lock... [2025-04-17 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:39:20] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:40:06 [end_date_ymd] => 2025-04-17 01:40:06 [RateCDR] => 1 ) [2025-04-17 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-16 22:40:06' and `end` < '2025-04-17 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-17 01:40:19] Production.INFO: count ==379 [2025-04-17 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-16 22:40:06 - End Time 2025-04-17 01:40:06 [2025-04-17 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924951', 'tblTempUsageDetail_20' ) start [2025-04-17 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924951', 'tblTempUsageDetail_20' ) end [2025-04-17 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924951', 'tblTempVendorCDR_20' ) start [2025-04-17 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924951', 'tblTempVendorCDR_20' ) end [2025-04-17 01:40:19] Production.INFO: ProcessCDR(1,14924951,1,1,2) [2025-04-17 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924951', 'tblTempUsageDetail_20' ) start [2025-04-17 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924951', 'tblTempUsageDetail_20' ) end [2025-04-17 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:40:22] Production.INFO: ==20654== Releasing lock... [2025-04-17 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:41:04 [end_date_ymd] => 2025-04-17 01:41:04 [RateCDR] => 1 ) [2025-04-17 01:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:41:04' and `end` < '2025-04-17 01:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:41:17] Production.INFO: count ==386 [2025-04-17 01:41:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:41:04 - End Time 2025-04-17 01:41:04 [2025-04-17 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924957', 'tblTempUsageDetail_20' ) start [2025-04-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924957', 'tblTempUsageDetail_20' ) end [2025-04-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924957', 'tblTempVendorCDR_20' ) start [2025-04-17 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924957', 'tblTempVendorCDR_20' ) end [2025-04-17 01:41:17] Production.INFO: ProcessCDR(1,14924957,1,1,2) [2025-04-17 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924957', 'tblTempUsageDetail_20' ) start [2025-04-17 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924957', 'tblTempUsageDetail_20' ) end [2025-04-17 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:41:20] Production.INFO: ==20731== Releasing lock... [2025-04-17 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:41:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:42:05 [end_date_ymd] => 2025-04-17 01:42:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:42:05' and `end` < '2025-04-17 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-17 01:42:18] Production.INFO: count ==388 [2025-04-17 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:42:05 - End Time 2025-04-17 01:42:05 [2025-04-17 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924962', 'tblTempUsageDetail_20' ) start [2025-04-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924962', 'tblTempUsageDetail_20' ) end [2025-04-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924962', 'tblTempVendorCDR_20' ) start [2025-04-17 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924962', 'tblTempVendorCDR_20' ) end [2025-04-17 01:42:18] Production.INFO: ProcessCDR(1,14924962,1,1,2) [2025-04-17 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924962', 'tblTempUsageDetail_20' ) start [2025-04-17 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924962', 'tblTempUsageDetail_20' ) end [2025-04-17 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:42:21] Production.INFO: ==20805== Releasing lock... [2025-04-17 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:43:06 [end_date_ymd] => 2025-04-17 01:43:06 [RateCDR] => 1 ) [2025-04-17 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-16 22:43:06' and `end` < '2025-04-17 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-17 01:43:19] Production.INFO: count ==388 [2025-04-17 01:43:19] Production.ERROR: pbx CDR StartTime 2025-04-16 22:43:06 - End Time 2025-04-17 01:43:06 [2025-04-17 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924967', 'tblTempUsageDetail_20' ) start [2025-04-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924967', 'tblTempUsageDetail_20' ) end [2025-04-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924967', 'tblTempVendorCDR_20' ) start [2025-04-17 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924967', 'tblTempVendorCDR_20' ) end [2025-04-17 01:43:19] Production.INFO: ProcessCDR(1,14924967,1,1,2) [2025-04-17 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924967', 'tblTempUsageDetail_20' ) start [2025-04-17 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924967', 'tblTempUsageDetail_20' ) end [2025-04-17 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:43:22] Production.INFO: ==20883== Releasing lock... [2025-04-17 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:44:05 [end_date_ymd] => 2025-04-17 01:44:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:44:05' and `end` < '2025-04-17 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-17 01:44:17] Production.INFO: count ==388 [2025-04-17 01:44:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:44:05 - End Time 2025-04-17 01:44:05 [2025-04-17 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924972', 'tblTempUsageDetail_20' ) start [2025-04-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924972', 'tblTempUsageDetail_20' ) end [2025-04-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924972', 'tblTempVendorCDR_20' ) start [2025-04-17 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924972', 'tblTempVendorCDR_20' ) end [2025-04-17 01:44:17] Production.INFO: ProcessCDR(1,14924972,1,1,2) [2025-04-17 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924972', 'tblTempUsageDetail_20' ) start [2025-04-17 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924972', 'tblTempUsageDetail_20' ) end [2025-04-17 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:44:21] Production.INFO: ==21004== Releasing lock... [2025-04-17 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:45:05 [end_date_ymd] => 2025-04-17 01:45:05 [RateCDR] => 1 ) [2025-04-17 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:45:05' and `end` < '2025-04-17 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:45:18] Production.INFO: count ==390 [2025-04-17 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:45:05 - End Time 2025-04-17 01:45:05 [2025-04-17 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924977', 'tblTempUsageDetail_20' ) start [2025-04-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924977', 'tblTempUsageDetail_20' ) end [2025-04-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924977', 'tblTempVendorCDR_20' ) start [2025-04-17 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924977', 'tblTempVendorCDR_20' ) end [2025-04-17 01:45:18] Production.INFO: ProcessCDR(1,14924977,1,1,2) [2025-04-17 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924977', 'tblTempUsageDetail_20' ) start [2025-04-17 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924977', 'tblTempUsageDetail_20' ) end [2025-04-17 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:45:21] Production.INFO: ==21093== Releasing lock... [2025-04-17 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:46:05 [end_date_ymd] => 2025-04-17 01:46:05 [RateCDR] => 1 ) [2025-04-17 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:46:05' and `end` < '2025-04-17 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:46:18] Production.INFO: count ==390 [2025-04-17 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:46:05 - End Time 2025-04-17 01:46:05 [2025-04-17 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924982', 'tblTempUsageDetail_20' ) start [2025-04-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924982', 'tblTempUsageDetail_20' ) end [2025-04-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924982', 'tblTempVendorCDR_20' ) start [2025-04-17 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924982', 'tblTempVendorCDR_20' ) end [2025-04-17 01:46:18] Production.INFO: ProcessCDR(1,14924982,1,1,2) [2025-04-17 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924982', 'tblTempUsageDetail_20' ) start [2025-04-17 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924982', 'tblTempUsageDetail_20' ) end [2025-04-17 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:46:21] Production.INFO: ==21170== Releasing lock... [2025-04-17 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:47:05 [end_date_ymd] => 2025-04-17 01:47:05 [RateCDR] => 1 ) [2025-04-17 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:47:05' and `end` < '2025-04-17 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:47:18] Production.INFO: count ==391 [2025-04-17 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:47:05 - End Time 2025-04-17 01:47:05 [2025-04-17 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924987', 'tblTempUsageDetail_20' ) start [2025-04-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924987', 'tblTempUsageDetail_20' ) end [2025-04-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924987', 'tblTempVendorCDR_20' ) start [2025-04-17 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924987', 'tblTempVendorCDR_20' ) end [2025-04-17 01:47:18] Production.INFO: ProcessCDR(1,14924987,1,1,2) [2025-04-17 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924987', 'tblTempUsageDetail_20' ) start [2025-04-17 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924987', 'tblTempUsageDetail_20' ) end [2025-04-17 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:47:22] Production.INFO: ==21252== Releasing lock... [2025-04-17 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:48:05 [end_date_ymd] => 2025-04-17 01:48:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:48:05' and `end` < '2025-04-17 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-17 01:48:18] Production.INFO: count ==392 [2025-04-17 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:48:05 - End Time 2025-04-17 01:48:05 [2025-04-17 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924992', 'tblTempUsageDetail_20' ) start [2025-04-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924992', 'tblTempUsageDetail_20' ) end [2025-04-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924992', 'tblTempVendorCDR_20' ) start [2025-04-17 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924992', 'tblTempVendorCDR_20' ) end [2025-04-17 01:48:18] Production.INFO: ProcessCDR(1,14924992,1,1,2) [2025-04-17 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924992', 'tblTempUsageDetail_20' ) start [2025-04-17 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924992', 'tblTempUsageDetail_20' ) end [2025-04-17 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:48:21] Production.INFO: ==21336== Releasing lock... [2025-04-17 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:48:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:49:05 [end_date_ymd] => 2025-04-17 01:49:05 [RateCDR] => 1 ) [2025-04-17 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:49:05' and `end` < '2025-04-17 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:49:18] Production.INFO: count ==392 [2025-04-17 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:49:05 - End Time 2025-04-17 01:49:05 [2025-04-17 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924997', 'tblTempUsageDetail_20' ) start [2025-04-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14924997', 'tblTempUsageDetail_20' ) end [2025-04-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924997', 'tblTempVendorCDR_20' ) start [2025-04-17 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14924997', 'tblTempVendorCDR_20' ) end [2025-04-17 01:49:18] Production.INFO: ProcessCDR(1,14924997,1,1,2) [2025-04-17 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14924997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14924997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14924997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14924997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924997', 'tblTempUsageDetail_20' ) start [2025-04-17 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14924997', 'tblTempUsageDetail_20' ) end [2025-04-17 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:49:21] Production.INFO: ==21416== Releasing lock... [2025-04-17 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:49:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:50:05 [end_date_ymd] => 2025-04-17 01:50:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:50:05' and `end` < '2025-04-17 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-17 01:50:18] Production.INFO: count ==396 [2025-04-17 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:50:05 - End Time 2025-04-17 01:50:05 [2025-04-17 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925003', 'tblTempUsageDetail_20' ) start [2025-04-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925003', 'tblTempUsageDetail_20' ) end [2025-04-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925003', 'tblTempVendorCDR_20' ) start [2025-04-17 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925003', 'tblTempVendorCDR_20' ) end [2025-04-17 01:50:18] Production.INFO: ProcessCDR(1,14925003,1,1,2) [2025-04-17 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925003', 'tblTempUsageDetail_20' ) start [2025-04-17 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925003', 'tblTempUsageDetail_20' ) end [2025-04-17 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:50:21] Production.INFO: ==21498== Releasing lock... [2025-04-17 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:50:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:51:05 [end_date_ymd] => 2025-04-17 01:51:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:51:05' and `end` < '2025-04-17 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-17 01:51:17] Production.INFO: count ==395 [2025-04-17 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:51:05 - End Time 2025-04-17 01:51:05 [2025-04-17 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925008', 'tblTempUsageDetail_20' ) start [2025-04-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925008', 'tblTempUsageDetail_20' ) end [2025-04-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925008', 'tblTempVendorCDR_20' ) start [2025-04-17 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925008', 'tblTempVendorCDR_20' ) end [2025-04-17 01:51:18] Production.INFO: ProcessCDR(1,14925008,1,1,2) [2025-04-17 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925008', 'tblTempUsageDetail_20' ) start [2025-04-17 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925008', 'tblTempUsageDetail_20' ) end [2025-04-17 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:51:21] Production.INFO: ==21580== Releasing lock... [2025-04-17 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:52:06 [end_date_ymd] => 2025-04-17 01:52:06 [RateCDR] => 1 ) [2025-04-17 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:52:06' and `end` < '2025-04-17 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:52:18] Production.INFO: count ==396 [2025-04-17 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:52:06 - End Time 2025-04-17 01:52:06 [2025-04-17 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925013', 'tblTempUsageDetail_20' ) start [2025-04-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925013', 'tblTempUsageDetail_20' ) end [2025-04-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925013', 'tblTempVendorCDR_20' ) start [2025-04-17 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925013', 'tblTempVendorCDR_20' ) end [2025-04-17 01:52:18] Production.INFO: ProcessCDR(1,14925013,1,1,2) [2025-04-17 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925013', 'tblTempUsageDetail_20' ) start [2025-04-17 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925013', 'tblTempUsageDetail_20' ) end [2025-04-17 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:52:22] Production.INFO: ==21659== Releasing lock... [2025-04-17 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:53:05 [end_date_ymd] => 2025-04-17 01:53:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:53:05' and `end` < '2025-04-17 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-17 01:53:18] Production.INFO: count ==397 [2025-04-17 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:53:05 - End Time 2025-04-17 01:53:05 [2025-04-17 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925018', 'tblTempUsageDetail_20' ) start [2025-04-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925018', 'tblTempUsageDetail_20' ) end [2025-04-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925018', 'tblTempVendorCDR_20' ) start [2025-04-17 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925018', 'tblTempVendorCDR_20' ) end [2025-04-17 01:53:18] Production.INFO: ProcessCDR(1,14925018,1,1,2) [2025-04-17 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925018', 'tblTempUsageDetail_20' ) start [2025-04-17 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925018', 'tblTempUsageDetail_20' ) end [2025-04-17 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:53:21] Production.INFO: ==21738== Releasing lock... [2025-04-17 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:54:05 [end_date_ymd] => 2025-04-17 01:54:05 [RateCDR] => 1 ) [2025-04-17 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:54:05' and `end` < '2025-04-17 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:54:18] Production.INFO: count ==398 [2025-04-17 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:54:05 - End Time 2025-04-17 01:54:05 [2025-04-17 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925023', 'tblTempUsageDetail_20' ) start [2025-04-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925023', 'tblTempUsageDetail_20' ) end [2025-04-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925023', 'tblTempVendorCDR_20' ) start [2025-04-17 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925023', 'tblTempVendorCDR_20' ) end [2025-04-17 01:54:18] Production.INFO: ProcessCDR(1,14925023,1,1,2) [2025-04-17 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925023', 'tblTempUsageDetail_20' ) start [2025-04-17 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925023', 'tblTempUsageDetail_20' ) end [2025-04-17 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:54:21] Production.INFO: ==21812== Releasing lock... [2025-04-17 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:55:05 [end_date_ymd] => 2025-04-17 01:55:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:55:05' and `end` < '2025-04-17 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-17 01:55:18] Production.INFO: count ==398 [2025-04-17 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:55:05 - End Time 2025-04-17 01:55:05 [2025-04-17 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925028', 'tblTempUsageDetail_20' ) start [2025-04-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925028', 'tblTempUsageDetail_20' ) end [2025-04-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925028', 'tblTempVendorCDR_20' ) start [2025-04-17 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925028', 'tblTempVendorCDR_20' ) end [2025-04-17 01:55:18] Production.INFO: ProcessCDR(1,14925028,1,1,2) [2025-04-17 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925028', 'tblTempUsageDetail_20' ) start [2025-04-17 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925028', 'tblTempUsageDetail_20' ) end [2025-04-17 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:55:21] Production.INFO: ==21893== Releasing lock... [2025-04-17 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:56:06 [end_date_ymd] => 2025-04-17 01:56:06 [RateCDR] => 1 ) [2025-04-17 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-16 22:56:06' and `end` < '2025-04-17 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-17 01:56:18] Production.INFO: count ==396 [2025-04-17 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:56:06 - End Time 2025-04-17 01:56:06 [2025-04-17 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925033', 'tblTempUsageDetail_20' ) start [2025-04-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925033', 'tblTempUsageDetail_20' ) end [2025-04-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925033', 'tblTempVendorCDR_20' ) start [2025-04-17 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925033', 'tblTempVendorCDR_20' ) end [2025-04-17 01:56:18] Production.INFO: ProcessCDR(1,14925033,1,1,2) [2025-04-17 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925033', 'tblTempUsageDetail_20' ) start [2025-04-17 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925033', 'tblTempUsageDetail_20' ) end [2025-04-17 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:56:22] Production.INFO: ==21966== Releasing lock... [2025-04-17 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:57:05 [end_date_ymd] => 2025-04-17 01:57:05 [RateCDR] => 1 ) [2025-04-17 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:57:05' and `end` < '2025-04-17 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:57:18] Production.INFO: count ==395 [2025-04-17 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:57:05 - End Time 2025-04-17 01:57:05 [2025-04-17 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925038', 'tblTempUsageDetail_20' ) start [2025-04-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925038', 'tblTempUsageDetail_20' ) end [2025-04-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925038', 'tblTempVendorCDR_20' ) start [2025-04-17 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925038', 'tblTempVendorCDR_20' ) end [2025-04-17 01:57:18] Production.INFO: ProcessCDR(1,14925038,1,1,2) [2025-04-17 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925038', 'tblTempUsageDetail_20' ) start [2025-04-17 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925038', 'tblTempUsageDetail_20' ) end [2025-04-17 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:57:21] Production.INFO: ==22035== Releasing lock... [2025-04-17 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:58:05 [end_date_ymd] => 2025-04-17 01:58:05 [RateCDR] => 1 ) [2025-04-17 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 22:58:05' and `end` < '2025-04-17 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 01:58:18] Production.INFO: count ==394 [2025-04-17 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-16 22:58:05 - End Time 2025-04-17 01:58:05 [2025-04-17 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925043', 'tblTempUsageDetail_20' ) start [2025-04-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925043', 'tblTempUsageDetail_20' ) end [2025-04-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925043', 'tblTempVendorCDR_20' ) start [2025-04-17 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925043', 'tblTempVendorCDR_20' ) end [2025-04-17 01:58:18] Production.INFO: ProcessCDR(1,14925043,1,1,2) [2025-04-17 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925043', 'tblTempUsageDetail_20' ) start [2025-04-17 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925043', 'tblTempUsageDetail_20' ) end [2025-04-17 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:58:21] Production.INFO: ==22112== Releasing lock... [2025-04-17 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 22:59:05 [end_date_ymd] => 2025-04-17 01:59:05 [RateCDR] => 1 ) [2025-04-17 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-16 22:59:05' and `end` < '2025-04-17 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-17 01:59:17] Production.INFO: count ==395 [2025-04-17 01:59:17] Production.ERROR: pbx CDR StartTime 2025-04-16 22:59:05 - End Time 2025-04-17 01:59:05 [2025-04-17 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925048', 'tblTempUsageDetail_20' ) start [2025-04-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925048', 'tblTempUsageDetail_20' ) end [2025-04-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925048', 'tblTempVendorCDR_20' ) start [2025-04-17 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925048', 'tblTempVendorCDR_20' ) end [2025-04-17 01:59:17] Production.INFO: ProcessCDR(1,14925048,1,1,2) [2025-04-17 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925048', 'tblTempUsageDetail_20' ) start [2025-04-17 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925048', 'tblTempUsageDetail_20' ) end [2025-04-17 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 01:59:21] Production.INFO: ==22191== Releasing lock... [2025-04-17 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 01:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:00:06 [end_date_ymd] => 2025-04-17 02:00:06 [RateCDR] => 1 ) [2025-04-17 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-16 23:00:06' and `end` < '2025-04-17 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-17 02:00:18] Production.INFO: count ==404 [2025-04-17 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:00:06 - End Time 2025-04-17 02:00:06 [2025-04-17 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925054', 'tblTempUsageDetail_20' ) start [2025-04-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925054', 'tblTempUsageDetail_20' ) end [2025-04-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925054', 'tblTempVendorCDR_20' ) start [2025-04-17 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925054', 'tblTempVendorCDR_20' ) end [2025-04-17 02:00:18] Production.INFO: ProcessCDR(1,14925054,1,1,2) [2025-04-17 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925054', 'tblTempUsageDetail_20' ) start [2025-04-17 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925054', 'tblTempUsageDetail_20' ) end [2025-04-17 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:00:22] Production.INFO: ==22307== Releasing lock... [2025-04-17 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:01:05 [end_date_ymd] => 2025-04-17 02:01:05 [RateCDR] => 1 ) [2025-04-17 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:01:05' and `end` < '2025-04-17 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:01:18] Production.INFO: count ==403 [2025-04-17 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:01:05 - End Time 2025-04-17 02:01:05 [2025-04-17 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925059', 'tblTempUsageDetail_20' ) start [2025-04-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925059', 'tblTempUsageDetail_20' ) end [2025-04-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925059', 'tblTempVendorCDR_20' ) start [2025-04-17 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925059', 'tblTempVendorCDR_20' ) end [2025-04-17 02:01:18] Production.INFO: ProcessCDR(1,14925059,1,1,2) [2025-04-17 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925059', 'tblTempUsageDetail_20' ) start [2025-04-17 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925059', 'tblTempUsageDetail_20' ) end [2025-04-17 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:01:21] Production.INFO: ==22403== Releasing lock... [2025-04-17 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:02:05 [end_date_ymd] => 2025-04-17 02:02:05 [RateCDR] => 1 ) [2025-04-17 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:02:05' and `end` < '2025-04-17 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:02:18] Production.INFO: count ==401 [2025-04-17 02:02:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:02:05 - End Time 2025-04-17 02:02:05 [2025-04-17 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925064', 'tblTempUsageDetail_20' ) start [2025-04-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925064', 'tblTempUsageDetail_20' ) end [2025-04-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925064', 'tblTempVendorCDR_20' ) start [2025-04-17 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925064', 'tblTempVendorCDR_20' ) end [2025-04-17 02:02:18] Production.INFO: ProcessCDR(1,14925064,1,1,2) [2025-04-17 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925064', 'tblTempUsageDetail_20' ) start [2025-04-17 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925064', 'tblTempUsageDetail_20' ) end [2025-04-17 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:02:22] Production.INFO: ==22564== Releasing lock... [2025-04-17 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:03:06 [end_date_ymd] => 2025-04-17 02:03:06 [RateCDR] => 1 ) [2025-04-17 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-16 23:03:06' and `end` < '2025-04-17 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-17 02:03:18] Production.INFO: count ==400 [2025-04-17 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:03:06 - End Time 2025-04-17 02:03:06 [2025-04-17 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925069', 'tblTempUsageDetail_20' ) start [2025-04-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925069', 'tblTempUsageDetail_20' ) end [2025-04-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925069', 'tblTempVendorCDR_20' ) start [2025-04-17 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925069', 'tblTempVendorCDR_20' ) end [2025-04-17 02:03:18] Production.INFO: ProcessCDR(1,14925069,1,1,2) [2025-04-17 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925069', 'tblTempUsageDetail_20' ) start [2025-04-17 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925069', 'tblTempUsageDetail_20' ) end [2025-04-17 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:03:21] Production.INFO: ==22636== Releasing lock... [2025-04-17 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:03:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:04:05 [end_date_ymd] => 2025-04-17 02:04:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:04:05' and `end` < '2025-04-17 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-17 02:04:18] Production.INFO: count ==397 [2025-04-17 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:04:05 - End Time 2025-04-17 02:04:05 [2025-04-17 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925074', 'tblTempUsageDetail_20' ) start [2025-04-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925074', 'tblTempUsageDetail_20' ) end [2025-04-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925074', 'tblTempVendorCDR_20' ) start [2025-04-17 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925074', 'tblTempVendorCDR_20' ) end [2025-04-17 02:04:18] Production.INFO: ProcessCDR(1,14925074,1,1,2) [2025-04-17 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925074', 'tblTempUsageDetail_20' ) start [2025-04-17 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925074', 'tblTempUsageDetail_20' ) end [2025-04-17 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:04:22] Production.INFO: ==22709== Releasing lock... [2025-04-17 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:05:04 [end_date_ymd] => 2025-04-17 02:05:04 [RateCDR] => 1 ) [2025-04-17 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-16 23:05:04' and `end` < '2025-04-17 02:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:05:17] Production.INFO: count ==397 [2025-04-17 02:05:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:05:04 - End Time 2025-04-17 02:05:04 [2025-04-17 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925079', 'tblTempUsageDetail_20' ) start [2025-04-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925079', 'tblTempUsageDetail_20' ) end [2025-04-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925079', 'tblTempVendorCDR_20' ) start [2025-04-17 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925079', 'tblTempVendorCDR_20' ) end [2025-04-17 02:05:17] Production.INFO: ProcessCDR(1,14925079,1,1,2) [2025-04-17 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925079', 'tblTempUsageDetail_20' ) start [2025-04-17 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925079', 'tblTempUsageDetail_20' ) end [2025-04-17 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:05:20] Production.INFO: ==22782== Releasing lock... [2025-04-17 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:05:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:06:05 [end_date_ymd] => 2025-04-17 02:06:05 [RateCDR] => 1 ) [2025-04-17 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:06:05' and `end` < '2025-04-17 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:06:17] Production.INFO: count ==395 [2025-04-17 02:06:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:06:05 - End Time 2025-04-17 02:06:05 [2025-04-17 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925084', 'tblTempUsageDetail_20' ) start [2025-04-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925084', 'tblTempUsageDetail_20' ) end [2025-04-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925084', 'tblTempVendorCDR_20' ) start [2025-04-17 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925084', 'tblTempVendorCDR_20' ) end [2025-04-17 02:06:17] Production.INFO: ProcessCDR(1,14925084,1,1,2) [2025-04-17 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925084', 'tblTempUsageDetail_20' ) start [2025-04-17 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925084', 'tblTempUsageDetail_20' ) end [2025-04-17 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:06:21] Production.INFO: ==22856== Releasing lock... [2025-04-17 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:07:06 [end_date_ymd] => 2025-04-17 02:07:06 [RateCDR] => 1 ) [2025-04-17 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:07:06' and `end` < '2025-04-17 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:07:18] Production.INFO: count ==392 [2025-04-17 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:07:06 - End Time 2025-04-17 02:07:06 [2025-04-17 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925089', 'tblTempUsageDetail_20' ) start [2025-04-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925089', 'tblTempUsageDetail_20' ) end [2025-04-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925089', 'tblTempVendorCDR_20' ) start [2025-04-17 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925089', 'tblTempVendorCDR_20' ) end [2025-04-17 02:07:18] Production.INFO: ProcessCDR(1,14925089,1,1,2) [2025-04-17 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925089', 'tblTempUsageDetail_20' ) start [2025-04-17 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925089', 'tblTempUsageDetail_20' ) end [2025-04-17 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:07:22] Production.INFO: ==22936== Releasing lock... [2025-04-17 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:08:05 [end_date_ymd] => 2025-04-17 02:08:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:08:05' and `end` < '2025-04-17 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-17 02:08:17] Production.INFO: count ==393 [2025-04-17 02:08:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:08:05 - End Time 2025-04-17 02:08:05 [2025-04-17 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925094', 'tblTempUsageDetail_20' ) start [2025-04-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925094', 'tblTempUsageDetail_20' ) end [2025-04-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925094', 'tblTempVendorCDR_20' ) start [2025-04-17 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925094', 'tblTempVendorCDR_20' ) end [2025-04-17 02:08:17] Production.INFO: ProcessCDR(1,14925094,1,1,2) [2025-04-17 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925094', 'tblTempUsageDetail_20' ) start [2025-04-17 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925094', 'tblTempUsageDetail_20' ) end [2025-04-17 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:08:22] Production.INFO: ==23008== Releasing lock... [2025-04-17 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:09:05 [end_date_ymd] => 2025-04-17 02:09:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:09:05' and `end` < '2025-04-17 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-17 02:09:18] Production.INFO: count ==385 [2025-04-17 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:09:05 - End Time 2025-04-17 02:09:05 [2025-04-17 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925099', 'tblTempUsageDetail_20' ) start [2025-04-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925099', 'tblTempUsageDetail_20' ) end [2025-04-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925099', 'tblTempVendorCDR_20' ) start [2025-04-17 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925099', 'tblTempVendorCDR_20' ) end [2025-04-17 02:09:18] Production.INFO: ProcessCDR(1,14925099,1,1,2) [2025-04-17 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925099', 'tblTempUsageDetail_20' ) start [2025-04-17 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925099', 'tblTempUsageDetail_20' ) end [2025-04-17 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:09:21] Production.INFO: ==23085== Releasing lock... [2025-04-17 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:10:06 [end_date_ymd] => 2025-04-17 02:10:06 [RateCDR] => 1 ) [2025-04-17 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-16 23:10:06' and `end` < '2025-04-17 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-17 02:10:18] Production.INFO: count ==385 [2025-04-17 02:10:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:10:06 - End Time 2025-04-17 02:10:06 [2025-04-17 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925105', 'tblTempUsageDetail_20' ) start [2025-04-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925105', 'tblTempUsageDetail_20' ) end [2025-04-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925105', 'tblTempVendorCDR_20' ) start [2025-04-17 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925105', 'tblTempVendorCDR_20' ) end [2025-04-17 02:10:18] Production.INFO: ProcessCDR(1,14925105,1,1,2) [2025-04-17 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925105', 'tblTempUsageDetail_20' ) start [2025-04-17 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925105', 'tblTempUsageDetail_20' ) end [2025-04-17 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:10:22] Production.INFO: ==23163== Releasing lock... [2025-04-17 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:11:05 [end_date_ymd] => 2025-04-17 02:11:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:11:05' and `end` < '2025-04-17 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-17 02:11:18] Production.INFO: count ==381 [2025-04-17 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:11:05 - End Time 2025-04-17 02:11:05 [2025-04-17 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925110', 'tblTempUsageDetail_20' ) start [2025-04-17 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925110', 'tblTempUsageDetail_20' ) end [2025-04-17 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925110', 'tblTempVendorCDR_20' ) start [2025-04-17 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925110', 'tblTempVendorCDR_20' ) end [2025-04-17 02:11:18] Production.INFO: ProcessCDR(1,14925110,1,1,2) [2025-04-17 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925110', 'tblTempUsageDetail_20' ) start [2025-04-17 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925110', 'tblTempUsageDetail_20' ) end [2025-04-17 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:11:21] Production.INFO: ==23242== Releasing lock... [2025-04-17 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:12:05 [end_date_ymd] => 2025-04-17 02:12:05 [RateCDR] => 1 ) [2025-04-17 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:12:05' and `end` < '2025-04-17 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:12:17] Production.INFO: count ==378 [2025-04-17 02:12:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:12:05 - End Time 2025-04-17 02:12:05 [2025-04-17 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925115', 'tblTempUsageDetail_20' ) start [2025-04-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925115', 'tblTempUsageDetail_20' ) end [2025-04-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925115', 'tblTempVendorCDR_20' ) start [2025-04-17 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925115', 'tblTempVendorCDR_20' ) end [2025-04-17 02:12:17] Production.INFO: ProcessCDR(1,14925115,1,1,2) [2025-04-17 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925115', 'tblTempUsageDetail_20' ) start [2025-04-17 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925115', 'tblTempUsageDetail_20' ) end [2025-04-17 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:12:21] Production.INFO: ==23317== Releasing lock... [2025-04-17 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:13:05 [end_date_ymd] => 2025-04-17 02:13:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:13:05' and `end` < '2025-04-17 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-17 02:13:18] Production.INFO: count ==378 [2025-04-17 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:13:05 - End Time 2025-04-17 02:13:05 [2025-04-17 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925120', 'tblTempUsageDetail_20' ) start [2025-04-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925120', 'tblTempUsageDetail_20' ) end [2025-04-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925120', 'tblTempVendorCDR_20' ) start [2025-04-17 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925120', 'tblTempVendorCDR_20' ) end [2025-04-17 02:13:18] Production.INFO: ProcessCDR(1,14925120,1,1,2) [2025-04-17 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925120', 'tblTempUsageDetail_20' ) start [2025-04-17 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925120', 'tblTempUsageDetail_20' ) end [2025-04-17 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:13:23] Production.INFO: ==23396== Releasing lock... [2025-04-17 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:13:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:14:06 [end_date_ymd] => 2025-04-17 02:14:06 [RateCDR] => 1 ) [2025-04-17 02: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-16 23:14:06' and `end` < '2025-04-17 02: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-17 02:14:18] Production.INFO: count ==377 [2025-04-17 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:14:06 - End Time 2025-04-17 02:14:06 [2025-04-17 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925125', 'tblTempUsageDetail_20' ) start [2025-04-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925125', 'tblTempUsageDetail_20' ) end [2025-04-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925125', 'tblTempVendorCDR_20' ) start [2025-04-17 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925125', 'tblTempVendorCDR_20' ) end [2025-04-17 02:14:18] Production.INFO: ProcessCDR(1,14925125,1,1,2) [2025-04-17 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925125', 'tblTempUsageDetail_20' ) start [2025-04-17 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925125', 'tblTempUsageDetail_20' ) end [2025-04-17 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:14:22] Production.INFO: ==23469== Releasing lock... [2025-04-17 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:15:05 [end_date_ymd] => 2025-04-17 02:15:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:15:05' and `end` < '2025-04-17 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-17 02:15:18] Production.INFO: count ==376 [2025-04-17 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:15:05 - End Time 2025-04-17 02:15:05 [2025-04-17 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925130', 'tblTempUsageDetail_20' ) start [2025-04-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925130', 'tblTempUsageDetail_20' ) end [2025-04-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925130', 'tblTempVendorCDR_20' ) start [2025-04-17 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925130', 'tblTempVendorCDR_20' ) end [2025-04-17 02:15:18] Production.INFO: ProcessCDR(1,14925130,1,1,2) [2025-04-17 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925130', 'tblTempUsageDetail_20' ) start [2025-04-17 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925130', 'tblTempUsageDetail_20' ) end [2025-04-17 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:15:21] Production.INFO: ==23584== Releasing lock... [2025-04-17 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:16:05 [end_date_ymd] => 2025-04-17 02:16:05 [RateCDR] => 1 ) [2025-04-17 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:16:05' and `end` < '2025-04-17 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:16:18] Production.INFO: count ==374 [2025-04-17 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:16:05 - End Time 2025-04-17 02:16:05 [2025-04-17 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925135', 'tblTempUsageDetail_20' ) start [2025-04-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925135', 'tblTempUsageDetail_20' ) end [2025-04-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925135', 'tblTempVendorCDR_20' ) start [2025-04-17 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925135', 'tblTempVendorCDR_20' ) end [2025-04-17 02:16:18] Production.INFO: ProcessCDR(1,14925135,1,1,2) [2025-04-17 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925135', 'tblTempUsageDetail_20' ) start [2025-04-17 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925135', 'tblTempUsageDetail_20' ) end [2025-04-17 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:16:21] Production.INFO: ==23658== Releasing lock... [2025-04-17 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:17:05 [end_date_ymd] => 2025-04-17 02:17:05 [RateCDR] => 1 ) [2025-04-17 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:17:05' and `end` < '2025-04-17 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:17:17] Production.INFO: count ==373 [2025-04-17 02:17:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:17:05 - End Time 2025-04-17 02:17:05 [2025-04-17 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925140', 'tblTempUsageDetail_20' ) start [2025-04-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925140', 'tblTempUsageDetail_20' ) end [2025-04-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925140', 'tblTempVendorCDR_20' ) start [2025-04-17 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925140', 'tblTempVendorCDR_20' ) end [2025-04-17 02:17:17] Production.INFO: ProcessCDR(1,14925140,1,1,2) [2025-04-17 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925140', 'tblTempUsageDetail_20' ) start [2025-04-17 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925140', 'tblTempUsageDetail_20' ) end [2025-04-17 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:17:21] Production.INFO: ==23734== Releasing lock... [2025-04-17 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:18:05 [end_date_ymd] => 2025-04-17 02:18:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:18:05' and `end` < '2025-04-17 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-17 02:18:18] Production.INFO: count ==373 [2025-04-17 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:18:05 - End Time 2025-04-17 02:18:05 [2025-04-17 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925145', 'tblTempUsageDetail_20' ) start [2025-04-17 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925145', 'tblTempUsageDetail_20' ) end [2025-04-17 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925145', 'tblTempVendorCDR_20' ) start [2025-04-17 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925145', 'tblTempVendorCDR_20' ) end [2025-04-17 02:18:18] Production.INFO: ProcessCDR(1,14925145,1,1,2) [2025-04-17 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925145', 'tblTempUsageDetail_20' ) start [2025-04-17 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925145', 'tblTempUsageDetail_20' ) end [2025-04-17 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:18:21] Production.INFO: ==23810== Releasing lock... [2025-04-17 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:19:05 [end_date_ymd] => 2025-04-17 02:19:05 [RateCDR] => 1 ) [2025-04-17 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:19:05' and `end` < '2025-04-17 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:19:18] Production.INFO: count ==372 [2025-04-17 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:19:05 - End Time 2025-04-17 02:19:05 [2025-04-17 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925150', 'tblTempUsageDetail_20' ) start [2025-04-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925150', 'tblTempUsageDetail_20' ) end [2025-04-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925150', 'tblTempVendorCDR_20' ) start [2025-04-17 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925150', 'tblTempVendorCDR_20' ) end [2025-04-17 02:19:18] Production.INFO: ProcessCDR(1,14925150,1,1,2) [2025-04-17 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925150', 'tblTempUsageDetail_20' ) start [2025-04-17 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925150', 'tblTempUsageDetail_20' ) end [2025-04-17 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:19:22] Production.INFO: ==23884== Releasing lock... [2025-04-17 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:20:07 [end_date_ymd] => 2025-04-17 02:20:07 [RateCDR] => 1 ) [2025-04-17 02: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-16 23:20:07' and `end` < '2025-04-17 02: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-17 02:20:19] Production.INFO: count ==371 [2025-04-17 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-16 23:20:07 - End Time 2025-04-17 02:20:07 [2025-04-17 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925156', 'tblTempUsageDetail_20' ) start [2025-04-17 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925156', 'tblTempUsageDetail_20' ) end [2025-04-17 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925156', 'tblTempVendorCDR_20' ) start [2025-04-17 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925156', 'tblTempVendorCDR_20' ) end [2025-04-17 02:20:19] Production.INFO: ProcessCDR(1,14925156,1,1,2) [2025-04-17 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925156', 'tblTempUsageDetail_20' ) start [2025-04-17 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925156', 'tblTempUsageDetail_20' ) end [2025-04-17 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:20:22] Production.INFO: ==23960== Releasing lock... [2025-04-17 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:21:04 [end_date_ymd] => 2025-04-17 02:21:04 [RateCDR] => 1 ) [2025-04-17 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:21:04' and `end` < '2025-04-17 02:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:21:17] Production.INFO: count ==368 [2025-04-17 02:21:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:21:04 - End Time 2025-04-17 02:21:04 [2025-04-17 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925161', 'tblTempUsageDetail_20' ) start [2025-04-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925161', 'tblTempUsageDetail_20' ) end [2025-04-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925161', 'tblTempVendorCDR_20' ) start [2025-04-17 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925161', 'tblTempVendorCDR_20' ) end [2025-04-17 02:21:17] Production.INFO: ProcessCDR(1,14925161,1,1,2) [2025-04-17 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925161', 'tblTempUsageDetail_20' ) start [2025-04-17 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925161', 'tblTempUsageDetail_20' ) end [2025-04-17 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:21:20] Production.INFO: ==24037== Releasing lock... [2025-04-17 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:22:05 [end_date_ymd] => 2025-04-17 02:22:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:22:05' and `end` < '2025-04-17 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-17 02:22:18] Production.INFO: count ==368 [2025-04-17 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:22:05 - End Time 2025-04-17 02:22:05 [2025-04-17 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925166', 'tblTempUsageDetail_20' ) start [2025-04-17 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925166', 'tblTempUsageDetail_20' ) end [2025-04-17 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925166', 'tblTempVendorCDR_20' ) start [2025-04-17 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925166', 'tblTempVendorCDR_20' ) end [2025-04-17 02:22:18] Production.INFO: ProcessCDR(1,14925166,1,1,2) [2025-04-17 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925166', 'tblTempUsageDetail_20' ) start [2025-04-17 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925166', 'tblTempUsageDetail_20' ) end [2025-04-17 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:22:21] Production.INFO: ==24115== Releasing lock... [2025-04-17 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:23:05 [end_date_ymd] => 2025-04-17 02:23:05 [RateCDR] => 1 ) [2025-04-17 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:23:05' and `end` < '2025-04-17 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:23:17] Production.INFO: count ==366 [2025-04-17 02:23:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:23:05 - End Time 2025-04-17 02:23:05 [2025-04-17 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925171', 'tblTempUsageDetail_20' ) start [2025-04-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925171', 'tblTempUsageDetail_20' ) end [2025-04-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925171', 'tblTempVendorCDR_20' ) start [2025-04-17 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925171', 'tblTempVendorCDR_20' ) end [2025-04-17 02:23:17] Production.INFO: ProcessCDR(1,14925171,1,1,2) [2025-04-17 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925171', 'tblTempUsageDetail_20' ) start [2025-04-17 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925171', 'tblTempUsageDetail_20' ) end [2025-04-17 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:23:21] Production.INFO: ==24188== Releasing lock... [2025-04-17 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:24:05 [end_date_ymd] => 2025-04-17 02:24:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:24:05' and `end` < '2025-04-17 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-17 02:24:18] Production.INFO: count ==365 [2025-04-17 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:24:05 - End Time 2025-04-17 02:24:05 [2025-04-17 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925176', 'tblTempUsageDetail_20' ) start [2025-04-17 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925176', 'tblTempUsageDetail_20' ) end [2025-04-17 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925176', 'tblTempVendorCDR_20' ) start [2025-04-17 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925176', 'tblTempVendorCDR_20' ) end [2025-04-17 02:24:18] Production.INFO: ProcessCDR(1,14925176,1,1,2) [2025-04-17 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925176', 'tblTempUsageDetail_20' ) start [2025-04-17 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925176', 'tblTempUsageDetail_20' ) end [2025-04-17 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:24:21] Production.INFO: ==24260== Releasing lock... [2025-04-17 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:25:06 [end_date_ymd] => 2025-04-17 02:25:06 [RateCDR] => 1 ) [2025-04-17 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-16 23:25:06' and `end` < '2025-04-17 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-17 02:25:18] Production.INFO: count ==367 [2025-04-17 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:25:06 - End Time 2025-04-17 02:25:06 [2025-04-17 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925181', 'tblTempUsageDetail_20' ) start [2025-04-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925181', 'tblTempUsageDetail_20' ) end [2025-04-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925181', 'tblTempVendorCDR_20' ) start [2025-04-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925181', 'tblTempVendorCDR_20' ) end [2025-04-17 02:25:18] Production.INFO: ProcessCDR(1,14925181,1,1,2) [2025-04-17 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925181', 'tblTempUsageDetail_20' ) start [2025-04-17 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925181', 'tblTempUsageDetail_20' ) end [2025-04-17 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:25:23] Production.INFO: ==24335== Releasing lock... [2025-04-17 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:25:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:26:05 [end_date_ymd] => 2025-04-17 02:26:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:26:05' and `end` < '2025-04-17 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-17 02:26:18] Production.INFO: count ==367 [2025-04-17 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:26:05 - End Time 2025-04-17 02:26:05 [2025-04-17 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925186', 'tblTempUsageDetail_20' ) start [2025-04-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925186', 'tblTempUsageDetail_20' ) end [2025-04-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925186', 'tblTempVendorCDR_20' ) start [2025-04-17 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925186', 'tblTempVendorCDR_20' ) end [2025-04-17 02:26:18] Production.INFO: ProcessCDR(1,14925186,1,1,2) [2025-04-17 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925186', 'tblTempUsageDetail_20' ) start [2025-04-17 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925186', 'tblTempUsageDetail_20' ) end [2025-04-17 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:26:21] Production.INFO: ==24416== Releasing lock... [2025-04-17 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:27:05 [end_date_ymd] => 2025-04-17 02:27:05 [RateCDR] => 1 ) [2025-04-17 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:27:05' and `end` < '2025-04-17 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:27:18] Production.INFO: count ==366 [2025-04-17 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:27:05 - End Time 2025-04-17 02:27:05 [2025-04-17 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925191', 'tblTempUsageDetail_20' ) start [2025-04-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925191', 'tblTempUsageDetail_20' ) end [2025-04-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925191', 'tblTempVendorCDR_20' ) start [2025-04-17 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925191', 'tblTempVendorCDR_20' ) end [2025-04-17 02:27:18] Production.INFO: ProcessCDR(1,14925191,1,1,2) [2025-04-17 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925191', 'tblTempUsageDetail_20' ) start [2025-04-17 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925191', 'tblTempUsageDetail_20' ) end [2025-04-17 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:27:21] Production.INFO: ==24488== Releasing lock... [2025-04-17 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:28:05 [end_date_ymd] => 2025-04-17 02:28:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:28:05' and `end` < '2025-04-17 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-17 02:28:18] Production.INFO: count ==366 [2025-04-17 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:28:05 - End Time 2025-04-17 02:28:05 [2025-04-17 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925196', 'tblTempUsageDetail_20' ) start [2025-04-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925196', 'tblTempUsageDetail_20' ) end [2025-04-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925196', 'tblTempVendorCDR_20' ) start [2025-04-17 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925196', 'tblTempVendorCDR_20' ) end [2025-04-17 02:28:18] Production.INFO: ProcessCDR(1,14925196,1,1,2) [2025-04-17 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925196', 'tblTempUsageDetail_20' ) start [2025-04-17 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925196', 'tblTempUsageDetail_20' ) end [2025-04-17 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:28:21] Production.INFO: ==24560== Releasing lock... [2025-04-17 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:29:05 [end_date_ymd] => 2025-04-17 02:29:05 [RateCDR] => 1 ) [2025-04-17 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:29:05' and `end` < '2025-04-17 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:29:18] Production.INFO: count ==364 [2025-04-17 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:29:05 - End Time 2025-04-17 02:29:05 [2025-04-17 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925201', 'tblTempUsageDetail_20' ) start [2025-04-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925201', 'tblTempUsageDetail_20' ) end [2025-04-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925201', 'tblTempVendorCDR_20' ) start [2025-04-17 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925201', 'tblTempVendorCDR_20' ) end [2025-04-17 02:29:18] Production.INFO: ProcessCDR(1,14925201,1,1,2) [2025-04-17 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925201', 'tblTempUsageDetail_20' ) start [2025-04-17 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925201', 'tblTempUsageDetail_20' ) end [2025-04-17 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:29:21] Production.INFO: ==24633== Releasing lock... [2025-04-17 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:30:05 [end_date_ymd] => 2025-04-17 02:30:05 [RateCDR] => 1 ) [2025-04-17 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:30:05' and `end` < '2025-04-17 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:30:18] Production.INFO: count ==364 [2025-04-17 02:30:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:30:05 - End Time 2025-04-17 02:30:05 [2025-04-17 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925207', 'tblTempUsageDetail_20' ) start [2025-04-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925207', 'tblTempUsageDetail_20' ) end [2025-04-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925207', 'tblTempVendorCDR_20' ) start [2025-04-17 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925207', 'tblTempVendorCDR_20' ) end [2025-04-17 02:30:18] Production.INFO: ProcessCDR(1,14925207,1,1,2) [2025-04-17 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925207', 'tblTempUsageDetail_20' ) start [2025-04-17 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925207', 'tblTempUsageDetail_20' ) end [2025-04-17 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:30:21] Production.INFO: ==24708== Releasing lock... [2025-04-17 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:31:05 [end_date_ymd] => 2025-04-17 02:31:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:31:05' and `end` < '2025-04-17 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-17 02:31:18] Production.INFO: count ==364 [2025-04-17 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:31:05 - End Time 2025-04-17 02:31:05 [2025-04-17 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925212', 'tblTempUsageDetail_20' ) start [2025-04-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925212', 'tblTempUsageDetail_20' ) end [2025-04-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925212', 'tblTempVendorCDR_20' ) start [2025-04-17 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925212', 'tblTempVendorCDR_20' ) end [2025-04-17 02:31:18] Production.INFO: ProcessCDR(1,14925212,1,1,2) [2025-04-17 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925212', 'tblTempUsageDetail_20' ) start [2025-04-17 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925212', 'tblTempUsageDetail_20' ) end [2025-04-17 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:31:21] Production.INFO: ==24826== Releasing lock... [2025-04-17 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:32:05 [end_date_ymd] => 2025-04-17 02:32:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:32:05' and `end` < '2025-04-17 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-17 02:32:18] Production.INFO: count ==364 [2025-04-17 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:32:05 - End Time 2025-04-17 02:32:05 [2025-04-17 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925217', 'tblTempUsageDetail_20' ) start [2025-04-17 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925217', 'tblTempUsageDetail_20' ) end [2025-04-17 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925217', 'tblTempVendorCDR_20' ) start [2025-04-17 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925217', 'tblTempVendorCDR_20' ) end [2025-04-17 02:32:18] Production.INFO: ProcessCDR(1,14925217,1,1,2) [2025-04-17 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925217', 'tblTempUsageDetail_20' ) start [2025-04-17 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925217', 'tblTempUsageDetail_20' ) end [2025-04-17 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:32:21] Production.INFO: ==24899== Releasing lock... [2025-04-17 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:33:05 [end_date_ymd] => 2025-04-17 02:33:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:33:05' and `end` < '2025-04-17 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-17 02:33:18] Production.INFO: count ==365 [2025-04-17 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:33:05 - End Time 2025-04-17 02:33:05 [2025-04-17 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925222', 'tblTempUsageDetail_20' ) start [2025-04-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925222', 'tblTempUsageDetail_20' ) end [2025-04-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925222', 'tblTempVendorCDR_20' ) start [2025-04-17 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925222', 'tblTempVendorCDR_20' ) end [2025-04-17 02:33:18] Production.INFO: ProcessCDR(1,14925222,1,1,2) [2025-04-17 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925222', 'tblTempUsageDetail_20' ) start [2025-04-17 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925222', 'tblTempUsageDetail_20' ) end [2025-04-17 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:33:22] Production.INFO: ==24974== Releasing lock... [2025-04-17 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:34:05 [end_date_ymd] => 2025-04-17 02:34:05 [RateCDR] => 1 ) [2025-04-17 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:34:05' and `end` < '2025-04-17 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-17 02:34:18] Production.INFO: count ==363 [2025-04-17 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:34:05 - End Time 2025-04-17 02:34:05 [2025-04-17 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925227', 'tblTempUsageDetail_20' ) start [2025-04-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925227', 'tblTempUsageDetail_20' ) end [2025-04-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925227', 'tblTempVendorCDR_20' ) start [2025-04-17 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925227', 'tblTempVendorCDR_20' ) end [2025-04-17 02:34:18] Production.INFO: ProcessCDR(1,14925227,1,1,2) [2025-04-17 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925227', 'tblTempUsageDetail_20' ) start [2025-04-17 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925227', 'tblTempUsageDetail_20' ) end [2025-04-17 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:34:22] Production.INFO: ==25044== Releasing lock... [2025-04-17 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:35:04 [end_date_ymd] => 2025-04-17 02:35:04 [RateCDR] => 1 ) [2025-04-17 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:35:04' and `end` < '2025-04-17 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:35:17] Production.INFO: count ==362 [2025-04-17 02:35:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:35:04 - End Time 2025-04-17 02:35:04 [2025-04-17 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925232', 'tblTempUsageDetail_20' ) start [2025-04-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925232', 'tblTempUsageDetail_20' ) end [2025-04-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925232', 'tblTempVendorCDR_20' ) start [2025-04-17 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925232', 'tblTempVendorCDR_20' ) end [2025-04-17 02:35:17] Production.INFO: ProcessCDR(1,14925232,1,1,2) [2025-04-17 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925232', 'tblTempUsageDetail_20' ) start [2025-04-17 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925232', 'tblTempUsageDetail_20' ) end [2025-04-17 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:35:21] Production.INFO: ==25116== Releasing lock... [2025-04-17 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:36:06 [end_date_ymd] => 2025-04-17 02:36:06 [RateCDR] => 1 ) [2025-04-17 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:36:06' and `end` < '2025-04-17 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:36:18] Production.INFO: count ==361 [2025-04-17 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:36:06 - End Time 2025-04-17 02:36:06 [2025-04-17 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925237', 'tblTempUsageDetail_20' ) start [2025-04-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925237', 'tblTempUsageDetail_20' ) end [2025-04-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925237', 'tblTempVendorCDR_20' ) start [2025-04-17 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925237', 'tblTempVendorCDR_20' ) end [2025-04-17 02:36:18] Production.INFO: ProcessCDR(1,14925237,1,1,2) [2025-04-17 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925237', 'tblTempUsageDetail_20' ) start [2025-04-17 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925237', 'tblTempUsageDetail_20' ) end [2025-04-17 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:36:22] Production.INFO: ==25194== Releasing lock... [2025-04-17 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:36:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:37:05 [end_date_ymd] => 2025-04-17 02:37:05 [RateCDR] => 1 ) [2025-04-17 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:37:05' and `end` < '2025-04-17 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:37:18] Production.INFO: count ==361 [2025-04-17 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:37:05 - End Time 2025-04-17 02:37:05 [2025-04-17 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925242', 'tblTempUsageDetail_20' ) start [2025-04-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925242', 'tblTempUsageDetail_20' ) end [2025-04-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925242', 'tblTempVendorCDR_20' ) start [2025-04-17 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925242', 'tblTempVendorCDR_20' ) end [2025-04-17 02:37:18] Production.INFO: ProcessCDR(1,14925242,1,1,2) [2025-04-17 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925242', 'tblTempUsageDetail_20' ) start [2025-04-17 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925242', 'tblTempUsageDetail_20' ) end [2025-04-17 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:37:22] Production.INFO: ==25265== Releasing lock... [2025-04-17 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:38:05 [end_date_ymd] => 2025-04-17 02:38:05 [RateCDR] => 1 ) [2025-04-17 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:38:05' and `end` < '2025-04-17 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:38:17] Production.INFO: count ==361 [2025-04-17 02:38:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:38:05 - End Time 2025-04-17 02:38:05 [2025-04-17 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925247', 'tblTempUsageDetail_20' ) start [2025-04-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925247', 'tblTempUsageDetail_20' ) end [2025-04-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925247', 'tblTempVendorCDR_20' ) start [2025-04-17 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925247', 'tblTempVendorCDR_20' ) end [2025-04-17 02:38:17] Production.INFO: ProcessCDR(1,14925247,1,1,2) [2025-04-17 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925247', 'tblTempUsageDetail_20' ) start [2025-04-17 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925247', 'tblTempUsageDetail_20' ) end [2025-04-17 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:38:21] Production.INFO: ==25336== Releasing lock... [2025-04-17 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:39:05 [end_date_ymd] => 2025-04-17 02:39:05 [RateCDR] => 1 ) [2025-04-17 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:39:05' and `end` < '2025-04-17 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:39:18] Production.INFO: count ==362 [2025-04-17 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:39:05 - End Time 2025-04-17 02:39:05 [2025-04-17 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925252', 'tblTempUsageDetail_20' ) start [2025-04-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925252', 'tblTempUsageDetail_20' ) end [2025-04-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925252', 'tblTempVendorCDR_20' ) start [2025-04-17 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925252', 'tblTempVendorCDR_20' ) end [2025-04-17 02:39:18] Production.INFO: ProcessCDR(1,14925252,1,1,2) [2025-04-17 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925252', 'tblTempUsageDetail_20' ) start [2025-04-17 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925252', 'tblTempUsageDetail_20' ) end [2025-04-17 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:39:21] Production.INFO: ==25410== Releasing lock... [2025-04-17 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:40:05 [end_date_ymd] => 2025-04-17 02:40:05 [RateCDR] => 1 ) [2025-04-17 02: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-16 23:40:05' and `end` < '2025-04-17 02: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-17 02:40:18] Production.INFO: count ==363 [2025-04-17 02:40:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:40:05 - End Time 2025-04-17 02:40:05 [2025-04-17 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925258', 'tblTempUsageDetail_20' ) start [2025-04-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925258', 'tblTempUsageDetail_20' ) end [2025-04-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925258', 'tblTempVendorCDR_20' ) start [2025-04-17 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925258', 'tblTempVendorCDR_20' ) end [2025-04-17 02:40:18] Production.INFO: ProcessCDR(1,14925258,1,1,2) [2025-04-17 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925258', 'tblTempUsageDetail_20' ) start [2025-04-17 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925258', 'tblTempUsageDetail_20' ) end [2025-04-17 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:40:21] Production.INFO: ==25494== Releasing lock... [2025-04-17 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:40:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:41:05 [end_date_ymd] => 2025-04-17 02:41:05 [RateCDR] => 1 ) [2025-04-17 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:41:05' and `end` < '2025-04-17 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:41:18] Production.INFO: count ==362 [2025-04-17 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:41:05 - End Time 2025-04-17 02:41:05 [2025-04-17 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925263', 'tblTempUsageDetail_20' ) start [2025-04-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925263', 'tblTempUsageDetail_20' ) end [2025-04-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925263', 'tblTempVendorCDR_20' ) start [2025-04-17 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925263', 'tblTempVendorCDR_20' ) end [2025-04-17 02:41:18] Production.INFO: ProcessCDR(1,14925263,1,1,2) [2025-04-17 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925263', 'tblTempUsageDetail_20' ) start [2025-04-17 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925263', 'tblTempUsageDetail_20' ) end [2025-04-17 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:41:21] Production.INFO: ==25573== Releasing lock... [2025-04-17 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:42:05 [end_date_ymd] => 2025-04-17 02:42:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:42:05' and `end` < '2025-04-17 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-17 02:42:17] Production.INFO: count ==359 [2025-04-17 02:42:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:42:05 - End Time 2025-04-17 02:42:05 [2025-04-17 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925268', 'tblTempUsageDetail_20' ) start [2025-04-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925268', 'tblTempUsageDetail_20' ) end [2025-04-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925268', 'tblTempVendorCDR_20' ) start [2025-04-17 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925268', 'tblTempVendorCDR_20' ) end [2025-04-17 02:42:17] Production.INFO: ProcessCDR(1,14925268,1,1,2) [2025-04-17 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925268', 'tblTempUsageDetail_20' ) start [2025-04-17 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925268', 'tblTempUsageDetail_20' ) end [2025-04-17 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:42:20] Production.INFO: ==25647== Releasing lock... [2025-04-17 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:42:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:43:05 [end_date_ymd] => 2025-04-17 02:43:05 [RateCDR] => 1 ) [2025-04-17 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:43:05' and `end` < '2025-04-17 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:43:18] Production.INFO: count ==358 [2025-04-17 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:43:05 - End Time 2025-04-17 02:43:05 [2025-04-17 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925273', 'tblTempUsageDetail_20' ) start [2025-04-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925273', 'tblTempUsageDetail_20' ) end [2025-04-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925273', 'tblTempVendorCDR_20' ) start [2025-04-17 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925273', 'tblTempVendorCDR_20' ) end [2025-04-17 02:43:18] Production.INFO: ProcessCDR(1,14925273,1,1,2) [2025-04-17 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925273', 'tblTempUsageDetail_20' ) start [2025-04-17 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925273', 'tblTempUsageDetail_20' ) end [2025-04-17 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:43:22] Production.INFO: ==25724== Releasing lock... [2025-04-17 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:44:05 [end_date_ymd] => 2025-04-17 02:44:05 [RateCDR] => 1 ) [2025-04-17 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:44:05' and `end` < '2025-04-17 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:44:17] Production.INFO: count ==357 [2025-04-17 02:44:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:44:05 - End Time 2025-04-17 02:44:05 [2025-04-17 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925278', 'tblTempUsageDetail_20' ) start [2025-04-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925278', 'tblTempUsageDetail_20' ) end [2025-04-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925278', 'tblTempVendorCDR_20' ) start [2025-04-17 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925278', 'tblTempVendorCDR_20' ) end [2025-04-17 02:44:17] Production.INFO: ProcessCDR(1,14925278,1,1,2) [2025-04-17 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925278', 'tblTempUsageDetail_20' ) start [2025-04-17 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925278', 'tblTempUsageDetail_20' ) end [2025-04-17 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:44:21] Production.INFO: ==25795== Releasing lock... [2025-04-17 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:45:05 [end_date_ymd] => 2025-04-17 02:45:05 [RateCDR] => 1 ) [2025-04-17 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:45:05' and `end` < '2025-04-17 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:45:17] Production.INFO: count ==357 [2025-04-17 02:45:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:45:05 - End Time 2025-04-17 02:45:05 [2025-04-17 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925283', 'tblTempUsageDetail_20' ) start [2025-04-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925283', 'tblTempUsageDetail_20' ) end [2025-04-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925283', 'tblTempVendorCDR_20' ) start [2025-04-17 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925283', 'tblTempVendorCDR_20' ) end [2025-04-17 02:45:17] Production.INFO: ProcessCDR(1,14925283,1,1,2) [2025-04-17 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925283', 'tblTempUsageDetail_20' ) start [2025-04-17 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925283', 'tblTempUsageDetail_20' ) end [2025-04-17 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:45:21] Production.INFO: ==25867== Releasing lock... [2025-04-17 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:46:05 [end_date_ymd] => 2025-04-17 02:46:05 [RateCDR] => 1 ) [2025-04-17 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:46:05' and `end` < '2025-04-17 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:46:18] Production.INFO: count ==355 [2025-04-17 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:46:05 - End Time 2025-04-17 02:46:05 [2025-04-17 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925288', 'tblTempUsageDetail_20' ) start [2025-04-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925288', 'tblTempUsageDetail_20' ) end [2025-04-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925288', 'tblTempVendorCDR_20' ) start [2025-04-17 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925288', 'tblTempVendorCDR_20' ) end [2025-04-17 02:46:18] Production.INFO: ProcessCDR(1,14925288,1,1,2) [2025-04-17 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925288', 'tblTempUsageDetail_20' ) start [2025-04-17 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925288', 'tblTempUsageDetail_20' ) end [2025-04-17 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:46:21] Production.INFO: ==25982== Releasing lock... [2025-04-17 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:46:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:47:04 [end_date_ymd] => 2025-04-17 02:47:04 [RateCDR] => 1 ) [2025-04-17 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:47:04' and `end` < '2025-04-17 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:47:17] Production.INFO: count ==353 [2025-04-17 02:47:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:47:04 - End Time 2025-04-17 02:47:04 [2025-04-17 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925293', 'tblTempUsageDetail_20' ) start [2025-04-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925293', 'tblTempUsageDetail_20' ) end [2025-04-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925293', 'tblTempVendorCDR_20' ) start [2025-04-17 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925293', 'tblTempVendorCDR_20' ) end [2025-04-17 02:47:17] Production.INFO: ProcessCDR(1,14925293,1,1,2) [2025-04-17 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925293', 'tblTempUsageDetail_20' ) start [2025-04-17 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925293', 'tblTempUsageDetail_20' ) end [2025-04-17 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:47:21] Production.INFO: ==26053== Releasing lock... [2025-04-17 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:47:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:48:05 [end_date_ymd] => 2025-04-17 02:48:05 [RateCDR] => 1 ) [2025-04-17 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:48:05' and `end` < '2025-04-17 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:48:18] Production.INFO: count ==352 [2025-04-17 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:48:05 - End Time 2025-04-17 02:48:05 [2025-04-17 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925298', 'tblTempUsageDetail_20' ) start [2025-04-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925298', 'tblTempUsageDetail_20' ) end [2025-04-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925298', 'tblTempVendorCDR_20' ) start [2025-04-17 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925298', 'tblTempVendorCDR_20' ) end [2025-04-17 02:48:18] Production.INFO: ProcessCDR(1,14925298,1,1,2) [2025-04-17 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925298', 'tblTempUsageDetail_20' ) start [2025-04-17 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925298', 'tblTempUsageDetail_20' ) end [2025-04-17 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:48:21] Production.INFO: ==26124== Releasing lock... [2025-04-17 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:49:05 [end_date_ymd] => 2025-04-17 02:49:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:49:05' and `end` < '2025-04-17 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-17 02:49:17] Production.INFO: count ==353 [2025-04-17 02:49:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:49:05 - End Time 2025-04-17 02:49:05 [2025-04-17 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925303', 'tblTempUsageDetail_20' ) start [2025-04-17 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925303', 'tblTempUsageDetail_20' ) end [2025-04-17 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925303', 'tblTempVendorCDR_20' ) start [2025-04-17 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925303', 'tblTempVendorCDR_20' ) end [2025-04-17 02:49:17] Production.INFO: ProcessCDR(1,14925303,1,1,2) [2025-04-17 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925303', 'tblTempUsageDetail_20' ) start [2025-04-17 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925303', 'tblTempUsageDetail_20' ) end [2025-04-17 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:49:20] Production.INFO: ==26199== Releasing lock... [2025-04-17 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:49:20] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:50:06 [end_date_ymd] => 2025-04-17 02:50:06 [RateCDR] => 1 ) [2025-04-17 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:50:06' and `end` < '2025-04-17 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:50:19] Production.INFO: count ==363 [2025-04-17 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-16 23:50:06 - End Time 2025-04-17 02:50:06 [2025-04-17 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925309', 'tblTempUsageDetail_20' ) start [2025-04-17 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925309', 'tblTempUsageDetail_20' ) end [2025-04-17 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925309', 'tblTempVendorCDR_20' ) start [2025-04-17 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925309', 'tblTempVendorCDR_20' ) end [2025-04-17 02:50:19] Production.INFO: ProcessCDR(1,14925309,1,1,2) [2025-04-17 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925309', 'tblTempUsageDetail_20' ) start [2025-04-17 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925309', 'tblTempUsageDetail_20' ) end [2025-04-17 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:50:22] Production.INFO: ==26278== Releasing lock... [2025-04-17 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:51:04 [end_date_ymd] => 2025-04-17 02:51:04 [RateCDR] => 1 ) [2025-04-17 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:51:04' and `end` < '2025-04-17 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:51:17] Production.INFO: count ==368 [2025-04-17 02:51:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:51:04 - End Time 2025-04-17 02:51:04 [2025-04-17 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925314', 'tblTempUsageDetail_20' ) start [2025-04-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925314', 'tblTempUsageDetail_20' ) end [2025-04-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925314', 'tblTempVendorCDR_20' ) start [2025-04-17 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925314', 'tblTempVendorCDR_20' ) end [2025-04-17 02:51:17] Production.INFO: ProcessCDR(1,14925314,1,1,2) [2025-04-17 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925314', 'tblTempUsageDetail_20' ) start [2025-04-17 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925314', 'tblTempUsageDetail_20' ) end [2025-04-17 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:51:20] Production.INFO: ==26356== Releasing lock... [2025-04-17 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:51:20] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:52:05 [end_date_ymd] => 2025-04-17 02:52:05 [RateCDR] => 1 ) [2025-04-17 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:52:05' and `end` < '2025-04-17 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:52:17] Production.INFO: count ==369 [2025-04-17 02:52:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:52:05 - End Time 2025-04-17 02:52:05 [2025-04-17 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925319', 'tblTempUsageDetail_20' ) start [2025-04-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925319', 'tblTempUsageDetail_20' ) end [2025-04-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925319', 'tblTempVendorCDR_20' ) start [2025-04-17 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925319', 'tblTempVendorCDR_20' ) end [2025-04-17 02:52:17] Production.INFO: ProcessCDR(1,14925319,1,1,2) [2025-04-17 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925319', 'tblTempUsageDetail_20' ) start [2025-04-17 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925319', 'tblTempUsageDetail_20' ) end [2025-04-17 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:52:20] Production.INFO: ==26431== Releasing lock... [2025-04-17 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:52:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:53:05 [end_date_ymd] => 2025-04-17 02:53:05 [RateCDR] => 1 ) [2025-04-17 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:53:05' and `end` < '2025-04-17 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:53:18] Production.INFO: count ==368 [2025-04-17 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:53:05 - End Time 2025-04-17 02:53:05 [2025-04-17 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925324', 'tblTempUsageDetail_20' ) start [2025-04-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925324', 'tblTempUsageDetail_20' ) end [2025-04-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925324', 'tblTempVendorCDR_20' ) start [2025-04-17 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925324', 'tblTempVendorCDR_20' ) end [2025-04-17 02:53:18] Production.INFO: ProcessCDR(1,14925324,1,1,2) [2025-04-17 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925324', 'tblTempUsageDetail_20' ) start [2025-04-17 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925324', 'tblTempUsageDetail_20' ) end [2025-04-17 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:53:21] Production.INFO: ==26507== Releasing lock... [2025-04-17 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:54:05 [end_date_ymd] => 2025-04-17 02:54:05 [RateCDR] => 1 ) [2025-04-17 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:54:05' and `end` < '2025-04-17 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:54:18] Production.INFO: count ==368 [2025-04-17 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:54:05 - End Time 2025-04-17 02:54:05 [2025-04-17 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925329', 'tblTempUsageDetail_20' ) start [2025-04-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925329', 'tblTempUsageDetail_20' ) end [2025-04-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925329', 'tblTempVendorCDR_20' ) start [2025-04-17 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925329', 'tblTempVendorCDR_20' ) end [2025-04-17 02:54:18] Production.INFO: ProcessCDR(1,14925329,1,1,2) [2025-04-17 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925329', 'tblTempUsageDetail_20' ) start [2025-04-17 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925329', 'tblTempUsageDetail_20' ) end [2025-04-17 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:54:21] Production.INFO: ==26581== Releasing lock... [2025-04-17 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:55:06 [end_date_ymd] => 2025-04-17 02:55:06 [RateCDR] => 1 ) [2025-04-17 02: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-16 23:55:06' and `end` < '2025-04-17 02: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-17 02:55:18] Production.INFO: count ==369 [2025-04-17 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:55:06 - End Time 2025-04-17 02:55:06 [2025-04-17 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925334', 'tblTempUsageDetail_20' ) start [2025-04-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925334', 'tblTempUsageDetail_20' ) end [2025-04-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925334', 'tblTempVendorCDR_20' ) start [2025-04-17 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925334', 'tblTempVendorCDR_20' ) end [2025-04-17 02:55:18] Production.INFO: ProcessCDR(1,14925334,1,1,2) [2025-04-17 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925334', 'tblTempUsageDetail_20' ) start [2025-04-17 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925334', 'tblTempUsageDetail_20' ) end [2025-04-17 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:55:22] Production.INFO: ==26665== Releasing lock... [2025-04-17 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:56:05 [end_date_ymd] => 2025-04-17 02:56:05 [RateCDR] => 1 ) [2025-04-17 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:56:05' and `end` < '2025-04-17 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 02:56:17] Production.INFO: count ==369 [2025-04-17 02:56:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:56:05 - End Time 2025-04-17 02:56:05 [2025-04-17 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925339', 'tblTempUsageDetail_20' ) start [2025-04-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925339', 'tblTempUsageDetail_20' ) end [2025-04-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925339', 'tblTempVendorCDR_20' ) start [2025-04-17 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925339', 'tblTempVendorCDR_20' ) end [2025-04-17 02:56:17] Production.INFO: ProcessCDR(1,14925339,1,1,2) [2025-04-17 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925339', 'tblTempUsageDetail_20' ) start [2025-04-17 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925339', 'tblTempUsageDetail_20' ) end [2025-04-17 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:56:21] Production.INFO: ==26737== Releasing lock... [2025-04-17 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:57:06 [end_date_ymd] => 2025-04-17 02:57:06 [RateCDR] => 1 ) [2025-04-17 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-16 23:57:06' and `end` < '2025-04-17 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-17 02:57:18] Production.INFO: count ==369 [2025-04-17 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:57:06 - End Time 2025-04-17 02:57:06 [2025-04-17 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925344', 'tblTempUsageDetail_20' ) start [2025-04-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925344', 'tblTempUsageDetail_20' ) end [2025-04-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925344', 'tblTempVendorCDR_20' ) start [2025-04-17 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925344', 'tblTempVendorCDR_20' ) end [2025-04-17 02:57:18] Production.INFO: ProcessCDR(1,14925344,1,1,2) [2025-04-17 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925344', 'tblTempUsageDetail_20' ) start [2025-04-17 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925344', 'tblTempUsageDetail_20' ) end [2025-04-17 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:57:21] Production.INFO: ==26809== Releasing lock... [2025-04-17 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:58:04 [end_date_ymd] => 2025-04-17 02:58:04 [RateCDR] => 1 ) [2025-04-17 02:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-16 23:58:04' and `end` < '2025-04-17 02: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-17 02:58:17] Production.INFO: count ==367 [2025-04-17 02:58:17] Production.ERROR: pbx CDR StartTime 2025-04-16 23:58:04 - End Time 2025-04-17 02:58:04 [2025-04-17 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925349', 'tblTempUsageDetail_20' ) start [2025-04-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925349', 'tblTempUsageDetail_20' ) end [2025-04-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925349', 'tblTempVendorCDR_20' ) start [2025-04-17 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925349', 'tblTempVendorCDR_20' ) end [2025-04-17 02:58:17] Production.INFO: ProcessCDR(1,14925349,1,1,2) [2025-04-17 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925349', 'tblTempUsageDetail_20' ) start [2025-04-17 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925349', 'tblTempUsageDetail_20' ) end [2025-04-17 02:58:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:58:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:58:20] Production.INFO: ==26880== Releasing lock... [2025-04-17 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:58:20] Production.INFO: 31 MB #Memory Used# [2025-04-17 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-16 23:59:05 [end_date_ymd] => 2025-04-17 02:59:05 [RateCDR] => 1 ) [2025-04-17 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-16 23:59:05' and `end` < '2025-04-17 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-17 02:59:18] Production.INFO: count ==365 [2025-04-17 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-16 23:59:05 - End Time 2025-04-17 02:59:05 [2025-04-17 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925354', 'tblTempUsageDetail_20' ) start [2025-04-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925354', 'tblTempUsageDetail_20' ) end [2025-04-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925354', 'tblTempVendorCDR_20' ) start [2025-04-17 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925354', 'tblTempVendorCDR_20' ) end [2025-04-17 02:59:18] Production.INFO: ProcessCDR(1,14925354,1,1,2) [2025-04-17 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925354', 'tblTempUsageDetail_20' ) start [2025-04-17 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925354', 'tblTempUsageDetail_20' ) end [2025-04-17 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 02:59:21] Production.INFO: ==26953== Releasing lock... [2025-04-17 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 02:59:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:00:06 [end_date_ymd] => 2025-04-17 03:00:06 [RateCDR] => 1 ) [2025-04-17 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:00:06' and `end` < '2025-04-17 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:00:18] Production.INFO: count ==372 [2025-04-17 03:00:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:00:06 - End Time 2025-04-17 03:00:06 [2025-04-17 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925360', 'tblTempUsageDetail_20' ) start [2025-04-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925360', 'tblTempUsageDetail_20' ) end [2025-04-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925360', 'tblTempVendorCDR_20' ) start [2025-04-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925360', 'tblTempVendorCDR_20' ) end [2025-04-17 03:00:18] Production.INFO: ProcessCDR(1,14925360,1,1,2) [2025-04-17 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925360', 'tblTempUsageDetail_20' ) start [2025-04-17 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925360', 'tblTempUsageDetail_20' ) end [2025-04-17 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:00:22] Production.INFO: ==27039== Releasing lock... [2025-04-17 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:00:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:01:05 [end_date_ymd] => 2025-04-17 03:01:05 [RateCDR] => 1 ) [2025-04-17 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:01:05' and `end` < '2025-04-17 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:01:18] Production.INFO: count ==375 [2025-04-17 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:01:05 - End Time 2025-04-17 03:01:05 [2025-04-17 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925365', 'tblTempUsageDetail_20' ) start [2025-04-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925365', 'tblTempUsageDetail_20' ) end [2025-04-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925365', 'tblTempVendorCDR_20' ) start [2025-04-17 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925365', 'tblTempVendorCDR_20' ) end [2025-04-17 03:01:18] Production.INFO: ProcessCDR(1,14925365,1,1,2) [2025-04-17 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925365', 'tblTempUsageDetail_20' ) start [2025-04-17 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925365', 'tblTempUsageDetail_20' ) end [2025-04-17 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:01:21] Production.INFO: ==27128== Releasing lock... [2025-04-17 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:01:21] Production.INFO: 31 MB #Memory Used# [2025-04-17 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:02:05 [end_date_ymd] => 2025-04-17 03:02:05 [RateCDR] => 1 ) [2025-04-17 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:02:05' and `end` < '2025-04-17 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:02:18] Production.INFO: count ==1250 [2025-04-17 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:02:05 - End Time 2025-04-17 03:02:05 [2025-04-17 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925370', 'tblTempUsageDetail_20' ) start [2025-04-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925370', 'tblTempUsageDetail_20' ) end [2025-04-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925370', 'tblTempVendorCDR_20' ) start [2025-04-17 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925370', 'tblTempVendorCDR_20' ) end [2025-04-17 03:02:18] Production.INFO: ProcessCDR(1,14925370,1,1,2) [2025-04-17 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925370', 'tblTempUsageDetail_20' ) start [2025-04-17 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925370', 'tblTempUsageDetail_20' ) end [2025-04-17 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:02:22] Production.INFO: ==27316== Releasing lock... [2025-04-17 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:03:05 [end_date_ymd] => 2025-04-17 03:03:05 [RateCDR] => 1 ) [2025-04-17 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:03:05' and `end` < '2025-04-17 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:03:18] Production.INFO: count ==1251 [2025-04-17 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:03:05 - End Time 2025-04-17 03:03:05 [2025-04-17 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925375', 'tblTempUsageDetail_20' ) start [2025-04-17 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925375', 'tblTempUsageDetail_20' ) end [2025-04-17 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925375', 'tblTempVendorCDR_20' ) start [2025-04-17 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925375', 'tblTempVendorCDR_20' ) end [2025-04-17 03:03:19] Production.INFO: ProcessCDR(1,14925375,1,1,2) [2025-04-17 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925375', 'tblTempUsageDetail_20' ) start [2025-04-17 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925375', 'tblTempUsageDetail_20' ) end [2025-04-17 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:03:22] Production.INFO: ==27386== Releasing lock... [2025-04-17 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:04:05 [end_date_ymd] => 2025-04-17 03:04:05 [RateCDR] => 1 ) [2025-04-17 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:04:05' and `end` < '2025-04-17 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:04:18] Production.INFO: count ==1247 [2025-04-17 03:04:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:04:05 - End Time 2025-04-17 03:04:05 [2025-04-17 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925380', 'tblTempUsageDetail_20' ) start [2025-04-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925380', 'tblTempUsageDetail_20' ) end [2025-04-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925380', 'tblTempVendorCDR_20' ) start [2025-04-17 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925380', 'tblTempVendorCDR_20' ) end [2025-04-17 03:04:19] Production.INFO: ProcessCDR(1,14925380,1,1,2) [2025-04-17 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925380', 'tblTempUsageDetail_20' ) start [2025-04-17 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925380', 'tblTempUsageDetail_20' ) end [2025-04-17 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:04:22] Production.INFO: ==27456== Releasing lock... [2025-04-17 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:05:05 [end_date_ymd] => 2025-04-17 03:05:05 [RateCDR] => 1 ) [2025-04-17 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:05:05' and `end` < '2025-04-17 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:05:17] Production.INFO: count ==1245 [2025-04-17 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:05:05 - End Time 2025-04-17 03:05:05 [2025-04-17 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925385', 'tblTempUsageDetail_20' ) start [2025-04-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925385', 'tblTempUsageDetail_20' ) end [2025-04-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925385', 'tblTempVendorCDR_20' ) start [2025-04-17 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925385', 'tblTempVendorCDR_20' ) end [2025-04-17 03:05:18] Production.INFO: ProcessCDR(1,14925385,1,1,2) [2025-04-17 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925385', 'tblTempUsageDetail_20' ) start [2025-04-17 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925385', 'tblTempUsageDetail_20' ) end [2025-04-17 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:05:21] Production.INFO: ==27535== Releasing lock... [2025-04-17 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:05:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:06:05 [end_date_ymd] => 2025-04-17 03:06:05 [RateCDR] => 1 ) [2025-04-17 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:06:05' and `end` < '2025-04-17 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:06:18] Production.INFO: count ==1246 [2025-04-17 03:06:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:06:05 - End Time 2025-04-17 03:06:05 [2025-04-17 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925390', 'tblTempUsageDetail_20' ) start [2025-04-17 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925390', 'tblTempUsageDetail_20' ) end [2025-04-17 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925390', 'tblTempVendorCDR_20' ) start [2025-04-17 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925390', 'tblTempVendorCDR_20' ) end [2025-04-17 03:06:19] Production.INFO: ProcessCDR(1,14925390,1,1,2) [2025-04-17 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925390', 'tblTempUsageDetail_20' ) start [2025-04-17 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925390', 'tblTempUsageDetail_20' ) end [2025-04-17 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:06:22] Production.INFO: ==27685== Releasing lock... [2025-04-17 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:07:04 [end_date_ymd] => 2025-04-17 03:07:04 [RateCDR] => 1 ) [2025-04-17 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:07:04' and `end` < '2025-04-17 03:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:07:17] Production.INFO: count ==1244 [2025-04-17 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:07:04 - End Time 2025-04-17 03:07:04 [2025-04-17 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925395', 'tblTempUsageDetail_20' ) start [2025-04-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925395', 'tblTempUsageDetail_20' ) end [2025-04-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925395', 'tblTempVendorCDR_20' ) start [2025-04-17 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925395', 'tblTempVendorCDR_20' ) end [2025-04-17 03:07:18] Production.INFO: ProcessCDR(1,14925395,1,1,2) [2025-04-17 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925395', 'tblTempUsageDetail_20' ) start [2025-04-17 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925395', 'tblTempUsageDetail_20' ) end [2025-04-17 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:07:22] Production.INFO: ==27758== Releasing lock... [2025-04-17 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:08:05 [end_date_ymd] => 2025-04-17 03:08:05 [RateCDR] => 1 ) [2025-04-17 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:08:05' and `end` < '2025-04-17 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:08:18] Production.INFO: count ==1244 [2025-04-17 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:08:05 - End Time 2025-04-17 03:08:05 [2025-04-17 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925400', 'tblTempUsageDetail_20' ) start [2025-04-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925400', 'tblTempUsageDetail_20' ) end [2025-04-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925400', 'tblTempVendorCDR_20' ) start [2025-04-17 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925400', 'tblTempVendorCDR_20' ) end [2025-04-17 03:08:18] Production.INFO: ProcessCDR(1,14925400,1,1,2) [2025-04-17 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925400', 'tblTempUsageDetail_20' ) start [2025-04-17 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925400', 'tblTempUsageDetail_20' ) end [2025-04-17 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:08:23] Production.INFO: ==27829== Releasing lock... [2025-04-17 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:08:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:09:05 [end_date_ymd] => 2025-04-17 03:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:09:05' and `end` < '2025-04-17 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-17 03:09:17] Production.INFO: count ==1242 [2025-04-17 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:09:05 - End Time 2025-04-17 03:09:05 [2025-04-17 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925405', 'tblTempUsageDetail_20' ) start [2025-04-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925405', 'tblTempUsageDetail_20' ) end [2025-04-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925405', 'tblTempVendorCDR_20' ) start [2025-04-17 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925405', 'tblTempVendorCDR_20' ) end [2025-04-17 03:09:18] Production.INFO: ProcessCDR(1,14925405,1,1,2) [2025-04-17 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925405', 'tblTempUsageDetail_20' ) start [2025-04-17 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925405', 'tblTempUsageDetail_20' ) end [2025-04-17 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:09:21] Production.INFO: ==27978== Releasing lock... [2025-04-17 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:10:06 [end_date_ymd] => 2025-04-17 03:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 00:10:06' and `end` < '2025-04-17 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-17 03:10:18] Production.INFO: count ==1229 [2025-04-17 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:10:06 - End Time 2025-04-17 03:10:06 [2025-04-17 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925411', 'tblTempUsageDetail_20' ) start [2025-04-17 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925411', 'tblTempUsageDetail_20' ) end [2025-04-17 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925411', 'tblTempVendorCDR_20' ) start [2025-04-17 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925411', 'tblTempVendorCDR_20' ) end [2025-04-17 03:10:19] Production.INFO: ProcessCDR(1,14925411,1,1,2) [2025-04-17 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925411', 'tblTempUsageDetail_20' ) start [2025-04-17 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925411', 'tblTempUsageDetail_20' ) end [2025-04-17 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:10:22] Production.INFO: ==28056== Releasing lock... [2025-04-17 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:11:05 [end_date_ymd] => 2025-04-17 03:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:11:05' and `end` < '2025-04-17 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-17 03:11:18] Production.INFO: count ==1222 [2025-04-17 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:11:05 - End Time 2025-04-17 03:11:05 [2025-04-17 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925416', 'tblTempUsageDetail_20' ) start [2025-04-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925416', 'tblTempUsageDetail_20' ) end [2025-04-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925416', 'tblTempVendorCDR_20' ) start [2025-04-17 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925416', 'tblTempVendorCDR_20' ) end [2025-04-17 03:11:18] Production.INFO: ProcessCDR(1,14925416,1,1,2) [2025-04-17 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925416', 'tblTempUsageDetail_20' ) start [2025-04-17 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925416', 'tblTempUsageDetail_20' ) end [2025-04-17 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:11:22] Production.INFO: ==28175== Releasing lock... [2025-04-17 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:12:05 [end_date_ymd] => 2025-04-17 03:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:12:05' and `end` < '2025-04-17 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-17 03:12:17] Production.INFO: count ==1221 [2025-04-17 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:12:05 - End Time 2025-04-17 03:12:05 [2025-04-17 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925421', 'tblTempUsageDetail_20' ) start [2025-04-17 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925421', 'tblTempUsageDetail_20' ) end [2025-04-17 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925421', 'tblTempVendorCDR_20' ) start [2025-04-17 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925421', 'tblTempVendorCDR_20' ) end [2025-04-17 03:12:18] Production.INFO: ProcessCDR(1,14925421,1,1,2) [2025-04-17 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925421', 'tblTempUsageDetail_20' ) start [2025-04-17 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925421', 'tblTempUsageDetail_20' ) end [2025-04-17 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:12:21] Production.INFO: ==28278== Releasing lock... [2025-04-17 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:13:05 [end_date_ymd] => 2025-04-17 03:13:05 [RateCDR] => 1 ) [2025-04-17 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:13:05' and `end` < '2025-04-17 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:13:18] Production.INFO: count ==1221 [2025-04-17 03:13:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:13:05 - End Time 2025-04-17 03:13:05 [2025-04-17 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925426', 'tblTempUsageDetail_20' ) start [2025-04-17 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925426', 'tblTempUsageDetail_20' ) end [2025-04-17 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925426', 'tblTempVendorCDR_20' ) start [2025-04-17 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925426', 'tblTempVendorCDR_20' ) end [2025-04-17 03:13:19] Production.INFO: ProcessCDR(1,14925426,1,1,2) [2025-04-17 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925426', 'tblTempUsageDetail_20' ) start [2025-04-17 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925426', 'tblTempUsageDetail_20' ) end [2025-04-17 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:13:22] Production.INFO: ==28461== Releasing lock... [2025-04-17 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:14:05 [end_date_ymd] => 2025-04-17 03:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:14:05' and `end` < '2025-04-17 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-17 03:14:17] Production.INFO: count ==1217 [2025-04-17 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:14:05 - End Time 2025-04-17 03:14:05 [2025-04-17 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925431', 'tblTempUsageDetail_20' ) start [2025-04-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925431', 'tblTempUsageDetail_20' ) end [2025-04-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925431', 'tblTempVendorCDR_20' ) start [2025-04-17 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925431', 'tblTempVendorCDR_20' ) end [2025-04-17 03:14:18] Production.INFO: ProcessCDR(1,14925431,1,1,2) [2025-04-17 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925431', 'tblTempUsageDetail_20' ) start [2025-04-17 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925431', 'tblTempUsageDetail_20' ) end [2025-04-17 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:14:21] Production.INFO: ==28573== Releasing lock... [2025-04-17 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:14:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:15:05 [end_date_ymd] => 2025-04-17 03:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:15:05' and `end` < '2025-04-17 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-17 03:15:18] Production.INFO: count ==1218 [2025-04-17 03:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:15:05 - End Time 2025-04-17 03:15:05 [2025-04-17 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925436', 'tblTempUsageDetail_20' ) start [2025-04-17 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925436', 'tblTempUsageDetail_20' ) end [2025-04-17 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925436', 'tblTempVendorCDR_20' ) start [2025-04-17 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925436', 'tblTempVendorCDR_20' ) end [2025-04-17 03:15:19] Production.INFO: ProcessCDR(1,14925436,1,1,2) [2025-04-17 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925436', 'tblTempUsageDetail_20' ) start [2025-04-17 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925436', 'tblTempUsageDetail_20' ) end [2025-04-17 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:15:22] Production.INFO: ==28688== Releasing lock... [2025-04-17 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:16:04 [end_date_ymd] => 2025-04-17 03:16:04 [RateCDR] => 1 ) [2025-04-17 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:16:04' and `end` < '2025-04-17 03:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:16:17] Production.INFO: count ==1218 [2025-04-17 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:16:04 - End Time 2025-04-17 03:16:04 [2025-04-17 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925441', 'tblTempUsageDetail_20' ) start [2025-04-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925441', 'tblTempUsageDetail_20' ) end [2025-04-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925441', 'tblTempVendorCDR_20' ) start [2025-04-17 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925441', 'tblTempVendorCDR_20' ) end [2025-04-17 03:16:18] Production.INFO: ProcessCDR(1,14925441,1,1,2) [2025-04-17 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925441', 'tblTempUsageDetail_20' ) start [2025-04-17 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925441', 'tblTempUsageDetail_20' ) end [2025-04-17 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:16:21] Production.INFO: ==28802== Releasing lock... [2025-04-17 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:16:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:17:05 [end_date_ymd] => 2025-04-17 03:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:17:05' and `end` < '2025-04-17 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-17 03:17:18] Production.INFO: count ==1217 [2025-04-17 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:17:05 - End Time 2025-04-17 03:17:05 [2025-04-17 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925446', 'tblTempUsageDetail_20' ) start [2025-04-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925446', 'tblTempUsageDetail_20' ) end [2025-04-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925446', 'tblTempVendorCDR_20' ) start [2025-04-17 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925446', 'tblTempVendorCDR_20' ) end [2025-04-17 03:17:18] Production.INFO: ProcessCDR(1,14925446,1,1,2) [2025-04-17 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925446', 'tblTempUsageDetail_20' ) start [2025-04-17 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925446', 'tblTempUsageDetail_20' ) end [2025-04-17 03:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:17:23] Production.INFO: ==28995== Releasing lock... [2025-04-17 03:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:17:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:18:05 [end_date_ymd] => 2025-04-17 03:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:18:05' and `end` < '2025-04-17 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-17 03:18:18] Production.INFO: count ==1214 [2025-04-17 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:18:05 - End Time 2025-04-17 03:18:05 [2025-04-17 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925451', 'tblTempUsageDetail_20' ) start [2025-04-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925451', 'tblTempUsageDetail_20' ) end [2025-04-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925451', 'tblTempVendorCDR_20' ) start [2025-04-17 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925451', 'tblTempVendorCDR_20' ) end [2025-04-17 03:18:19] Production.INFO: ProcessCDR(1,14925451,1,1,2) [2025-04-17 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925451', 'tblTempUsageDetail_20' ) start [2025-04-17 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925451', 'tblTempUsageDetail_20' ) end [2025-04-17 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:18:22] Production.INFO: ==29112== Releasing lock... [2025-04-17 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:19:05 [end_date_ymd] => 2025-04-17 03:19:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:19:05' and `end` < '2025-04-17 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-17 03:19:18] Production.INFO: count ==1211 [2025-04-17 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:19:05 - End Time 2025-04-17 03:19:05 [2025-04-17 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925456', 'tblTempUsageDetail_20' ) start [2025-04-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925456', 'tblTempUsageDetail_20' ) end [2025-04-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925456', 'tblTempVendorCDR_20' ) start [2025-04-17 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925456', 'tblTempVendorCDR_20' ) end [2025-04-17 03:19:18] Production.INFO: ProcessCDR(1,14925456,1,1,2) [2025-04-17 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925456', 'tblTempUsageDetail_20' ) start [2025-04-17 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925456', 'tblTempUsageDetail_20' ) end [2025-04-17 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:19:22] Production.INFO: ==29263== Releasing lock... [2025-04-17 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:19:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:20:06 [end_date_ymd] => 2025-04-17 03:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 00:20:06' and `end` < '2025-04-17 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-17 03:20:19] Production.INFO: count ==1219 [2025-04-17 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:20:06 - End Time 2025-04-17 03:20:06 [2025-04-17 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925462', 'tblTempUsageDetail_20' ) start [2025-04-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925462', 'tblTempUsageDetail_20' ) end [2025-04-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925462', 'tblTempVendorCDR_20' ) start [2025-04-17 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925462', 'tblTempVendorCDR_20' ) end [2025-04-17 03:20:19] Production.INFO: ProcessCDR(1,14925462,1,1,2) [2025-04-17 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925462', 'tblTempUsageDetail_20' ) start [2025-04-17 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925462', 'tblTempUsageDetail_20' ) end [2025-04-17 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:20:22] Production.INFO: ==29396== Releasing lock... [2025-04-17 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:20:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:21:05 [end_date_ymd] => 2025-04-17 03:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:21:05' and `end` < '2025-04-17 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-17 03:21:17] Production.INFO: count ==1221 [2025-04-17 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:21:05 - End Time 2025-04-17 03:21:05 [2025-04-17 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925467', 'tblTempUsageDetail_20' ) start [2025-04-17 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925467', 'tblTempUsageDetail_20' ) end [2025-04-17 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925467', 'tblTempVendorCDR_20' ) start [2025-04-17 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925467', 'tblTempVendorCDR_20' ) end [2025-04-17 03:21:18] Production.INFO: ProcessCDR(1,14925467,1,1,2) [2025-04-17 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925467', 'tblTempUsageDetail_20' ) start [2025-04-17 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925467', 'tblTempUsageDetail_20' ) end [2025-04-17 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:21:21] Production.INFO: ==29537== Releasing lock... [2025-04-17 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:21:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:22:05 [end_date_ymd] => 2025-04-17 03:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:22:05' and `end` < '2025-04-17 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-17 03:22:18] Production.INFO: count ==1223 [2025-04-17 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:22:05 - End Time 2025-04-17 03:22:05 [2025-04-17 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925472', 'tblTempUsageDetail_20' ) start [2025-04-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925472', 'tblTempUsageDetail_20' ) end [2025-04-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925472', 'tblTempVendorCDR_20' ) start [2025-04-17 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925472', 'tblTempVendorCDR_20' ) end [2025-04-17 03:22:18] Production.INFO: ProcessCDR(1,14925472,1,1,2) [2025-04-17 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925472', 'tblTempUsageDetail_20' ) start [2025-04-17 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925472', 'tblTempUsageDetail_20' ) end [2025-04-17 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:22:22] Production.INFO: ==29657== Releasing lock... [2025-04-17 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:23:05 [end_date_ymd] => 2025-04-17 03:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:23:05' and `end` < '2025-04-17 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-17 03:23:17] Production.INFO: count ==1223 [2025-04-17 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:23:05 - End Time 2025-04-17 03:23:05 [2025-04-17 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925477', 'tblTempUsageDetail_20' ) start [2025-04-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925477', 'tblTempUsageDetail_20' ) end [2025-04-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925477', 'tblTempVendorCDR_20' ) start [2025-04-17 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925477', 'tblTempVendorCDR_20' ) end [2025-04-17 03:23:18] Production.INFO: ProcessCDR(1,14925477,1,1,2) [2025-04-17 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925477', 'tblTempUsageDetail_20' ) start [2025-04-17 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925477', 'tblTempUsageDetail_20' ) end [2025-04-17 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:23:21] Production.INFO: ==29774== Releasing lock... [2025-04-17 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:23:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:24:05 [end_date_ymd] => 2025-04-17 03:24:05 [RateCDR] => 1 ) [2025-04-17 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:24:05' and `end` < '2025-04-17 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:24:17] Production.INFO: count ==1223 [2025-04-17 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:24:05 - End Time 2025-04-17 03:24:05 [2025-04-17 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925482', 'tblTempUsageDetail_20' ) start [2025-04-17 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925482', 'tblTempUsageDetail_20' ) end [2025-04-17 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925482', 'tblTempVendorCDR_20' ) start [2025-04-17 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925482', 'tblTempVendorCDR_20' ) end [2025-04-17 03:24:18] Production.INFO: ProcessCDR(1,14925482,1,1,2) [2025-04-17 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925482', 'tblTempUsageDetail_20' ) start [2025-04-17 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925482', 'tblTempUsageDetail_20' ) end [2025-04-17 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:24:21] Production.INFO: ==29885== Releasing lock... [2025-04-17 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:24:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:25:05 [end_date_ymd] => 2025-04-17 03:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:25:05' and `end` < '2025-04-17 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-17 03:25:17] Production.INFO: count ==1221 [2025-04-17 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:25:05 - End Time 2025-04-17 03:25:05 [2025-04-17 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925487', 'tblTempUsageDetail_20' ) start [2025-04-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925487', 'tblTempUsageDetail_20' ) end [2025-04-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925487', 'tblTempVendorCDR_20' ) start [2025-04-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925487', 'tblTempVendorCDR_20' ) end [2025-04-17 03:25:18] Production.INFO: ProcessCDR(1,14925487,1,1,2) [2025-04-17 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925487', 'tblTempUsageDetail_20' ) start [2025-04-17 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925487', 'tblTempUsageDetail_20' ) end [2025-04-17 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:25:22] Production.INFO: ==29992== Releasing lock... [2025-04-17 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:26:05 [end_date_ymd] => 2025-04-17 03:26:05 [RateCDR] => 1 ) [2025-04-17 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:26:05' and `end` < '2025-04-17 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:26:18] Production.INFO: count ==1219 [2025-04-17 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:26:05 - End Time 2025-04-17 03:26:05 [2025-04-17 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925492', 'tblTempUsageDetail_20' ) start [2025-04-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925492', 'tblTempUsageDetail_20' ) end [2025-04-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925492', 'tblTempVendorCDR_20' ) start [2025-04-17 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925492', 'tblTempVendorCDR_20' ) end [2025-04-17 03:26:18] Production.INFO: ProcessCDR(1,14925492,1,1,2) [2025-04-17 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925492', 'tblTempUsageDetail_20' ) start [2025-04-17 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925492', 'tblTempUsageDetail_20' ) end [2025-04-17 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:26:22] Production.INFO: ==30107== Releasing lock... [2025-04-17 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:26:22] Production.INFO: 38 MB #Memory Used# [2025-04-17 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:27:05 [end_date_ymd] => 2025-04-17 03:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:27:05' and `end` < '2025-04-17 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-17 03:27:18] Production.INFO: count ==1215 [2025-04-17 03:27:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:27:05 - End Time 2025-04-17 03:27:05 [2025-04-17 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925497', 'tblTempUsageDetail_20' ) start [2025-04-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925497', 'tblTempUsageDetail_20' ) end [2025-04-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925497', 'tblTempVendorCDR_20' ) start [2025-04-17 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925497', 'tblTempVendorCDR_20' ) end [2025-04-17 03:27:19] Production.INFO: ProcessCDR(1,14925497,1,1,2) [2025-04-17 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925497', 'tblTempUsageDetail_20' ) start [2025-04-17 03:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925497', 'tblTempUsageDetail_20' ) end [2025-04-17 03:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:27:24] Production.INFO: ==30217== Releasing lock... [2025-04-17 03:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:27:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:28:05 [end_date_ymd] => 2025-04-17 03:28:05 [RateCDR] => 1 ) [2025-04-17 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:28:05' and `end` < '2025-04-17 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:28:18] Production.INFO: count ==1214 [2025-04-17 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:28:05 - End Time 2025-04-17 03:28:05 [2025-04-17 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925502', 'tblTempUsageDetail_20' ) start [2025-04-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925502', 'tblTempUsageDetail_20' ) end [2025-04-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925502', 'tblTempVendorCDR_20' ) start [2025-04-17 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925502', 'tblTempVendorCDR_20' ) end [2025-04-17 03:28:18] Production.INFO: ProcessCDR(1,14925502,1,1,2) [2025-04-17 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925502', 'tblTempUsageDetail_20' ) start [2025-04-17 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925502', 'tblTempUsageDetail_20' ) end [2025-04-17 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:28:22] Production.INFO: ==30332== Releasing lock... [2025-04-17 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:29:06 [end_date_ymd] => 2025-04-17 03:29:06 [RateCDR] => 1 ) [2025-04-17 03: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-17 00:29:06' and `end` < '2025-04-17 03: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-17 03:29:18] Production.INFO: count ==1212 [2025-04-17 03:29:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:29:06 - End Time 2025-04-17 03:29:06 [2025-04-17 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925507', 'tblTempUsageDetail_20' ) start [2025-04-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925507', 'tblTempUsageDetail_20' ) end [2025-04-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925507', 'tblTempVendorCDR_20' ) start [2025-04-17 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925507', 'tblTempVendorCDR_20' ) end [2025-04-17 03:29:19] Production.INFO: ProcessCDR(1,14925507,1,1,2) [2025-04-17 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925507', 'tblTempUsageDetail_20' ) start [2025-04-17 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925507', 'tblTempUsageDetail_20' ) end [2025-04-17 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:29:22] Production.INFO: ==30443== Releasing lock... [2025-04-17 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:30:06 [end_date_ymd] => 2025-04-17 03:30:06 [RateCDR] => 1 ) [2025-04-17 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:30:06' and `end` < '2025-04-17 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:30:18] Production.INFO: count ==1197 [2025-04-17 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:30:06 - End Time 2025-04-17 03:30:06 [2025-04-17 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925513', 'tblTempUsageDetail_20' ) start [2025-04-17 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925513', 'tblTempUsageDetail_20' ) end [2025-04-17 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925513', 'tblTempVendorCDR_20' ) start [2025-04-17 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925513', 'tblTempVendorCDR_20' ) end [2025-04-17 03:30:19] Production.INFO: ProcessCDR(1,14925513,1,1,2) [2025-04-17 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925513', 'tblTempUsageDetail_20' ) start [2025-04-17 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925513', 'tblTempUsageDetail_20' ) end [2025-04-17 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:30:22] Production.INFO: ==30568== Releasing lock... [2025-04-17 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:31:05 [end_date_ymd] => 2025-04-17 03:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:31:05' and `end` < '2025-04-17 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-17 03:31:18] Production.INFO: count ==1171 [2025-04-17 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:31:05 - End Time 2025-04-17 03:31:05 [2025-04-17 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925518', 'tblTempUsageDetail_20' ) start [2025-04-17 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925518', 'tblTempUsageDetail_20' ) end [2025-04-17 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925518', 'tblTempVendorCDR_20' ) start [2025-04-17 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925518', 'tblTempVendorCDR_20' ) end [2025-04-17 03:31:19] Production.INFO: ProcessCDR(1,14925518,1,1,2) [2025-04-17 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925518', 'tblTempUsageDetail_20' ) start [2025-04-17 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925518', 'tblTempUsageDetail_20' ) end [2025-04-17 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:31:22] Production.INFO: ==30710== Releasing lock... [2025-04-17 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:31:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:32:05 [end_date_ymd] => 2025-04-17 03:32:05 [RateCDR] => 1 ) [2025-04-17 03: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-17 00:32:05' and `end` < '2025-04-17 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:32:17] Production.INFO: count ==1169 [2025-04-17 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:32:05 - End Time 2025-04-17 03:32:05 [2025-04-17 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925523', 'tblTempUsageDetail_20' ) start [2025-04-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925523', 'tblTempUsageDetail_20' ) end [2025-04-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925523', 'tblTempVendorCDR_20' ) start [2025-04-17 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925523', 'tblTempVendorCDR_20' ) end [2025-04-17 03:32:18] Production.INFO: ProcessCDR(1,14925523,1,1,2) [2025-04-17 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925523', 'tblTempUsageDetail_20' ) start [2025-04-17 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925523', 'tblTempUsageDetail_20' ) end [2025-04-17 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:32:22] Production.INFO: ==30826== Releasing lock... [2025-04-17 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:33:05 [end_date_ymd] => 2025-04-17 03:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:33:05' and `end` < '2025-04-17 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-17 03:33:18] Production.INFO: count ==1167 [2025-04-17 03:33:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:33:05 - End Time 2025-04-17 03:33:05 [2025-04-17 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925528', 'tblTempUsageDetail_20' ) start [2025-04-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925528', 'tblTempUsageDetail_20' ) end [2025-04-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925528', 'tblTempVendorCDR_20' ) start [2025-04-17 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925528', 'tblTempVendorCDR_20' ) end [2025-04-17 03:33:19] Production.INFO: ProcessCDR(1,14925528,1,1,2) [2025-04-17 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925528', 'tblTempUsageDetail_20' ) start [2025-04-17 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925528', 'tblTempUsageDetail_20' ) end [2025-04-17 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:33:23] Production.INFO: ==30968== Releasing lock... [2025-04-17 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:33:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:34:06 [end_date_ymd] => 2025-04-17 03:34:06 [RateCDR] => 1 ) [2025-04-17 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-17 00:34:06' and `end` < '2025-04-17 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-17 03:34:19] Production.INFO: count ==1168 [2025-04-17 03:34:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:34:06 - End Time 2025-04-17 03:34:06 [2025-04-17 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925533', 'tblTempUsageDetail_20' ) start [2025-04-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925533', 'tblTempUsageDetail_20' ) end [2025-04-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925533', 'tblTempVendorCDR_20' ) start [2025-04-17 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925533', 'tblTempVendorCDR_20' ) end [2025-04-17 03:34:19] Production.INFO: ProcessCDR(1,14925533,1,1,2) [2025-04-17 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925533', 'tblTempUsageDetail_20' ) start [2025-04-17 03:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925533', 'tblTempUsageDetail_20' ) end [2025-04-17 03:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:34:24] Production.INFO: ==31129== Releasing lock... [2025-04-17 03:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:34:24] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:35:05 [end_date_ymd] => 2025-04-17 03:35:05 [RateCDR] => 1 ) [2025-04-17 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:35:05' and `end` < '2025-04-17 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:35:18] Production.INFO: count ==1166 [2025-04-17 03:35:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:35:05 - End Time 2025-04-17 03:35:05 [2025-04-17 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925538', 'tblTempUsageDetail_20' ) start [2025-04-17 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925538', 'tblTempUsageDetail_20' ) end [2025-04-17 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925538', 'tblTempVendorCDR_20' ) start [2025-04-17 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925538', 'tblTempVendorCDR_20' ) end [2025-04-17 03:35:19] Production.INFO: ProcessCDR(1,14925538,1,1,2) [2025-04-17 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925538', 'tblTempUsageDetail_20' ) start [2025-04-17 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925538', 'tblTempUsageDetail_20' ) end [2025-04-17 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:35:22] Production.INFO: ==31266== Releasing lock... [2025-04-17 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:36:05 [end_date_ymd] => 2025-04-17 03:36:05 [RateCDR] => 1 ) [2025-04-17 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:36:05' and `end` < '2025-04-17 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:36:18] Production.INFO: count ==1165 [2025-04-17 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:36:05 - End Time 2025-04-17 03:36:05 [2025-04-17 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925543', 'tblTempUsageDetail_20' ) start [2025-04-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925543', 'tblTempUsageDetail_20' ) end [2025-04-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925543', 'tblTempVendorCDR_20' ) start [2025-04-17 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925543', 'tblTempVendorCDR_20' ) end [2025-04-17 03:36:18] Production.INFO: ProcessCDR(1,14925543,1,1,2) [2025-04-17 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925543', 'tblTempUsageDetail_20' ) start [2025-04-17 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925543', 'tblTempUsageDetail_20' ) end [2025-04-17 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:36:22] Production.INFO: ==31384== Releasing lock... [2025-04-17 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:37:05 [end_date_ymd] => 2025-04-17 03:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:37:05' and `end` < '2025-04-17 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-17 03:37:18] Production.INFO: count ==1164 [2025-04-17 03:37:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:37:05 - End Time 2025-04-17 03:37:05 [2025-04-17 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925548', 'tblTempUsageDetail_20' ) start [2025-04-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925548', 'tblTempUsageDetail_20' ) end [2025-04-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925548', 'tblTempVendorCDR_20' ) start [2025-04-17 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925548', 'tblTempVendorCDR_20' ) end [2025-04-17 03:37:19] Production.INFO: ProcessCDR(1,14925548,1,1,2) [2025-04-17 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925548', 'tblTempUsageDetail_20' ) start [2025-04-17 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925548', 'tblTempUsageDetail_20' ) end [2025-04-17 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:37:22] Production.INFO: ==31525== Releasing lock... [2025-04-17 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:37:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:38:05 [end_date_ymd] => 2025-04-17 03:38:05 [RateCDR] => 1 ) [2025-04-17 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:38:05' and `end` < '2025-04-17 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:38:18] Production.INFO: count ==1163 [2025-04-17 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:38:05 - End Time 2025-04-17 03:38:05 [2025-04-17 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925553', 'tblTempUsageDetail_20' ) start [2025-04-17 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925553', 'tblTempUsageDetail_20' ) end [2025-04-17 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925553', 'tblTempVendorCDR_20' ) start [2025-04-17 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925553', 'tblTempVendorCDR_20' ) end [2025-04-17 03:38:19] Production.INFO: ProcessCDR(1,14925553,1,1,2) [2025-04-17 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925553', 'tblTempUsageDetail_20' ) start [2025-04-17 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925553', 'tblTempUsageDetail_20' ) end [2025-04-17 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:38:22] Production.INFO: ==31654== Releasing lock... [2025-04-17 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:39:06 [end_date_ymd] => 2025-04-17 03:39:06 [RateCDR] => 1 ) [2025-04-17 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-17 00:39:06' and `end` < '2025-04-17 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-17 03:39:18] Production.INFO: count ==1164 [2025-04-17 03:39:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:39:06 - End Time 2025-04-17 03:39:06 [2025-04-17 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925558', 'tblTempUsageDetail_20' ) start [2025-04-17 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925558', 'tblTempUsageDetail_20' ) end [2025-04-17 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925558', 'tblTempVendorCDR_20' ) start [2025-04-17 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925558', 'tblTempVendorCDR_20' ) end [2025-04-17 03:39:19] Production.INFO: ProcessCDR(1,14925558,1,1,2) [2025-04-17 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925558', 'tblTempUsageDetail_20' ) start [2025-04-17 03:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925558', 'tblTempUsageDetail_20' ) end [2025-04-17 03:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:39:24] Production.INFO: ==31797== Releasing lock... [2025-04-17 03:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:39:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:40:07 [end_date_ymd] => 2025-04-17 03:40:07 [RateCDR] => 1 ) [2025-04-17 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-17 00:40:07' and `end` < '2025-04-17 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-17 03:40:19] Production.INFO: count ==1152 [2025-04-17 03:40:20] Production.ERROR: pbx CDR StartTime 2025-04-17 00:40:07 - End Time 2025-04-17 03:40:07 [2025-04-17 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925564', 'tblTempUsageDetail_20' ) start [2025-04-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925564', 'tblTempUsageDetail_20' ) end [2025-04-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925564', 'tblTempVendorCDR_20' ) start [2025-04-17 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925564', 'tblTempVendorCDR_20' ) end [2025-04-17 03:40:20] Production.INFO: ProcessCDR(1,14925564,1,1,2) [2025-04-17 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925564', 'tblTempUsageDetail_20' ) start [2025-04-17 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925564', 'tblTempUsageDetail_20' ) end [2025-04-17 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:40:23] Production.INFO: ==31928== Releasing lock... [2025-04-17 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:40:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:41:05 [end_date_ymd] => 2025-04-17 03:41:05 [RateCDR] => 1 ) [2025-04-17 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:41:05' and `end` < '2025-04-17 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:41:18] Production.INFO: count ==1137 [2025-04-17 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:41:05 - End Time 2025-04-17 03:41:05 [2025-04-17 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925569', 'tblTempUsageDetail_20' ) start [2025-04-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925569', 'tblTempUsageDetail_20' ) end [2025-04-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925569', 'tblTempVendorCDR_20' ) start [2025-04-17 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925569', 'tblTempVendorCDR_20' ) end [2025-04-17 03:41:18] Production.INFO: ProcessCDR(1,14925569,1,1,2) [2025-04-17 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925569', 'tblTempUsageDetail_20' ) start [2025-04-17 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925569', 'tblTempUsageDetail_20' ) end [2025-04-17 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:41:22] Production.INFO: ==32067== Releasing lock... [2025-04-17 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:42:05 [end_date_ymd] => 2025-04-17 03:42:05 [RateCDR] => 1 ) [2025-04-17 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:42:05' and `end` < '2025-04-17 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:42:18] Production.INFO: count ==1132 [2025-04-17 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:42:05 - End Time 2025-04-17 03:42:05 [2025-04-17 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925574', 'tblTempUsageDetail_20' ) start [2025-04-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925574', 'tblTempUsageDetail_20' ) end [2025-04-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925574', 'tblTempVendorCDR_20' ) start [2025-04-17 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925574', 'tblTempVendorCDR_20' ) end [2025-04-17 03:42:18] Production.INFO: ProcessCDR(1,14925574,1,1,2) [2025-04-17 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925574', 'tblTempUsageDetail_20' ) start [2025-04-17 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925574', 'tblTempUsageDetail_20' ) end [2025-04-17 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:42:22] Production.INFO: ==32206== Releasing lock... [2025-04-17 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:43:05 [end_date_ymd] => 2025-04-17 03:43:05 [RateCDR] => 1 ) [2025-04-17 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:43:05' and `end` < '2025-04-17 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:43:17] Production.INFO: count ==1130 [2025-04-17 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:43:05 - End Time 2025-04-17 03:43:05 [2025-04-17 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925579', 'tblTempUsageDetail_20' ) start [2025-04-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925579', 'tblTempUsageDetail_20' ) end [2025-04-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925579', 'tblTempVendorCDR_20' ) start [2025-04-17 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925579', 'tblTempVendorCDR_20' ) end [2025-04-17 03:43:18] Production.INFO: ProcessCDR(1,14925579,1,1,2) [2025-04-17 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925579', 'tblTempUsageDetail_20' ) start [2025-04-17 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925579', 'tblTempUsageDetail_20' ) end [2025-04-17 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:43:22] Production.INFO: ==32335== Releasing lock... [2025-04-17 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:43:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:44:05 [end_date_ymd] => 2025-04-17 03:44:05 [RateCDR] => 1 ) [2025-04-17 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:44:05' and `end` < '2025-04-17 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:44:18] Production.INFO: count ==1125 [2025-04-17 03:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:44:05 - End Time 2025-04-17 03:44:05 [2025-04-17 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925584', 'tblTempUsageDetail_20' ) start [2025-04-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925584', 'tblTempUsageDetail_20' ) end [2025-04-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925584', 'tblTempVendorCDR_20' ) start [2025-04-17 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925584', 'tblTempVendorCDR_20' ) end [2025-04-17 03:44:18] Production.INFO: ProcessCDR(1,14925584,1,1,2) [2025-04-17 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925584', 'tblTempUsageDetail_20' ) start [2025-04-17 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925584', 'tblTempUsageDetail_20' ) end [2025-04-17 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:44:22] Production.INFO: ==32460== Releasing lock... [2025-04-17 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:44:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:45:05 [end_date_ymd] => 2025-04-17 03:45:05 [RateCDR] => 1 ) [2025-04-17 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:45:05' and `end` < '2025-04-17 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:45:18] Production.INFO: count ==1123 [2025-04-17 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:45:05 - End Time 2025-04-17 03:45:05 [2025-04-17 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925589', 'tblTempUsageDetail_20' ) start [2025-04-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925589', 'tblTempUsageDetail_20' ) end [2025-04-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925589', 'tblTempVendorCDR_20' ) start [2025-04-17 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925589', 'tblTempVendorCDR_20' ) end [2025-04-17 03:45:18] Production.INFO: ProcessCDR(1,14925589,1,1,2) [2025-04-17 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925589', 'tblTempUsageDetail_20' ) start [2025-04-17 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925589', 'tblTempUsageDetail_20' ) end [2025-04-17 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:45:22] Production.INFO: ==32567== Releasing lock... [2025-04-17 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:45:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:46:05 [end_date_ymd] => 2025-04-17 03:46:05 [RateCDR] => 1 ) [2025-04-17 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:46:05' and `end` < '2025-04-17 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:46:18] Production.INFO: count ==1118 [2025-04-17 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:46:05 - End Time 2025-04-17 03:46:05 [2025-04-17 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925594', 'tblTempUsageDetail_20' ) start [2025-04-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925594', 'tblTempUsageDetail_20' ) end [2025-04-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925594', 'tblTempVendorCDR_20' ) start [2025-04-17 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925594', 'tblTempVendorCDR_20' ) end [2025-04-17 03:46:18] Production.INFO: ProcessCDR(1,14925594,1,1,2) [2025-04-17 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925594', 'tblTempUsageDetail_20' ) start [2025-04-17 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925594', 'tblTempUsageDetail_20' ) end [2025-04-17 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:46:22] Production.INFO: ==32672== Releasing lock... [2025-04-17 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:46:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:47:04 [end_date_ymd] => 2025-04-17 03:47:04 [RateCDR] => 1 ) [2025-04-17 03:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:47:04' and `end` < '2025-04-17 03:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:47:17] Production.INFO: count ==1116 [2025-04-17 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:47:04 - End Time 2025-04-17 03:47:04 [2025-04-17 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925599', 'tblTempUsageDetail_20' ) start [2025-04-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925599', 'tblTempUsageDetail_20' ) end [2025-04-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925599', 'tblTempVendorCDR_20' ) start [2025-04-17 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925599', 'tblTempVendorCDR_20' ) end [2025-04-17 03:47:18] Production.INFO: ProcessCDR(1,14925599,1,1,2) [2025-04-17 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925599', 'tblTempUsageDetail_20' ) start [2025-04-17 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925599', 'tblTempUsageDetail_20' ) end [2025-04-17 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:47:21] Production.INFO: ==321== Releasing lock... [2025-04-17 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:48:05 [end_date_ymd] => 2025-04-17 03:48:05 [RateCDR] => 1 ) [2025-04-17 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:48:05' and `end` < '2025-04-17 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:48:18] Production.INFO: count ==1114 [2025-04-17 03:48:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:48:05 - End Time 2025-04-17 03:48:05 [2025-04-17 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925604', 'tblTempUsageDetail_20' ) start [2025-04-17 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925604', 'tblTempUsageDetail_20' ) end [2025-04-17 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925604', 'tblTempVendorCDR_20' ) start [2025-04-17 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925604', 'tblTempVendorCDR_20' ) end [2025-04-17 03:48:19] Production.INFO: ProcessCDR(1,14925604,1,1,2) [2025-04-17 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925604', 'tblTempUsageDetail_20' ) start [2025-04-17 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925604', 'tblTempUsageDetail_20' ) end [2025-04-17 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:48:22] Production.INFO: ==444== Releasing lock... [2025-04-17 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:49:05 [end_date_ymd] => 2025-04-17 03:49:05 [RateCDR] => 1 ) [2025-04-17 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:49:05' and `end` < '2025-04-17 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:49:18] Production.INFO: count ==1111 [2025-04-17 03:49:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:49:05 - End Time 2025-04-17 03:49:05 [2025-04-17 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925609', 'tblTempUsageDetail_20' ) start [2025-04-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925609', 'tblTempUsageDetail_20' ) end [2025-04-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925609', 'tblTempVendorCDR_20' ) start [2025-04-17 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925609', 'tblTempVendorCDR_20' ) end [2025-04-17 03:49:19] Production.INFO: ProcessCDR(1,14925609,1,1,2) [2025-04-17 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925609', 'tblTempUsageDetail_20' ) start [2025-04-17 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925609', 'tblTempUsageDetail_20' ) end [2025-04-17 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:49:22] Production.INFO: ==596== Releasing lock... [2025-04-17 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:49:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:50:06 [end_date_ymd] => 2025-04-17 03:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 00:50:06' and `end` < '2025-04-17 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-17 03:50:19] Production.INFO: count ==1098 [2025-04-17 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:50:06 - End Time 2025-04-17 03:50:06 [2025-04-17 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925615', 'tblTempUsageDetail_20' ) start [2025-04-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925615', 'tblTempUsageDetail_20' ) end [2025-04-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925615', 'tblTempVendorCDR_20' ) start [2025-04-17 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925615', 'tblTempVendorCDR_20' ) end [2025-04-17 03:50:19] Production.INFO: ProcessCDR(1,14925615,1,1,2) [2025-04-17 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925615', 'tblTempUsageDetail_20' ) start [2025-04-17 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925615', 'tblTempUsageDetail_20' ) end [2025-04-17 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:50:23] Production.INFO: ==739== Releasing lock... [2025-04-17 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:50:23] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:51:05 [end_date_ymd] => 2025-04-17 03:51:05 [RateCDR] => 1 ) [2025-04-17 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:51:05' and `end` < '2025-04-17 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:51:18] Production.INFO: count ==1085 [2025-04-17 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:51:05 - End Time 2025-04-17 03:51:05 [2025-04-17 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925620', 'tblTempUsageDetail_20' ) start [2025-04-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925620', 'tblTempUsageDetail_20' ) end [2025-04-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925620', 'tblTempVendorCDR_20' ) start [2025-04-17 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925620', 'tblTempVendorCDR_20' ) end [2025-04-17 03:51:19] Production.INFO: ProcessCDR(1,14925620,1,1,2) [2025-04-17 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925620', 'tblTempUsageDetail_20' ) start [2025-04-17 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925620', 'tblTempUsageDetail_20' ) end [2025-04-17 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:51:22] Production.INFO: ==858== Releasing lock... [2025-04-17 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:52:05 [end_date_ymd] => 2025-04-17 03:52:05 [RateCDR] => 1 ) [2025-04-17 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:52:05' and `end` < '2025-04-17 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:52:18] Production.INFO: count ==1083 [2025-04-17 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:52:05 - End Time 2025-04-17 03:52:05 [2025-04-17 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925625', 'tblTempUsageDetail_20' ) start [2025-04-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925625', 'tblTempUsageDetail_20' ) end [2025-04-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925625', 'tblTempVendorCDR_20' ) start [2025-04-17 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925625', 'tblTempVendorCDR_20' ) end [2025-04-17 03:52:18] Production.INFO: ProcessCDR(1,14925625,1,1,2) [2025-04-17 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925625', 'tblTempUsageDetail_20' ) start [2025-04-17 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925625', 'tblTempUsageDetail_20' ) end [2025-04-17 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:52:21] Production.INFO: ==969== Releasing lock... [2025-04-17 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:52:21] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:53:05 [end_date_ymd] => 2025-04-17 03:53:05 [RateCDR] => 1 ) [2025-04-17 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:53:05' and `end` < '2025-04-17 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:53:18] Production.INFO: count ==1081 [2025-04-17 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:53:05 - End Time 2025-04-17 03:53:05 [2025-04-17 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925630', 'tblTempUsageDetail_20' ) start [2025-04-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925630', 'tblTempUsageDetail_20' ) end [2025-04-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925630', 'tblTempVendorCDR_20' ) start [2025-04-17 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925630', 'tblTempVendorCDR_20' ) end [2025-04-17 03:53:18] Production.INFO: ProcessCDR(1,14925630,1,1,2) [2025-04-17 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925630', 'tblTempUsageDetail_20' ) start [2025-04-17 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925630', 'tblTempUsageDetail_20' ) end [2025-04-17 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:53:22] Production.INFO: ==1077== Releasing lock... [2025-04-17 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:53:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:54:04 [end_date_ymd] => 2025-04-17 03:54:04 [RateCDR] => 1 ) [2025-04-17 03: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-17 00:54:04' and `end` < '2025-04-17 03: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-17 03:54:17] Production.INFO: count ==1077 [2025-04-17 03:54:17] Production.ERROR: pbx CDR StartTime 2025-04-17 00:54:04 - End Time 2025-04-17 03:54:04 [2025-04-17 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925635', 'tblTempUsageDetail_20' ) start [2025-04-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925635', 'tblTempUsageDetail_20' ) end [2025-04-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925635', 'tblTempVendorCDR_20' ) start [2025-04-17 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925635', 'tblTempVendorCDR_20' ) end [2025-04-17 03:54:18] Production.INFO: ProcessCDR(1,14925635,1,1,2) [2025-04-17 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925635', 'tblTempUsageDetail_20' ) start [2025-04-17 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925635', 'tblTempUsageDetail_20' ) end [2025-04-17 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:54:21] Production.INFO: ==1188== Releasing lock... [2025-04-17 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:54:21] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:55:05 [end_date_ymd] => 2025-04-17 03:55:05 [RateCDR] => 1 ) [2025-04-17 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:55:05' and `end` < '2025-04-17 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:55:18] Production.INFO: count ==1076 [2025-04-17 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:55:05 - End Time 2025-04-17 03:55:05 [2025-04-17 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925640', 'tblTempUsageDetail_20' ) start [2025-04-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925640', 'tblTempUsageDetail_20' ) end [2025-04-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925640', 'tblTempVendorCDR_20' ) start [2025-04-17 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925640', 'tblTempVendorCDR_20' ) end [2025-04-17 03:55:18] Production.INFO: ProcessCDR(1,14925640,1,1,2) [2025-04-17 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925640', 'tblTempUsageDetail_20' ) start [2025-04-17 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925640', 'tblTempUsageDetail_20' ) end [2025-04-17 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:55:22] Production.INFO: ==1314== Releasing lock... [2025-04-17 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:55:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:56:05 [end_date_ymd] => 2025-04-17 03:56:05 [RateCDR] => 1 ) [2025-04-17 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-17 00:56:05' and `end` < '2025-04-17 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-17 03:56:18] Production.INFO: count ==1073 [2025-04-17 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:56:05 - End Time 2025-04-17 03:56:05 [2025-04-17 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925645', 'tblTempUsageDetail_20' ) start [2025-04-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925645', 'tblTempUsageDetail_20' ) end [2025-04-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925645', 'tblTempVendorCDR_20' ) start [2025-04-17 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925645', 'tblTempVendorCDR_20' ) end [2025-04-17 03:56:18] Production.INFO: ProcessCDR(1,14925645,1,1,2) [2025-04-17 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925645', 'tblTempUsageDetail_20' ) start [2025-04-17 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925645', 'tblTempUsageDetail_20' ) end [2025-04-17 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:56:21] Production.INFO: ==1429== Releasing lock... [2025-04-17 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:56:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:57:05 [end_date_ymd] => 2025-04-17 03:57:05 [RateCDR] => 1 ) [2025-04-17 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:57:05' and `end` < '2025-04-17 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:57:18] Production.INFO: count ==1069 [2025-04-17 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:57:05 - End Time 2025-04-17 03:57:05 [2025-04-17 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925650', 'tblTempUsageDetail_20' ) start [2025-04-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925650', 'tblTempUsageDetail_20' ) end [2025-04-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925650', 'tblTempVendorCDR_20' ) start [2025-04-17 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925650', 'tblTempVendorCDR_20' ) end [2025-04-17 03:57:18] Production.INFO: ProcessCDR(1,14925650,1,1,2) [2025-04-17 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925650', 'tblTempUsageDetail_20' ) start [2025-04-17 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925650', 'tblTempUsageDetail_20' ) end [2025-04-17 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:57:22] Production.INFO: ==1578== Releasing lock... [2025-04-17 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:58:05 [end_date_ymd] => 2025-04-17 03:58:05 [RateCDR] => 1 ) [2025-04-17 03: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-17 00:58:05' and `end` < '2025-04-17 03: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-17 03:58:18] Production.INFO: count ==1068 [2025-04-17 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-17 00:58:05 - End Time 2025-04-17 03:58:05 [2025-04-17 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925655', 'tblTempUsageDetail_20' ) start [2025-04-17 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925655', 'tblTempUsageDetail_20' ) end [2025-04-17 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925655', 'tblTempVendorCDR_20' ) start [2025-04-17 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925655', 'tblTempVendorCDR_20' ) end [2025-04-17 03:58:19] Production.INFO: ProcessCDR(1,14925655,1,1,2) [2025-04-17 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925655', 'tblTempUsageDetail_20' ) start [2025-04-17 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925655', 'tblTempUsageDetail_20' ) end [2025-04-17 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:58:22] Production.INFO: ==1686== Releasing lock... [2025-04-17 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 00:59:05 [end_date_ymd] => 2025-04-17 03:59:05 [RateCDR] => 1 ) [2025-04-17 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 00:59:05' and `end` < '2025-04-17 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 03:59:18] Production.INFO: count ==1069 [2025-04-17 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 00:59:05 - End Time 2025-04-17 03:59:05 [2025-04-17 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925660', 'tblTempUsageDetail_20' ) start [2025-04-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925660', 'tblTempUsageDetail_20' ) end [2025-04-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925660', 'tblTempVendorCDR_20' ) start [2025-04-17 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925660', 'tblTempVendorCDR_20' ) end [2025-04-17 03:59:18] Production.INFO: ProcessCDR(1,14925660,1,1,2) [2025-04-17 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925660', 'tblTempUsageDetail_20' ) start [2025-04-17 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925660', 'tblTempUsageDetail_20' ) end [2025-04-17 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 03:59:21] Production.INFO: ==1791== Releasing lock... [2025-04-17 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 03:59:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:00:06 [end_date_ymd] => 2025-04-17 04:00:06 [RateCDR] => 1 ) [2025-04-17 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:00:06' and `end` < '2025-04-17 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:00:19] Production.INFO: count ==1061 [2025-04-17 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:00:06 - End Time 2025-04-17 04:00:06 [2025-04-17 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925666', 'tblTempUsageDetail_20' ) start [2025-04-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925666', 'tblTempUsageDetail_20' ) end [2025-04-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925666', 'tblTempVendorCDR_20' ) start [2025-04-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925666', 'tblTempVendorCDR_20' ) end [2025-04-17 04:00:19] Production.INFO: ProcessCDR(1,14925666,1,1,2) [2025-04-17 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925666', 'tblTempUsageDetail_20' ) start [2025-04-17 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925666', 'tblTempUsageDetail_20' ) end [2025-04-17 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:00:22] Production.INFO: ==1908== Releasing lock... [2025-04-17 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:00:22] Production.INFO: 38 MB #Memory Used# [2025-04-17 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:01:05 [end_date_ymd] => 2025-04-17 04:01:05 [RateCDR] => 1 ) [2025-04-17 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:01:05' and `end` < '2025-04-17 04: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-17 04:01:18] Production.INFO: count ==1061 [2025-04-17 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:01:05 - End Time 2025-04-17 04:01:05 [2025-04-17 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925672', 'tblTempUsageDetail_20' ) start [2025-04-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925672', 'tblTempUsageDetail_20' ) end [2025-04-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925672', 'tblTempVendorCDR_20' ) start [2025-04-17 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925672', 'tblTempVendorCDR_20' ) end [2025-04-17 04:01:18] Production.INFO: ProcessCDR(1,14925672,1,1,2) [2025-04-17 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925672', 'tblTempUsageDetail_20' ) start [2025-04-17 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925672', 'tblTempUsageDetail_20' ) end [2025-04-17 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:01:23] Production.INFO: ==2034== Releasing lock... [2025-04-17 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:01:23] Production.INFO: 38 MB #Memory Used# [2025-04-17 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:02:06 [end_date_ymd] => 2025-04-17 04:02:06 [RateCDR] => 1 ) [2025-04-17 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-17 01:02:06' and `end` < '2025-04-17 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-17 04:02:18] Production.INFO: count ==1060 [2025-04-17 04:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:02:06 - End Time 2025-04-17 04:02:06 [2025-04-17 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925677', 'tblTempUsageDetail_20' ) start [2025-04-17 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925677', 'tblTempUsageDetail_20' ) end [2025-04-17 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925677', 'tblTempVendorCDR_20' ) start [2025-04-17 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925677', 'tblTempVendorCDR_20' ) end [2025-04-17 04:02:19] Production.INFO: ProcessCDR(1,14925677,1,1,2) [2025-04-17 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925677', 'tblTempUsageDetail_20' ) start [2025-04-17 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925677', 'tblTempUsageDetail_20' ) end [2025-04-17 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:02:22] Production.INFO: ==2151== Releasing lock... [2025-04-17 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:02:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:03:05 [end_date_ymd] => 2025-04-17 04:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:03:05' and `end` < '2025-04-17 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-17 04:03:18] Production.INFO: count ==1059 [2025-04-17 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:03:05 - End Time 2025-04-17 04:03:05 [2025-04-17 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925682', 'tblTempUsageDetail_20' ) start [2025-04-17 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925682', 'tblTempUsageDetail_20' ) end [2025-04-17 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925682', 'tblTempVendorCDR_20' ) start [2025-04-17 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925682', 'tblTempVendorCDR_20' ) end [2025-04-17 04:03:18] Production.INFO: ProcessCDR(1,14925682,1,1,2) [2025-04-17 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925682', 'tblTempUsageDetail_20' ) start [2025-04-17 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925682', 'tblTempUsageDetail_20' ) end [2025-04-17 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:03:22] Production.INFO: ==2262== Releasing lock... [2025-04-17 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:04:05 [end_date_ymd] => 2025-04-17 04:04:05 [RateCDR] => 1 ) [2025-04-17 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:04:05' and `end` < '2025-04-17 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:04:18] Production.INFO: count ==1059 [2025-04-17 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:04:05 - End Time 2025-04-17 04:04:05 [2025-04-17 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925687', 'tblTempUsageDetail_20' ) start [2025-04-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925687', 'tblTempUsageDetail_20' ) end [2025-04-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925687', 'tblTempVendorCDR_20' ) start [2025-04-17 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925687', 'tblTempVendorCDR_20' ) end [2025-04-17 04:04:18] Production.INFO: ProcessCDR(1,14925687,1,1,2) [2025-04-17 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925687', 'tblTempUsageDetail_20' ) start [2025-04-17 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925687', 'tblTempUsageDetail_20' ) end [2025-04-17 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:04:22] Production.INFO: ==2372== Releasing lock... [2025-04-17 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:04:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:05:05 [end_date_ymd] => 2025-04-17 04:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:05:05' and `end` < '2025-04-17 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-17 04:05:17] Production.INFO: count ==1058 [2025-04-17 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:05:05 - End Time 2025-04-17 04:05:05 [2025-04-17 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925692', 'tblTempUsageDetail_20' ) start [2025-04-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925692', 'tblTempUsageDetail_20' ) end [2025-04-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925692', 'tblTempVendorCDR_20' ) start [2025-04-17 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925692', 'tblTempVendorCDR_20' ) end [2025-04-17 04:05:18] Production.INFO: ProcessCDR(1,14925692,1,1,2) [2025-04-17 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925692', 'tblTempUsageDetail_20' ) start [2025-04-17 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925692', 'tblTempUsageDetail_20' ) end [2025-04-17 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:05:22] Production.INFO: ==2515== Releasing lock... [2025-04-17 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:06:06 [end_date_ymd] => 2025-04-17 04:06:06 [RateCDR] => 1 ) [2025-04-17 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-17 01:06:06' and `end` < '2025-04-17 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-17 04:06:18] Production.INFO: count ==1057 [2025-04-17 04:06:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:06:06 - End Time 2025-04-17 04:06:06 [2025-04-17 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925697', 'tblTempUsageDetail_20' ) start [2025-04-17 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925697', 'tblTempUsageDetail_20' ) end [2025-04-17 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925697', 'tblTempVendorCDR_20' ) start [2025-04-17 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925697', 'tblTempVendorCDR_20' ) end [2025-04-17 04:06:19] Production.INFO: ProcessCDR(1,14925697,1,1,2) [2025-04-17 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925697', 'tblTempUsageDetail_20' ) start [2025-04-17 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925697', 'tblTempUsageDetail_20' ) end [2025-04-17 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:06:22] Production.INFO: ==2626== Releasing lock... [2025-04-17 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:06:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:07:04 [end_date_ymd] => 2025-04-17 04:07:04 [RateCDR] => 1 ) [2025-04-17 04:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:07:04' and `end` < '2025-04-17 04:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:07:17] Production.INFO: count ==1056 [2025-04-17 04:07:17] Production.ERROR: pbx CDR StartTime 2025-04-17 01:07:04 - End Time 2025-04-17 04:07:04 [2025-04-17 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925702', 'tblTempUsageDetail_20' ) start [2025-04-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925702', 'tblTempUsageDetail_20' ) end [2025-04-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925702', 'tblTempVendorCDR_20' ) start [2025-04-17 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925702', 'tblTempVendorCDR_20' ) end [2025-04-17 04:07:17] Production.INFO: ProcessCDR(1,14925702,1,1,2) [2025-04-17 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925702', 'tblTempUsageDetail_20' ) start [2025-04-17 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925702', 'tblTempUsageDetail_20' ) end [2025-04-17 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:07:21] Production.INFO: ==2732== Releasing lock... [2025-04-17 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:07:21] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:08:06 [end_date_ymd] => 2025-04-17 04:08:06 [RateCDR] => 1 ) [2025-04-17 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:08:06' and `end` < '2025-04-17 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:08:18] Production.INFO: count ==1053 [2025-04-17 04:08:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:08:06 - End Time 2025-04-17 04:08:06 [2025-04-17 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925707', 'tblTempUsageDetail_20' ) start [2025-04-17 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925707', 'tblTempUsageDetail_20' ) end [2025-04-17 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925707', 'tblTempVendorCDR_20' ) start [2025-04-17 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925707', 'tblTempVendorCDR_20' ) end [2025-04-17 04:08:19] Production.INFO: ProcessCDR(1,14925707,1,1,2) [2025-04-17 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925707', 'tblTempUsageDetail_20' ) start [2025-04-17 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925707', 'tblTempUsageDetail_20' ) end [2025-04-17 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:08:22] Production.INFO: ==2842== Releasing lock... [2025-04-17 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:09:05 [end_date_ymd] => 2025-04-17 04:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:09:05' and `end` < '2025-04-17 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-17 04:09:18] Production.INFO: count ==1053 [2025-04-17 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:09:05 - End Time 2025-04-17 04:09:05 [2025-04-17 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925712', 'tblTempUsageDetail_20' ) start [2025-04-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925712', 'tblTempUsageDetail_20' ) end [2025-04-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925712', 'tblTempVendorCDR_20' ) start [2025-04-17 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925712', 'tblTempVendorCDR_20' ) end [2025-04-17 04:09:18] Production.INFO: ProcessCDR(1,14925712,1,1,2) [2025-04-17 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925712', 'tblTempUsageDetail_20' ) start [2025-04-17 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925712', 'tblTempUsageDetail_20' ) end [2025-04-17 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:09:22] Production.INFO: ==2948== Releasing lock... [2025-04-17 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:10:06 [end_date_ymd] => 2025-04-17 04:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 01:10:06' and `end` < '2025-04-17 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-17 04:10:19] Production.INFO: count ==1053 [2025-04-17 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:10:06 - End Time 2025-04-17 04:10:06 [2025-04-17 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925718', 'tblTempUsageDetail_20' ) start [2025-04-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925718', 'tblTempUsageDetail_20' ) end [2025-04-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925718', 'tblTempVendorCDR_20' ) start [2025-04-17 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925718', 'tblTempVendorCDR_20' ) end [2025-04-17 04:10:19] Production.INFO: ProcessCDR(1,14925718,1,1,2) [2025-04-17 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925718', 'tblTempUsageDetail_20' ) start [2025-04-17 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925718', 'tblTempUsageDetail_20' ) end [2025-04-17 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:10:23] Production.INFO: ==3063== Releasing lock... [2025-04-17 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:11:05 [end_date_ymd] => 2025-04-17 04:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:11:05' and `end` < '2025-04-17 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-17 04:11:18] Production.INFO: count ==1053 [2025-04-17 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:11:05 - End Time 2025-04-17 04:11:05 [2025-04-17 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925723', 'tblTempUsageDetail_20' ) start [2025-04-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925723', 'tblTempUsageDetail_20' ) end [2025-04-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925723', 'tblTempVendorCDR_20' ) start [2025-04-17 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925723', 'tblTempVendorCDR_20' ) end [2025-04-17 04:11:18] Production.INFO: ProcessCDR(1,14925723,1,1,2) [2025-04-17 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925723', 'tblTempUsageDetail_20' ) start [2025-04-17 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925723', 'tblTempUsageDetail_20' ) end [2025-04-17 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:11:21] Production.INFO: ==3182== Releasing lock... [2025-04-17 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:12:05 [end_date_ymd] => 2025-04-17 04:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:12:05' and `end` < '2025-04-17 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-17 04:12:18] Production.INFO: count ==1052 [2025-04-17 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:12:05 - End Time 2025-04-17 04:12:05 [2025-04-17 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925728', 'tblTempUsageDetail_20' ) start [2025-04-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925728', 'tblTempUsageDetail_20' ) end [2025-04-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925728', 'tblTempVendorCDR_20' ) start [2025-04-17 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925728', 'tblTempVendorCDR_20' ) end [2025-04-17 04:12:18] Production.INFO: ProcessCDR(1,14925728,1,1,2) [2025-04-17 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925728', 'tblTempUsageDetail_20' ) start [2025-04-17 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925728', 'tblTempUsageDetail_20' ) end [2025-04-17 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:12:22] Production.INFO: ==3292== Releasing lock... [2025-04-17 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:13:05 [end_date_ymd] => 2025-04-17 04:13:05 [RateCDR] => 1 ) [2025-04-17 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:13:05' and `end` < '2025-04-17 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:13:18] Production.INFO: count ==1052 [2025-04-17 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:13:05 - End Time 2025-04-17 04:13:05 [2025-04-17 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925733', 'tblTempUsageDetail_20' ) start [2025-04-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925733', 'tblTempUsageDetail_20' ) end [2025-04-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925733', 'tblTempVendorCDR_20' ) start [2025-04-17 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925733', 'tblTempVendorCDR_20' ) end [2025-04-17 04:13:18] Production.INFO: ProcessCDR(1,14925733,1,1,2) [2025-04-17 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925733', 'tblTempUsageDetail_20' ) start [2025-04-17 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925733', 'tblTempUsageDetail_20' ) end [2025-04-17 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:13:22] Production.INFO: ==3401== Releasing lock... [2025-04-17 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:14:05 [end_date_ymd] => 2025-04-17 04:14:05 [RateCDR] => 1 ) [2025-04-17 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:14:05' and `end` < '2025-04-17 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:14:18] Production.INFO: count ==1052 [2025-04-17 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:14:05 - End Time 2025-04-17 04:14:05 [2025-04-17 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925738', 'tblTempUsageDetail_20' ) start [2025-04-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925738', 'tblTempUsageDetail_20' ) end [2025-04-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925738', 'tblTempVendorCDR_20' ) start [2025-04-17 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925738', 'tblTempVendorCDR_20' ) end [2025-04-17 04:14:18] Production.INFO: ProcessCDR(1,14925738,1,1,2) [2025-04-17 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925738', 'tblTempUsageDetail_20' ) start [2025-04-17 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925738', 'tblTempUsageDetail_20' ) end [2025-04-17 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:14:22] Production.INFO: ==3508== Releasing lock... [2025-04-17 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:15:05 [end_date_ymd] => 2025-04-17 04:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:15:05' and `end` < '2025-04-17 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-17 04:15:18] Production.INFO: count ==1051 [2025-04-17 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:15:05 - End Time 2025-04-17 04:15:05 [2025-04-17 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925743', 'tblTempUsageDetail_20' ) start [2025-04-17 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925743', 'tblTempUsageDetail_20' ) end [2025-04-17 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925743', 'tblTempVendorCDR_20' ) start [2025-04-17 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925743', 'tblTempVendorCDR_20' ) end [2025-04-17 04:15:19] Production.INFO: ProcessCDR(1,14925743,1,1,2) [2025-04-17 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925743', 'tblTempUsageDetail_20' ) start [2025-04-17 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925743', 'tblTempUsageDetail_20' ) end [2025-04-17 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:15:22] Production.INFO: ==3622== Releasing lock... [2025-04-17 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:15:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:16:05 [end_date_ymd] => 2025-04-17 04:16:05 [RateCDR] => 1 ) [2025-04-17 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:16:05' and `end` < '2025-04-17 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:16:18] Production.INFO: count ==1051 [2025-04-17 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:16:05 - End Time 2025-04-17 04:16:05 [2025-04-17 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925748', 'tblTempUsageDetail_20' ) start [2025-04-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925748', 'tblTempUsageDetail_20' ) end [2025-04-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925748', 'tblTempVendorCDR_20' ) start [2025-04-17 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925748', 'tblTempVendorCDR_20' ) end [2025-04-17 04:16:18] Production.INFO: ProcessCDR(1,14925748,1,1,2) [2025-04-17 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925748', 'tblTempUsageDetail_20' ) start [2025-04-17 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925748', 'tblTempUsageDetail_20' ) end [2025-04-17 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:16:22] Production.INFO: ==3734== Releasing lock... [2025-04-17 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:16:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:17:05 [end_date_ymd] => 2025-04-17 04:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:17:05' and `end` < '2025-04-17 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-17 04:17:18] Production.INFO: count ==1051 [2025-04-17 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:17:05 - End Time 2025-04-17 04:17:05 [2025-04-17 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925753', 'tblTempUsageDetail_20' ) start [2025-04-17 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925753', 'tblTempUsageDetail_20' ) end [2025-04-17 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925753', 'tblTempVendorCDR_20' ) start [2025-04-17 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925753', 'tblTempVendorCDR_20' ) end [2025-04-17 04:17:18] Production.INFO: ProcessCDR(1,14925753,1,1,2) [2025-04-17 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925753', 'tblTempUsageDetail_20' ) start [2025-04-17 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925753', 'tblTempUsageDetail_20' ) end [2025-04-17 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:17:22] Production.INFO: ==3842== Releasing lock... [2025-04-17 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:17:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:18:05 [end_date_ymd] => 2025-04-17 04:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:18:05' and `end` < '2025-04-17 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-17 04:18:18] Production.INFO: count ==1050 [2025-04-17 04:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:18:05 - End Time 2025-04-17 04:18:05 [2025-04-17 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925758', 'tblTempUsageDetail_20' ) start [2025-04-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925758', 'tblTempUsageDetail_20' ) end [2025-04-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925758', 'tblTempVendorCDR_20' ) start [2025-04-17 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925758', 'tblTempVendorCDR_20' ) end [2025-04-17 04:18:19] Production.INFO: ProcessCDR(1,14925758,1,1,2) [2025-04-17 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925758', 'tblTempUsageDetail_20' ) start [2025-04-17 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925758', 'tblTempUsageDetail_20' ) end [2025-04-17 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:18:22] Production.INFO: ==3946== Releasing lock... [2025-04-17 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:19:06 [end_date_ymd] => 2025-04-17 04:19:06 [RateCDR] => 1 ) [2025-04-17 04:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:19:06' and `end` < '2025-04-17 04: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-17 04:19:18] Production.INFO: count ==1049 [2025-04-17 04:19:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:19:06 - End Time 2025-04-17 04:19:06 [2025-04-17 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925763', 'tblTempUsageDetail_20' ) start [2025-04-17 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925763', 'tblTempUsageDetail_20' ) end [2025-04-17 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925763', 'tblTempVendorCDR_20' ) start [2025-04-17 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925763', 'tblTempVendorCDR_20' ) end [2025-04-17 04:19:19] Production.INFO: ProcessCDR(1,14925763,1,1,2) [2025-04-17 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925763', 'tblTempUsageDetail_20' ) start [2025-04-17 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925763', 'tblTempUsageDetail_20' ) end [2025-04-17 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:19:22] Production.INFO: ==4053== Releasing lock... [2025-04-17 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:20:05 [end_date_ymd] => 2025-04-17 04:20:05 [RateCDR] => 1 ) [2025-04-17 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:20:05' and `end` < '2025-04-17 04: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-17 04:20:18] Production.INFO: count ==1040 [2025-04-17 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:20:05 - End Time 2025-04-17 04:20:05 [2025-04-17 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925769', 'tblTempUsageDetail_20' ) start [2025-04-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925769', 'tblTempUsageDetail_20' ) end [2025-04-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925769', 'tblTempVendorCDR_20' ) start [2025-04-17 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925769', 'tblTempVendorCDR_20' ) end [2025-04-17 04:20:18] Production.INFO: ProcessCDR(1,14925769,1,1,2) [2025-04-17 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925769', 'tblTempUsageDetail_20' ) start [2025-04-17 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925769', 'tblTempUsageDetail_20' ) end [2025-04-17 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:20:21] Production.INFO: ==4208== Releasing lock... [2025-04-17 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:20:21] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:21:05 [end_date_ymd] => 2025-04-17 04:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:21:05' and `end` < '2025-04-17 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-17 04:21:18] Production.INFO: count ==1040 [2025-04-17 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:21:05 - End Time 2025-04-17 04:21:05 [2025-04-17 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925774', 'tblTempUsageDetail_20' ) start [2025-04-17 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925774', 'tblTempUsageDetail_20' ) end [2025-04-17 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925774', 'tblTempVendorCDR_20' ) start [2025-04-17 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925774', 'tblTempVendorCDR_20' ) end [2025-04-17 04:21:18] Production.INFO: ProcessCDR(1,14925774,1,1,2) [2025-04-17 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925774', 'tblTempUsageDetail_20' ) start [2025-04-17 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925774', 'tblTempUsageDetail_20' ) end [2025-04-17 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:21:22] Production.INFO: ==4317== Releasing lock... [2025-04-17 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:21:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:22:05 [end_date_ymd] => 2025-04-17 04:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:22:05' and `end` < '2025-04-17 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-17 04:22:17] Production.INFO: count ==1039 [2025-04-17 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:22:05 - End Time 2025-04-17 04:22:05 [2025-04-17 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925779', 'tblTempUsageDetail_20' ) start [2025-04-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925779', 'tblTempUsageDetail_20' ) end [2025-04-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925779', 'tblTempVendorCDR_20' ) start [2025-04-17 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925779', 'tblTempVendorCDR_20' ) end [2025-04-17 04:22:18] Production.INFO: ProcessCDR(1,14925779,1,1,2) [2025-04-17 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925779', 'tblTempUsageDetail_20' ) start [2025-04-17 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925779', 'tblTempUsageDetail_20' ) end [2025-04-17 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:22:21] Production.INFO: ==4432== Releasing lock... [2025-04-17 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:22:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:23:05 [end_date_ymd] => 2025-04-17 04:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:23:05' and `end` < '2025-04-17 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-17 04:23:18] Production.INFO: count ==1039 [2025-04-17 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:23:05 - End Time 2025-04-17 04:23:05 [2025-04-17 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925784', 'tblTempUsageDetail_20' ) start [2025-04-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925784', 'tblTempUsageDetail_20' ) end [2025-04-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925784', 'tblTempVendorCDR_20' ) start [2025-04-17 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925784', 'tblTempVendorCDR_20' ) end [2025-04-17 04:23:18] Production.INFO: ProcessCDR(1,14925784,1,1,2) [2025-04-17 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925784', 'tblTempUsageDetail_20' ) start [2025-04-17 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925784', 'tblTempUsageDetail_20' ) end [2025-04-17 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:23:21] Production.INFO: ==4537== Releasing lock... [2025-04-17 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:23:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:24:06 [end_date_ymd] => 2025-04-17 04:24:06 [RateCDR] => 1 ) [2025-04-17 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:24:06' and `end` < '2025-04-17 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:24:18] Production.INFO: count ==1039 [2025-04-17 04:24:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:24:06 - End Time 2025-04-17 04:24:06 [2025-04-17 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925789', 'tblTempUsageDetail_20' ) start [2025-04-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925789', 'tblTempUsageDetail_20' ) end [2025-04-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925789', 'tblTempVendorCDR_20' ) start [2025-04-17 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925789', 'tblTempVendorCDR_20' ) end [2025-04-17 04:24:19] Production.INFO: ProcessCDR(1,14925789,1,1,2) [2025-04-17 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925789', 'tblTempUsageDetail_20' ) start [2025-04-17 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925789', 'tblTempUsageDetail_20' ) end [2025-04-17 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:24:22] Production.INFO: ==4655== Releasing lock... [2025-04-17 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:24:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:25:05 [end_date_ymd] => 2025-04-17 04:25:05 [RateCDR] => 1 ) [2025-04-17 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:25:05' and `end` < '2025-04-17 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:25:17] Production.INFO: count ==1038 [2025-04-17 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:25:05 - End Time 2025-04-17 04:25:05 [2025-04-17 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925794', 'tblTempUsageDetail_20' ) start [2025-04-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925794', 'tblTempUsageDetail_20' ) end [2025-04-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925794', 'tblTempVendorCDR_20' ) start [2025-04-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925794', 'tblTempVendorCDR_20' ) end [2025-04-17 04:25:18] Production.INFO: ProcessCDR(1,14925794,1,1,2) [2025-04-17 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925794', 'tblTempUsageDetail_20' ) start [2025-04-17 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925794', 'tblTempUsageDetail_20' ) end [2025-04-17 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:25:21] Production.INFO: ==4767== Releasing lock... [2025-04-17 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:25:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:26:06 [end_date_ymd] => 2025-04-17 04:26:06 [RateCDR] => 1 ) [2025-04-17 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:26:06' and `end` < '2025-04-17 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:26:18] Production.INFO: count ==1038 [2025-04-17 04:26:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:26:06 - End Time 2025-04-17 04:26:06 [2025-04-17 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925799', 'tblTempUsageDetail_20' ) start [2025-04-17 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925799', 'tblTempUsageDetail_20' ) end [2025-04-17 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925799', 'tblTempVendorCDR_20' ) start [2025-04-17 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925799', 'tblTempVendorCDR_20' ) end [2025-04-17 04:26:19] Production.INFO: ProcessCDR(1,14925799,1,1,2) [2025-04-17 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925799', 'tblTempUsageDetail_20' ) start [2025-04-17 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925799', 'tblTempUsageDetail_20' ) end [2025-04-17 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:26:22] Production.INFO: ==4879== Releasing lock... [2025-04-17 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:27:05 [end_date_ymd] => 2025-04-17 04:27:05 [RateCDR] => 1 ) [2025-04-17 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:27:05' and `end` < '2025-04-17 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:27:17] Production.INFO: count ==1038 [2025-04-17 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:27:05 - End Time 2025-04-17 04:27:05 [2025-04-17 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925804', 'tblTempUsageDetail_20' ) start [2025-04-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925804', 'tblTempUsageDetail_20' ) end [2025-04-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925804', 'tblTempVendorCDR_20' ) start [2025-04-17 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925804', 'tblTempVendorCDR_20' ) end [2025-04-17 04:27:18] Production.INFO: ProcessCDR(1,14925804,1,1,2) [2025-04-17 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925804', 'tblTempUsageDetail_20' ) start [2025-04-17 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925804', 'tblTempUsageDetail_20' ) end [2025-04-17 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:27:21] Production.INFO: ==4989== Releasing lock... [2025-04-17 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:27:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:28:06 [end_date_ymd] => 2025-04-17 04:28:06 [RateCDR] => 1 ) [2025-04-17 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:28:06' and `end` < '2025-04-17 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:28:18] Production.INFO: count ==1038 [2025-04-17 04:28:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:28:06 - End Time 2025-04-17 04:28:06 [2025-04-17 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925809', 'tblTempUsageDetail_20' ) start [2025-04-17 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925809', 'tblTempUsageDetail_20' ) end [2025-04-17 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925809', 'tblTempVendorCDR_20' ) start [2025-04-17 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925809', 'tblTempVendorCDR_20' ) end [2025-04-17 04:28:19] Production.INFO: ProcessCDR(1,14925809,1,1,2) [2025-04-17 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925809', 'tblTempUsageDetail_20' ) start [2025-04-17 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925809', 'tblTempUsageDetail_20' ) end [2025-04-17 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:28:22] Production.INFO: ==5101== Releasing lock... [2025-04-17 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:28:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:29:05 [end_date_ymd] => 2025-04-17 04:29:05 [RateCDR] => 1 ) [2025-04-17 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:29:05' and `end` < '2025-04-17 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:29:17] Production.INFO: count ==1038 [2025-04-17 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:29:05 - End Time 2025-04-17 04:29:05 [2025-04-17 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925814', 'tblTempUsageDetail_20' ) start [2025-04-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925814', 'tblTempUsageDetail_20' ) end [2025-04-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925814', 'tblTempVendorCDR_20' ) start [2025-04-17 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925814', 'tblTempVendorCDR_20' ) end [2025-04-17 04:29:18] Production.INFO: ProcessCDR(1,14925814,1,1,2) [2025-04-17 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925814', 'tblTempUsageDetail_20' ) start [2025-04-17 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925814', 'tblTempUsageDetail_20' ) end [2025-04-17 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:29:21] Production.INFO: ==5214== Releasing lock... [2025-04-17 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:30:07 [end_date_ymd] => 2025-04-17 04:30:07 [RateCDR] => 1 ) [2025-04-17 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:30:07' and `end` < '2025-04-17 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:30:19] Production.INFO: count ==1028 [2025-04-17 04:30:20] Production.ERROR: pbx CDR StartTime 2025-04-17 01:30:07 - End Time 2025-04-17 04:30:07 [2025-04-17 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925821', 'tblTempUsageDetail_20' ) start [2025-04-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925821', 'tblTempUsageDetail_20' ) end [2025-04-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925821', 'tblTempVendorCDR_20' ) start [2025-04-17 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925821', 'tblTempVendorCDR_20' ) end [2025-04-17 04:30:20] Production.INFO: ProcessCDR(1,14925821,1,1,2) [2025-04-17 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925821', 'tblTempUsageDetail_20' ) start [2025-04-17 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925821', 'tblTempUsageDetail_20' ) end [2025-04-17 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:30:24] Production.INFO: ==5327== Releasing lock... [2025-04-17 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:30:24] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:31:05 [end_date_ymd] => 2025-04-17 04:31:05 [RateCDR] => 1 ) [2025-04-17 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:31:05' and `end` < '2025-04-17 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:31:17] Production.INFO: count ==1017 [2025-04-17 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:31:05 - End Time 2025-04-17 04:31:05 [2025-04-17 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925826', 'tblTempUsageDetail_20' ) start [2025-04-17 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925826', 'tblTempUsageDetail_20' ) end [2025-04-17 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925826', 'tblTempVendorCDR_20' ) start [2025-04-17 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925826', 'tblTempVendorCDR_20' ) end [2025-04-17 04:31:18] Production.INFO: ProcessCDR(1,14925826,1,1,2) [2025-04-17 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925826', 'tblTempUsageDetail_20' ) start [2025-04-17 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925826', 'tblTempUsageDetail_20' ) end [2025-04-17 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:31:21] Production.INFO: ==5483== Releasing lock... [2025-04-17 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:31:21] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:32:05 [end_date_ymd] => 2025-04-17 04:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:32:05' and `end` < '2025-04-17 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-17 04:32:18] Production.INFO: count ==1014 [2025-04-17 04:32:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:32:05 - End Time 2025-04-17 04:32:05 [2025-04-17 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925831', 'tblTempUsageDetail_20' ) start [2025-04-17 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925831', 'tblTempUsageDetail_20' ) end [2025-04-17 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925831', 'tblTempVendorCDR_20' ) start [2025-04-17 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925831', 'tblTempVendorCDR_20' ) end [2025-04-17 04:32:19] Production.INFO: ProcessCDR(1,14925831,1,1,2) [2025-04-17 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925831', 'tblTempUsageDetail_20' ) start [2025-04-17 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925831', 'tblTempUsageDetail_20' ) end [2025-04-17 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:32:22] Production.INFO: ==5593== Releasing lock... [2025-04-17 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:33:05 [end_date_ymd] => 2025-04-17 04:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:33:05' and `end` < '2025-04-17 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-17 04:33:18] Production.INFO: count ==1013 [2025-04-17 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:33:05 - End Time 2025-04-17 04:33:05 [2025-04-17 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925836', 'tblTempUsageDetail_20' ) start [2025-04-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925836', 'tblTempUsageDetail_20' ) end [2025-04-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925836', 'tblTempVendorCDR_20' ) start [2025-04-17 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925836', 'tblTempVendorCDR_20' ) end [2025-04-17 04:33:18] Production.INFO: ProcessCDR(1,14925836,1,1,2) [2025-04-17 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925836', 'tblTempUsageDetail_20' ) start [2025-04-17 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925836', 'tblTempUsageDetail_20' ) end [2025-04-17 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:33:22] Production.INFO: ==5709== Releasing lock... [2025-04-17 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:33:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:34:05 [end_date_ymd] => 2025-04-17 04:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:34:05' and `end` < '2025-04-17 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-17 04:34:18] Production.INFO: count ==1012 [2025-04-17 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:34:05 - End Time 2025-04-17 04:34:05 [2025-04-17 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925841', 'tblTempUsageDetail_20' ) start [2025-04-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925841', 'tblTempUsageDetail_20' ) end [2025-04-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925841', 'tblTempVendorCDR_20' ) start [2025-04-17 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925841', 'tblTempVendorCDR_20' ) end [2025-04-17 04:34:18] Production.INFO: ProcessCDR(1,14925841,1,1,2) [2025-04-17 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925841', 'tblTempUsageDetail_20' ) start [2025-04-17 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925841', 'tblTempUsageDetail_20' ) end [2025-04-17 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:34:22] Production.INFO: ==5818== Releasing lock... [2025-04-17 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:34:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:35:05 [end_date_ymd] => 2025-04-17 04:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:35:05' and `end` < '2025-04-17 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-17 04:35:18] Production.INFO: count ==1012 [2025-04-17 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:35:05 - End Time 2025-04-17 04:35:05 [2025-04-17 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925846', 'tblTempUsageDetail_20' ) start [2025-04-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925846', 'tblTempUsageDetail_20' ) end [2025-04-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925846', 'tblTempVendorCDR_20' ) start [2025-04-17 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925846', 'tblTempVendorCDR_20' ) end [2025-04-17 04:35:18] Production.INFO: ProcessCDR(1,14925846,1,1,2) [2025-04-17 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925846', 'tblTempUsageDetail_20' ) start [2025-04-17 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925846', 'tblTempUsageDetail_20' ) end [2025-04-17 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:35:22] Production.INFO: ==5927== Releasing lock... [2025-04-17 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:36:05 [end_date_ymd] => 2025-04-17 04:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:36:05' and `end` < '2025-04-17 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-17 04:36:17] Production.INFO: count ==1011 [2025-04-17 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:36:05 - End Time 2025-04-17 04:36:05 [2025-04-17 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925851', 'tblTempUsageDetail_20' ) start [2025-04-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925851', 'tblTempUsageDetail_20' ) end [2025-04-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925851', 'tblTempVendorCDR_20' ) start [2025-04-17 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925851', 'tblTempVendorCDR_20' ) end [2025-04-17 04:36:18] Production.INFO: ProcessCDR(1,14925851,1,1,2) [2025-04-17 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925851', 'tblTempUsageDetail_20' ) start [2025-04-17 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925851', 'tblTempUsageDetail_20' ) end [2025-04-17 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:36:21] Production.INFO: ==6071== Releasing lock... [2025-04-17 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:36:21] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:37:05 [end_date_ymd] => 2025-04-17 04:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:37:05' and `end` < '2025-04-17 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-17 04:37:18] Production.INFO: count ==1009 [2025-04-17 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:37:05 - End Time 2025-04-17 04:37:05 [2025-04-17 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925856', 'tblTempUsageDetail_20' ) start [2025-04-17 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925856', 'tblTempUsageDetail_20' ) end [2025-04-17 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925856', 'tblTempVendorCDR_20' ) start [2025-04-17 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925856', 'tblTempVendorCDR_20' ) end [2025-04-17 04:37:19] Production.INFO: ProcessCDR(1,14925856,1,1,2) [2025-04-17 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925856', 'tblTempUsageDetail_20' ) start [2025-04-17 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925856', 'tblTempUsageDetail_20' ) end [2025-04-17 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:37:22] Production.INFO: ==6180== Releasing lock... [2025-04-17 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:38:04 [end_date_ymd] => 2025-04-17 04:38:04 [RateCDR] => 1 ) [2025-04-17 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-17 01:38:04' and `end` < '2025-04-17 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-17 04:38:17] Production.INFO: count ==1009 [2025-04-17 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:38:04 - End Time 2025-04-17 04:38:04 [2025-04-17 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925861', 'tblTempUsageDetail_20' ) start [2025-04-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925861', 'tblTempUsageDetail_20' ) end [2025-04-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925861', 'tblTempVendorCDR_20' ) start [2025-04-17 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925861', 'tblTempVendorCDR_20' ) end [2025-04-17 04:38:18] Production.INFO: ProcessCDR(1,14925861,1,1,2) [2025-04-17 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925861', 'tblTempUsageDetail_20' ) start [2025-04-17 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925861', 'tblTempUsageDetail_20' ) end [2025-04-17 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:38:21] Production.INFO: ==6289== Releasing lock... [2025-04-17 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:38:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:39:06 [end_date_ymd] => 2025-04-17 04:39:06 [RateCDR] => 1 ) [2025-04-17 04:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:39:06' and `end` < '2025-04-17 04:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:39:18] Production.INFO: count ==1009 [2025-04-17 04:39:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:39:06 - End Time 2025-04-17 04:39:06 [2025-04-17 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925866', 'tblTempUsageDetail_20' ) start [2025-04-17 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925866', 'tblTempUsageDetail_20' ) end [2025-04-17 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925866', 'tblTempVendorCDR_20' ) start [2025-04-17 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925866', 'tblTempVendorCDR_20' ) end [2025-04-17 04:39:19] Production.INFO: ProcessCDR(1,14925866,1,1,2) [2025-04-17 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925866', 'tblTempUsageDetail_20' ) start [2025-04-17 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925866', 'tblTempUsageDetail_20' ) end [2025-04-17 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:39:22] Production.INFO: ==6403== Releasing lock... [2025-04-17 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:40:05 [end_date_ymd] => 2025-04-17 04:40:05 [RateCDR] => 1 ) [2025-04-17 04: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-17 01:40:05' and `end` < '2025-04-17 04: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-17 04:40:17] Production.INFO: count ==1002 [2025-04-17 04:40:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:40:05 - End Time 2025-04-17 04:40:05 [2025-04-17 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925871', 'tblTempUsageDetail_20' ) start [2025-04-17 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925871', 'tblTempUsageDetail_20' ) end [2025-04-17 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925871', 'tblTempVendorCDR_20' ) start [2025-04-17 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925871', 'tblTempVendorCDR_20' ) end [2025-04-17 04:40:18] Production.INFO: ProcessCDR(1,14925871,1,1,2) [2025-04-17 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925871', 'tblTempUsageDetail_20' ) start [2025-04-17 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925871', 'tblTempUsageDetail_20' ) end [2025-04-17 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:40:21] Production.INFO: ==6514== Releasing lock... [2025-04-17 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:40:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:41:05 [end_date_ymd] => 2025-04-17 04:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:41:05' and `end` < '2025-04-17 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-17 04:41:17] Production.INFO: count ==993 [2025-04-17 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:41:05 - End Time 2025-04-17 04:41:05 [2025-04-17 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925877', 'tblTempUsageDetail_20' ) start [2025-04-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925877', 'tblTempUsageDetail_20' ) end [2025-04-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925877', 'tblTempVendorCDR_20' ) start [2025-04-17 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925877', 'tblTempVendorCDR_20' ) end [2025-04-17 04:41:18] Production.INFO: ProcessCDR(1,14925877,1,1,2) [2025-04-17 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925877', 'tblTempUsageDetail_20' ) start [2025-04-17 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925877', 'tblTempUsageDetail_20' ) end [2025-04-17 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:41:21] Production.INFO: ==6631== Releasing lock... [2025-04-17 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:41:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:42:06 [end_date_ymd] => 2025-04-17 04:42:06 [RateCDR] => 1 ) [2025-04-17 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-17 01:42:06' and `end` < '2025-04-17 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-17 04:42:19] Production.INFO: count ==991 [2025-04-17 04:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:42:06 - End Time 2025-04-17 04:42:06 [2025-04-17 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925882', 'tblTempUsageDetail_20' ) start [2025-04-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925882', 'tblTempUsageDetail_20' ) end [2025-04-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925882', 'tblTempVendorCDR_20' ) start [2025-04-17 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925882', 'tblTempVendorCDR_20' ) end [2025-04-17 04:42:19] Production.INFO: ProcessCDR(1,14925882,1,1,2) [2025-04-17 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925882', 'tblTempUsageDetail_20' ) start [2025-04-17 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925882', 'tblTempUsageDetail_20' ) end [2025-04-17 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:42:22] Production.INFO: ==6742== Releasing lock... [2025-04-17 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:42:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:43:05 [end_date_ymd] => 2025-04-17 04:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:43:05' and `end` < '2025-04-17 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-17 04:43:17] Production.INFO: count ==991 [2025-04-17 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:43:05 - End Time 2025-04-17 04:43:05 [2025-04-17 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925887', 'tblTempUsageDetail_20' ) start [2025-04-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925887', 'tblTempUsageDetail_20' ) end [2025-04-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925887', 'tblTempVendorCDR_20' ) start [2025-04-17 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925887', 'tblTempVendorCDR_20' ) end [2025-04-17 04:43:18] Production.INFO: ProcessCDR(1,14925887,1,1,2) [2025-04-17 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925887', 'tblTempUsageDetail_20' ) start [2025-04-17 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925887', 'tblTempUsageDetail_20' ) end [2025-04-17 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:43:21] Production.INFO: ==6850== Releasing lock... [2025-04-17 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:44:05 [end_date_ymd] => 2025-04-17 04:44:05 [RateCDR] => 1 ) [2025-04-17 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:44:05' and `end` < '2025-04-17 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:44:18] Production.INFO: count ==991 [2025-04-17 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:44:05 - End Time 2025-04-17 04:44:05 [2025-04-17 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925892', 'tblTempUsageDetail_20' ) start [2025-04-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925892', 'tblTempUsageDetail_20' ) end [2025-04-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925892', 'tblTempVendorCDR_20' ) start [2025-04-17 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925892', 'tblTempVendorCDR_20' ) end [2025-04-17 04:44:18] Production.INFO: ProcessCDR(1,14925892,1,1,2) [2025-04-17 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925892', 'tblTempUsageDetail_20' ) start [2025-04-17 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925892', 'tblTempUsageDetail_20' ) end [2025-04-17 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:44:22] Production.INFO: ==6962== Releasing lock... [2025-04-17 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:44:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:45:05 [end_date_ymd] => 2025-04-17 04:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:45:05' and `end` < '2025-04-17 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-17 04:45:17] Production.INFO: count ==989 [2025-04-17 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:45:05 - End Time 2025-04-17 04:45:05 [2025-04-17 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925897', 'tblTempUsageDetail_20' ) start [2025-04-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925897', 'tblTempUsageDetail_20' ) end [2025-04-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925897', 'tblTempVendorCDR_20' ) start [2025-04-17 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925897', 'tblTempVendorCDR_20' ) end [2025-04-17 04:45:18] Production.INFO: ProcessCDR(1,14925897,1,1,2) [2025-04-17 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925897', 'tblTempUsageDetail_20' ) start [2025-04-17 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925897', 'tblTempUsageDetail_20' ) end [2025-04-17 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:45:22] Production.INFO: ==7068== Releasing lock... [2025-04-17 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:45:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:46:05 [end_date_ymd] => 2025-04-17 04:46:05 [RateCDR] => 1 ) [2025-04-17 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:46:05' and `end` < '2025-04-17 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:46:18] Production.INFO: count ==988 [2025-04-17 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:46:05 - End Time 2025-04-17 04:46:05 [2025-04-17 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925902', 'tblTempUsageDetail_20' ) start [2025-04-17 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925902', 'tblTempUsageDetail_20' ) end [2025-04-17 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925902', 'tblTempVendorCDR_20' ) start [2025-04-17 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925902', 'tblTempVendorCDR_20' ) end [2025-04-17 04:46:18] Production.INFO: ProcessCDR(1,14925902,1,1,2) [2025-04-17 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925902', 'tblTempUsageDetail_20' ) start [2025-04-17 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925902', 'tblTempUsageDetail_20' ) end [2025-04-17 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:46:21] Production.INFO: ==7176== Releasing lock... [2025-04-17 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:47:05 [end_date_ymd] => 2025-04-17 04:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:47:05' and `end` < '2025-04-17 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-17 04:47:18] Production.INFO: count ==987 [2025-04-17 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:47:05 - End Time 2025-04-17 04:47:05 [2025-04-17 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925907', 'tblTempUsageDetail_20' ) start [2025-04-17 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925907', 'tblTempUsageDetail_20' ) end [2025-04-17 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925907', 'tblTempVendorCDR_20' ) start [2025-04-17 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925907', 'tblTempVendorCDR_20' ) end [2025-04-17 04:47:19] Production.INFO: ProcessCDR(1,14925907,1,1,2) [2025-04-17 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925907', 'tblTempUsageDetail_20' ) start [2025-04-17 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925907', 'tblTempUsageDetail_20' ) end [2025-04-17 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:47:22] Production.INFO: ==7282== Releasing lock... [2025-04-17 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:47:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:48:05 [end_date_ymd] => 2025-04-17 04:48:05 [RateCDR] => 1 ) [2025-04-17 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:48:05' and `end` < '2025-04-17 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:48:19] Production.INFO: count ==985 [2025-04-17 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:48:05 - End Time 2025-04-17 04:48:05 [2025-04-17 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925912', 'tblTempUsageDetail_20' ) start [2025-04-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925912', 'tblTempUsageDetail_20' ) end [2025-04-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925912', 'tblTempVendorCDR_20' ) start [2025-04-17 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925912', 'tblTempVendorCDR_20' ) end [2025-04-17 04:48:19] Production.INFO: ProcessCDR(1,14925912,1,1,2) [2025-04-17 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925912', 'tblTempUsageDetail_20' ) start [2025-04-17 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925912', 'tblTempUsageDetail_20' ) end [2025-04-17 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:48:23] Production.INFO: ==7394== Releasing lock... [2025-04-17 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:48:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:49:06 [end_date_ymd] => 2025-04-17 04:49:06 [RateCDR] => 1 ) [2025-04-17 04:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:49:06' and `end` < '2025-04-17 04: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-17 04:49:19] Production.INFO: count ==984 [2025-04-17 04:49:20] Production.ERROR: pbx CDR StartTime 2025-04-17 01:49:06 - End Time 2025-04-17 04:49:06 [2025-04-17 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925917', 'tblTempUsageDetail_20' ) start [2025-04-17 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925917', 'tblTempUsageDetail_20' ) end [2025-04-17 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925917', 'tblTempVendorCDR_20' ) start [2025-04-17 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925917', 'tblTempVendorCDR_20' ) end [2025-04-17 04:49:20] Production.INFO: ProcessCDR(1,14925917,1,1,2) [2025-04-17 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925917', 'tblTempUsageDetail_20' ) start [2025-04-17 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925917', 'tblTempUsageDetail_20' ) end [2025-04-17 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:49:23] Production.INFO: ==7505== Releasing lock... [2025-04-17 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:49:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:50:06 [end_date_ymd] => 2025-04-17 04:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 01:50:06' and `end` < '2025-04-17 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-17 04:50:20] Production.INFO: count ==982 [2025-04-17 04:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 01:50:06 - End Time 2025-04-17 04:50:06 [2025-04-17 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925923', 'tblTempUsageDetail_20' ) start [2025-04-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925923', 'tblTempUsageDetail_20' ) end [2025-04-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925923', 'tblTempVendorCDR_20' ) start [2025-04-17 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925923', 'tblTempVendorCDR_20' ) end [2025-04-17 04:50:20] Production.INFO: ProcessCDR(1,14925923,1,1,2) [2025-04-17 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925923', 'tblTempUsageDetail_20' ) start [2025-04-17 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925923', 'tblTempUsageDetail_20' ) end [2025-04-17 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:50:24] Production.INFO: ==7622== Releasing lock... [2025-04-17 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:50:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:51:06 [end_date_ymd] => 2025-04-17 04:51:06 [RateCDR] => 1 ) [2025-04-17 04:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:51:06' and `end` < '2025-04-17 04:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:51:20] Production.INFO: count ==982 [2025-04-17 04:51:20] Production.ERROR: pbx CDR StartTime 2025-04-17 01:51:06 - End Time 2025-04-17 04:51:06 [2025-04-17 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925928', 'tblTempUsageDetail_20' ) start [2025-04-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925928', 'tblTempUsageDetail_20' ) end [2025-04-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925928', 'tblTempVendorCDR_20' ) start [2025-04-17 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925928', 'tblTempVendorCDR_20' ) end [2025-04-17 04:51:20] Production.INFO: ProcessCDR(1,14925928,1,1,2) [2025-04-17 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925928', 'tblTempUsageDetail_20' ) start [2025-04-17 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925928', 'tblTempUsageDetail_20' ) end [2025-04-17 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:51:24] Production.INFO: ==7772== Releasing lock... [2025-04-17 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:51:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:52:05 [end_date_ymd] => 2025-04-17 04:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:52:05' and `end` < '2025-04-17 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-17 04:52:19] Production.INFO: count ==981 [2025-04-17 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:52:05 - End Time 2025-04-17 04:52:05 [2025-04-17 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925933', 'tblTempUsageDetail_20' ) start [2025-04-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925933', 'tblTempUsageDetail_20' ) end [2025-04-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925933', 'tblTempVendorCDR_20' ) start [2025-04-17 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925933', 'tblTempVendorCDR_20' ) end [2025-04-17 04:52:19] Production.INFO: ProcessCDR(1,14925933,1,1,2) [2025-04-17 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925933', 'tblTempUsageDetail_20' ) start [2025-04-17 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925933', 'tblTempUsageDetail_20' ) end [2025-04-17 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:52:23] Production.INFO: ==7881== Releasing lock... [2025-04-17 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:52:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:53:05 [end_date_ymd] => 2025-04-17 04:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:53:05' and `end` < '2025-04-17 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-17 04:53:18] Production.INFO: count ==980 [2025-04-17 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:53:05 - End Time 2025-04-17 04:53:05 [2025-04-17 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925938', 'tblTempUsageDetail_20' ) start [2025-04-17 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925938', 'tblTempUsageDetail_20' ) end [2025-04-17 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925938', 'tblTempVendorCDR_20' ) start [2025-04-17 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925938', 'tblTempVendorCDR_20' ) end [2025-04-17 04:53:19] Production.INFO: ProcessCDR(1,14925938,1,1,2) [2025-04-17 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925938', 'tblTempUsageDetail_20' ) start [2025-04-17 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925938', 'tblTempUsageDetail_20' ) end [2025-04-17 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:53:22] Production.INFO: ==7993== Releasing lock... [2025-04-17 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:53:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:54:05 [end_date_ymd] => 2025-04-17 04:54:05 [RateCDR] => 1 ) [2025-04-17 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:54:05' and `end` < '2025-04-17 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:54:18] Production.INFO: count ==979 [2025-04-17 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 01:54:05 - End Time 2025-04-17 04:54:05 [2025-04-17 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925943', 'tblTempUsageDetail_20' ) start [2025-04-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925943', 'tblTempUsageDetail_20' ) end [2025-04-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925943', 'tblTempVendorCDR_20' ) start [2025-04-17 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925943', 'tblTempVendorCDR_20' ) end [2025-04-17 04:54:18] Production.INFO: ProcessCDR(1,14925943,1,1,2) [2025-04-17 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925943', 'tblTempUsageDetail_20' ) start [2025-04-17 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925943', 'tblTempUsageDetail_20' ) end [2025-04-17 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:54:22] Production.INFO: ==8100== Releasing lock... [2025-04-17 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:54:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:55:05 [end_date_ymd] => 2025-04-17 04:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:55:05' and `end` < '2025-04-17 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-17 04:55:19] Production.INFO: count ==978 [2025-04-17 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:55:05 - End Time 2025-04-17 04:55:05 [2025-04-17 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925948', 'tblTempUsageDetail_20' ) start [2025-04-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925948', 'tblTempUsageDetail_20' ) end [2025-04-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925948', 'tblTempVendorCDR_20' ) start [2025-04-17 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925948', 'tblTempVendorCDR_20' ) end [2025-04-17 04:55:19] Production.INFO: ProcessCDR(1,14925948,1,1,2) [2025-04-17 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925948', 'tblTempUsageDetail_20' ) start [2025-04-17 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925948', 'tblTempUsageDetail_20' ) end [2025-04-17 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:55:22] Production.INFO: ==8209== Releasing lock... [2025-04-17 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:55:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:56:05 [end_date_ymd] => 2025-04-17 04:56:05 [RateCDR] => 1 ) [2025-04-17 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:56:05' and `end` < '2025-04-17 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:56:19] Production.INFO: count ==978 [2025-04-17 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:56:05 - End Time 2025-04-17 04:56:05 [2025-04-17 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925953', 'tblTempUsageDetail_20' ) start [2025-04-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925953', 'tblTempUsageDetail_20' ) end [2025-04-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925953', 'tblTempVendorCDR_20' ) start [2025-04-17 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925953', 'tblTempVendorCDR_20' ) end [2025-04-17 04:56:19] Production.INFO: ProcessCDR(1,14925953,1,1,2) [2025-04-17 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925953', 'tblTempUsageDetail_20' ) start [2025-04-17 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925953', 'tblTempUsageDetail_20' ) end [2025-04-17 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:56:22] Production.INFO: ==8323== Releasing lock... [2025-04-17 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:56:22] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:57:05 [end_date_ymd] => 2025-04-17 04:57:05 [RateCDR] => 1 ) [2025-04-17 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:57:05' and `end` < '2025-04-17 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-17 04:57:19] Production.INFO: count ==978 [2025-04-17 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:57:05 - End Time 2025-04-17 04:57:05 [2025-04-17 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925958', 'tblTempUsageDetail_20' ) start [2025-04-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925958', 'tblTempUsageDetail_20' ) end [2025-04-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925958', 'tblTempVendorCDR_20' ) start [2025-04-17 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925958', 'tblTempVendorCDR_20' ) end [2025-04-17 04:57:19] Production.INFO: ProcessCDR(1,14925958,1,1,2) [2025-04-17 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925958', 'tblTempUsageDetail_20' ) start [2025-04-17 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925958', 'tblTempUsageDetail_20' ) end [2025-04-17 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:57:23] Production.INFO: ==8435== Releasing lock... [2025-04-17 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:57:23] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:58:05 [end_date_ymd] => 2025-04-17 04:58:05 [RateCDR] => 1 ) [2025-04-17 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 01:58:05' and `end` < '2025-04-17 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 04:58:19] Production.INFO: count ==978 [2025-04-17 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:58:05 - End Time 2025-04-17 04:58:05 [2025-04-17 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925963', 'tblTempUsageDetail_20' ) start [2025-04-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925963', 'tblTempUsageDetail_20' ) end [2025-04-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925963', 'tblTempVendorCDR_20' ) start [2025-04-17 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925963', 'tblTempVendorCDR_20' ) end [2025-04-17 04:58:19] Production.INFO: ProcessCDR(1,14925963,1,1,2) [2025-04-17 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925963', 'tblTempUsageDetail_20' ) start [2025-04-17 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925963', 'tblTempUsageDetail_20' ) end [2025-04-17 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:58:23] Production.INFO: ==8548== Releasing lock... [2025-04-17 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:58:23] Production.INFO: 37 MB #Memory Used# [2025-04-17 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 01:59:05 [end_date_ymd] => 2025-04-17 04:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 01:59:05' and `end` < '2025-04-17 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-17 04:59:18] Production.INFO: count ==977 [2025-04-17 04:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 01:59:05 - End Time 2025-04-17 04:59:05 [2025-04-17 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925968', 'tblTempUsageDetail_20' ) start [2025-04-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925968', 'tblTempUsageDetail_20' ) end [2025-04-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925968', 'tblTempVendorCDR_20' ) start [2025-04-17 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925968', 'tblTempVendorCDR_20' ) end [2025-04-17 04:59:19] Production.INFO: ProcessCDR(1,14925968,1,1,2) [2025-04-17 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925968', 'tblTempUsageDetail_20' ) start [2025-04-17 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925968', 'tblTempUsageDetail_20' ) end [2025-04-17 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 04:59:22] Production.INFO: ==8661== Releasing lock... [2025-04-17 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 04:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:00:06 [end_date_ymd] => 2025-04-17 05:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 02:00:06' and `end` < '2025-04-17 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-17 05:00:19] Production.INFO: count ==968 [2025-04-17 05:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:00:06 - End Time 2025-04-17 05:00:06 [2025-04-17 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925973', 'tblTempUsageDetail_20' ) start [2025-04-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925973', 'tblTempUsageDetail_20' ) end [2025-04-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925973', 'tblTempVendorCDR_20' ) start [2025-04-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925973', 'tblTempVendorCDR_20' ) end [2025-04-17 05:00:19] Production.INFO: ProcessCDR(1,14925973,1,1,2) [2025-04-17 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925973', 'tblTempUsageDetail_20' ) start [2025-04-17 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925973', 'tblTempUsageDetail_20' ) end [2025-04-17 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:00:23] Production.INFO: ==8775== Releasing lock... [2025-04-17 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:01:05 [end_date_ymd] => 2025-04-17 05:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:01:05' and `end` < '2025-04-17 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-17 05:01:18] Production.INFO: count ==965 [2025-04-17 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:01:05 - End Time 2025-04-17 05:01:05 [2025-04-17 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925979', 'tblTempUsageDetail_20' ) start [2025-04-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925979', 'tblTempUsageDetail_20' ) end [2025-04-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925979', 'tblTempVendorCDR_20' ) start [2025-04-17 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925979', 'tblTempVendorCDR_20' ) end [2025-04-17 05:01:18] Production.INFO: ProcessCDR(1,14925979,1,1,2) [2025-04-17 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925979', 'tblTempUsageDetail_20' ) start [2025-04-17 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925979', 'tblTempUsageDetail_20' ) end [2025-04-17 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:01:22] Production.INFO: ==8897== Releasing lock... [2025-04-17 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:01:22] Production.INFO: 36 MB #Memory Used# [2025-04-17 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:02:05 [end_date_ymd] => 2025-04-17 05:02:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:02:05' and `end` < '2025-04-17 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-17 05:02:18] Production.INFO: count ==965 [2025-04-17 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:02:05 - End Time 2025-04-17 05:02:05 [2025-04-17 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925984', 'tblTempUsageDetail_20' ) start [2025-04-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925984', 'tblTempUsageDetail_20' ) end [2025-04-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925984', 'tblTempVendorCDR_20' ) start [2025-04-17 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925984', 'tblTempVendorCDR_20' ) end [2025-04-17 05:02:18] Production.INFO: ProcessCDR(1,14925984,1,1,2) [2025-04-17 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925984', 'tblTempUsageDetail_20' ) start [2025-04-17 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925984', 'tblTempUsageDetail_20' ) end [2025-04-17 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:02:22] Production.INFO: ==9007== Releasing lock... [2025-04-17 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:02:22] Production.INFO: 36 MB #Memory Used# [2025-04-17 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:03:05 [end_date_ymd] => 2025-04-17 05:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:03:05' and `end` < '2025-04-17 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-17 05:03:18] Production.INFO: count ==967 [2025-04-17 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:03:05 - End Time 2025-04-17 05:03:05 [2025-04-17 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925989', 'tblTempUsageDetail_20' ) start [2025-04-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925989', 'tblTempUsageDetail_20' ) end [2025-04-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925989', 'tblTempVendorCDR_20' ) start [2025-04-17 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925989', 'tblTempVendorCDR_20' ) end [2025-04-17 05:03:18] Production.INFO: ProcessCDR(1,14925989,1,1,2) [2025-04-17 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925989', 'tblTempUsageDetail_20' ) start [2025-04-17 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925989', 'tblTempUsageDetail_20' ) end [2025-04-17 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:03:21] Production.INFO: ==9117== Releasing lock... [2025-04-17 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:03:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:04:05 [end_date_ymd] => 2025-04-17 05:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:04:05' and `end` < '2025-04-17 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-17 05:04:18] Production.INFO: count ==967 [2025-04-17 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:04:05 - End Time 2025-04-17 05:04:05 [2025-04-17 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925994', 'tblTempUsageDetail_20' ) start [2025-04-17 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925994', 'tblTempUsageDetail_20' ) end [2025-04-17 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925994', 'tblTempVendorCDR_20' ) start [2025-04-17 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925994', 'tblTempVendorCDR_20' ) end [2025-04-17 05:04:19] Production.INFO: ProcessCDR(1,14925994,1,1,2) [2025-04-17 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925994', 'tblTempUsageDetail_20' ) start [2025-04-17 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925994', 'tblTempUsageDetail_20' ) end [2025-04-17 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:04:22] Production.INFO: ==9225== Releasing lock... [2025-04-17 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:04:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:05:06 [end_date_ymd] => 2025-04-17 05:05:06 [RateCDR] => 1 ) [2025-04-17 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:05:06' and `end` < '2025-04-17 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:05:19] Production.INFO: count ==966 [2025-04-17 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:05:06 - End Time 2025-04-17 05:05:06 [2025-04-17 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925999', 'tblTempUsageDetail_20' ) start [2025-04-17 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14925999', 'tblTempUsageDetail_20' ) end [2025-04-17 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925999', 'tblTempVendorCDR_20' ) start [2025-04-17 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14925999', 'tblTempVendorCDR_20' ) end [2025-04-17 05:05:19] Production.INFO: ProcessCDR(1,14925999,1,1,2) [2025-04-17 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14925999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14925999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14925999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14925999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925999', 'tblTempUsageDetail_20' ) start [2025-04-17 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14925999', 'tblTempUsageDetail_20' ) end [2025-04-17 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:05:22] Production.INFO: ==9341== Releasing lock... [2025-04-17 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:05:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:06:05 [end_date_ymd] => 2025-04-17 05:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:06:05' and `end` < '2025-04-17 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-17 05:06:18] Production.INFO: count ==968 [2025-04-17 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:06:05 - End Time 2025-04-17 05:06:05 [2025-04-17 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926004', 'tblTempUsageDetail_20' ) start [2025-04-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926004', 'tblTempUsageDetail_20' ) end [2025-04-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926004', 'tblTempVendorCDR_20' ) start [2025-04-17 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926004', 'tblTempVendorCDR_20' ) end [2025-04-17 05:06:18] Production.INFO: ProcessCDR(1,14926004,1,1,2) [2025-04-17 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926004', 'tblTempUsageDetail_20' ) start [2025-04-17 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926004', 'tblTempUsageDetail_20' ) end [2025-04-17 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:06:22] Production.INFO: ==9453== Releasing lock... [2025-04-17 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:06:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:07:06 [end_date_ymd] => 2025-04-17 05:07:06 [RateCDR] => 1 ) [2025-04-17 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-17 02:07:06' and `end` < '2025-04-17 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-17 05:07:18] Production.INFO: count ==968 [2025-04-17 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:07:06 - End Time 2025-04-17 05:07:06 [2025-04-17 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926009', 'tblTempUsageDetail_20' ) start [2025-04-17 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926009', 'tblTempUsageDetail_20' ) end [2025-04-17 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926009', 'tblTempVendorCDR_20' ) start [2025-04-17 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926009', 'tblTempVendorCDR_20' ) end [2025-04-17 05:07:19] Production.INFO: ProcessCDR(1,14926009,1,1,2) [2025-04-17 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926009', 'tblTempUsageDetail_20' ) start [2025-04-17 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926009', 'tblTempUsageDetail_20' ) end [2025-04-17 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:07:22] Production.INFO: ==9599== Releasing lock... [2025-04-17 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:07:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:08:05 [end_date_ymd] => 2025-04-17 05:08:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:08:05' and `end` < '2025-04-17 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-17 05:08:18] Production.INFO: count ==967 [2025-04-17 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:08:05 - End Time 2025-04-17 05:08:05 [2025-04-17 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926014', 'tblTempUsageDetail_20' ) start [2025-04-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926014', 'tblTempUsageDetail_20' ) end [2025-04-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926014', 'tblTempVendorCDR_20' ) start [2025-04-17 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926014', 'tblTempVendorCDR_20' ) end [2025-04-17 05:08:18] Production.INFO: ProcessCDR(1,14926014,1,1,2) [2025-04-17 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926014', 'tblTempUsageDetail_20' ) start [2025-04-17 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926014', 'tblTempUsageDetail_20' ) end [2025-04-17 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:08:22] Production.INFO: ==9709== Releasing lock... [2025-04-17 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:08:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:09:05 [end_date_ymd] => 2025-04-17 05:09:05 [RateCDR] => 1 ) [2025-04-17 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:09:05' and `end` < '2025-04-17 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:09:18] Production.INFO: count ==967 [2025-04-17 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:09:05 - End Time 2025-04-17 05:09:05 [2025-04-17 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926019', 'tblTempUsageDetail_20' ) start [2025-04-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926019', 'tblTempUsageDetail_20' ) end [2025-04-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926019', 'tblTempVendorCDR_20' ) start [2025-04-17 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926019', 'tblTempVendorCDR_20' ) end [2025-04-17 05:09:19] Production.INFO: ProcessCDR(1,14926019,1,1,2) [2025-04-17 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926019', 'tblTempUsageDetail_20' ) start [2025-04-17 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926019', 'tblTempUsageDetail_20' ) end [2025-04-17 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:09:22] Production.INFO: ==9819== Releasing lock... [2025-04-17 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:10:07 [end_date_ymd] => 2025-04-17 05:10:07 [RateCDR] => 1 ) [2025-04-17 05: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-17 02:10:07' and `end` < '2025-04-17 05: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-17 05:10:19] Production.INFO: count ==965 [2025-04-17 05:10:20] Production.ERROR: pbx CDR StartTime 2025-04-17 02:10:07 - End Time 2025-04-17 05:10:07 [2025-04-17 05:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926025', 'tblTempUsageDetail_20' ) start [2025-04-17 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926025', 'tblTempUsageDetail_20' ) end [2025-04-17 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926025', 'tblTempVendorCDR_20' ) start [2025-04-17 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926025', 'tblTempVendorCDR_20' ) end [2025-04-17 05:10:20] Production.INFO: ProcessCDR(1,14926025,1,1,2) [2025-04-17 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926025', 'tblTempUsageDetail_20' ) start [2025-04-17 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926025', 'tblTempUsageDetail_20' ) end [2025-04-17 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:10:23] Production.INFO: ==9934== Releasing lock... [2025-04-17 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:10:23] Production.INFO: 36 MB #Memory Used# [2025-04-17 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:11:05 [end_date_ymd] => 2025-04-17 05:11:05 [RateCDR] => 1 ) [2025-04-17 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:11:05' and `end` < '2025-04-17 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:11:18] Production.INFO: count ==965 [2025-04-17 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:11:05 - End Time 2025-04-17 05:11:05 [2025-04-17 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926030', 'tblTempUsageDetail_20' ) start [2025-04-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926030', 'tblTempUsageDetail_20' ) end [2025-04-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926030', 'tblTempVendorCDR_20' ) start [2025-04-17 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926030', 'tblTempVendorCDR_20' ) end [2025-04-17 05:11:18] Production.INFO: ProcessCDR(1,14926030,1,1,2) [2025-04-17 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926030', 'tblTempUsageDetail_20' ) start [2025-04-17 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926030', 'tblTempUsageDetail_20' ) end [2025-04-17 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:11:22] Production.INFO: ==10058== Releasing lock... [2025-04-17 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:11:22] Production.INFO: 36 MB #Memory Used# [2025-04-17 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:12:04 [end_date_ymd] => 2025-04-17 05:12:04 [RateCDR] => 1 ) [2025-04-17 05:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:12:04' and `end` < '2025-04-17 05:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:12:17] Production.INFO: count ==964 [2025-04-17 05:12:17] Production.ERROR: pbx CDR StartTime 2025-04-17 02:12:04 - End Time 2025-04-17 05:12:04 [2025-04-17 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926035', 'tblTempUsageDetail_20' ) start [2025-04-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926035', 'tblTempUsageDetail_20' ) end [2025-04-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926035', 'tblTempVendorCDR_20' ) start [2025-04-17 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926035', 'tblTempVendorCDR_20' ) end [2025-04-17 05:12:18] Production.INFO: ProcessCDR(1,14926035,1,1,2) [2025-04-17 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926035', 'tblTempUsageDetail_20' ) start [2025-04-17 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926035', 'tblTempUsageDetail_20' ) end [2025-04-17 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:12:21] Production.INFO: ==10168== Releasing lock... [2025-04-17 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:12:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-17 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:13:05 [end_date_ymd] => 2025-04-17 05:13:05 [RateCDR] => 1 ) [2025-04-17 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:13:05' and `end` < '2025-04-17 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:13:18] Production.INFO: count ==963 [2025-04-17 05:13:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:13:05 - End Time 2025-04-17 05:13:05 [2025-04-17 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926040', 'tblTempUsageDetail_20' ) start [2025-04-17 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926040', 'tblTempUsageDetail_20' ) end [2025-04-17 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926040', 'tblTempVendorCDR_20' ) start [2025-04-17 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926040', 'tblTempVendorCDR_20' ) end [2025-04-17 05:13:19] Production.INFO: ProcessCDR(1,14926040,1,1,2) [2025-04-17 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926040', 'tblTempUsageDetail_20' ) start [2025-04-17 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926040', 'tblTempUsageDetail_20' ) end [2025-04-17 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:13:22] Production.INFO: ==10281== Releasing lock... [2025-04-17 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:13:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:14:05 [end_date_ymd] => 2025-04-17 05:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:14:05' and `end` < '2025-04-17 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-17 05:14:18] Production.INFO: count ==963 [2025-04-17 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:14:05 - End Time 2025-04-17 05:14:05 [2025-04-17 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926045', 'tblTempUsageDetail_20' ) start [2025-04-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926045', 'tblTempUsageDetail_20' ) end [2025-04-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926045', 'tblTempVendorCDR_20' ) start [2025-04-17 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926045', 'tblTempVendorCDR_20' ) end [2025-04-17 05:14:18] Production.INFO: ProcessCDR(1,14926045,1,1,2) [2025-04-17 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926045', 'tblTempUsageDetail_20' ) start [2025-04-17 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926045', 'tblTempUsageDetail_20' ) end [2025-04-17 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:14:22] Production.INFO: ==10394== Releasing lock... [2025-04-17 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:15:05 [end_date_ymd] => 2025-04-17 05:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:15:05' and `end` < '2025-04-17 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-17 05:15:18] Production.INFO: count ==963 [2025-04-17 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:15:05 - End Time 2025-04-17 05:15:05 [2025-04-17 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926050', 'tblTempUsageDetail_20' ) start [2025-04-17 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926050', 'tblTempUsageDetail_20' ) end [2025-04-17 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926050', 'tblTempVendorCDR_20' ) start [2025-04-17 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926050', 'tblTempVendorCDR_20' ) end [2025-04-17 05:15:19] Production.INFO: ProcessCDR(1,14926050,1,1,2) [2025-04-17 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926050', 'tblTempUsageDetail_20' ) start [2025-04-17 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926050', 'tblTempUsageDetail_20' ) end [2025-04-17 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:15:22] Production.INFO: ==10504== Releasing lock... [2025-04-17 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:15:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:16:05 [end_date_ymd] => 2025-04-17 05:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:16:05' and `end` < '2025-04-17 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-17 05:16:18] Production.INFO: count ==963 [2025-04-17 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:16:05 - End Time 2025-04-17 05:16:05 [2025-04-17 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926055', 'tblTempUsageDetail_20' ) start [2025-04-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926055', 'tblTempUsageDetail_20' ) end [2025-04-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926055', 'tblTempVendorCDR_20' ) start [2025-04-17 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926055', 'tblTempVendorCDR_20' ) end [2025-04-17 05:16:18] Production.INFO: ProcessCDR(1,14926055,1,1,2) [2025-04-17 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926055', 'tblTempUsageDetail_20' ) start [2025-04-17 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926055', 'tblTempUsageDetail_20' ) end [2025-04-17 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:16:21] Production.INFO: ==10619== Releasing lock... [2025-04-17 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:16:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:17:05 [end_date_ymd] => 2025-04-17 05:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:17:05' and `end` < '2025-04-17 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-17 05:17:18] Production.INFO: count ==965 [2025-04-17 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:17:05 - End Time 2025-04-17 05:17:05 [2025-04-17 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926060', 'tblTempUsageDetail_20' ) start [2025-04-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926060', 'tblTempUsageDetail_20' ) end [2025-04-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926060', 'tblTempVendorCDR_20' ) start [2025-04-17 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926060', 'tblTempVendorCDR_20' ) end [2025-04-17 05:17:18] Production.INFO: ProcessCDR(1,14926060,1,1,2) [2025-04-17 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926060', 'tblTempUsageDetail_20' ) start [2025-04-17 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926060', 'tblTempUsageDetail_20' ) end [2025-04-17 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:17:22] Production.INFO: ==10755== Releasing lock... [2025-04-17 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:18:05 [end_date_ymd] => 2025-04-17 05:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:18:05' and `end` < '2025-04-17 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-17 05:18:17] Production.INFO: count ==964 [2025-04-17 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:18:05 - End Time 2025-04-17 05:18:05 [2025-04-17 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926065', 'tblTempUsageDetail_20' ) start [2025-04-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926065', 'tblTempUsageDetail_20' ) end [2025-04-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926065', 'tblTempVendorCDR_20' ) start [2025-04-17 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926065', 'tblTempVendorCDR_20' ) end [2025-04-17 05:18:18] Production.INFO: ProcessCDR(1,14926065,1,1,2) [2025-04-17 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926065', 'tblTempUsageDetail_20' ) start [2025-04-17 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926065', 'tblTempUsageDetail_20' ) end [2025-04-17 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:18:21] Production.INFO: ==10924== Releasing lock... [2025-04-17 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:18:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:19:05 [end_date_ymd] => 2025-04-17 05:19:05 [RateCDR] => 1 ) [2025-04-17 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:19:05' and `end` < '2025-04-17 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:19:18] Production.INFO: count ==962 [2025-04-17 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:19:05 - End Time 2025-04-17 05:19:05 [2025-04-17 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926070', 'tblTempUsageDetail_20' ) start [2025-04-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926070', 'tblTempUsageDetail_20' ) end [2025-04-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926070', 'tblTempVendorCDR_20' ) start [2025-04-17 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926070', 'tblTempVendorCDR_20' ) end [2025-04-17 05:19:18] Production.INFO: ProcessCDR(1,14926070,1,1,2) [2025-04-17 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926070', 'tblTempUsageDetail_20' ) start [2025-04-17 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926070', 'tblTempUsageDetail_20' ) end [2025-04-17 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:19:22] Production.INFO: ==11082== Releasing lock... [2025-04-17 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:20:06 [end_date_ymd] => 2025-04-17 05:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 02:20:06' and `end` < '2025-04-17 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-17 05:20:18] Production.INFO: count ==962 [2025-04-17 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:20:06 - End Time 2025-04-17 05:20:06 [2025-04-17 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926076', 'tblTempUsageDetail_20' ) start [2025-04-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926076', 'tblTempUsageDetail_20' ) end [2025-04-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926076', 'tblTempVendorCDR_20' ) start [2025-04-17 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926076', 'tblTempVendorCDR_20' ) end [2025-04-17 05:20:19] Production.INFO: ProcessCDR(1,14926076,1,1,2) [2025-04-17 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926076', 'tblTempUsageDetail_20' ) start [2025-04-17 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926076', 'tblTempUsageDetail_20' ) end [2025-04-17 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:20:22] Production.INFO: ==11245== Releasing lock... [2025-04-17 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:20:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:21:05 [end_date_ymd] => 2025-04-17 05:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:21:05' and `end` < '2025-04-17 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-17 05:21:17] Production.INFO: count ==962 [2025-04-17 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:21:05 - End Time 2025-04-17 05:21:05 [2025-04-17 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926081', 'tblTempUsageDetail_20' ) start [2025-04-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926081', 'tblTempUsageDetail_20' ) end [2025-04-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926081', 'tblTempVendorCDR_20' ) start [2025-04-17 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926081', 'tblTempVendorCDR_20' ) end [2025-04-17 05:21:18] Production.INFO: ProcessCDR(1,14926081,1,1,2) [2025-04-17 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926081', 'tblTempUsageDetail_20' ) start [2025-04-17 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926081', 'tblTempUsageDetail_20' ) end [2025-04-17 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:21:21] Production.INFO: ==11404== Releasing lock... [2025-04-17 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:22:06 [end_date_ymd] => 2025-04-17 05:22:06 [RateCDR] => 1 ) [2025-04-17 05: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-17 02:22:06' and `end` < '2025-04-17 05: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-17 05:22:18] Production.INFO: count ==962 [2025-04-17 05:22:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:22:06 - End Time 2025-04-17 05:22:06 [2025-04-17 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926086', 'tblTempUsageDetail_20' ) start [2025-04-17 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926086', 'tblTempUsageDetail_20' ) end [2025-04-17 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926086', 'tblTempVendorCDR_20' ) start [2025-04-17 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926086', 'tblTempVendorCDR_20' ) end [2025-04-17 05:22:19] Production.INFO: ProcessCDR(1,14926086,1,1,2) [2025-04-17 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926086', 'tblTempUsageDetail_20' ) start [2025-04-17 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926086', 'tblTempUsageDetail_20' ) end [2025-04-17 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:22:22] Production.INFO: ==11605== Releasing lock... [2025-04-17 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:23:05 [end_date_ymd] => 2025-04-17 05:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:23:05' and `end` < '2025-04-17 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-17 05:23:18] Production.INFO: count ==962 [2025-04-17 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:23:05 - End Time 2025-04-17 05:23:05 [2025-04-17 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926091', 'tblTempUsageDetail_20' ) start [2025-04-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926091', 'tblTempUsageDetail_20' ) end [2025-04-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926091', 'tblTempVendorCDR_20' ) start [2025-04-17 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926091', 'tblTempVendorCDR_20' ) end [2025-04-17 05:23:18] Production.INFO: ProcessCDR(1,14926091,1,1,2) [2025-04-17 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926091', 'tblTempUsageDetail_20' ) start [2025-04-17 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926091', 'tblTempUsageDetail_20' ) end [2025-04-17 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:23:21] Production.INFO: ==11776== Releasing lock... [2025-04-17 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:23:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:24:05 [end_date_ymd] => 2025-04-17 05:24:05 [RateCDR] => 1 ) [2025-04-17 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:24:05' and `end` < '2025-04-17 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:24:18] Production.INFO: count ==962 [2025-04-17 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:24:05 - End Time 2025-04-17 05:24:05 [2025-04-17 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926096', 'tblTempUsageDetail_20' ) start [2025-04-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926096', 'tblTempUsageDetail_20' ) end [2025-04-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926096', 'tblTempVendorCDR_20' ) start [2025-04-17 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926096', 'tblTempVendorCDR_20' ) end [2025-04-17 05:24:18] Production.INFO: ProcessCDR(1,14926096,1,1,2) [2025-04-17 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926096', 'tblTempUsageDetail_20' ) start [2025-04-17 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926096', 'tblTempUsageDetail_20' ) end [2025-04-17 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:24:22] Production.INFO: ==11936== Releasing lock... [2025-04-17 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:25:05 [end_date_ymd] => 2025-04-17 05:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:25:05' and `end` < '2025-04-17 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-17 05:25:18] Production.INFO: count ==960 [2025-04-17 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:25:05 - End Time 2025-04-17 05:25:05 [2025-04-17 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926101', 'tblTempUsageDetail_20' ) start [2025-04-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926101', 'tblTempUsageDetail_20' ) end [2025-04-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926101', 'tblTempVendorCDR_20' ) start [2025-04-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926101', 'tblTempVendorCDR_20' ) end [2025-04-17 05:25:18] Production.INFO: ProcessCDR(1,14926101,1,1,2) [2025-04-17 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926101', 'tblTempUsageDetail_20' ) start [2025-04-17 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926101', 'tblTempUsageDetail_20' ) end [2025-04-17 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:25:21] Production.INFO: ==12091== Releasing lock... [2025-04-17 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:25:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:26:05 [end_date_ymd] => 2025-04-17 05:26:05 [RateCDR] => 1 ) [2025-04-17 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:26:05' and `end` < '2025-04-17 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:26:18] Production.INFO: count ==959 [2025-04-17 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:26:05 - End Time 2025-04-17 05:26:05 [2025-04-17 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926106', 'tblTempUsageDetail_20' ) start [2025-04-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926106', 'tblTempUsageDetail_20' ) end [2025-04-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926106', 'tblTempVendorCDR_20' ) start [2025-04-17 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926106', 'tblTempVendorCDR_20' ) end [2025-04-17 05:26:18] Production.INFO: ProcessCDR(1,14926106,1,1,2) [2025-04-17 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926106', 'tblTempUsageDetail_20' ) start [2025-04-17 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926106', 'tblTempUsageDetail_20' ) end [2025-04-17 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:26:22] Production.INFO: ==12248== Releasing lock... [2025-04-17 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:27:05 [end_date_ymd] => 2025-04-17 05:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:27:05' and `end` < '2025-04-17 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-17 05:27:17] Production.INFO: count ==959 [2025-04-17 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:27:05 - End Time 2025-04-17 05:27:05 [2025-04-17 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926111', 'tblTempUsageDetail_20' ) start [2025-04-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926111', 'tblTempUsageDetail_20' ) end [2025-04-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926111', 'tblTempVendorCDR_20' ) start [2025-04-17 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926111', 'tblTempVendorCDR_20' ) end [2025-04-17 05:27:18] Production.INFO: ProcessCDR(1,14926111,1,1,2) [2025-04-17 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926111', 'tblTempUsageDetail_20' ) start [2025-04-17 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926111', 'tblTempUsageDetail_20' ) end [2025-04-17 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:27:21] Production.INFO: ==12408== Releasing lock... [2025-04-17 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:27:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:28:05 [end_date_ymd] => 2025-04-17 05:28:05 [RateCDR] => 1 ) [2025-04-17 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:28:05' and `end` < '2025-04-17 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:28:18] Production.INFO: count ==959 [2025-04-17 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:28:05 - End Time 2025-04-17 05:28:05 [2025-04-17 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926116', 'tblTempUsageDetail_20' ) start [2025-04-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926116', 'tblTempUsageDetail_20' ) end [2025-04-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926116', 'tblTempVendorCDR_20' ) start [2025-04-17 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926116', 'tblTempVendorCDR_20' ) end [2025-04-17 05:28:19] Production.INFO: ProcessCDR(1,14926116,1,1,2) [2025-04-17 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926116', 'tblTempUsageDetail_20' ) start [2025-04-17 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926116', 'tblTempUsageDetail_20' ) end [2025-04-17 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:28:22] Production.INFO: ==12550== Releasing lock... [2025-04-17 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:28:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:29:05 [end_date_ymd] => 2025-04-17 05:29:05 [RateCDR] => 1 ) [2025-04-17 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:29:05' and `end` < '2025-04-17 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:29:18] Production.INFO: count ==959 [2025-04-17 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:29:05 - End Time 2025-04-17 05:29:05 [2025-04-17 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926121', 'tblTempUsageDetail_20' ) start [2025-04-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926121', 'tblTempUsageDetail_20' ) end [2025-04-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926121', 'tblTempVendorCDR_20' ) start [2025-04-17 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926121', 'tblTempVendorCDR_20' ) end [2025-04-17 05:29:18] Production.INFO: ProcessCDR(1,14926121,1,1,2) [2025-04-17 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926121', 'tblTempUsageDetail_20' ) start [2025-04-17 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926121', 'tblTempUsageDetail_20' ) end [2025-04-17 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:29:21] Production.INFO: ==12660== Releasing lock... [2025-04-17 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:30:06 [end_date_ymd] => 2025-04-17 05:30:06 [RateCDR] => 1 ) [2025-04-17 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:30:06' and `end` < '2025-04-17 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:30:19] Production.INFO: count ==957 [2025-04-17 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:30:06 - End Time 2025-04-17 05:30:06 [2025-04-17 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926127', 'tblTempUsageDetail_20' ) start [2025-04-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926127', 'tblTempUsageDetail_20' ) end [2025-04-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926127', 'tblTempVendorCDR_20' ) start [2025-04-17 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926127', 'tblTempVendorCDR_20' ) end [2025-04-17 05:30:19] Production.INFO: ProcessCDR(1,14926127,1,1,2) [2025-04-17 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926127', 'tblTempUsageDetail_20' ) start [2025-04-17 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926127', 'tblTempUsageDetail_20' ) end [2025-04-17 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:30:22] Production.INFO: ==12778== Releasing lock... [2025-04-17 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:31:06 [end_date_ymd] => 2025-04-17 05:31:06 [RateCDR] => 1 ) [2025-04-17 05: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-17 02:31:06' and `end` < '2025-04-17 05: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-17 05:31:18] Production.INFO: count ==957 [2025-04-17 05:31:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:31:06 - End Time 2025-04-17 05:31:06 [2025-04-17 05:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926132', 'tblTempUsageDetail_20' ) start [2025-04-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926132', 'tblTempUsageDetail_20' ) end [2025-04-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926132', 'tblTempVendorCDR_20' ) start [2025-04-17 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926132', 'tblTempVendorCDR_20' ) end [2025-04-17 05:31:19] Production.INFO: ProcessCDR(1,14926132,1,1,2) [2025-04-17 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926132', 'tblTempUsageDetail_20' ) start [2025-04-17 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926132', 'tblTempUsageDetail_20' ) end [2025-04-17 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:31:22] Production.INFO: ==12893== Releasing lock... [2025-04-17 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:32:05 [end_date_ymd] => 2025-04-17 05:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:32:05' and `end` < '2025-04-17 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-17 05:32:18] Production.INFO: count ==957 [2025-04-17 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:32:05 - End Time 2025-04-17 05:32:05 [2025-04-17 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926137', 'tblTempUsageDetail_20' ) start [2025-04-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926137', 'tblTempUsageDetail_20' ) end [2025-04-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926137', 'tblTempVendorCDR_20' ) start [2025-04-17 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926137', 'tblTempVendorCDR_20' ) end [2025-04-17 05:32:18] Production.INFO: ProcessCDR(1,14926137,1,1,2) [2025-04-17 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926137', 'tblTempUsageDetail_20' ) start [2025-04-17 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926137', 'tblTempUsageDetail_20' ) end [2025-04-17 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:32:21] Production.INFO: ==13001== Releasing lock... [2025-04-17 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:32:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:33:05 [end_date_ymd] => 2025-04-17 05:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:33:05' and `end` < '2025-04-17 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-17 05:33:18] Production.INFO: count ==956 [2025-04-17 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:33:05 - End Time 2025-04-17 05:33:05 [2025-04-17 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926140', 'tblTempUsageDetail_20' ) start [2025-04-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926140', 'tblTempUsageDetail_20' ) end [2025-04-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926140', 'tblTempVendorCDR_20' ) start [2025-04-17 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926140', 'tblTempVendorCDR_20' ) end [2025-04-17 05:33:18] Production.INFO: ProcessCDR(1,14926140,1,1,2) [2025-04-17 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926140', 'tblTempUsageDetail_20' ) start [2025-04-17 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926140', 'tblTempUsageDetail_20' ) end [2025-04-17 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:33:22] Production.INFO: ==13113== Releasing lock... [2025-04-17 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:34:05 [end_date_ymd] => 2025-04-17 05:34:05 [RateCDR] => 1 ) [2025-04-17 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:34:05' and `end` < '2025-04-17 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:34:18] Production.INFO: count ==956 [2025-04-17 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:34:05 - End Time 2025-04-17 05:34:05 [2025-04-17 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926147', 'tblTempUsageDetail_20' ) start [2025-04-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926147', 'tblTempUsageDetail_20' ) end [2025-04-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926147', 'tblTempVendorCDR_20' ) start [2025-04-17 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926147', 'tblTempVendorCDR_20' ) end [2025-04-17 05:34:18] Production.INFO: ProcessCDR(1,14926147,1,1,2) [2025-04-17 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926147', 'tblTempUsageDetail_20' ) start [2025-04-17 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926147', 'tblTempUsageDetail_20' ) end [2025-04-17 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:34:21] Production.INFO: ==13215== Releasing lock... [2025-04-17 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:34:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:35:05 [end_date_ymd] => 2025-04-17 05:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:35:05' and `end` < '2025-04-17 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-17 05:35:18] Production.INFO: count ==955 [2025-04-17 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:35:05 - End Time 2025-04-17 05:35:05 [2025-04-17 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926152', 'tblTempUsageDetail_20' ) start [2025-04-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926152', 'tblTempUsageDetail_20' ) end [2025-04-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926152', 'tblTempVendorCDR_20' ) start [2025-04-17 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926152', 'tblTempVendorCDR_20' ) end [2025-04-17 05:35:18] Production.INFO: ProcessCDR(1,14926152,1,1,2) [2025-04-17 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926152', 'tblTempUsageDetail_20' ) start [2025-04-17 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926152', 'tblTempUsageDetail_20' ) end [2025-04-17 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:35:21] Production.INFO: ==13324== Releasing lock... [2025-04-17 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:35:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:36:04 [end_date_ymd] => 2025-04-17 05:36:04 [RateCDR] => 1 ) [2025-04-17 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:36:04' and `end` < '2025-04-17 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:36:17] Production.INFO: count ==954 [2025-04-17 05:36:17] Production.ERROR: pbx CDR StartTime 2025-04-17 02:36:04 - End Time 2025-04-17 05:36:04 [2025-04-17 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926157', 'tblTempUsageDetail_20' ) start [2025-04-17 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926157', 'tblTempUsageDetail_20' ) end [2025-04-17 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926157', 'tblTempVendorCDR_20' ) start [2025-04-17 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926157', 'tblTempVendorCDR_20' ) end [2025-04-17 05:36:17] Production.INFO: ProcessCDR(1,14926157,1,1,2) [2025-04-17 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926157', 'tblTempUsageDetail_20' ) start [2025-04-17 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926157', 'tblTempUsageDetail_20' ) end [2025-04-17 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:36:21] Production.INFO: ==13435== Releasing lock... [2025-04-17 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:36:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:37:05 [end_date_ymd] => 2025-04-17 05:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:37:05' and `end` < '2025-04-17 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-17 05:37:18] Production.INFO: count ==953 [2025-04-17 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:37:05 - End Time 2025-04-17 05:37:05 [2025-04-17 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926162', 'tblTempUsageDetail_20' ) start [2025-04-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926162', 'tblTempUsageDetail_20' ) end [2025-04-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926162', 'tblTempVendorCDR_20' ) start [2025-04-17 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926162', 'tblTempVendorCDR_20' ) end [2025-04-17 05:37:18] Production.INFO: ProcessCDR(1,14926162,1,1,2) [2025-04-17 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926162', 'tblTempUsageDetail_20' ) start [2025-04-17 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926162', 'tblTempUsageDetail_20' ) end [2025-04-17 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:37:21] Production.INFO: ==13553== Releasing lock... [2025-04-17 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:37:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:38:06 [end_date_ymd] => 2025-04-17 05:38:06 [RateCDR] => 1 ) [2025-04-17 05: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-17 02:38:06' and `end` < '2025-04-17 05: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-17 05:38:19] Production.INFO: count ==952 [2025-04-17 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:38:06 - End Time 2025-04-17 05:38:06 [2025-04-17 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926167', 'tblTempUsageDetail_20' ) start [2025-04-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926167', 'tblTempUsageDetail_20' ) end [2025-04-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926167', 'tblTempVendorCDR_20' ) start [2025-04-17 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926167', 'tblTempVendorCDR_20' ) end [2025-04-17 05:38:19] Production.INFO: ProcessCDR(1,14926167,1,1,2) [2025-04-17 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926167', 'tblTempUsageDetail_20' ) start [2025-04-17 05:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926167', 'tblTempUsageDetail_20' ) end [2025-04-17 05:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:38:23] Production.INFO: ==13710== Releasing lock... [2025-04-17 05:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:38:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:39:05 [end_date_ymd] => 2025-04-17 05:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:39:05' and `end` < '2025-04-17 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-17 05:39:18] Production.INFO: count ==951 [2025-04-17 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:39:05 - End Time 2025-04-17 05:39:05 [2025-04-17 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926172', 'tblTempUsageDetail_20' ) start [2025-04-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926172', 'tblTempUsageDetail_20' ) end [2025-04-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926172', 'tblTempVendorCDR_20' ) start [2025-04-17 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926172', 'tblTempVendorCDR_20' ) end [2025-04-17 05:39:18] Production.INFO: ProcessCDR(1,14926172,1,1,2) [2025-04-17 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926172', 'tblTempUsageDetail_20' ) start [2025-04-17 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926172', 'tblTempUsageDetail_20' ) end [2025-04-17 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:39:22] Production.INFO: ==13817== Releasing lock... [2025-04-17 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:40:06 [end_date_ymd] => 2025-04-17 05:40:06 [RateCDR] => 1 ) [2025-04-17 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:40:06' and `end` < '2025-04-17 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:40:19] Production.INFO: count ==949 [2025-04-17 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 02:40:06 - End Time 2025-04-17 05:40:06 [2025-04-17 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926178', 'tblTempUsageDetail_20' ) start [2025-04-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926178', 'tblTempUsageDetail_20' ) end [2025-04-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926178', 'tblTempVendorCDR_20' ) start [2025-04-17 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926178', 'tblTempVendorCDR_20' ) end [2025-04-17 05:40:19] Production.INFO: ProcessCDR(1,14926178,1,1,2) [2025-04-17 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926178', 'tblTempUsageDetail_20' ) start [2025-04-17 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926178', 'tblTempUsageDetail_20' ) end [2025-04-17 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:40:22] Production.INFO: ==13924== Releasing lock... [2025-04-17 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:40:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:41:05 [end_date_ymd] => 2025-04-17 05:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:41:05' and `end` < '2025-04-17 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-17 05:41:18] Production.INFO: count ==949 [2025-04-17 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:41:05 - End Time 2025-04-17 05:41:05 [2025-04-17 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926183', 'tblTempUsageDetail_20' ) start [2025-04-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926183', 'tblTempUsageDetail_20' ) end [2025-04-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926183', 'tblTempVendorCDR_20' ) start [2025-04-17 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926183', 'tblTempVendorCDR_20' ) end [2025-04-17 05:41:18] Production.INFO: ProcessCDR(1,14926183,1,1,2) [2025-04-17 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926183', 'tblTempUsageDetail_20' ) start [2025-04-17 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926183', 'tblTempUsageDetail_20' ) end [2025-04-17 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:41:22] Production.INFO: ==14035== Releasing lock... [2025-04-17 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:41:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:42:05 [end_date_ymd] => 2025-04-17 05:42:05 [RateCDR] => 1 ) [2025-04-17 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:42:05' and `end` < '2025-04-17 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:42:18] Production.INFO: count ==949 [2025-04-17 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:42:05 - End Time 2025-04-17 05:42:05 [2025-04-17 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926188', 'tblTempUsageDetail_20' ) start [2025-04-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926188', 'tblTempUsageDetail_20' ) end [2025-04-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926188', 'tblTempVendorCDR_20' ) start [2025-04-17 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926188', 'tblTempVendorCDR_20' ) end [2025-04-17 05:42:18] Production.INFO: ProcessCDR(1,14926188,1,1,2) [2025-04-17 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926188', 'tblTempUsageDetail_20' ) start [2025-04-17 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926188', 'tblTempUsageDetail_20' ) end [2025-04-17 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:42:22] Production.INFO: ==14153== Releasing lock... [2025-04-17 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:42:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:43:05 [end_date_ymd] => 2025-04-17 05:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:43:05' and `end` < '2025-04-17 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-17 05:43:17] Production.INFO: count ==949 [2025-04-17 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:43:05 - End Time 2025-04-17 05:43:05 [2025-04-17 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926193', 'tblTempUsageDetail_20' ) start [2025-04-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926193', 'tblTempUsageDetail_20' ) end [2025-04-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926193', 'tblTempVendorCDR_20' ) start [2025-04-17 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926193', 'tblTempVendorCDR_20' ) end [2025-04-17 05:43:18] Production.INFO: ProcessCDR(1,14926193,1,1,2) [2025-04-17 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926193', 'tblTempUsageDetail_20' ) start [2025-04-17 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926193', 'tblTempUsageDetail_20' ) end [2025-04-17 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:43:21] Production.INFO: ==14264== Releasing lock... [2025-04-17 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:43:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:44:05 [end_date_ymd] => 2025-04-17 05:44:05 [RateCDR] => 1 ) [2025-04-17 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:44:05' and `end` < '2025-04-17 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:44:17] Production.INFO: count ==949 [2025-04-17 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:44:05 - End Time 2025-04-17 05:44:05 [2025-04-17 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926198', 'tblTempUsageDetail_20' ) start [2025-04-17 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926198', 'tblTempUsageDetail_20' ) end [2025-04-17 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926198', 'tblTempVendorCDR_20' ) start [2025-04-17 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926198', 'tblTempVendorCDR_20' ) end [2025-04-17 05:44:18] Production.INFO: ProcessCDR(1,14926198,1,1,2) [2025-04-17 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926198', 'tblTempUsageDetail_20' ) start [2025-04-17 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926198', 'tblTempUsageDetail_20' ) end [2025-04-17 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:44:21] Production.INFO: ==14375== Releasing lock... [2025-04-17 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:44:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:45:05 [end_date_ymd] => 2025-04-17 05:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:45:05' and `end` < '2025-04-17 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-17 05:45:18] Production.INFO: count ==949 [2025-04-17 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:45:05 - End Time 2025-04-17 05:45:05 [2025-04-17 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926203', 'tblTempUsageDetail_20' ) start [2025-04-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926203', 'tblTempUsageDetail_20' ) end [2025-04-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926203', 'tblTempVendorCDR_20' ) start [2025-04-17 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926203', 'tblTempVendorCDR_20' ) end [2025-04-17 05:45:18] Production.INFO: ProcessCDR(1,14926203,1,1,2) [2025-04-17 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926203', 'tblTempUsageDetail_20' ) start [2025-04-17 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926203', 'tblTempUsageDetail_20' ) end [2025-04-17 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:45:22] Production.INFO: ==14483== Releasing lock... [2025-04-17 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-17 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:46:05 [end_date_ymd] => 2025-04-17 05:46:05 [RateCDR] => 1 ) [2025-04-17 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:46:05' and `end` < '2025-04-17 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:46:18] Production.INFO: count ==948 [2025-04-17 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:46:05 - End Time 2025-04-17 05:46:05 [2025-04-17 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926208', 'tblTempUsageDetail_20' ) start [2025-04-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926208', 'tblTempUsageDetail_20' ) end [2025-04-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926208', 'tblTempVendorCDR_20' ) start [2025-04-17 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926208', 'tblTempVendorCDR_20' ) end [2025-04-17 05:46:18] Production.INFO: ProcessCDR(1,14926208,1,1,2) [2025-04-17 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926208', 'tblTempUsageDetail_20' ) start [2025-04-17 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926208', 'tblTempUsageDetail_20' ) end [2025-04-17 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:46:22] Production.INFO: ==14588== Releasing lock... [2025-04-17 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:46:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-17 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:47:05 [end_date_ymd] => 2025-04-17 05:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:47:05' and `end` < '2025-04-17 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-17 05:47:18] Production.INFO: count ==890 [2025-04-17 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:47:05 - End Time 2025-04-17 05:47:05 [2025-04-17 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926213', 'tblTempUsageDetail_20' ) start [2025-04-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926213', 'tblTempUsageDetail_20' ) end [2025-04-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926213', 'tblTempVendorCDR_20' ) start [2025-04-17 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926213', 'tblTempVendorCDR_20' ) end [2025-04-17 05:47:18] Production.INFO: ProcessCDR(1,14926213,1,1,2) [2025-04-17 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926213', 'tblTempUsageDetail_20' ) start [2025-04-17 05:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926213', 'tblTempUsageDetail_20' ) end [2025-04-17 05:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:47:23] Production.INFO: ==14692== Releasing lock... [2025-04-17 05:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:47:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-17 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:48:05 [end_date_ymd] => 2025-04-17 05:48:05 [RateCDR] => 1 ) [2025-04-17 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:48:05' and `end` < '2025-04-17 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:48:18] Production.INFO: count ==831 [2025-04-17 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:48:05 - End Time 2025-04-17 05:48:05 [2025-04-17 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926218', 'tblTempUsageDetail_20' ) start [2025-04-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926218', 'tblTempUsageDetail_20' ) end [2025-04-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926218', 'tblTempVendorCDR_20' ) start [2025-04-17 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926218', 'tblTempVendorCDR_20' ) end [2025-04-17 05:48:18] Production.INFO: ProcessCDR(1,14926218,1,1,2) [2025-04-17 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926218', 'tblTempUsageDetail_20' ) start [2025-04-17 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926218', 'tblTempUsageDetail_20' ) end [2025-04-17 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:48:21] Production.INFO: ==14801== Releasing lock... [2025-04-17 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-17 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:49:05 [end_date_ymd] => 2025-04-17 05:49:05 [RateCDR] => 1 ) [2025-04-17 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:49:05' and `end` < '2025-04-17 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:49:18] Production.INFO: count ==770 [2025-04-17 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:49:05 - End Time 2025-04-17 05:49:05 [2025-04-17 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926223', 'tblTempUsageDetail_20' ) start [2025-04-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926223', 'tblTempUsageDetail_20' ) end [2025-04-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926223', 'tblTempVendorCDR_20' ) start [2025-04-17 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926223', 'tblTempVendorCDR_20' ) end [2025-04-17 05:49:18] Production.INFO: ProcessCDR(1,14926223,1,1,2) [2025-04-17 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926223', 'tblTempUsageDetail_20' ) start [2025-04-17 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926223', 'tblTempUsageDetail_20' ) end [2025-04-17 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:49:22] Production.INFO: ==14917== Releasing lock... [2025-04-17 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:49:22] Production.INFO: 35 MB #Memory Used# [2025-04-17 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:50:05 [end_date_ymd] => 2025-04-17 05:50:05 [RateCDR] => 1 ) [2025-04-17 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:50:05' and `end` < '2025-04-17 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:50:18] Production.INFO: count ==700 [2025-04-17 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:50:05 - End Time 2025-04-17 05:50:05 [2025-04-17 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926229', 'tblTempUsageDetail_20' ) start [2025-04-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926229', 'tblTempUsageDetail_20' ) end [2025-04-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926229', 'tblTempVendorCDR_20' ) start [2025-04-17 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926229', 'tblTempVendorCDR_20' ) end [2025-04-17 05:50:18] Production.INFO: ProcessCDR(1,14926229,1,1,2) [2025-04-17 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926229', 'tblTempUsageDetail_20' ) start [2025-04-17 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926229', 'tblTempUsageDetail_20' ) end [2025-04-17 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:50:21] Production.INFO: ==15032== Releasing lock... [2025-04-17 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:50:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-17 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:51:05 [end_date_ymd] => 2025-04-17 05:51:05 [RateCDR] => 1 ) [2025-04-17 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:51:05' and `end` < '2025-04-17 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:51:17] Production.INFO: count ==630 [2025-04-17 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:51:05 - End Time 2025-04-17 05:51:05 [2025-04-17 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926234', 'tblTempUsageDetail_20' ) start [2025-04-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926234', 'tblTempUsageDetail_20' ) end [2025-04-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926234', 'tblTempVendorCDR_20' ) start [2025-04-17 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926234', 'tblTempVendorCDR_20' ) end [2025-04-17 05:51:18] Production.INFO: ProcessCDR(1,14926234,1,1,2) [2025-04-17 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926234', 'tblTempUsageDetail_20' ) start [2025-04-17 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926234', 'tblTempUsageDetail_20' ) end [2025-04-17 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:51:21] Production.INFO: ==15149== Releasing lock... [2025-04-17 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-17 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:52:05 [end_date_ymd] => 2025-04-17 05:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:52:05' and `end` < '2025-04-17 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-17 05:52:18] Production.INFO: count ==567 [2025-04-17 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:52:05 - End Time 2025-04-17 05:52:05 [2025-04-17 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926239', 'tblTempUsageDetail_20' ) start [2025-04-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926239', 'tblTempUsageDetail_20' ) end [2025-04-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926239', 'tblTempVendorCDR_20' ) start [2025-04-17 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926239', 'tblTempVendorCDR_20' ) end [2025-04-17 05:52:18] Production.INFO: ProcessCDR(1,14926239,1,1,2) [2025-04-17 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926239', 'tblTempUsageDetail_20' ) start [2025-04-17 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926239', 'tblTempUsageDetail_20' ) end [2025-04-17 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:52:21] Production.INFO: ==15257== Releasing lock... [2025-04-17 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-17 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:53:05 [end_date_ymd] => 2025-04-17 05:53:05 [RateCDR] => 1 ) [2025-04-17 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:53:05' and `end` < '2025-04-17 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:53:17] Production.INFO: count ==507 [2025-04-17 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:53:05 - End Time 2025-04-17 05:53:05 [2025-04-17 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926244', 'tblTempUsageDetail_20' ) start [2025-04-17 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926244', 'tblTempUsageDetail_20' ) end [2025-04-17 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926244', 'tblTempVendorCDR_20' ) start [2025-04-17 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926244', 'tblTempVendorCDR_20' ) end [2025-04-17 05:53:18] Production.INFO: ProcessCDR(1,14926244,1,1,2) [2025-04-17 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926244', 'tblTempUsageDetail_20' ) start [2025-04-17 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926244', 'tblTempUsageDetail_20' ) end [2025-04-17 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:53:21] Production.INFO: ==15400== Releasing lock... [2025-04-17 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-17 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:54:05 [end_date_ymd] => 2025-04-17 05:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:54:05' and `end` < '2025-04-17 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-17 05:54:18] Production.INFO: count ==445 [2025-04-17 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:54:05 - End Time 2025-04-17 05:54:05 [2025-04-17 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926249', 'tblTempUsageDetail_20' ) start [2025-04-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926249', 'tblTempUsageDetail_20' ) end [2025-04-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926249', 'tblTempVendorCDR_20' ) start [2025-04-17 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926249', 'tblTempVendorCDR_20' ) end [2025-04-17 05:54:18] Production.INFO: ProcessCDR(1,14926249,1,1,2) [2025-04-17 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926249', 'tblTempUsageDetail_20' ) start [2025-04-17 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926249', 'tblTempUsageDetail_20' ) end [2025-04-17 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:54:21] Production.INFO: ==15506== Releasing lock... [2025-04-17 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-17 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:55:05 [end_date_ymd] => 2025-04-17 05:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:55:05' and `end` < '2025-04-17 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-17 05:55:18] Production.INFO: count ==382 [2025-04-17 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:55:05 - End Time 2025-04-17 05:55:05 [2025-04-17 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926254', 'tblTempUsageDetail_20' ) start [2025-04-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926254', 'tblTempUsageDetail_20' ) end [2025-04-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926254', 'tblTempVendorCDR_20' ) start [2025-04-17 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926254', 'tblTempVendorCDR_20' ) end [2025-04-17 05:55:18] Production.INFO: ProcessCDR(1,14926254,1,1,2) [2025-04-17 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926254', 'tblTempUsageDetail_20' ) start [2025-04-17 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926254', 'tblTempUsageDetail_20' ) end [2025-04-17 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:55:21] Production.INFO: ==15619== Releasing lock... [2025-04-17 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:56:06 [end_date_ymd] => 2025-04-17 05:56:06 [RateCDR] => 1 ) [2025-04-17 05: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-17 02:56:06' and `end` < '2025-04-17 05: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-17 05:56:18] Production.INFO: count ==319 [2025-04-17 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:56:06 - End Time 2025-04-17 05:56:06 [2025-04-17 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926259', 'tblTempUsageDetail_20' ) start [2025-04-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926259', 'tblTempUsageDetail_20' ) end [2025-04-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926259', 'tblTempVendorCDR_20' ) start [2025-04-17 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926259', 'tblTempVendorCDR_20' ) end [2025-04-17 05:56:18] Production.INFO: ProcessCDR(1,14926259,1,1,2) [2025-04-17 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926259', 'tblTempUsageDetail_20' ) start [2025-04-17 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926259', 'tblTempUsageDetail_20' ) end [2025-04-17 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:56:22] Production.INFO: ==15734== Releasing lock... [2025-04-17 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:57:04 [end_date_ymd] => 2025-04-17 05:57:04 [RateCDR] => 1 ) [2025-04-17 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 02:57:04' and `end` < '2025-04-17 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 05:57:17] Production.INFO: count ==260 [2025-04-17 05:57:17] Production.ERROR: pbx CDR StartTime 2025-04-17 02:57:04 - End Time 2025-04-17 05:57:04 [2025-04-17 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926264', 'tblTempUsageDetail_20' ) start [2025-04-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926264', 'tblTempUsageDetail_20' ) end [2025-04-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926264', 'tblTempVendorCDR_20' ) start [2025-04-17 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926264', 'tblTempVendorCDR_20' ) end [2025-04-17 05:57:17] Production.INFO: ProcessCDR(1,14926264,1,1,2) [2025-04-17 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926264', 'tblTempUsageDetail_20' ) start [2025-04-17 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926264', 'tblTempUsageDetail_20' ) end [2025-04-17 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:57:21] Production.INFO: ==15846== Releasing lock... [2025-04-17 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:58:05 [end_date_ymd] => 2025-04-17 05:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:58:05' and `end` < '2025-04-17 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-17 05:58:18] Production.INFO: count ==200 [2025-04-17 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:58:05 - End Time 2025-04-17 05:58:05 [2025-04-17 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926269', 'tblTempUsageDetail_20' ) start [2025-04-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926269', 'tblTempUsageDetail_20' ) end [2025-04-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926269', 'tblTempVendorCDR_20' ) start [2025-04-17 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926269', 'tblTempVendorCDR_20' ) end [2025-04-17 05:58:18] Production.INFO: ProcessCDR(1,14926269,1,1,2) [2025-04-17 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926269', 'tblTempUsageDetail_20' ) start [2025-04-17 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926269', 'tblTempUsageDetail_20' ) end [2025-04-17 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:58:21] Production.INFO: ==15957== Releasing lock... [2025-04-17 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-17 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 02:59:05 [end_date_ymd] => 2025-04-17 05:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 02:59:05' and `end` < '2025-04-17 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-17 05:59:18] Production.INFO: count ==140 [2025-04-17 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 02:59:05 - End Time 2025-04-17 05:59:05 [2025-04-17 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926274', 'tblTempUsageDetail_20' ) start [2025-04-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926274', 'tblTempUsageDetail_20' ) end [2025-04-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926274', 'tblTempVendorCDR_20' ) start [2025-04-17 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926274', 'tblTempVendorCDR_20' ) end [2025-04-17 05:59:18] Production.INFO: ProcessCDR(1,14926274,1,1,2) [2025-04-17 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926274', 'tblTempUsageDetail_20' ) start [2025-04-17 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926274', 'tblTempUsageDetail_20' ) end [2025-04-17 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 05:59:21] Production.INFO: ==16063== Releasing lock... [2025-04-17 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 05:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-17 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:00:06 [end_date_ymd] => 2025-04-17 06:00:06 [RateCDR] => 1 ) [2025-04-17 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:00:06' and `end` < '2025-04-17 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:00:19] Production.INFO: count ==76 [2025-04-17 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 03:00:06 - End Time 2025-04-17 06:00:06 [2025-04-17 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926280', 'tblTempUsageDetail_20' ) start [2025-04-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926280', 'tblTempUsageDetail_20' ) end [2025-04-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926280', 'tblTempVendorCDR_20' ) start [2025-04-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926280', 'tblTempVendorCDR_20' ) end [2025-04-17 06:00:19] Production.INFO: ProcessCDR(1,14926280,1,1,2) [2025-04-17 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926280', 'tblTempUsageDetail_20' ) start [2025-04-17 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926280', 'tblTempUsageDetail_20' ) end [2025-04-17 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:00:22] Production.INFO: ==16173== Releasing lock... [2025-04-17 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-17 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:01:06 [end_date_ymd] => 2025-04-17 06:01:06 [RateCDR] => 1 ) [2025-04-17 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:01:06' and `end` < '2025-04-17 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:01:18] Production.INFO: count ==47 [2025-04-17 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:01:06 - End Time 2025-04-17 06:01:06 [2025-04-17 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926285', 'tblTempUsageDetail_20' ) start [2025-04-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926285', 'tblTempUsageDetail_20' ) end [2025-04-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926285', 'tblTempVendorCDR_20' ) start [2025-04-17 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926285', 'tblTempVendorCDR_20' ) end [2025-04-17 06:01:18] Production.INFO: ProcessCDR(1,14926285,1,1,2) [2025-04-17 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926285', 'tblTempUsageDetail_20' ) start [2025-04-17 06:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926285', 'tblTempUsageDetail_20' ) end [2025-04-17 06:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:01:23] Production.INFO: ==16295== Releasing lock... [2025-04-17 06:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:01:23] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:02:05 [end_date_ymd] => 2025-04-17 06:02:05 [RateCDR] => 1 ) [2025-04-17 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:02:05' and `end` < '2025-04-17 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:02:18] Production.INFO: count ==45 [2025-04-17 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:02:05 - End Time 2025-04-17 06:02:05 [2025-04-17 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926290', 'tblTempUsageDetail_20' ) start [2025-04-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926290', 'tblTempUsageDetail_20' ) end [2025-04-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926290', 'tblTempVendorCDR_20' ) start [2025-04-17 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926290', 'tblTempVendorCDR_20' ) end [2025-04-17 06:02:18] Production.INFO: ProcessCDR(1,14926290,1,1,2) [2025-04-17 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926290', 'tblTempUsageDetail_20' ) start [2025-04-17 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926290', 'tblTempUsageDetail_20' ) end [2025-04-17 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:02:21] Production.INFO: ==16403== Releasing lock... [2025-04-17 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:03:05 [end_date_ymd] => 2025-04-17 06:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:03:05' and `end` < '2025-04-17 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-17 06:03:18] Production.INFO: count ==44 [2025-04-17 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:03:05 - End Time 2025-04-17 06:03:05 [2025-04-17 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926295', 'tblTempUsageDetail_20' ) start [2025-04-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926295', 'tblTempUsageDetail_20' ) end [2025-04-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926295', 'tblTempVendorCDR_20' ) start [2025-04-17 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926295', 'tblTempVendorCDR_20' ) end [2025-04-17 06:03:18] Production.INFO: ProcessCDR(1,14926295,1,1,2) [2025-04-17 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926295', 'tblTempUsageDetail_20' ) start [2025-04-17 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926295', 'tblTempUsageDetail_20' ) end [2025-04-17 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:03:21] Production.INFO: ==16510== Releasing lock... [2025-04-17 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:03:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:04:05 [end_date_ymd] => 2025-04-17 06:04:05 [RateCDR] => 1 ) [2025-04-17 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:04:05' and `end` < '2025-04-17 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:04:17] Production.INFO: count ==44 [2025-04-17 06:04:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:04:05 - End Time 2025-04-17 06:04:05 [2025-04-17 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926300', 'tblTempUsageDetail_20' ) start [2025-04-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926300', 'tblTempUsageDetail_20' ) end [2025-04-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926300', 'tblTempVendorCDR_20' ) start [2025-04-17 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926300', 'tblTempVendorCDR_20' ) end [2025-04-17 06:04:17] Production.INFO: ProcessCDR(1,14926300,1,1,2) [2025-04-17 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926300', 'tblTempUsageDetail_20' ) start [2025-04-17 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926300', 'tblTempUsageDetail_20' ) end [2025-04-17 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:04:21] Production.INFO: ==16621== Releasing lock... [2025-04-17 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:05:05 [end_date_ymd] => 2025-04-17 06:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:05:05' and `end` < '2025-04-17 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-17 06:05:18] Production.INFO: count ==44 [2025-04-17 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:05:05 - End Time 2025-04-17 06:05:05 [2025-04-17 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926305', 'tblTempUsageDetail_20' ) start [2025-04-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926305', 'tblTempUsageDetail_20' ) end [2025-04-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926305', 'tblTempVendorCDR_20' ) start [2025-04-17 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926305', 'tblTempVendorCDR_20' ) end [2025-04-17 06:05:18] Production.INFO: ProcessCDR(1,14926305,1,1,2) [2025-04-17 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926305', 'tblTempUsageDetail_20' ) start [2025-04-17 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926305', 'tblTempUsageDetail_20' ) end [2025-04-17 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:05:21] Production.INFO: ==16727== Releasing lock... [2025-04-17 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:06:05 [end_date_ymd] => 2025-04-17 06:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:06:05' and `end` < '2025-04-17 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-17 06:06:17] Production.INFO: count ==42 [2025-04-17 06:06:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:06:05 - End Time 2025-04-17 06:06:05 [2025-04-17 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926310', 'tblTempUsageDetail_20' ) start [2025-04-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926310', 'tblTempUsageDetail_20' ) end [2025-04-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926310', 'tblTempVendorCDR_20' ) start [2025-04-17 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926310', 'tblTempVendorCDR_20' ) end [2025-04-17 06:06:17] Production.INFO: ProcessCDR(1,14926310,1,1,2) [2025-04-17 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926310', 'tblTempUsageDetail_20' ) start [2025-04-17 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926310', 'tblTempUsageDetail_20' ) end [2025-04-17 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:06:21] Production.INFO: ==16832== Releasing lock... [2025-04-17 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:07:05 [end_date_ymd] => 2025-04-17 06:07:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:07:05' and `end` < '2025-04-17 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-17 06:07:18] Production.INFO: count ==41 [2025-04-17 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:07:05 - End Time 2025-04-17 06:07:05 [2025-04-17 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926315', 'tblTempUsageDetail_20' ) start [2025-04-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926315', 'tblTempUsageDetail_20' ) end [2025-04-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926315', 'tblTempVendorCDR_20' ) start [2025-04-17 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926315', 'tblTempVendorCDR_20' ) end [2025-04-17 06:07:18] Production.INFO: ProcessCDR(1,14926315,1,1,2) [2025-04-17 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926315', 'tblTempUsageDetail_20' ) start [2025-04-17 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926315', 'tblTempUsageDetail_20' ) end [2025-04-17 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:07:21] Production.INFO: ==16944== Releasing lock... [2025-04-17 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:08:05 [end_date_ymd] => 2025-04-17 06:08:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:08:05' and `end` < '2025-04-17 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-17 06:08:17] Production.INFO: count ==40 [2025-04-17 06:08:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:08:05 - End Time 2025-04-17 06:08:05 [2025-04-17 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926320', 'tblTempUsageDetail_20' ) start [2025-04-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926320', 'tblTempUsageDetail_20' ) end [2025-04-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926320', 'tblTempVendorCDR_20' ) start [2025-04-17 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926320', 'tblTempVendorCDR_20' ) end [2025-04-17 06:08:17] Production.INFO: ProcessCDR(1,14926320,1,1,2) [2025-04-17 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926320', 'tblTempUsageDetail_20' ) start [2025-04-17 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926320', 'tblTempUsageDetail_20' ) end [2025-04-17 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:08:21] Production.INFO: ==17055== Releasing lock... [2025-04-17 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:09:05 [end_date_ymd] => 2025-04-17 06:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:09:05' and `end` < '2025-04-17 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-17 06:09:18] Production.INFO: count ==40 [2025-04-17 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:09:05 - End Time 2025-04-17 06:09:05 [2025-04-17 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926325', 'tblTempUsageDetail_20' ) start [2025-04-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926325', 'tblTempUsageDetail_20' ) end [2025-04-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926325', 'tblTempVendorCDR_20' ) start [2025-04-17 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926325', 'tblTempVendorCDR_20' ) end [2025-04-17 06:09:18] Production.INFO: ProcessCDR(1,14926325,1,1,2) [2025-04-17 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926325', 'tblTempUsageDetail_20' ) start [2025-04-17 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926325', 'tblTempUsageDetail_20' ) end [2025-04-17 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:09:21] Production.INFO: ==17203== Releasing lock... [2025-04-17 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:10:06 [end_date_ymd] => 2025-04-17 06:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 03:10:06' and `end` < '2025-04-17 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-17 06:10:18] Production.INFO: count ==40 [2025-04-17 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:10:06 - End Time 2025-04-17 06:10:06 [2025-04-17 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926331', 'tblTempUsageDetail_20' ) start [2025-04-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926331', 'tblTempUsageDetail_20' ) end [2025-04-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926331', 'tblTempVendorCDR_20' ) start [2025-04-17 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926331', 'tblTempVendorCDR_20' ) end [2025-04-17 06:10:18] Production.INFO: ProcessCDR(1,14926331,1,1,2) [2025-04-17 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926331', 'tblTempUsageDetail_20' ) start [2025-04-17 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926331', 'tblTempUsageDetail_20' ) end [2025-04-17 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:10:22] Production.INFO: ==17314== Releasing lock... [2025-04-17 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:11:05 [end_date_ymd] => 2025-04-17 06:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:11:05' and `end` < '2025-04-17 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-17 06:11:17] Production.INFO: count ==40 [2025-04-17 06:11:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:11:05 - End Time 2025-04-17 06:11:05 [2025-04-17 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926336', 'tblTempUsageDetail_20' ) start [2025-04-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926336', 'tblTempUsageDetail_20' ) end [2025-04-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926336', 'tblTempVendorCDR_20' ) start [2025-04-17 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926336', 'tblTempVendorCDR_20' ) end [2025-04-17 06:11:17] Production.INFO: ProcessCDR(1,14926336,1,1,2) [2025-04-17 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926336', 'tblTempUsageDetail_20' ) start [2025-04-17 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926336', 'tblTempUsageDetail_20' ) end [2025-04-17 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:11:21] Production.INFO: ==17430== Releasing lock... [2025-04-17 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:12:06 [end_date_ymd] => 2025-04-17 06:12:06 [RateCDR] => 1 ) [2025-04-17 06: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-17 03:12:06' and `end` < '2025-04-17 06: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-17 06:12:18] Production.INFO: count ==41 [2025-04-17 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:12:06 - End Time 2025-04-17 06:12:06 [2025-04-17 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926341', 'tblTempUsageDetail_20' ) start [2025-04-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926341', 'tblTempUsageDetail_20' ) end [2025-04-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926341', 'tblTempVendorCDR_20' ) start [2025-04-17 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926341', 'tblTempVendorCDR_20' ) end [2025-04-17 06:12:18] Production.INFO: ProcessCDR(1,14926341,1,1,2) [2025-04-17 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926341', 'tblTempUsageDetail_20' ) start [2025-04-17 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926341', 'tblTempUsageDetail_20' ) end [2025-04-17 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:12:21] Production.INFO: ==17550== Releasing lock... [2025-04-17 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:13:05 [end_date_ymd] => 2025-04-17 06:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:13:05' and `end` < '2025-04-17 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-17 06:13:18] Production.INFO: count ==41 [2025-04-17 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:13:05 - End Time 2025-04-17 06:13:05 [2025-04-17 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926346', 'tblTempUsageDetail_20' ) start [2025-04-17 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926346', 'tblTempUsageDetail_20' ) end [2025-04-17 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926346', 'tblTempVendorCDR_20' ) start [2025-04-17 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926346', 'tblTempVendorCDR_20' ) end [2025-04-17 06:13:18] Production.INFO: ProcessCDR(1,14926346,1,1,2) [2025-04-17 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926346', 'tblTempUsageDetail_20' ) start [2025-04-17 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926346', 'tblTempUsageDetail_20' ) end [2025-04-17 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:13:21] Production.INFO: ==17689== Releasing lock... [2025-04-17 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:14:05 [end_date_ymd] => 2025-04-17 06:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:14:05' and `end` < '2025-04-17 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-17 06:14:17] Production.INFO: count ==41 [2025-04-17 06:14:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:14:05 - End Time 2025-04-17 06:14:05 [2025-04-17 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926351', 'tblTempUsageDetail_20' ) start [2025-04-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926351', 'tblTempUsageDetail_20' ) end [2025-04-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926351', 'tblTempVendorCDR_20' ) start [2025-04-17 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926351', 'tblTempVendorCDR_20' ) end [2025-04-17 06:14:17] Production.INFO: ProcessCDR(1,14926351,1,1,2) [2025-04-17 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926351', 'tblTempUsageDetail_20' ) start [2025-04-17 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926351', 'tblTempUsageDetail_20' ) end [2025-04-17 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:14:21] Production.INFO: ==17833== Releasing lock... [2025-04-17 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:15:05 [end_date_ymd] => 2025-04-17 06:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:15:05' and `end` < '2025-04-17 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-17 06:15:18] Production.INFO: count ==40 [2025-04-17 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:15:05 - End Time 2025-04-17 06:15:05 [2025-04-17 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926356', 'tblTempUsageDetail_20' ) start [2025-04-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926356', 'tblTempUsageDetail_20' ) end [2025-04-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926356', 'tblTempVendorCDR_20' ) start [2025-04-17 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926356', 'tblTempVendorCDR_20' ) end [2025-04-17 06:15:18] Production.INFO: ProcessCDR(1,14926356,1,1,2) [2025-04-17 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926356', 'tblTempUsageDetail_20' ) start [2025-04-17 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926356', 'tblTempUsageDetail_20' ) end [2025-04-17 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:15:21] Production.INFO: ==17942== Releasing lock... [2025-04-17 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:16:05 [end_date_ymd] => 2025-04-17 06:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:16:05' and `end` < '2025-04-17 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-17 06:16:18] Production.INFO: count ==40 [2025-04-17 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:16:05 - End Time 2025-04-17 06:16:05 [2025-04-17 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926361', 'tblTempUsageDetail_20' ) start [2025-04-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926361', 'tblTempUsageDetail_20' ) end [2025-04-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926361', 'tblTempVendorCDR_20' ) start [2025-04-17 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926361', 'tblTempVendorCDR_20' ) end [2025-04-17 06:16:18] Production.INFO: ProcessCDR(1,14926361,1,1,2) [2025-04-17 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926361', 'tblTempUsageDetail_20' ) start [2025-04-17 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926361', 'tblTempUsageDetail_20' ) end [2025-04-17 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:16:21] Production.INFO: ==18052== Releasing lock... [2025-04-17 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:17:04 [end_date_ymd] => 2025-04-17 06:17:04 [RateCDR] => 1 ) [2025-04-17 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:17:04' and `end` < '2025-04-17 06:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:17:17] Production.INFO: count ==39 [2025-04-17 06:17:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:17:04 - End Time 2025-04-17 06:17:04 [2025-04-17 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926366', 'tblTempUsageDetail_20' ) start [2025-04-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926366', 'tblTempUsageDetail_20' ) end [2025-04-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926366', 'tblTempVendorCDR_20' ) start [2025-04-17 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926366', 'tblTempVendorCDR_20' ) end [2025-04-17 06:17:17] Production.INFO: ProcessCDR(1,14926366,1,1,2) [2025-04-17 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926366', 'tblTempUsageDetail_20' ) start [2025-04-17 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926366', 'tblTempUsageDetail_20' ) end [2025-04-17 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:17:20] Production.INFO: ==18160== Releasing lock... [2025-04-17 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:17:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:18:05 [end_date_ymd] => 2025-04-17 06:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:18:05' and `end` < '2025-04-17 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-17 06:18:17] Production.INFO: count ==39 [2025-04-17 06:18:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:18:05 - End Time 2025-04-17 06:18:05 [2025-04-17 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926371', 'tblTempUsageDetail_20' ) start [2025-04-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926371', 'tblTempUsageDetail_20' ) end [2025-04-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926371', 'tblTempVendorCDR_20' ) start [2025-04-17 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926371', 'tblTempVendorCDR_20' ) end [2025-04-17 06:18:17] Production.INFO: ProcessCDR(1,14926371,1,1,2) [2025-04-17 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926371', 'tblTempUsageDetail_20' ) start [2025-04-17 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926371', 'tblTempUsageDetail_20' ) end [2025-04-17 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:18:21] Production.INFO: ==18272== Releasing lock... [2025-04-17 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:19:05 [end_date_ymd] => 2025-04-17 06:19:05 [RateCDR] => 1 ) [2025-04-17 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:19:05' and `end` < '2025-04-17 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:19:18] Production.INFO: count ==39 [2025-04-17 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:19:05 - End Time 2025-04-17 06:19:05 [2025-04-17 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926376', 'tblTempUsageDetail_20' ) start [2025-04-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926376', 'tblTempUsageDetail_20' ) end [2025-04-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926376', 'tblTempVendorCDR_20' ) start [2025-04-17 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926376', 'tblTempVendorCDR_20' ) end [2025-04-17 06:19:18] Production.INFO: ProcessCDR(1,14926376,1,1,2) [2025-04-17 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926376', 'tblTempUsageDetail_20' ) start [2025-04-17 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926376', 'tblTempUsageDetail_20' ) end [2025-04-17 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:19:21] Production.INFO: ==18378== Releasing lock... [2025-04-17 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:20:05 [end_date_ymd] => 2025-04-17 06:20:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:20:05' and `end` < '2025-04-17 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-17 06:20:18] Production.INFO: count ==31 [2025-04-17 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:20:05 - End Time 2025-04-17 06:20:05 [2025-04-17 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926382', 'tblTempUsageDetail_20' ) start [2025-04-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926382', 'tblTempUsageDetail_20' ) end [2025-04-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926382', 'tblTempVendorCDR_20' ) start [2025-04-17 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926382', 'tblTempVendorCDR_20' ) end [2025-04-17 06:20:18] Production.INFO: ProcessCDR(1,14926382,1,1,2) [2025-04-17 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926382', 'tblTempUsageDetail_20' ) start [2025-04-17 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926382', 'tblTempUsageDetail_20' ) end [2025-04-17 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:20:21] Production.INFO: ==18485== Releasing lock... [2025-04-17 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:21:05 [end_date_ymd] => 2025-04-17 06:21:05 [RateCDR] => 1 ) [2025-04-17 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:21:05' and `end` < '2025-04-17 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:21:18] Production.INFO: count ==29 [2025-04-17 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:21:05 - End Time 2025-04-17 06:21:05 [2025-04-17 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926387', 'tblTempUsageDetail_20' ) start [2025-04-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926387', 'tblTempUsageDetail_20' ) end [2025-04-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926387', 'tblTempVendorCDR_20' ) start [2025-04-17 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926387', 'tblTempVendorCDR_20' ) end [2025-04-17 06:21:18] Production.INFO: ProcessCDR(1,14926387,1,1,2) [2025-04-17 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926387', 'tblTempUsageDetail_20' ) start [2025-04-17 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926387', 'tblTempUsageDetail_20' ) end [2025-04-17 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:21:21] Production.INFO: ==18602== Releasing lock... [2025-04-17 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:22:05 [end_date_ymd] => 2025-04-17 06:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:22:05' and `end` < '2025-04-17 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-17 06:22:17] Production.INFO: count ==27 [2025-04-17 06:22:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:22:05 - End Time 2025-04-17 06:22:05 [2025-04-17 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926392', 'tblTempUsageDetail_20' ) start [2025-04-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926392', 'tblTempUsageDetail_20' ) end [2025-04-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926392', 'tblTempVendorCDR_20' ) start [2025-04-17 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926392', 'tblTempVendorCDR_20' ) end [2025-04-17 06:22:17] Production.INFO: ProcessCDR(1,14926392,1,1,2) [2025-04-17 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926392', 'tblTempUsageDetail_20' ) start [2025-04-17 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926392', 'tblTempUsageDetail_20' ) end [2025-04-17 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:22:21] Production.INFO: ==18712== Releasing lock... [2025-04-17 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:23:05 [end_date_ymd] => 2025-04-17 06:23:05 [RateCDR] => 1 ) [2025-04-17 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:23:05' and `end` < '2025-04-17 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:23:17] Production.INFO: count ==27 [2025-04-17 06:23:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:23:05 - End Time 2025-04-17 06:23:05 [2025-04-17 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926397', 'tblTempUsageDetail_20' ) start [2025-04-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926397', 'tblTempUsageDetail_20' ) end [2025-04-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926397', 'tblTempVendorCDR_20' ) start [2025-04-17 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926397', 'tblTempVendorCDR_20' ) end [2025-04-17 06:23:17] Production.INFO: ProcessCDR(1,14926397,1,1,2) [2025-04-17 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926397', 'tblTempUsageDetail_20' ) start [2025-04-17 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926397', 'tblTempUsageDetail_20' ) end [2025-04-17 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:23:20] Production.INFO: ==18825== Releasing lock... [2025-04-17 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:23:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:24:05 [end_date_ymd] => 2025-04-17 06:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:24:05' and `end` < '2025-04-17 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-17 06:24:18] Production.INFO: count ==27 [2025-04-17 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:24:05 - End Time 2025-04-17 06:24:05 [2025-04-17 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926402', 'tblTempUsageDetail_20' ) start [2025-04-17 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926402', 'tblTempUsageDetail_20' ) end [2025-04-17 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926402', 'tblTempVendorCDR_20' ) start [2025-04-17 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926402', 'tblTempVendorCDR_20' ) end [2025-04-17 06:24:18] Production.INFO: ProcessCDR(1,14926402,1,1,2) [2025-04-17 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926402', 'tblTempUsageDetail_20' ) start [2025-04-17 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926402', 'tblTempUsageDetail_20' ) end [2025-04-17 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:24:21] Production.INFO: ==18968== Releasing lock... [2025-04-17 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:25:05 [end_date_ymd] => 2025-04-17 06:25:05 [RateCDR] => 1 ) [2025-04-17 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:25:05' and `end` < '2025-04-17 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-17 06:25:18] Production.INFO: count ==27 [2025-04-17 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:25:05 - End Time 2025-04-17 06:25:05 [2025-04-17 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926407', 'tblTempUsageDetail_20' ) start [2025-04-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926407', 'tblTempUsageDetail_20' ) end [2025-04-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926407', 'tblTempVendorCDR_20' ) start [2025-04-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926407', 'tblTempVendorCDR_20' ) end [2025-04-17 06:25:18] Production.INFO: ProcessCDR(1,14926407,1,1,2) [2025-04-17 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926407', 'tblTempUsageDetail_20' ) start [2025-04-17 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926407', 'tblTempUsageDetail_20' ) end [2025-04-17 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:25:21] Production.INFO: ==19076== Releasing lock... [2025-04-17 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:26:05 [end_date_ymd] => 2025-04-17 06:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:26:05' and `end` < '2025-04-17 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-17 06:26:18] Production.INFO: count ==27 [2025-04-17 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:26:05 - End Time 2025-04-17 06:26:05 [2025-04-17 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926412', 'tblTempUsageDetail_20' ) start [2025-04-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926412', 'tblTempUsageDetail_20' ) end [2025-04-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926412', 'tblTempVendorCDR_20' ) start [2025-04-17 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926412', 'tblTempVendorCDR_20' ) end [2025-04-17 06:26:18] Production.INFO: ProcessCDR(1,14926412,1,1,2) [2025-04-17 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926412', 'tblTempUsageDetail_20' ) start [2025-04-17 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926412', 'tblTempUsageDetail_20' ) end [2025-04-17 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:26:21] Production.INFO: ==19187== Releasing lock... [2025-04-17 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:27:05 [end_date_ymd] => 2025-04-17 06:27:05 [RateCDR] => 1 ) [2025-04-17 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:27:05' and `end` < '2025-04-17 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:27:17] Production.INFO: count ==26 [2025-04-17 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:27:05 - End Time 2025-04-17 06:27:05 [2025-04-17 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926417', 'tblTempUsageDetail_20' ) start [2025-04-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926417', 'tblTempUsageDetail_20' ) end [2025-04-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926417', 'tblTempVendorCDR_20' ) start [2025-04-17 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926417', 'tblTempVendorCDR_20' ) end [2025-04-17 06:27:17] Production.INFO: ProcessCDR(1,14926417,1,1,2) [2025-04-17 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926417', 'tblTempUsageDetail_20' ) start [2025-04-17 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926417', 'tblTempUsageDetail_20' ) end [2025-04-17 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:27:21] Production.INFO: ==19297== Releasing lock... [2025-04-17 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:28:05 [end_date_ymd] => 2025-04-17 06:28:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:28:05' and `end` < '2025-04-17 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-17 06:28:18] Production.INFO: count ==26 [2025-04-17 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:28:05 - End Time 2025-04-17 06:28:05 [2025-04-17 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926422', 'tblTempUsageDetail_20' ) start [2025-04-17 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926422', 'tblTempUsageDetail_20' ) end [2025-04-17 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926422', 'tblTempVendorCDR_20' ) start [2025-04-17 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926422', 'tblTempVendorCDR_20' ) end [2025-04-17 06:28:18] Production.INFO: ProcessCDR(1,14926422,1,1,2) [2025-04-17 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926422', 'tblTempUsageDetail_20' ) start [2025-04-17 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926422', 'tblTempUsageDetail_20' ) end [2025-04-17 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:28:21] Production.INFO: ==19407== Releasing lock... [2025-04-17 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:29:05 [end_date_ymd] => 2025-04-17 06:29:05 [RateCDR] => 1 ) [2025-04-17 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:29:05' and `end` < '2025-04-17 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:29:17] Production.INFO: count ==26 [2025-04-17 06:29:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:29:05 - End Time 2025-04-17 06:29:05 [2025-04-17 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926427', 'tblTempUsageDetail_20' ) start [2025-04-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926427', 'tblTempUsageDetail_20' ) end [2025-04-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926427', 'tblTempVendorCDR_20' ) start [2025-04-17 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926427', 'tblTempVendorCDR_20' ) end [2025-04-17 06:29:17] Production.INFO: ProcessCDR(1,14926427,1,1,2) [2025-04-17 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926427', 'tblTempUsageDetail_20' ) start [2025-04-17 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926427', 'tblTempUsageDetail_20' ) end [2025-04-17 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:29:21] Production.INFO: ==19516== Releasing lock... [2025-04-17 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:30:06 [end_date_ymd] => 2025-04-17 06:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 03:30:06' and `end` < '2025-04-17 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-17 06:30:19] Production.INFO: count ==28 [2025-04-17 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 03:30:06 - End Time 2025-04-17 06:30:06 [2025-04-17 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926433', 'tblTempUsageDetail_20' ) start [2025-04-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926433', 'tblTempUsageDetail_20' ) end [2025-04-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926433', 'tblTempVendorCDR_20' ) start [2025-04-17 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926433', 'tblTempVendorCDR_20' ) end [2025-04-17 06:30:19] Production.INFO: ProcessCDR(1,14926433,1,1,2) [2025-04-17 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926433', 'tblTempUsageDetail_20' ) start [2025-04-17 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926433', 'tblTempUsageDetail_20' ) end [2025-04-17 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:30:22] Production.INFO: ==19627== Releasing lock... [2025-04-17 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:31:05 [end_date_ymd] => 2025-04-17 06:31:05 [RateCDR] => 1 ) [2025-04-17 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:31:05' and `end` < '2025-04-17 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:31:17] Production.INFO: count ==28 [2025-04-17 06:31:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:31:05 - End Time 2025-04-17 06:31:05 [2025-04-17 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926438', 'tblTempUsageDetail_20' ) start [2025-04-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926438', 'tblTempUsageDetail_20' ) end [2025-04-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926438', 'tblTempVendorCDR_20' ) start [2025-04-17 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926438', 'tblTempVendorCDR_20' ) end [2025-04-17 06:31:17] Production.INFO: ProcessCDR(1,14926438,1,1,2) [2025-04-17 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926438', 'tblTempUsageDetail_20' ) start [2025-04-17 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926438', 'tblTempUsageDetail_20' ) end [2025-04-17 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:31:21] Production.INFO: ==19745== Releasing lock... [2025-04-17 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:32:06 [end_date_ymd] => 2025-04-17 06:32:06 [RateCDR] => 1 ) [2025-04-17 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:32:06' and `end` < '2025-04-17 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:32:18] Production.INFO: count ==27 [2025-04-17 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:32:06 - End Time 2025-04-17 06:32:06 [2025-04-17 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926443', 'tblTempUsageDetail_20' ) start [2025-04-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926443', 'tblTempUsageDetail_20' ) end [2025-04-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926443', 'tblTempVendorCDR_20' ) start [2025-04-17 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926443', 'tblTempVendorCDR_20' ) end [2025-04-17 06:32:18] Production.INFO: ProcessCDR(1,14926443,1,1,2) [2025-04-17 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926443', 'tblTempUsageDetail_20' ) start [2025-04-17 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926443', 'tblTempUsageDetail_20' ) end [2025-04-17 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:32:22] Production.INFO: ==19852== Releasing lock... [2025-04-17 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:33:05 [end_date_ymd] => 2025-04-17 06:33:05 [RateCDR] => 1 ) [2025-04-17 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:33:05' and `end` < '2025-04-17 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:33:18] Production.INFO: count ==27 [2025-04-17 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:33:05 - End Time 2025-04-17 06:33:05 [2025-04-17 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926448', 'tblTempUsageDetail_20' ) start [2025-04-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926448', 'tblTempUsageDetail_20' ) end [2025-04-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926448', 'tblTempVendorCDR_20' ) start [2025-04-17 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926448', 'tblTempVendorCDR_20' ) end [2025-04-17 06:33:18] Production.INFO: ProcessCDR(1,14926448,1,1,2) [2025-04-17 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926448', 'tblTempUsageDetail_20' ) start [2025-04-17 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926448', 'tblTempUsageDetail_20' ) end [2025-04-17 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:33:21] Production.INFO: ==19959== Releasing lock... [2025-04-17 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:34:05 [end_date_ymd] => 2025-04-17 06:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:34:05' and `end` < '2025-04-17 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-17 06:34:18] Production.INFO: count ==26 [2025-04-17 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:34:05 - End Time 2025-04-17 06:34:05 [2025-04-17 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926453', 'tblTempUsageDetail_20' ) start [2025-04-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926453', 'tblTempUsageDetail_20' ) end [2025-04-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926453', 'tblTempVendorCDR_20' ) start [2025-04-17 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926453', 'tblTempVendorCDR_20' ) end [2025-04-17 06:34:18] Production.INFO: ProcessCDR(1,14926453,1,1,2) [2025-04-17 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926453', 'tblTempUsageDetail_20' ) start [2025-04-17 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926453', 'tblTempUsageDetail_20' ) end [2025-04-17 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:34:21] Production.INFO: ==20065== Releasing lock... [2025-04-17 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:34:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:35:06 [end_date_ymd] => 2025-04-17 06:35:06 [RateCDR] => 1 ) [2025-04-17 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-17 03:35:06' and `end` < '2025-04-17 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-17 06:35:18] Production.INFO: count ==26 [2025-04-17 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:35:06 - End Time 2025-04-17 06:35:06 [2025-04-17 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926458', 'tblTempUsageDetail_20' ) start [2025-04-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926458', 'tblTempUsageDetail_20' ) end [2025-04-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926458', 'tblTempVendorCDR_20' ) start [2025-04-17 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926458', 'tblTempVendorCDR_20' ) end [2025-04-17 06:35:18] Production.INFO: ProcessCDR(1,14926458,1,1,2) [2025-04-17 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926458', 'tblTempUsageDetail_20' ) start [2025-04-17 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926458', 'tblTempUsageDetail_20' ) end [2025-04-17 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:35:22] Production.INFO: ==20175== Releasing lock... [2025-04-17 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:35:22] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:36:05 [end_date_ymd] => 2025-04-17 06:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:36:05' and `end` < '2025-04-17 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-17 06:36:18] Production.INFO: count ==26 [2025-04-17 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:36:05 - End Time 2025-04-17 06:36:05 [2025-04-17 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926463', 'tblTempUsageDetail_20' ) start [2025-04-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926463', 'tblTempUsageDetail_20' ) end [2025-04-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926463', 'tblTempVendorCDR_20' ) start [2025-04-17 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926463', 'tblTempVendorCDR_20' ) end [2025-04-17 06:36:18] Production.INFO: ProcessCDR(1,14926463,1,1,2) [2025-04-17 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926463', 'tblTempUsageDetail_20' ) start [2025-04-17 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926463', 'tblTempUsageDetail_20' ) end [2025-04-17 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:36:21] Production.INFO: ==20284== Releasing lock... [2025-04-17 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:36:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:37:06 [end_date_ymd] => 2025-04-17 06:37:06 [RateCDR] => 1 ) [2025-04-17 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-17 03:37:06' and `end` < '2025-04-17 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-17 06:37:18] Production.INFO: count ==26 [2025-04-17 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:37:06 - End Time 2025-04-17 06:37:06 [2025-04-17 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926468', 'tblTempUsageDetail_20' ) start [2025-04-17 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926468', 'tblTempUsageDetail_20' ) end [2025-04-17 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926468', 'tblTempVendorCDR_20' ) start [2025-04-17 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926468', 'tblTempVendorCDR_20' ) end [2025-04-17 06:37:18] Production.INFO: ProcessCDR(1,14926468,1,1,2) [2025-04-17 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926468', 'tblTempUsageDetail_20' ) start [2025-04-17 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926468', 'tblTempUsageDetail_20' ) end [2025-04-17 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:37:22] Production.INFO: ==20387== Releasing lock... [2025-04-17 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:37:22] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:38:05 [end_date_ymd] => 2025-04-17 06:38:05 [RateCDR] => 1 ) [2025-04-17 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:38:05' and `end` < '2025-04-17 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-17 06:38:17] Production.INFO: count ==26 [2025-04-17 06:38:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:38:05 - End Time 2025-04-17 06:38:05 [2025-04-17 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926473', 'tblTempUsageDetail_20' ) start [2025-04-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926473', 'tblTempUsageDetail_20' ) end [2025-04-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926473', 'tblTempVendorCDR_20' ) start [2025-04-17 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926473', 'tblTempVendorCDR_20' ) end [2025-04-17 06:38:17] Production.INFO: ProcessCDR(1,14926473,1,1,2) [2025-04-17 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926473', 'tblTempUsageDetail_20' ) start [2025-04-17 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926473', 'tblTempUsageDetail_20' ) end [2025-04-17 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:38:21] Production.INFO: ==20492== Releasing lock... [2025-04-17 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:39:05 [end_date_ymd] => 2025-04-17 06:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:39:05' and `end` < '2025-04-17 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-17 06:39:18] Production.INFO: count ==25 [2025-04-17 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:39:05 - End Time 2025-04-17 06:39:05 [2025-04-17 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926478', 'tblTempUsageDetail_20' ) start [2025-04-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926478', 'tblTempUsageDetail_20' ) end [2025-04-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926478', 'tblTempVendorCDR_20' ) start [2025-04-17 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926478', 'tblTempVendorCDR_20' ) end [2025-04-17 06:39:18] Production.INFO: ProcessCDR(1,14926478,1,1,2) [2025-04-17 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926478', 'tblTempUsageDetail_20' ) start [2025-04-17 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926478', 'tblTempUsageDetail_20' ) end [2025-04-17 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:39:21] Production.INFO: ==20640== Releasing lock... [2025-04-17 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:40:05 [end_date_ymd] => 2025-04-17 06:40:05 [RateCDR] => 1 ) [2025-04-17 06: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-17 03:40:05' and `end` < '2025-04-17 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:40:18] Production.INFO: count ==25 [2025-04-17 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:40:05 - End Time 2025-04-17 06:40:05 [2025-04-17 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926484', 'tblTempUsageDetail_20' ) start [2025-04-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926484', 'tblTempUsageDetail_20' ) end [2025-04-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926484', 'tblTempVendorCDR_20' ) start [2025-04-17 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926484', 'tblTempVendorCDR_20' ) end [2025-04-17 06:40:18] Production.INFO: ProcessCDR(1,14926484,1,1,2) [2025-04-17 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926484', 'tblTempUsageDetail_20' ) start [2025-04-17 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926484', 'tblTempUsageDetail_20' ) end [2025-04-17 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:40:21] Production.INFO: ==20748== Releasing lock... [2025-04-17 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:41:05 [end_date_ymd] => 2025-04-17 06:41:05 [RateCDR] => 1 ) [2025-04-17 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:41:05' and `end` < '2025-04-17 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:41:18] Production.INFO: count ==25 [2025-04-17 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:41:05 - End Time 2025-04-17 06:41:05 [2025-04-17 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926489', 'tblTempUsageDetail_20' ) start [2025-04-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926489', 'tblTempUsageDetail_20' ) end [2025-04-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926489', 'tblTempVendorCDR_20' ) start [2025-04-17 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926489', 'tblTempVendorCDR_20' ) end [2025-04-17 06:41:18] Production.INFO: ProcessCDR(1,14926489,1,1,2) [2025-04-17 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926489', 'tblTempUsageDetail_20' ) start [2025-04-17 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926489', 'tblTempUsageDetail_20' ) end [2025-04-17 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:41:21] Production.INFO: ==20869== Releasing lock... [2025-04-17 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:42:05 [end_date_ymd] => 2025-04-17 06:42:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:42:05' and `end` < '2025-04-17 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-17 06:42:18] Production.INFO: count ==25 [2025-04-17 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:42:05 - End Time 2025-04-17 06:42:05 [2025-04-17 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926494', 'tblTempUsageDetail_20' ) start [2025-04-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926494', 'tblTempUsageDetail_20' ) end [2025-04-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926494', 'tblTempVendorCDR_20' ) start [2025-04-17 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926494', 'tblTempVendorCDR_20' ) end [2025-04-17 06:42:18] Production.INFO: ProcessCDR(1,14926494,1,1,2) [2025-04-17 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926494', 'tblTempUsageDetail_20' ) start [2025-04-17 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926494', 'tblTempUsageDetail_20' ) end [2025-04-17 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:42:21] Production.INFO: ==20979== Releasing lock... [2025-04-17 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-04-17 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:43:05 [end_date_ymd] => 2025-04-17 06:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:43:05' and `end` < '2025-04-17 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-17 06:43:18] Production.INFO: count ==27 [2025-04-17 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:43:05 - End Time 2025-04-17 06:43:05 [2025-04-17 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926499', 'tblTempUsageDetail_20' ) start [2025-04-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926499', 'tblTempUsageDetail_20' ) end [2025-04-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926499', 'tblTempVendorCDR_20' ) start [2025-04-17 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926499', 'tblTempVendorCDR_20' ) end [2025-04-17 06:43:18] Production.INFO: ProcessCDR(1,14926499,1,1,2) [2025-04-17 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926499', 'tblTempUsageDetail_20' ) start [2025-04-17 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926499', 'tblTempUsageDetail_20' ) end [2025-04-17 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:43:21] Production.INFO: ==21085== Releasing lock... [2025-04-17 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:44:06 [end_date_ymd] => 2025-04-17 06:44:06 [RateCDR] => 1 ) [2025-04-17 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:44:06' and `end` < '2025-04-17 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:44:18] Production.INFO: count ==27 [2025-04-17 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:44:06 - End Time 2025-04-17 06:44:06 [2025-04-17 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926504', 'tblTempUsageDetail_20' ) start [2025-04-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926504', 'tblTempUsageDetail_20' ) end [2025-04-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926504', 'tblTempVendorCDR_20' ) start [2025-04-17 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926504', 'tblTempVendorCDR_20' ) end [2025-04-17 06:44:18] Production.INFO: ProcessCDR(1,14926504,1,1,2) [2025-04-17 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926504', 'tblTempUsageDetail_20' ) start [2025-04-17 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926504', 'tblTempUsageDetail_20' ) end [2025-04-17 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:44:21] Production.INFO: ==21188== Releasing lock... [2025-04-17 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:45:05 [end_date_ymd] => 2025-04-17 06:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:45:05' and `end` < '2025-04-17 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-17 06:45:17] Production.INFO: count ==27 [2025-04-17 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:45:05 - End Time 2025-04-17 06:45:05 [2025-04-17 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926509', 'tblTempUsageDetail_20' ) start [2025-04-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926509', 'tblTempUsageDetail_20' ) end [2025-04-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926509', 'tblTempVendorCDR_20' ) start [2025-04-17 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926509', 'tblTempVendorCDR_20' ) end [2025-04-17 06:45:17] Production.INFO: ProcessCDR(1,14926509,1,1,2) [2025-04-17 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926509', 'tblTempUsageDetail_20' ) start [2025-04-17 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926509', 'tblTempUsageDetail_20' ) end [2025-04-17 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:45:21] Production.INFO: ==21302== Releasing lock... [2025-04-17 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:46:06 [end_date_ymd] => 2025-04-17 06:46:06 [RateCDR] => 1 ) [2025-04-17 06: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-17 03:46:06' and `end` < '2025-04-17 06: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-17 06:46:18] Production.INFO: count ==27 [2025-04-17 06:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:46:06 - End Time 2025-04-17 06:46:06 [2025-04-17 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926514', 'tblTempUsageDetail_20' ) start [2025-04-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926514', 'tblTempUsageDetail_20' ) end [2025-04-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926514', 'tblTempVendorCDR_20' ) start [2025-04-17 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926514', 'tblTempVendorCDR_20' ) end [2025-04-17 06:46:18] Production.INFO: ProcessCDR(1,14926514,1,1,2) [2025-04-17 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926514', 'tblTempUsageDetail_20' ) start [2025-04-17 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926514', 'tblTempUsageDetail_20' ) end [2025-04-17 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:46:21] Production.INFO: ==21411== Releasing lock... [2025-04-17 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:47:05 [end_date_ymd] => 2025-04-17 06:47:05 [RateCDR] => 1 ) [2025-04-17 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:47:05' and `end` < '2025-04-17 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:47:17] Production.INFO: count ==27 [2025-04-17 06:47:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:47:05 - End Time 2025-04-17 06:47:05 [2025-04-17 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926519', 'tblTempUsageDetail_20' ) start [2025-04-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926519', 'tblTempUsageDetail_20' ) end [2025-04-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926519', 'tblTempVendorCDR_20' ) start [2025-04-17 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926519', 'tblTempVendorCDR_20' ) end [2025-04-17 06:47:17] Production.INFO: ProcessCDR(1,14926519,1,1,2) [2025-04-17 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926519', 'tblTempUsageDetail_20' ) start [2025-04-17 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926519', 'tblTempUsageDetail_20' ) end [2025-04-17 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:47:21] Production.INFO: ==21522== Releasing lock... [2025-04-17 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:48:05 [end_date_ymd] => 2025-04-17 06:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:48:05' and `end` < '2025-04-17 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-17 06:48:17] Production.INFO: count ==30 [2025-04-17 06:48:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:48:05 - End Time 2025-04-17 06:48:05 [2025-04-17 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926524', 'tblTempUsageDetail_20' ) start [2025-04-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926524', 'tblTempUsageDetail_20' ) end [2025-04-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926524', 'tblTempVendorCDR_20' ) start [2025-04-17 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926524', 'tblTempVendorCDR_20' ) end [2025-04-17 06:48:17] Production.INFO: ProcessCDR(1,14926524,1,1,2) [2025-04-17 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926524', 'tblTempUsageDetail_20' ) start [2025-04-17 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926524', 'tblTempUsageDetail_20' ) end [2025-04-17 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:48:20] Production.INFO: ==21631== Releasing lock... [2025-04-17 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:48:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:49:05 [end_date_ymd] => 2025-04-17 06:49:05 [RateCDR] => 1 ) [2025-04-17 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:49:05' and `end` < '2025-04-17 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:49:18] Production.INFO: count ==30 [2025-04-17 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:49:05 - End Time 2025-04-17 06:49:05 [2025-04-17 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926529', 'tblTempUsageDetail_20' ) start [2025-04-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926529', 'tblTempUsageDetail_20' ) end [2025-04-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926529', 'tblTempVendorCDR_20' ) start [2025-04-17 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926529', 'tblTempVendorCDR_20' ) end [2025-04-17 06:49:18] Production.INFO: ProcessCDR(1,14926529,1,1,2) [2025-04-17 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926529', 'tblTempUsageDetail_20' ) start [2025-04-17 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926529', 'tblTempUsageDetail_20' ) end [2025-04-17 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:49:21] Production.INFO: ==21741== Releasing lock... [2025-04-17 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:50:06 [end_date_ymd] => 2025-04-17 06:50:06 [RateCDR] => 1 ) [2025-04-17 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:50:06' and `end` < '2025-04-17 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:50:18] Production.INFO: count ==30 [2025-04-17 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:50:06 - End Time 2025-04-17 06:50:06 [2025-04-17 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926534', 'tblTempUsageDetail_20' ) start [2025-04-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926534', 'tblTempUsageDetail_20' ) end [2025-04-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926534', 'tblTempVendorCDR_20' ) start [2025-04-17 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926534', 'tblTempVendorCDR_20' ) end [2025-04-17 06:50:18] Production.INFO: ProcessCDR(1,14926534,1,1,2) [2025-04-17 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926534', 'tblTempUsageDetail_20' ) start [2025-04-17 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926534', 'tblTempUsageDetail_20' ) end [2025-04-17 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:50:22] Production.INFO: ==21848== Releasing lock... [2025-04-17 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:51:04 [end_date_ymd] => 2025-04-17 06:51:04 [RateCDR] => 1 ) [2025-04-17 06:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:51:04' and `end` < '2025-04-17 06:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:51:17] Production.INFO: count ==30 [2025-04-17 06:51:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:51:04 - End Time 2025-04-17 06:51:04 [2025-04-17 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926540', 'tblTempUsageDetail_20' ) start [2025-04-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926540', 'tblTempUsageDetail_20' ) end [2025-04-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926540', 'tblTempVendorCDR_20' ) start [2025-04-17 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926540', 'tblTempVendorCDR_20' ) end [2025-04-17 06:51:17] Production.INFO: ProcessCDR(1,14926540,1,1,2) [2025-04-17 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926540', 'tblTempUsageDetail_20' ) start [2025-04-17 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926540', 'tblTempUsageDetail_20' ) end [2025-04-17 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:51:20] Production.INFO: ==21955== Releasing lock... [2025-04-17 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:51:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:52:05 [end_date_ymd] => 2025-04-17 06:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:52:05' and `end` < '2025-04-17 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-17 06:52:17] Production.INFO: count ==30 [2025-04-17 06:52:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:52:05 - End Time 2025-04-17 06:52:05 [2025-04-17 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926545', 'tblTempUsageDetail_20' ) start [2025-04-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926545', 'tblTempUsageDetail_20' ) end [2025-04-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926545', 'tblTempVendorCDR_20' ) start [2025-04-17 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926545', 'tblTempVendorCDR_20' ) end [2025-04-17 06:52:17] Production.INFO: ProcessCDR(1,14926545,1,1,2) [2025-04-17 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926545', 'tblTempUsageDetail_20' ) start [2025-04-17 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926545', 'tblTempUsageDetail_20' ) end [2025-04-17 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:52:20] Production.INFO: ==22063== Releasing lock... [2025-04-17 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:52:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:53:06 [end_date_ymd] => 2025-04-17 06:53:06 [RateCDR] => 1 ) [2025-04-17 06:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:53:06' and `end` < '2025-04-17 06:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:53:18] Production.INFO: count ==30 [2025-04-17 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:53:06 - End Time 2025-04-17 06:53:06 [2025-04-17 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926550', 'tblTempUsageDetail_20' ) start [2025-04-17 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926550', 'tblTempUsageDetail_20' ) end [2025-04-17 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926550', 'tblTempVendorCDR_20' ) start [2025-04-17 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926550', 'tblTempVendorCDR_20' ) end [2025-04-17 06:53:18] Production.INFO: ProcessCDR(1,14926550,1,1,2) [2025-04-17 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926550', 'tblTempUsageDetail_20' ) start [2025-04-17 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926550', 'tblTempUsageDetail_20' ) end [2025-04-17 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:53:22] Production.INFO: ==22175== Releasing lock... [2025-04-17 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:53:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:54:05 [end_date_ymd] => 2025-04-17 06:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:54:05' and `end` < '2025-04-17 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-17 06:54:18] Production.INFO: count ==30 [2025-04-17 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:54:05 - End Time 2025-04-17 06:54:05 [2025-04-17 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926555', 'tblTempUsageDetail_20' ) start [2025-04-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926555', 'tblTempUsageDetail_20' ) end [2025-04-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926555', 'tblTempVendorCDR_20' ) start [2025-04-17 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926555', 'tblTempVendorCDR_20' ) end [2025-04-17 06:54:18] Production.INFO: ProcessCDR(1,14926555,1,1,2) [2025-04-17 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926555', 'tblTempUsageDetail_20' ) start [2025-04-17 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926555', 'tblTempUsageDetail_20' ) end [2025-04-17 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:54:21] Production.INFO: ==22283== Releasing lock... [2025-04-17 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:55:05 [end_date_ymd] => 2025-04-17 06:55:05 [RateCDR] => 1 ) [2025-04-17 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 03:55:05' and `end` < '2025-04-17 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 06:55:18] Production.INFO: count ==30 [2025-04-17 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:55:05 - End Time 2025-04-17 06:55:05 [2025-04-17 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926560', 'tblTempUsageDetail_20' ) start [2025-04-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926560', 'tblTempUsageDetail_20' ) end [2025-04-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926560', 'tblTempVendorCDR_20' ) start [2025-04-17 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926560', 'tblTempVendorCDR_20' ) end [2025-04-17 06:55:18] Production.INFO: ProcessCDR(1,14926560,1,1,2) [2025-04-17 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926560', 'tblTempUsageDetail_20' ) start [2025-04-17 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926560', 'tblTempUsageDetail_20' ) end [2025-04-17 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:55:21] Production.INFO: ==22431== Releasing lock... [2025-04-17 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:56:05 [end_date_ymd] => 2025-04-17 06:56:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:56:05' and `end` < '2025-04-17 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-17 06:56:17] Production.INFO: count ==30 [2025-04-17 06:56:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:56:05 - End Time 2025-04-17 06:56:05 [2025-04-17 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926565', 'tblTempUsageDetail_20' ) start [2025-04-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926565', 'tblTempUsageDetail_20' ) end [2025-04-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926565', 'tblTempVendorCDR_20' ) start [2025-04-17 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926565', 'tblTempVendorCDR_20' ) end [2025-04-17 06:56:17] Production.INFO: ProcessCDR(1,14926565,1,1,2) [2025-04-17 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926565', 'tblTempUsageDetail_20' ) start [2025-04-17 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926565', 'tblTempUsageDetail_20' ) end [2025-04-17 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:56:20] Production.INFO: ==22543== Releasing lock... [2025-04-17 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:56:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:57:05 [end_date_ymd] => 2025-04-17 06:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:57:05' and `end` < '2025-04-17 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-17 06:57:18] Production.INFO: count ==30 [2025-04-17 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:57:05 - End Time 2025-04-17 06:57:05 [2025-04-17 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926570', 'tblTempUsageDetail_20' ) start [2025-04-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926570', 'tblTempUsageDetail_20' ) end [2025-04-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926570', 'tblTempVendorCDR_20' ) start [2025-04-17 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926570', 'tblTempVendorCDR_20' ) end [2025-04-17 06:57:18] Production.INFO: ProcessCDR(1,14926570,1,1,2) [2025-04-17 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926570', 'tblTempUsageDetail_20' ) start [2025-04-17 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926570', 'tblTempUsageDetail_20' ) end [2025-04-17 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:57:21] Production.INFO: ==22653== Releasing lock... [2025-04-17 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:58:05 [end_date_ymd] => 2025-04-17 06:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:58:05' and `end` < '2025-04-17 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-17 06:58:17] Production.INFO: count ==30 [2025-04-17 06:58:17] Production.ERROR: pbx CDR StartTime 2025-04-17 03:58:05 - End Time 2025-04-17 06:58:05 [2025-04-17 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926575', 'tblTempUsageDetail_20' ) start [2025-04-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926575', 'tblTempUsageDetail_20' ) end [2025-04-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926575', 'tblTempVendorCDR_20' ) start [2025-04-17 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926575', 'tblTempVendorCDR_20' ) end [2025-04-17 06:58:17] Production.INFO: ProcessCDR(1,14926575,1,1,2) [2025-04-17 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926575', 'tblTempUsageDetail_20' ) start [2025-04-17 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926575', 'tblTempUsageDetail_20' ) end [2025-04-17 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:58:20] Production.INFO: ==22761== Releasing lock... [2025-04-17 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:58:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 03:59:05 [end_date_ymd] => 2025-04-17 06:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 03:59:05' and `end` < '2025-04-17 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-17 06:59:18] Production.INFO: count ==30 [2025-04-17 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 03:59:05 - End Time 2025-04-17 06:59:05 [2025-04-17 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926580', 'tblTempUsageDetail_20' ) start [2025-04-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926580', 'tblTempUsageDetail_20' ) end [2025-04-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926580', 'tblTempVendorCDR_20' ) start [2025-04-17 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926580', 'tblTempVendorCDR_20' ) end [2025-04-17 06:59:18] Production.INFO: ProcessCDR(1,14926580,1,1,2) [2025-04-17 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926580', 'tblTempUsageDetail_20' ) start [2025-04-17 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926580', 'tblTempUsageDetail_20' ) end [2025-04-17 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 06:59:21] Production.INFO: ==22872== Releasing lock... [2025-04-17 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:00:06 [end_date_ymd] => 2025-04-17 07:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 04:00:06' and `end` < '2025-04-17 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-17 07:00:19] Production.INFO: count ==29 [2025-04-17 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:00:06 - End Time 2025-04-17 07:00:06 [2025-04-17 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926585', 'tblTempUsageDetail_20' ) start [2025-04-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926585', 'tblTempUsageDetail_20' ) end [2025-04-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926585', 'tblTempVendorCDR_20' ) start [2025-04-17 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926585', 'tblTempVendorCDR_20' ) end [2025-04-17 07:00:19] Production.INFO: ProcessCDR(1,14926585,1,1,2) [2025-04-17 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926585', 'tblTempUsageDetail_20' ) start [2025-04-17 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926585', 'tblTempUsageDetail_20' ) end [2025-04-17 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:00:22] Production.INFO: ==22988== Releasing lock... [2025-04-17 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:01:05 [end_date_ymd] => 2025-04-17 07:01:05 [RateCDR] => 1 ) [2025-04-17 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:01:05' and `end` < '2025-04-17 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:01:18] Production.INFO: count ==29 [2025-04-17 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:01:05 - End Time 2025-04-17 07:01:05 [2025-04-17 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926591', 'tblTempUsageDetail_20' ) start [2025-04-17 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926591', 'tblTempUsageDetail_20' ) end [2025-04-17 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926591', 'tblTempVendorCDR_20' ) start [2025-04-17 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926591', 'tblTempVendorCDR_20' ) end [2025-04-17 07:01:18] Production.INFO: ProcessCDR(1,14926591,1,1,2) [2025-04-17 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926591', 'tblTempUsageDetail_20' ) start [2025-04-17 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926591', 'tblTempUsageDetail_20' ) end [2025-04-17 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:01:21] Production.INFO: ==23110== Releasing lock... [2025-04-17 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:01:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:02:05 [end_date_ymd] => 2025-04-17 07:02:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:02:05' and `end` < '2025-04-17 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-17 07:02:19] Production.INFO: count ==29 [2025-04-17 07:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:02:05 - End Time 2025-04-17 07:02:05 [2025-04-17 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926596', 'tblTempUsageDetail_20' ) start [2025-04-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926596', 'tblTempUsageDetail_20' ) end [2025-04-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926596', 'tblTempVendorCDR_20' ) start [2025-04-17 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926596', 'tblTempVendorCDR_20' ) end [2025-04-17 07:02:19] Production.INFO: ProcessCDR(1,14926596,1,1,2) [2025-04-17 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926596', 'tblTempUsageDetail_20' ) start [2025-04-17 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926596', 'tblTempUsageDetail_20' ) end [2025-04-17 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:02:22] Production.INFO: ==23300== Releasing lock... [2025-04-17 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:02:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:03:05 [end_date_ymd] => 2025-04-17 07:03:05 [RateCDR] => 1 ) [2025-04-17 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:03:05' and `end` < '2025-04-17 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:03:18] Production.INFO: count ==29 [2025-04-17 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:03:05 - End Time 2025-04-17 07:03:05 [2025-04-17 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926601', 'tblTempUsageDetail_20' ) start [2025-04-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926601', 'tblTempUsageDetail_20' ) end [2025-04-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926601', 'tblTempVendorCDR_20' ) start [2025-04-17 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926601', 'tblTempVendorCDR_20' ) end [2025-04-17 07:03:18] Production.INFO: ProcessCDR(1,14926601,1,1,2) [2025-04-17 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926601', 'tblTempUsageDetail_20' ) start [2025-04-17 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926601', 'tblTempUsageDetail_20' ) end [2025-04-17 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:03:21] Production.INFO: ==23402== Releasing lock... [2025-04-17 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:03:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:04:05 [end_date_ymd] => 2025-04-17 07:04:05 [RateCDR] => 1 ) [2025-04-17 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:04:05' and `end` < '2025-04-17 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:04:18] Production.INFO: count ==29 [2025-04-17 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:04:05 - End Time 2025-04-17 07:04:05 [2025-04-17 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926606', 'tblTempUsageDetail_20' ) start [2025-04-17 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926606', 'tblTempUsageDetail_20' ) end [2025-04-17 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926606', 'tblTempVendorCDR_20' ) start [2025-04-17 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926606', 'tblTempVendorCDR_20' ) end [2025-04-17 07:04:18] Production.INFO: ProcessCDR(1,14926606,1,1,2) [2025-04-17 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926606', 'tblTempUsageDetail_20' ) start [2025-04-17 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926606', 'tblTempUsageDetail_20' ) end [2025-04-17 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:04:22] Production.INFO: ==23510== Releasing lock... [2025-04-17 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:05:05 [end_date_ymd] => 2025-04-17 07:05:05 [RateCDR] => 1 ) [2025-04-17 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:05:05' and `end` < '2025-04-17 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:05:17] Production.INFO: count ==29 [2025-04-17 07:05:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:05:05 - End Time 2025-04-17 07:05:05 [2025-04-17 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926611', 'tblTempUsageDetail_20' ) start [2025-04-17 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926611', 'tblTempUsageDetail_20' ) end [2025-04-17 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926611', 'tblTempVendorCDR_20' ) start [2025-04-17 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926611', 'tblTempVendorCDR_20' ) end [2025-04-17 07:05:17] Production.INFO: ProcessCDR(1,14926611,1,1,2) [2025-04-17 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926611', 'tblTempUsageDetail_20' ) start [2025-04-17 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926611', 'tblTempUsageDetail_20' ) end [2025-04-17 07:05:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:05:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:05:21] Production.INFO: ==23694== Releasing lock... [2025-04-17 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:05:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:06:05 [end_date_ymd] => 2025-04-17 07:06:05 [RateCDR] => 1 ) [2025-04-17 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:06:05' and `end` < '2025-04-17 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:06:19] Production.INFO: count ==29 [2025-04-17 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:06:05 - End Time 2025-04-17 07:06:05 [2025-04-17 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926616', 'tblTempUsageDetail_20' ) start [2025-04-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926616', 'tblTempUsageDetail_20' ) end [2025-04-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926616', 'tblTempVendorCDR_20' ) start [2025-04-17 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926616', 'tblTempVendorCDR_20' ) end [2025-04-17 07:06:19] Production.INFO: ProcessCDR(1,14926616,1,1,2) [2025-04-17 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926616', 'tblTempUsageDetail_20' ) start [2025-04-17 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926616', 'tblTempUsageDetail_20' ) end [2025-04-17 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:06:23] Production.INFO: ==23808== Releasing lock... [2025-04-17 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:06:23] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:07:05 [end_date_ymd] => 2025-04-17 07:07:05 [RateCDR] => 1 ) [2025-04-17 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:07:05' and `end` < '2025-04-17 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-17 07:07:18] Production.INFO: count ==29 [2025-04-17 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:07:05 - End Time 2025-04-17 07:07:05 [2025-04-17 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926621', 'tblTempUsageDetail_20' ) start [2025-04-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926621', 'tblTempUsageDetail_20' ) end [2025-04-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926621', 'tblTempVendorCDR_20' ) start [2025-04-17 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926621', 'tblTempVendorCDR_20' ) end [2025-04-17 07:07:18] Production.INFO: ProcessCDR(1,14926621,1,1,2) [2025-04-17 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926621', 'tblTempUsageDetail_20' ) start [2025-04-17 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926621', 'tblTempUsageDetail_20' ) end [2025-04-17 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:07:21] Production.INFO: ==23916== Releasing lock... [2025-04-17 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:07:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:08:05 [end_date_ymd] => 2025-04-17 07:08:05 [RateCDR] => 1 ) [2025-04-17 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:08:05' and `end` < '2025-04-17 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:08:18] Production.INFO: count ==29 [2025-04-17 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:08:05 - End Time 2025-04-17 07:08:05 [2025-04-17 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926626', 'tblTempUsageDetail_20' ) start [2025-04-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926626', 'tblTempUsageDetail_20' ) end [2025-04-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926626', 'tblTempVendorCDR_20' ) start [2025-04-17 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926626', 'tblTempVendorCDR_20' ) end [2025-04-17 07:08:18] Production.INFO: ProcessCDR(1,14926626,1,1,2) [2025-04-17 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926626', 'tblTempUsageDetail_20' ) start [2025-04-17 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926626', 'tblTempUsageDetail_20' ) end [2025-04-17 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:08:22] Production.INFO: ==24048== Releasing lock... [2025-04-17 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:08:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:09:05 [end_date_ymd] => 2025-04-17 07:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:09:05' and `end` < '2025-04-17 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-17 07:09:17] Production.INFO: count ==29 [2025-04-17 07:09:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:09:05 - End Time 2025-04-17 07:09:05 [2025-04-17 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926631', 'tblTempUsageDetail_20' ) start [2025-04-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926631', 'tblTempUsageDetail_20' ) end [2025-04-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926631', 'tblTempVendorCDR_20' ) start [2025-04-17 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926631', 'tblTempVendorCDR_20' ) end [2025-04-17 07:09:17] Production.INFO: ProcessCDR(1,14926631,1,1,2) [2025-04-17 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926631', 'tblTempUsageDetail_20' ) start [2025-04-17 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926631', 'tblTempUsageDetail_20' ) end [2025-04-17 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:09:21] Production.INFO: ==24194== Releasing lock... [2025-04-17 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:09:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:10:05 [end_date_ymd] => 2025-04-17 07:10:05 [RateCDR] => 1 ) [2025-04-17 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:10:05' and `end` < '2025-04-17 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:10:18] Production.INFO: count ==29 [2025-04-17 07:10:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:10:05 - End Time 2025-04-17 07:10:05 [2025-04-17 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926637', 'tblTempUsageDetail_20' ) start [2025-04-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926637', 'tblTempUsageDetail_20' ) end [2025-04-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926637', 'tblTempVendorCDR_20' ) start [2025-04-17 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926637', 'tblTempVendorCDR_20' ) end [2025-04-17 07:10:18] Production.INFO: ProcessCDR(1,14926637,1,1,2) [2025-04-17 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926637', 'tblTempUsageDetail_20' ) start [2025-04-17 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926637', 'tblTempUsageDetail_20' ) end [2025-04-17 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:10:21] Production.INFO: ==24343== Releasing lock... [2025-04-17 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:10:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:11:05 [end_date_ymd] => 2025-04-17 07:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:11:05' and `end` < '2025-04-17 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-17 07:11:18] Production.INFO: count ==29 [2025-04-17 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:11:05 - End Time 2025-04-17 07:11:05 [2025-04-17 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926642', 'tblTempUsageDetail_20' ) start [2025-04-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926642', 'tblTempUsageDetail_20' ) end [2025-04-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926642', 'tblTempVendorCDR_20' ) start [2025-04-17 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926642', 'tblTempVendorCDR_20' ) end [2025-04-17 07:11:18] Production.INFO: ProcessCDR(1,14926642,1,1,2) [2025-04-17 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926642', 'tblTempUsageDetail_20' ) start [2025-04-17 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926642', 'tblTempUsageDetail_20' ) end [2025-04-17 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:11:22] Production.INFO: ==24452== Releasing lock... [2025-04-17 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:11:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:12:05 [end_date_ymd] => 2025-04-17 07:12:05 [RateCDR] => 1 ) [2025-04-17 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:12:05' and `end` < '2025-04-17 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:12:18] Production.INFO: count ==29 [2025-04-17 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:12:05 - End Time 2025-04-17 07:12:05 [2025-04-17 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926647', 'tblTempUsageDetail_20' ) start [2025-04-17 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926647', 'tblTempUsageDetail_20' ) end [2025-04-17 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926647', 'tblTempVendorCDR_20' ) start [2025-04-17 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926647', 'tblTempVendorCDR_20' ) end [2025-04-17 07:12:18] Production.INFO: ProcessCDR(1,14926647,1,1,2) [2025-04-17 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926647', 'tblTempUsageDetail_20' ) start [2025-04-17 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926647', 'tblTempUsageDetail_20' ) end [2025-04-17 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:12:22] Production.INFO: ==24639== Releasing lock... [2025-04-17 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:12:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:13:05 [end_date_ymd] => 2025-04-17 07:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:13:05' and `end` < '2025-04-17 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-17 07:13:18] Production.INFO: count ==32 [2025-04-17 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:13:05 - End Time 2025-04-17 07:13:05 [2025-04-17 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926652', 'tblTempUsageDetail_20' ) start [2025-04-17 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926652', 'tblTempUsageDetail_20' ) end [2025-04-17 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926652', 'tblTempVendorCDR_20' ) start [2025-04-17 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926652', 'tblTempVendorCDR_20' ) end [2025-04-17 07:13:18] Production.INFO: ProcessCDR(1,14926652,1,1,2) [2025-04-17 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926652', 'tblTempUsageDetail_20' ) start [2025-04-17 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926652', 'tblTempUsageDetail_20' ) end [2025-04-17 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:13:22] Production.INFO: ==24753== Releasing lock... [2025-04-17 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:13:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:14:05 [end_date_ymd] => 2025-04-17 07:14:05 [RateCDR] => 1 ) [2025-04-17 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:14:05' and `end` < '2025-04-17 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:14:17] Production.INFO: count ==37 [2025-04-17 07:14:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:14:05 - End Time 2025-04-17 07:14:05 [2025-04-17 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926657', 'tblTempUsageDetail_20' ) start [2025-04-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926657', 'tblTempUsageDetail_20' ) end [2025-04-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926657', 'tblTempVendorCDR_20' ) start [2025-04-17 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926657', 'tblTempVendorCDR_20' ) end [2025-04-17 07:14:17] Production.INFO: ProcessCDR(1,14926657,1,1,2) [2025-04-17 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926657', 'tblTempUsageDetail_20' ) start [2025-04-17 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926657', 'tblTempUsageDetail_20' ) end [2025-04-17 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:14:21] Production.INFO: ==24860== Releasing lock... [2025-04-17 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:14:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:15:05 [end_date_ymd] => 2025-04-17 07:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:15:05' and `end` < '2025-04-17 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-17 07:15:18] Production.INFO: count ==37 [2025-04-17 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:15:05 - End Time 2025-04-17 07:15:05 [2025-04-17 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926662', 'tblTempUsageDetail_20' ) start [2025-04-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926662', 'tblTempUsageDetail_20' ) end [2025-04-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926662', 'tblTempVendorCDR_20' ) start [2025-04-17 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926662', 'tblTempVendorCDR_20' ) end [2025-04-17 07:15:18] Production.INFO: ProcessCDR(1,14926662,1,1,2) [2025-04-17 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926662', 'tblTempUsageDetail_20' ) start [2025-04-17 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926662', 'tblTempUsageDetail_20' ) end [2025-04-17 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:15:21] Production.INFO: ==25043== Releasing lock... [2025-04-17 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:15:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:16:05 [end_date_ymd] => 2025-04-17 07:16:05 [RateCDR] => 1 ) [2025-04-17 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:16:05' and `end` < '2025-04-17 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:16:19] Production.INFO: count ==37 [2025-04-17 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:16:05 - End Time 2025-04-17 07:16:05 [2025-04-17 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926667', 'tblTempUsageDetail_20' ) start [2025-04-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926667', 'tblTempUsageDetail_20' ) end [2025-04-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926667', 'tblTempVendorCDR_20' ) start [2025-04-17 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926667', 'tblTempVendorCDR_20' ) end [2025-04-17 07:16:19] Production.INFO: ProcessCDR(1,14926667,1,1,2) [2025-04-17 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926667', 'tblTempUsageDetail_20' ) start [2025-04-17 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926667', 'tblTempUsageDetail_20' ) end [2025-04-17 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:16:23] Production.INFO: ==25151== Releasing lock... [2025-04-17 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:16:23] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:17:05 [end_date_ymd] => 2025-04-17 07:17:05 [RateCDR] => 1 ) [2025-04-17 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:17:05' and `end` < '2025-04-17 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:17:19] Production.INFO: count ==38 [2025-04-17 07:17:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:17:05 - End Time 2025-04-17 07:17:05 [2025-04-17 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926672', 'tblTempUsageDetail_20' ) start [2025-04-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926672', 'tblTempUsageDetail_20' ) end [2025-04-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926672', 'tblTempVendorCDR_20' ) start [2025-04-17 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926672', 'tblTempVendorCDR_20' ) end [2025-04-17 07:17:19] Production.INFO: ProcessCDR(1,14926672,1,1,2) [2025-04-17 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926672', 'tblTempUsageDetail_20' ) start [2025-04-17 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926672', 'tblTempUsageDetail_20' ) end [2025-04-17 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:17:24] Production.INFO: ==25259== Releasing lock... [2025-04-17 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:17:24] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:18:06 [end_date_ymd] => 2025-04-17 07:18:06 [RateCDR] => 1 ) [2025-04-17 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-17 04:18:06' and `end` < '2025-04-17 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-17 07:18:19] Production.INFO: count ==40 [2025-04-17 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:18:06 - End Time 2025-04-17 07:18:06 [2025-04-17 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926677', 'tblTempUsageDetail_20' ) start [2025-04-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926677', 'tblTempUsageDetail_20' ) end [2025-04-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926677', 'tblTempVendorCDR_20' ) start [2025-04-17 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926677', 'tblTempVendorCDR_20' ) end [2025-04-17 07:18:19] Production.INFO: ProcessCDR(1,14926677,1,1,2) [2025-04-17 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926677', 'tblTempUsageDetail_20' ) start [2025-04-17 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926677', 'tblTempUsageDetail_20' ) end [2025-04-17 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:18:22] Production.INFO: ==25370== Releasing lock... [2025-04-17 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:19:05 [end_date_ymd] => 2025-04-17 07:19:05 [RateCDR] => 1 ) [2025-04-17 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:19:05' and `end` < '2025-04-17 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:19:17] Production.INFO: count ==40 [2025-04-17 07:19:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:19:05 - End Time 2025-04-17 07:19:05 [2025-04-17 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926682', 'tblTempUsageDetail_20' ) start [2025-04-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926682', 'tblTempUsageDetail_20' ) end [2025-04-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926682', 'tblTempVendorCDR_20' ) start [2025-04-17 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926682', 'tblTempVendorCDR_20' ) end [2025-04-17 07:19:17] Production.INFO: ProcessCDR(1,14926682,1,1,2) [2025-04-17 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926682', 'tblTempUsageDetail_20' ) start [2025-04-17 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926682', 'tblTempUsageDetail_20' ) end [2025-04-17 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:19:21] Production.INFO: ==25483== Releasing lock... [2025-04-17 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:20:06 [end_date_ymd] => 2025-04-17 07:20:06 [RateCDR] => 1 ) [2025-04-17 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:20:06' and `end` < '2025-04-17 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:20:19] Production.INFO: count ==48 [2025-04-17 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:20:06 - End Time 2025-04-17 07:20:06 [2025-04-17 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926688', 'tblTempUsageDetail_20' ) start [2025-04-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926688', 'tblTempUsageDetail_20' ) end [2025-04-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926688', 'tblTempVendorCDR_20' ) start [2025-04-17 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926688', 'tblTempVendorCDR_20' ) end [2025-04-17 07:20:19] Production.INFO: ProcessCDR(1,14926688,1,1,2) [2025-04-17 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926688', 'tblTempUsageDetail_20' ) start [2025-04-17 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926688', 'tblTempUsageDetail_20' ) end [2025-04-17 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:20:22] Production.INFO: ==25590== Releasing lock... [2025-04-17 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:21:05 [end_date_ymd] => 2025-04-17 07:21:05 [RateCDR] => 1 ) [2025-04-17 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:21:05' and `end` < '2025-04-17 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:21:18] Production.INFO: count ==48 [2025-04-17 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:21:05 - End Time 2025-04-17 07:21:05 [2025-04-17 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926693', 'tblTempUsageDetail_20' ) start [2025-04-17 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926693', 'tblTempUsageDetail_20' ) end [2025-04-17 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926693', 'tblTempVendorCDR_20' ) start [2025-04-17 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926693', 'tblTempVendorCDR_20' ) end [2025-04-17 07:21:18] Production.INFO: ProcessCDR(1,14926693,1,1,2) [2025-04-17 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926693', 'tblTempUsageDetail_20' ) start [2025-04-17 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926693', 'tblTempUsageDetail_20' ) end [2025-04-17 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:21:22] Production.INFO: ==25698== Releasing lock... [2025-04-17 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:21:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:22:06 [end_date_ymd] => 2025-04-17 07:22:06 [RateCDR] => 1 ) [2025-04-17 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-17 04:22:06' and `end` < '2025-04-17 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-17 07:22:21] Production.INFO: count ==48 [2025-04-17 07:22:21] Production.ERROR: pbx CDR StartTime 2025-04-17 04:22:06 - End Time 2025-04-17 07:22:06 [2025-04-17 07:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926698', 'tblTempUsageDetail_20' ) start [2025-04-17 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926698', 'tblTempUsageDetail_20' ) end [2025-04-17 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926698', 'tblTempVendorCDR_20' ) start [2025-04-17 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926698', 'tblTempVendorCDR_20' ) end [2025-04-17 07:22:21] Production.INFO: ProcessCDR(1,14926698,1,1,2) [2025-04-17 07:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926698', 'tblTempUsageDetail_20' ) start [2025-04-17 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926698', 'tblTempUsageDetail_20' ) end [2025-04-17 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:22:24] Production.INFO: ==25803== Releasing lock... [2025-04-17 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:22:24] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:23:05 [end_date_ymd] => 2025-04-17 07:23:05 [RateCDR] => 1 ) [2025-04-17 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:23:05' and `end` < '2025-04-17 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:23:17] Production.INFO: count ==48 [2025-04-17 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:23:05 - End Time 2025-04-17 07:23:05 [2025-04-17 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926703', 'tblTempUsageDetail_20' ) start [2025-04-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926703', 'tblTempUsageDetail_20' ) end [2025-04-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926703', 'tblTempVendorCDR_20' ) start [2025-04-17 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926703', 'tblTempVendorCDR_20' ) end [2025-04-17 07:23:18] Production.INFO: ProcessCDR(1,14926703,1,1,2) [2025-04-17 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926703', 'tblTempUsageDetail_20' ) start [2025-04-17 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926703', 'tblTempUsageDetail_20' ) end [2025-04-17 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:23:21] Production.INFO: ==25905== Releasing lock... [2025-04-17 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:24:05 [end_date_ymd] => 2025-04-17 07:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:24:05' and `end` < '2025-04-17 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-17 07:24:18] Production.INFO: count ==48 [2025-04-17 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:24:05 - End Time 2025-04-17 07:24:05 [2025-04-17 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926708', 'tblTempUsageDetail_20' ) start [2025-04-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926708', 'tblTempUsageDetail_20' ) end [2025-04-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926708', 'tblTempVendorCDR_20' ) start [2025-04-17 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926708', 'tblTempVendorCDR_20' ) end [2025-04-17 07:24:18] Production.INFO: ProcessCDR(1,14926708,1,1,2) [2025-04-17 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926708', 'tblTempUsageDetail_20' ) start [2025-04-17 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926708', 'tblTempUsageDetail_20' ) end [2025-04-17 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:24:21] Production.INFO: ==26017== Releasing lock... [2025-04-17 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:25:04 [end_date_ymd] => 2025-04-17 07:25:04 [RateCDR] => 1 ) [2025-04-17 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:25:04' and `end` < '2025-04-17 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:25:17] Production.INFO: count ==48 [2025-04-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:25:04 - End Time 2025-04-17 07:25:04 [2025-04-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926709', 'tblTempUsageDetail_20' ) start [2025-04-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926709', 'tblTempUsageDetail_20' ) end [2025-04-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926709', 'tblTempVendorCDR_20' ) start [2025-04-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926709', 'tblTempVendorCDR_20' ) end [2025-04-17 07:25:17] Production.INFO: ProcessCDR(1,14926709,1,1,2) [2025-04-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926709', 'tblTempUsageDetail_20' ) start [2025-04-17 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926709', 'tblTempUsageDetail_20' ) end [2025-04-17 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:25:20] Production.INFO: ==26129== Releasing lock... [2025-04-17 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:25:20] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:26:05 [end_date_ymd] => 2025-04-17 07:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:26:05' and `end` < '2025-04-17 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-17 07:26:17] Production.INFO: count ==49 [2025-04-17 07:26:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:26:05 - End Time 2025-04-17 07:26:05 [2025-04-17 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926718', 'tblTempUsageDetail_20' ) start [2025-04-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926718', 'tblTempUsageDetail_20' ) end [2025-04-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926718', 'tblTempVendorCDR_20' ) start [2025-04-17 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926718', 'tblTempVendorCDR_20' ) end [2025-04-17 07:26:17] Production.INFO: ProcessCDR(1,14926718,1,1,2) [2025-04-17 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926718', 'tblTempUsageDetail_20' ) start [2025-04-17 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926718', 'tblTempUsageDetail_20' ) end [2025-04-17 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:26:21] Production.INFO: ==26286== Releasing lock... [2025-04-17 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:27:05 [end_date_ymd] => 2025-04-17 07:27:05 [RateCDR] => 1 ) [2025-04-17 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:27:05' and `end` < '2025-04-17 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:27:18] Production.INFO: count ==49 [2025-04-17 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:27:05 - End Time 2025-04-17 07:27:05 [2025-04-17 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926723', 'tblTempUsageDetail_20' ) start [2025-04-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926723', 'tblTempUsageDetail_20' ) end [2025-04-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926723', 'tblTempVendorCDR_20' ) start [2025-04-17 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926723', 'tblTempVendorCDR_20' ) end [2025-04-17 07:27:18] Production.INFO: ProcessCDR(1,14926723,1,1,2) [2025-04-17 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926723', 'tblTempUsageDetail_20' ) start [2025-04-17 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926723', 'tblTempUsageDetail_20' ) end [2025-04-17 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:27:21] Production.INFO: ==26395== Releasing lock... [2025-04-17 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:28:05 [end_date_ymd] => 2025-04-17 07:28:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:28:05' and `end` < '2025-04-17 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-17 07:28:17] Production.INFO: count ==48 [2025-04-17 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:28:05 - End Time 2025-04-17 07:28:05 [2025-04-17 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926728', 'tblTempUsageDetail_20' ) start [2025-04-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926728', 'tblTempUsageDetail_20' ) end [2025-04-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926728', 'tblTempVendorCDR_20' ) start [2025-04-17 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926728', 'tblTempVendorCDR_20' ) end [2025-04-17 07:28:18] Production.INFO: ProcessCDR(1,14926728,1,1,2) [2025-04-17 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926728', 'tblTempUsageDetail_20' ) start [2025-04-17 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926728', 'tblTempUsageDetail_20' ) end [2025-04-17 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:28:21] Production.INFO: ==26499== Releasing lock... [2025-04-17 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:29:05 [end_date_ymd] => 2025-04-17 07:29:05 [RateCDR] => 1 ) [2025-04-17 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:29:05' and `end` < '2025-04-17 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:29:18] Production.INFO: count ==48 [2025-04-17 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:29:05 - End Time 2025-04-17 07:29:05 [2025-04-17 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926733', 'tblTempUsageDetail_20' ) start [2025-04-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926733', 'tblTempUsageDetail_20' ) end [2025-04-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926733', 'tblTempVendorCDR_20' ) start [2025-04-17 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926733', 'tblTempVendorCDR_20' ) end [2025-04-17 07:29:18] Production.INFO: ProcessCDR(1,14926733,1,1,2) [2025-04-17 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926733', 'tblTempUsageDetail_20' ) start [2025-04-17 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926733', 'tblTempUsageDetail_20' ) end [2025-04-17 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:29:21] Production.INFO: ==26612== Releasing lock... [2025-04-17 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:29:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:30:06 [end_date_ymd] => 2025-04-17 07:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 04:30:06' and `end` < '2025-04-17 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-17 07:30:18] Production.INFO: count ==46 [2025-04-17 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:30:06 - End Time 2025-04-17 07:30:06 [2025-04-17 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926739', 'tblTempUsageDetail_20' ) start [2025-04-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926739', 'tblTempUsageDetail_20' ) end [2025-04-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926739', 'tblTempVendorCDR_20' ) start [2025-04-17 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926739', 'tblTempVendorCDR_20' ) end [2025-04-17 07:30:18] Production.INFO: ProcessCDR(1,14926739,1,1,2) [2025-04-17 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926739', 'tblTempUsageDetail_20' ) start [2025-04-17 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926739', 'tblTempUsageDetail_20' ) end [2025-04-17 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:30:21] Production.INFO: ==26721== Releasing lock... [2025-04-17 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:30:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:31:06 [end_date_ymd] => 2025-04-17 07:31:06 [RateCDR] => 1 ) [2025-04-17 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-17 04:31:06' and `end` < '2025-04-17 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-17 07:31:18] Production.INFO: count ==48 [2025-04-17 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:31:06 - End Time 2025-04-17 07:31:06 [2025-04-17 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926744', 'tblTempUsageDetail_20' ) start [2025-04-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926744', 'tblTempUsageDetail_20' ) end [2025-04-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926744', 'tblTempVendorCDR_20' ) start [2025-04-17 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926744', 'tblTempVendorCDR_20' ) end [2025-04-17 07:31:18] Production.INFO: ProcessCDR(1,14926744,1,1,2) [2025-04-17 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926744', 'tblTempUsageDetail_20' ) start [2025-04-17 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926744', 'tblTempUsageDetail_20' ) end [2025-04-17 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:31:22] Production.INFO: ==26833== Releasing lock... [2025-04-17 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:31:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:32:05 [end_date_ymd] => 2025-04-17 07:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:32:05' and `end` < '2025-04-17 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-17 07:32:17] Production.INFO: count ==48 [2025-04-17 07:32:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:32:05 - End Time 2025-04-17 07:32:05 [2025-04-17 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926749', 'tblTempUsageDetail_20' ) start [2025-04-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926749', 'tblTempUsageDetail_20' ) end [2025-04-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926749', 'tblTempVendorCDR_20' ) start [2025-04-17 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926749', 'tblTempVendorCDR_20' ) end [2025-04-17 07:32:17] Production.INFO: ProcessCDR(1,14926749,1,1,2) [2025-04-17 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926749', 'tblTempUsageDetail_20' ) start [2025-04-17 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926749', 'tblTempUsageDetail_20' ) end [2025-04-17 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:32:21] Production.INFO: ==26941== Releasing lock... [2025-04-17 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:32:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:33:05 [end_date_ymd] => 2025-04-17 07:33:05 [RateCDR] => 1 ) [2025-04-17 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:33:05' and `end` < '2025-04-17 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:33:18] Production.INFO: count ==48 [2025-04-17 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:33:05 - End Time 2025-04-17 07:33:05 [2025-04-17 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926754', 'tblTempUsageDetail_20' ) start [2025-04-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926754', 'tblTempUsageDetail_20' ) end [2025-04-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926754', 'tblTempVendorCDR_20' ) start [2025-04-17 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926754', 'tblTempVendorCDR_20' ) end [2025-04-17 07:33:18] Production.INFO: ProcessCDR(1,14926754,1,1,2) [2025-04-17 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926754', 'tblTempUsageDetail_20' ) start [2025-04-17 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926754', 'tblTempUsageDetail_20' ) end [2025-04-17 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:33:21] Production.INFO: ==27050== Releasing lock... [2025-04-17 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:33:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:34:04 [end_date_ymd] => 2025-04-17 07:34:04 [RateCDR] => 1 ) [2025-04-17 07:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:34:04' and `end` < '2025-04-17 07:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:34:17] Production.INFO: count ==54 [2025-04-17 07:34:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:34:04 - End Time 2025-04-17 07:34:04 [2025-04-17 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926759', 'tblTempUsageDetail_20' ) start [2025-04-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926759', 'tblTempUsageDetail_20' ) end [2025-04-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926759', 'tblTempVendorCDR_20' ) start [2025-04-17 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926759', 'tblTempVendorCDR_20' ) end [2025-04-17 07:34:17] Production.INFO: ProcessCDR(1,14926759,1,1,2) [2025-04-17 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926759', 'tblTempUsageDetail_20' ) start [2025-04-17 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926759', 'tblTempUsageDetail_20' ) end [2025-04-17 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:34:22] Production.INFO: ==27160== Releasing lock... [2025-04-17 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:34:22] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:35:05 [end_date_ymd] => 2025-04-17 07:35:05 [RateCDR] => 1 ) [2025-04-17 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:35:05' and `end` < '2025-04-17 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:35:18] Production.INFO: count ==54 [2025-04-17 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:35:05 - End Time 2025-04-17 07:35:05 [2025-04-17 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926764', 'tblTempUsageDetail_20' ) start [2025-04-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926764', 'tblTempUsageDetail_20' ) end [2025-04-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926764', 'tblTempVendorCDR_20' ) start [2025-04-17 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926764', 'tblTempVendorCDR_20' ) end [2025-04-17 07:35:18] Production.INFO: ProcessCDR(1,14926764,1,1,2) [2025-04-17 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926764', 'tblTempUsageDetail_20' ) start [2025-04-17 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926764', 'tblTempUsageDetail_20' ) end [2025-04-17 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:35:21] Production.INFO: ==27272== Releasing lock... [2025-04-17 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:36:06 [end_date_ymd] => 2025-04-17 07:36:06 [RateCDR] => 1 ) [2025-04-17 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:36:06' and `end` < '2025-04-17 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:36:18] Production.INFO: count ==54 [2025-04-17 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:36:06 - End Time 2025-04-17 07:36:06 [2025-04-17 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926769', 'tblTempUsageDetail_20' ) start [2025-04-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926769', 'tblTempUsageDetail_20' ) end [2025-04-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926769', 'tblTempVendorCDR_20' ) start [2025-04-17 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926769', 'tblTempVendorCDR_20' ) end [2025-04-17 07:36:18] Production.INFO: ProcessCDR(1,14926769,1,1,2) [2025-04-17 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926769', 'tblTempUsageDetail_20' ) start [2025-04-17 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926769', 'tblTempUsageDetail_20' ) end [2025-04-17 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:36:21] Production.INFO: ==27379== Releasing lock... [2025-04-17 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-04-17 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:37:05 [end_date_ymd] => 2025-04-17 07:37:05 [RateCDR] => 1 ) [2025-04-17 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:37:05' and `end` < '2025-04-17 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:37:17] Production.INFO: count ==55 [2025-04-17 07:37:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:37:05 - End Time 2025-04-17 07:37:05 [2025-04-17 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926774', 'tblTempUsageDetail_20' ) start [2025-04-17 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926774', 'tblTempUsageDetail_20' ) end [2025-04-17 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926774', 'tblTempVendorCDR_20' ) start [2025-04-17 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926774', 'tblTempVendorCDR_20' ) end [2025-04-17 07:37:17] Production.INFO: ProcessCDR(1,14926774,1,1,2) [2025-04-17 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926774', 'tblTempUsageDetail_20' ) start [2025-04-17 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926774', 'tblTempUsageDetail_20' ) end [2025-04-17 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:37:23] Production.INFO: ==27487== Releasing lock... [2025-04-17 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:37:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:38:05 [end_date_ymd] => 2025-04-17 07:38:05 [RateCDR] => 1 ) [2025-04-17 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:38:05' and `end` < '2025-04-17 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:38:18] Production.INFO: count ==55 [2025-04-17 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:38:05 - End Time 2025-04-17 07:38:05 [2025-04-17 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926779', 'tblTempUsageDetail_20' ) start [2025-04-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926779', 'tblTempUsageDetail_20' ) end [2025-04-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926779', 'tblTempVendorCDR_20' ) start [2025-04-17 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926779', 'tblTempVendorCDR_20' ) end [2025-04-17 07:38:18] Production.INFO: ProcessCDR(1,14926779,1,1,2) [2025-04-17 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926779', 'tblTempUsageDetail_20' ) start [2025-04-17 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926779', 'tblTempUsageDetail_20' ) end [2025-04-17 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:38:21] Production.INFO: ==27602== Releasing lock... [2025-04-17 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:39:05 [end_date_ymd] => 2025-04-17 07:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:39:05' and `end` < '2025-04-17 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-17 07:39:17] Production.INFO: count ==55 [2025-04-17 07:39:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:39:05 - End Time 2025-04-17 07:39:05 [2025-04-17 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926784', 'tblTempUsageDetail_20' ) start [2025-04-17 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926784', 'tblTempUsageDetail_20' ) end [2025-04-17 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926784', 'tblTempVendorCDR_20' ) start [2025-04-17 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926784', 'tblTempVendorCDR_20' ) end [2025-04-17 07:39:17] Production.INFO: ProcessCDR(1,14926784,1,1,2) [2025-04-17 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926784', 'tblTempUsageDetail_20' ) start [2025-04-17 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926784', 'tblTempUsageDetail_20' ) end [2025-04-17 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:39:21] Production.INFO: ==27714== Releasing lock... [2025-04-17 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:40:06 [end_date_ymd] => 2025-04-17 07:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 04:40:06' and `end` < '2025-04-17 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-17 07:40:19] Production.INFO: count ==55 [2025-04-17 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:40:06 - End Time 2025-04-17 07:40:06 [2025-04-17 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926789', 'tblTempUsageDetail_20' ) start [2025-04-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926789', 'tblTempUsageDetail_20' ) end [2025-04-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926789', 'tblTempVendorCDR_20' ) start [2025-04-17 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926789', 'tblTempVendorCDR_20' ) end [2025-04-17 07:40:19] Production.INFO: ProcessCDR(1,14926789,1,1,2) [2025-04-17 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926789', 'tblTempUsageDetail_20' ) start [2025-04-17 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926789', 'tblTempUsageDetail_20' ) end [2025-04-17 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:40:22] Production.INFO: ==27822== Releasing lock... [2025-04-17 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:41:05 [end_date_ymd] => 2025-04-17 07:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:41:05' and `end` < '2025-04-17 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-17 07:41:18] Production.INFO: count ==55 [2025-04-17 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:41:05 - End Time 2025-04-17 07:41:05 [2025-04-17 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926795', 'tblTempUsageDetail_20' ) start [2025-04-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926795', 'tblTempUsageDetail_20' ) end [2025-04-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926795', 'tblTempVendorCDR_20' ) start [2025-04-17 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926795', 'tblTempVendorCDR_20' ) end [2025-04-17 07:41:18] Production.INFO: ProcessCDR(1,14926795,1,1,2) [2025-04-17 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926795', 'tblTempUsageDetail_20' ) start [2025-04-17 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926795', 'tblTempUsageDetail_20' ) end [2025-04-17 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:41:21] Production.INFO: ==27971== Releasing lock... [2025-04-17 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:42:05 [end_date_ymd] => 2025-04-17 07:42:05 [RateCDR] => 1 ) [2025-04-17 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:42:05' and `end` < '2025-04-17 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:42:18] Production.INFO: count ==55 [2025-04-17 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:42:05 - End Time 2025-04-17 07:42:05 [2025-04-17 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926800', 'tblTempUsageDetail_20' ) start [2025-04-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926800', 'tblTempUsageDetail_20' ) end [2025-04-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926800', 'tblTempVendorCDR_20' ) start [2025-04-17 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926800', 'tblTempVendorCDR_20' ) end [2025-04-17 07:42:18] Production.INFO: ProcessCDR(1,14926800,1,1,2) [2025-04-17 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926800', 'tblTempUsageDetail_20' ) start [2025-04-17 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926800', 'tblTempUsageDetail_20' ) end [2025-04-17 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:42:21] Production.INFO: ==28082== Releasing lock... [2025-04-17 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:43:06 [end_date_ymd] => 2025-04-17 07:43:06 [RateCDR] => 1 ) [2025-04-17 07: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-17 04:43:06' and `end` < '2025-04-17 07: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-17 07:43:18] Production.INFO: count ==55 [2025-04-17 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:43:06 - End Time 2025-04-17 07:43:06 [2025-04-17 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926805', 'tblTempUsageDetail_20' ) start [2025-04-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926805', 'tblTempUsageDetail_20' ) end [2025-04-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926805', 'tblTempVendorCDR_20' ) start [2025-04-17 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926805', 'tblTempVendorCDR_20' ) end [2025-04-17 07:43:18] Production.INFO: ProcessCDR(1,14926805,1,1,2) [2025-04-17 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926805', 'tblTempUsageDetail_20' ) start [2025-04-17 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926805', 'tblTempUsageDetail_20' ) end [2025-04-17 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:43:22] Production.INFO: ==28192== Releasing lock... [2025-04-17 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:44:05 [end_date_ymd] => 2025-04-17 07:44:05 [RateCDR] => 1 ) [2025-04-17 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:44:05' and `end` < '2025-04-17 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:44:18] Production.INFO: count ==56 [2025-04-17 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:44:05 - End Time 2025-04-17 07:44:05 [2025-04-17 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926810', 'tblTempUsageDetail_20' ) start [2025-04-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926810', 'tblTempUsageDetail_20' ) end [2025-04-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926810', 'tblTempVendorCDR_20' ) start [2025-04-17 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926810', 'tblTempVendorCDR_20' ) end [2025-04-17 07:44:18] Production.INFO: ProcessCDR(1,14926810,1,1,2) [2025-04-17 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926810', 'tblTempUsageDetail_20' ) start [2025-04-17 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926810', 'tblTempUsageDetail_20' ) end [2025-04-17 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:44:21] Production.INFO: ==28302== Releasing lock... [2025-04-17 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:45:05 [end_date_ymd] => 2025-04-17 07:45:05 [RateCDR] => 1 ) [2025-04-17 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:45:05' and `end` < '2025-04-17 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:45:18] Production.INFO: count ==56 [2025-04-17 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:45:05 - End Time 2025-04-17 07:45:05 [2025-04-17 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926815', 'tblTempUsageDetail_20' ) start [2025-04-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926815', 'tblTempUsageDetail_20' ) end [2025-04-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926815', 'tblTempVendorCDR_20' ) start [2025-04-17 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926815', 'tblTempVendorCDR_20' ) end [2025-04-17 07:45:18] Production.INFO: ProcessCDR(1,14926815,1,1,2) [2025-04-17 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926815', 'tblTempUsageDetail_20' ) start [2025-04-17 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926815', 'tblTempUsageDetail_20' ) end [2025-04-17 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:45:21] Production.INFO: ==28411== Releasing lock... [2025-04-17 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:46:04 [end_date_ymd] => 2025-04-17 07:46:04 [RateCDR] => 1 ) [2025-04-17 07:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:46:04' and `end` < '2025-04-17 07:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:46:17] Production.INFO: count ==56 [2025-04-17 07:46:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:46:04 - End Time 2025-04-17 07:46:04 [2025-04-17 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926820', 'tblTempUsageDetail_20' ) start [2025-04-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926820', 'tblTempUsageDetail_20' ) end [2025-04-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926820', 'tblTempVendorCDR_20' ) start [2025-04-17 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926820', 'tblTempVendorCDR_20' ) end [2025-04-17 07:46:17] Production.INFO: ProcessCDR(1,14926820,1,1,2) [2025-04-17 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926820', 'tblTempUsageDetail_20' ) start [2025-04-17 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926820', 'tblTempUsageDetail_20' ) end [2025-04-17 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:46:21] Production.INFO: ==28516== Releasing lock... [2025-04-17 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:47:05 [end_date_ymd] => 2025-04-17 07:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:47:05' and `end` < '2025-04-17 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-17 07:47:18] Production.INFO: count ==56 [2025-04-17 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:47:05 - End Time 2025-04-17 07:47:05 [2025-04-17 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926825', 'tblTempUsageDetail_20' ) start [2025-04-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926825', 'tblTempUsageDetail_20' ) end [2025-04-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926825', 'tblTempVendorCDR_20' ) start [2025-04-17 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926825', 'tblTempVendorCDR_20' ) end [2025-04-17 07:47:18] Production.INFO: ProcessCDR(1,14926825,1,1,2) [2025-04-17 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926825', 'tblTempUsageDetail_20' ) start [2025-04-17 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926825', 'tblTempUsageDetail_20' ) end [2025-04-17 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:47:21] Production.INFO: ==28626== Releasing lock... [2025-04-17 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:48:04 [end_date_ymd] => 2025-04-17 07:48:04 [RateCDR] => 1 ) [2025-04-17 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:48:04' and `end` < '2025-04-17 07:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:48:17] Production.INFO: count ==57 [2025-04-17 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:48:04 - End Time 2025-04-17 07:48:04 [2025-04-17 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926830', 'tblTempUsageDetail_20' ) start [2025-04-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926830', 'tblTempUsageDetail_20' ) end [2025-04-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926830', 'tblTempVendorCDR_20' ) start [2025-04-17 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926830', 'tblTempVendorCDR_20' ) end [2025-04-17 07:48:17] Production.INFO: ProcessCDR(1,14926830,1,1,2) [2025-04-17 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926830', 'tblTempUsageDetail_20' ) start [2025-04-17 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926830', 'tblTempUsageDetail_20' ) end [2025-04-17 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:48:20] Production.INFO: ==28741== Releasing lock... [2025-04-17 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:49:05 [end_date_ymd] => 2025-04-17 07:49:05 [RateCDR] => 1 ) [2025-04-17 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:49:05' and `end` < '2025-04-17 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:49:17] Production.INFO: count ==64 [2025-04-17 07:49:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:49:05 - End Time 2025-04-17 07:49:05 [2025-04-17 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926835', 'tblTempUsageDetail_20' ) start [2025-04-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926835', 'tblTempUsageDetail_20' ) end [2025-04-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926835', 'tblTempVendorCDR_20' ) start [2025-04-17 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926835', 'tblTempVendorCDR_20' ) end [2025-04-17 07:49:17] Production.INFO: ProcessCDR(1,14926835,1,1,2) [2025-04-17 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926835', 'tblTempUsageDetail_20' ) start [2025-04-17 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926835', 'tblTempUsageDetail_20' ) end [2025-04-17 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:49:21] Production.INFO: ==28845== Releasing lock... [2025-04-17 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:50:06 [end_date_ymd] => 2025-04-17 07:50:06 [RateCDR] => 1 ) [2025-04-17 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:50:06' and `end` < '2025-04-17 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:50:18] Production.INFO: count ==65 [2025-04-17 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:50:06 - End Time 2025-04-17 07:50:06 [2025-04-17 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926841', 'tblTempUsageDetail_20' ) start [2025-04-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926841', 'tblTempUsageDetail_20' ) end [2025-04-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926841', 'tblTempVendorCDR_20' ) start [2025-04-17 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926841', 'tblTempVendorCDR_20' ) end [2025-04-17 07:50:18] Production.INFO: ProcessCDR(1,14926841,1,1,2) [2025-04-17 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926841', 'tblTempUsageDetail_20' ) start [2025-04-17 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926841', 'tblTempUsageDetail_20' ) end [2025-04-17 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:50:22] Production.INFO: ==28961== Releasing lock... [2025-04-17 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:51:05 [end_date_ymd] => 2025-04-17 07:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:51:05' and `end` < '2025-04-17 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-17 07:51:17] Production.INFO: count ==65 [2025-04-17 07:51:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:51:05 - End Time 2025-04-17 07:51:05 [2025-04-17 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926846', 'tblTempUsageDetail_20' ) start [2025-04-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926846', 'tblTempUsageDetail_20' ) end [2025-04-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926846', 'tblTempVendorCDR_20' ) start [2025-04-17 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926846', 'tblTempVendorCDR_20' ) end [2025-04-17 07:51:17] Production.INFO: ProcessCDR(1,14926846,1,1,2) [2025-04-17 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926846', 'tblTempUsageDetail_20' ) start [2025-04-17 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926846', 'tblTempUsageDetail_20' ) end [2025-04-17 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:51:21] Production.INFO: ==29070== Releasing lock... [2025-04-17 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:52:05 [end_date_ymd] => 2025-04-17 07:52:05 [RateCDR] => 1 ) [2025-04-17 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:52:05' and `end` < '2025-04-17 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:52:18] Production.INFO: count ==65 [2025-04-17 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:52:05 - End Time 2025-04-17 07:52:05 [2025-04-17 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926851', 'tblTempUsageDetail_20' ) start [2025-04-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926851', 'tblTempUsageDetail_20' ) end [2025-04-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926851', 'tblTempVendorCDR_20' ) start [2025-04-17 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926851', 'tblTempVendorCDR_20' ) end [2025-04-17 07:52:18] Production.INFO: ProcessCDR(1,14926851,1,1,2) [2025-04-17 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926851', 'tblTempUsageDetail_20' ) start [2025-04-17 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926851', 'tblTempUsageDetail_20' ) end [2025-04-17 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:52:21] Production.INFO: ==29176== Releasing lock... [2025-04-17 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:53:05 [end_date_ymd] => 2025-04-17 07:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:53:05' and `end` < '2025-04-17 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-17 07:53:17] Production.INFO: count ==66 [2025-04-17 07:53:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:53:05 - End Time 2025-04-17 07:53:05 [2025-04-17 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926856', 'tblTempUsageDetail_20' ) start [2025-04-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926856', 'tblTempUsageDetail_20' ) end [2025-04-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926856', 'tblTempVendorCDR_20' ) start [2025-04-17 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926856', 'tblTempVendorCDR_20' ) end [2025-04-17 07:53:17] Production.INFO: ProcessCDR(1,14926856,1,1,2) [2025-04-17 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926856', 'tblTempUsageDetail_20' ) start [2025-04-17 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926856', 'tblTempUsageDetail_20' ) end [2025-04-17 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:53:22] Production.INFO: ==29289== Releasing lock... [2025-04-17 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:54:05 [end_date_ymd] => 2025-04-17 07:54:05 [RateCDR] => 1 ) [2025-04-17 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:54:05' and `end` < '2025-04-17 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:54:18] Production.INFO: count ==66 [2025-04-17 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:54:05 - End Time 2025-04-17 07:54:05 [2025-04-17 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926861', 'tblTempUsageDetail_20' ) start [2025-04-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926861', 'tblTempUsageDetail_20' ) end [2025-04-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926861', 'tblTempVendorCDR_20' ) start [2025-04-17 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926861', 'tblTempVendorCDR_20' ) end [2025-04-17 07:54:18] Production.INFO: ProcessCDR(1,14926861,1,1,2) [2025-04-17 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926861', 'tblTempUsageDetail_20' ) start [2025-04-17 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926861', 'tblTempUsageDetail_20' ) end [2025-04-17 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:54:21] Production.INFO: ==29398== Releasing lock... [2025-04-17 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:55:06 [end_date_ymd] => 2025-04-17 07:55:06 [RateCDR] => 1 ) [2025-04-17 07: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-17 04:55:06' and `end` < '2025-04-17 07: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-17 07:55:19] Production.INFO: count ==66 [2025-04-17 07:55:19] Production.ERROR: pbx CDR StartTime 2025-04-17 04:55:06 - End Time 2025-04-17 07:55:06 [2025-04-17 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926866', 'tblTempUsageDetail_20' ) start [2025-04-17 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926866', 'tblTempUsageDetail_20' ) end [2025-04-17 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926866', 'tblTempVendorCDR_20' ) start [2025-04-17 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926866', 'tblTempVendorCDR_20' ) end [2025-04-17 07:55:19] Production.INFO: ProcessCDR(1,14926866,1,1,2) [2025-04-17 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926866', 'tblTempUsageDetail_20' ) start [2025-04-17 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926866', 'tblTempUsageDetail_20' ) end [2025-04-17 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:55:22] Production.INFO: ==29503== Releasing lock... [2025-04-17 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:56:05 [end_date_ymd] => 2025-04-17 07:56:05 [RateCDR] => 1 ) [2025-04-17 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:56:05' and `end` < '2025-04-17 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:56:18] Production.INFO: count ==68 [2025-04-17 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:56:05 - End Time 2025-04-17 07:56:05 [2025-04-17 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926871', 'tblTempUsageDetail_20' ) start [2025-04-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926871', 'tblTempUsageDetail_20' ) end [2025-04-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926871', 'tblTempVendorCDR_20' ) start [2025-04-17 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926871', 'tblTempVendorCDR_20' ) end [2025-04-17 07:56:18] Production.INFO: ProcessCDR(1,14926871,1,1,2) [2025-04-17 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926871', 'tblTempUsageDetail_20' ) start [2025-04-17 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926871', 'tblTempUsageDetail_20' ) end [2025-04-17 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:56:21] Production.INFO: ==29612== Releasing lock... [2025-04-17 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:57:05 [end_date_ymd] => 2025-04-17 07:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 04:57:05' and `end` < '2025-04-17 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-17 07:57:18] Production.INFO: count ==68 [2025-04-17 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:57:05 - End Time 2025-04-17 07:57:05 [2025-04-17 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926876', 'tblTempUsageDetail_20' ) start [2025-04-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926876', 'tblTempUsageDetail_20' ) end [2025-04-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926876', 'tblTempVendorCDR_20' ) start [2025-04-17 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926876', 'tblTempVendorCDR_20' ) end [2025-04-17 07:57:18] Production.INFO: ProcessCDR(1,14926876,1,1,2) [2025-04-17 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926876', 'tblTempUsageDetail_20' ) start [2025-04-17 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926876', 'tblTempUsageDetail_20' ) end [2025-04-17 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:57:21] Production.INFO: ==29767== Releasing lock... [2025-04-17 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-17 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:58:05 [end_date_ymd] => 2025-04-17 07:58:05 [RateCDR] => 1 ) [2025-04-17 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 04:58:05' and `end` < '2025-04-17 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 07:58:17] Production.INFO: count ==74 [2025-04-17 07:58:17] Production.ERROR: pbx CDR StartTime 2025-04-17 04:58:05 - End Time 2025-04-17 07:58:05 [2025-04-17 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926881', 'tblTempUsageDetail_20' ) start [2025-04-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926881', 'tblTempUsageDetail_20' ) end [2025-04-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926881', 'tblTempVendorCDR_20' ) start [2025-04-17 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926881', 'tblTempVendorCDR_20' ) end [2025-04-17 07:58:17] Production.INFO: ProcessCDR(1,14926881,1,1,2) [2025-04-17 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926881', 'tblTempUsageDetail_20' ) start [2025-04-17 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926881', 'tblTempUsageDetail_20' ) end [2025-04-17 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:58:21] Production.INFO: ==29868== Releasing lock... [2025-04-17 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-17 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 04:59:06 [end_date_ymd] => 2025-04-17 07:59:06 [RateCDR] => 1 ) [2025-04-17 07: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-17 04:59:06' and `end` < '2025-04-17 07: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-17 07:59:18] Production.INFO: count ==78 [2025-04-17 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 04:59:06 - End Time 2025-04-17 07:59:06 [2025-04-17 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926886', 'tblTempUsageDetail_20' ) start [2025-04-17 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926886', 'tblTempUsageDetail_20' ) end [2025-04-17 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926886', 'tblTempVendorCDR_20' ) start [2025-04-17 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926886', 'tblTempVendorCDR_20' ) end [2025-04-17 07:59:18] Production.INFO: ProcessCDR(1,14926886,1,1,2) [2025-04-17 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926886', 'tblTempUsageDetail_20' ) start [2025-04-17 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926886', 'tblTempUsageDetail_20' ) end [2025-04-17 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 07:59:21] Production.INFO: ==29977== Releasing lock... [2025-04-17 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 07:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-17 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:00:06 [end_date_ymd] => 2025-04-17 08:00:06 [RateCDR] => 1 ) [2025-04-17 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:00:06' and `end` < '2025-04-17 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:00:18] Production.INFO: count ==89 [2025-04-17 08:00:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:00:06 - End Time 2025-04-17 08:00:06 [2025-04-17 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926892', 'tblTempUsageDetail_20' ) start [2025-04-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926892', 'tblTempUsageDetail_20' ) end [2025-04-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926892', 'tblTempVendorCDR_20' ) start [2025-04-17 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926892', 'tblTempVendorCDR_20' ) end [2025-04-17 08:00:18] Production.INFO: ProcessCDR(1,14926892,1,1,2) [2025-04-17 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926892', 'tblTempUsageDetail_20' ) start [2025-04-17 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926892', 'tblTempUsageDetail_20' ) end [2025-04-17 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:00:21] Production.INFO: ==30081== Releasing lock... [2025-04-17 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-17 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:01:05 [end_date_ymd] => 2025-04-17 08:01:05 [RateCDR] => 1 ) [2025-04-17 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:01:05' and `end` < '2025-04-17 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:01:18] Production.INFO: count ==90 [2025-04-17 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:01:05 - End Time 2025-04-17 08:01:05 [2025-04-17 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926897', 'tblTempUsageDetail_20' ) start [2025-04-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926897', 'tblTempUsageDetail_20' ) end [2025-04-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926897', 'tblTempVendorCDR_20' ) start [2025-04-17 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926897', 'tblTempVendorCDR_20' ) end [2025-04-17 08:01:18] Production.INFO: ProcessCDR(1,14926897,1,1,2) [2025-04-17 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926897', 'tblTempUsageDetail_20' ) start [2025-04-17 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926897', 'tblTempUsageDetail_20' ) end [2025-04-17 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:01:23] Production.INFO: ==30204== Releasing lock... [2025-04-17 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:01:23] Production.INFO: 28.5 MB #Memory Used# [2025-04-17 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:02:05 [end_date_ymd] => 2025-04-17 08:02:05 [RateCDR] => 1 ) [2025-04-17 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:02:05' and `end` < '2025-04-17 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:02:18] Production.INFO: count ==93 [2025-04-17 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:02:05 - End Time 2025-04-17 08:02:05 [2025-04-17 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926902', 'tblTempUsageDetail_20' ) start [2025-04-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926902', 'tblTempUsageDetail_20' ) end [2025-04-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926902', 'tblTempVendorCDR_20' ) start [2025-04-17 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926902', 'tblTempVendorCDR_20' ) end [2025-04-17 08:02:18] Production.INFO: ProcessCDR(1,14926902,1,1,2) [2025-04-17 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926902', 'tblTempUsageDetail_20' ) start [2025-04-17 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926902', 'tblTempUsageDetail_20' ) end [2025-04-17 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:02:23] Production.INFO: ==30315== Releasing lock... [2025-04-17 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-17 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:03:05 [end_date_ymd] => 2025-04-17 08:03:05 [RateCDR] => 1 ) [2025-04-17 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:03:05' and `end` < '2025-04-17 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:03:18] Production.INFO: count ==95 [2025-04-17 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:03:05 - End Time 2025-04-17 08:03:05 [2025-04-17 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926907', 'tblTempUsageDetail_20' ) start [2025-04-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926907', 'tblTempUsageDetail_20' ) end [2025-04-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926907', 'tblTempVendorCDR_20' ) start [2025-04-17 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926907', 'tblTempVendorCDR_20' ) end [2025-04-17 08:03:18] Production.INFO: ProcessCDR(1,14926907,1,1,2) [2025-04-17 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926907', 'tblTempUsageDetail_20' ) start [2025-04-17 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926907', 'tblTempUsageDetail_20' ) end [2025-04-17 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:03:22] Production.INFO: ==30424== Releasing lock... [2025-04-17 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-17 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:04:05 [end_date_ymd] => 2025-04-17 08:04:05 [RateCDR] => 1 ) [2025-04-17 08: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-17 05:04:05' and `end` < '2025-04-17 08: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-17 08:04:17] Production.INFO: count ==105 [2025-04-17 08:04:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:04:05 - End Time 2025-04-17 08:04:05 [2025-04-17 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926912', 'tblTempUsageDetail_20' ) start [2025-04-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926912', 'tblTempUsageDetail_20' ) end [2025-04-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926912', 'tblTempVendorCDR_20' ) start [2025-04-17 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926912', 'tblTempVendorCDR_20' ) end [2025-04-17 08:04:17] Production.INFO: ProcessCDR(1,14926912,1,1,2) [2025-04-17 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926912', 'tblTempUsageDetail_20' ) start [2025-04-17 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926912', 'tblTempUsageDetail_20' ) end [2025-04-17 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:04:21] Production.INFO: ==30530== Releasing lock... [2025-04-17 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:04:21] Production.INFO: 29 MB #Memory Used# [2025-04-17 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:05:05 [end_date_ymd] => 2025-04-17 08:05:05 [RateCDR] => 1 ) [2025-04-17 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:05:05' and `end` < '2025-04-17 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:05:17] Production.INFO: count ==112 [2025-04-17 08:05:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:05:05 - End Time 2025-04-17 08:05:05 [2025-04-17 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926917', 'tblTempUsageDetail_20' ) start [2025-04-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926917', 'tblTempUsageDetail_20' ) end [2025-04-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926917', 'tblTempVendorCDR_20' ) start [2025-04-17 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926917', 'tblTempVendorCDR_20' ) end [2025-04-17 08:05:17] Production.INFO: ProcessCDR(1,14926917,1,1,2) [2025-04-17 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926917', 'tblTempUsageDetail_20' ) start [2025-04-17 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926917', 'tblTempUsageDetail_20' ) end [2025-04-17 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:05:21] Production.INFO: ==30640== Releasing lock... [2025-04-17 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-04-17 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:06:05 [end_date_ymd] => 2025-04-17 08:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:06:05' and `end` < '2025-04-17 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-17 08:06:18] Production.INFO: count ==115 [2025-04-17 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:06:05 - End Time 2025-04-17 08:06:05 [2025-04-17 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926922', 'tblTempUsageDetail_20' ) start [2025-04-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926922', 'tblTempUsageDetail_20' ) end [2025-04-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926922', 'tblTempVendorCDR_20' ) start [2025-04-17 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926922', 'tblTempVendorCDR_20' ) end [2025-04-17 08:06:18] Production.INFO: ProcessCDR(1,14926922,1,1,2) [2025-04-17 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926922', 'tblTempUsageDetail_20' ) start [2025-04-17 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926922', 'tblTempUsageDetail_20' ) end [2025-04-17 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:06:21] Production.INFO: ==30748== Releasing lock... [2025-04-17 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:06:21] Production.INFO: 29 MB #Memory Used# [2025-04-17 08:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:07:04 [end_date_ymd] => 2025-04-17 08:07:04 [RateCDR] => 1 ) [2025-04-17 08:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:07:04' and `end` < '2025-04-17 08:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:07:17] Production.INFO: count ==116 [2025-04-17 08:07:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:07:04 - End Time 2025-04-17 08:07:04 [2025-04-17 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926927', 'tblTempUsageDetail_20' ) start [2025-04-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926927', 'tblTempUsageDetail_20' ) end [2025-04-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926927', 'tblTempVendorCDR_20' ) start [2025-04-17 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926927', 'tblTempVendorCDR_20' ) end [2025-04-17 08:07:17] Production.INFO: ProcessCDR(1,14926927,1,1,2) [2025-04-17 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926927', 'tblTempUsageDetail_20' ) start [2025-04-17 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926927', 'tblTempUsageDetail_20' ) end [2025-04-17 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:07:22] Production.INFO: ==30861== Releasing lock... [2025-04-17 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:07:22] Production.INFO: 29 MB #Memory Used# [2025-04-17 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:08:05 [end_date_ymd] => 2025-04-17 08:08:05 [RateCDR] => 1 ) [2025-04-17 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:08:05' and `end` < '2025-04-17 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:08:18] Production.INFO: count ==122 [2025-04-17 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:08:05 - End Time 2025-04-17 08:08:05 [2025-04-17 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926932', 'tblTempUsageDetail_20' ) start [2025-04-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926932', 'tblTempUsageDetail_20' ) end [2025-04-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926932', 'tblTempVendorCDR_20' ) start [2025-04-17 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926932', 'tblTempVendorCDR_20' ) end [2025-04-17 08:08:18] Production.INFO: ProcessCDR(1,14926932,1,1,2) [2025-04-17 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926932', 'tblTempUsageDetail_20' ) start [2025-04-17 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926932', 'tblTempUsageDetail_20' ) end [2025-04-17 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:08:21] Production.INFO: ==30970== Releasing lock... [2025-04-17 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-17 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:09:05 [end_date_ymd] => 2025-04-17 08:09:05 [RateCDR] => 1 ) [2025-04-17 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:09:05' and `end` < '2025-04-17 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:09:17] Production.INFO: count ==128 [2025-04-17 08:09:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:09:05 - End Time 2025-04-17 08:09:05 [2025-04-17 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926937', 'tblTempUsageDetail_20' ) start [2025-04-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926937', 'tblTempUsageDetail_20' ) end [2025-04-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926937', 'tblTempVendorCDR_20' ) start [2025-04-17 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926937', 'tblTempVendorCDR_20' ) end [2025-04-17 08:09:17] Production.INFO: ProcessCDR(1,14926937,1,1,2) [2025-04-17 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926937', 'tblTempUsageDetail_20' ) start [2025-04-17 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926937', 'tblTempUsageDetail_20' ) end [2025-04-17 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:09:22] Production.INFO: ==31077== Releasing lock... [2025-04-17 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-17 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:10:05 [end_date_ymd] => 2025-04-17 08:10:05 [RateCDR] => 1 ) [2025-04-17 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:10:05' and `end` < '2025-04-17 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:10:18] Production.INFO: count ==150 [2025-04-17 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:10:05 - End Time 2025-04-17 08:10:05 [2025-04-17 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926942', 'tblTempUsageDetail_20' ) start [2025-04-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926942', 'tblTempUsageDetail_20' ) end [2025-04-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926942', 'tblTempVendorCDR_20' ) start [2025-04-17 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926942', 'tblTempVendorCDR_20' ) end [2025-04-17 08:10:18] Production.INFO: ProcessCDR(1,14926942,1,1,2) [2025-04-17 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926942', 'tblTempUsageDetail_20' ) start [2025-04-17 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926942', 'tblTempUsageDetail_20' ) end [2025-04-17 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:10:23] Production.INFO: ==31188== Releasing lock... [2025-04-17 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-17 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:11:05 [end_date_ymd] => 2025-04-17 08:11:05 [RateCDR] => 1 ) [2025-04-17 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:11:05' and `end` < '2025-04-17 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:11:18] Production.INFO: count ==171 [2025-04-17 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:11:05 - End Time 2025-04-17 08:11:05 [2025-04-17 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926948', 'tblTempUsageDetail_20' ) start [2025-04-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926948', 'tblTempUsageDetail_20' ) end [2025-04-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926948', 'tblTempVendorCDR_20' ) start [2025-04-17 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926948', 'tblTempVendorCDR_20' ) end [2025-04-17 08:11:18] Production.INFO: ProcessCDR(1,14926948,1,1,2) [2025-04-17 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926948', 'tblTempUsageDetail_20' ) start [2025-04-17 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926948', 'tblTempUsageDetail_20' ) end [2025-04-17 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:11:21] Production.INFO: ==31297== Releasing lock... [2025-04-17 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-17 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:12:05 [end_date_ymd] => 2025-04-17 08:12:05 [RateCDR] => 1 ) [2025-04-17 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:12:05' and `end` < '2025-04-17 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:12:18] Production.INFO: count ==182 [2025-04-17 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:12:05 - End Time 2025-04-17 08:12:05 [2025-04-17 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926953', 'tblTempUsageDetail_20' ) start [2025-04-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926953', 'tblTempUsageDetail_20' ) end [2025-04-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926953', 'tblTempVendorCDR_20' ) start [2025-04-17 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926953', 'tblTempVendorCDR_20' ) end [2025-04-17 08:12:18] Production.INFO: ProcessCDR(1,14926953,1,1,2) [2025-04-17 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926953', 'tblTempUsageDetail_20' ) start [2025-04-17 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926953', 'tblTempUsageDetail_20' ) end [2025-04-17 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:12:21] Production.INFO: ==31444== Releasing lock... [2025-04-17 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-17 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:13:05 [end_date_ymd] => 2025-04-17 08:13:05 [RateCDR] => 1 ) [2025-04-17 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:13:05' and `end` < '2025-04-17 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:13:18] Production.INFO: count ==182 [2025-04-17 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:13:05 - End Time 2025-04-17 08:13:05 [2025-04-17 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926958', 'tblTempUsageDetail_20' ) start [2025-04-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926958', 'tblTempUsageDetail_20' ) end [2025-04-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926958', 'tblTempVendorCDR_20' ) start [2025-04-17 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926958', 'tblTempVendorCDR_20' ) end [2025-04-17 08:13:18] Production.INFO: ProcessCDR(1,14926958,1,1,2) [2025-04-17 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926958', 'tblTempUsageDetail_20' ) start [2025-04-17 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926958', 'tblTempUsageDetail_20' ) end [2025-04-17 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:13:21] Production.INFO: ==31548== Releasing lock... [2025-04-17 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-17 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:14:05 [end_date_ymd] => 2025-04-17 08:14:05 [RateCDR] => 1 ) [2025-04-17 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:14:05' and `end` < '2025-04-17 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:14:18] Production.INFO: count ==189 [2025-04-17 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:14:05 - End Time 2025-04-17 08:14:05 [2025-04-17 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926963', 'tblTempUsageDetail_20' ) start [2025-04-17 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926963', 'tblTempUsageDetail_20' ) end [2025-04-17 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926963', 'tblTempVendorCDR_20' ) start [2025-04-17 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926963', 'tblTempVendorCDR_20' ) end [2025-04-17 08:14:18] Production.INFO: ProcessCDR(1,14926963,1,1,2) [2025-04-17 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926963', 'tblTempUsageDetail_20' ) start [2025-04-17 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926963', 'tblTempUsageDetail_20' ) end [2025-04-17 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:14:22] Production.INFO: ==31652== Releasing lock... [2025-04-17 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:15:05 [end_date_ymd] => 2025-04-17 08:15:05 [RateCDR] => 1 ) [2025-04-17 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:15:05' and `end` < '2025-04-17 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:15:18] Production.INFO: count ==189 [2025-04-17 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:15:05 - End Time 2025-04-17 08:15:05 [2025-04-17 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926968', 'tblTempUsageDetail_20' ) start [2025-04-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926968', 'tblTempUsageDetail_20' ) end [2025-04-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926968', 'tblTempVendorCDR_20' ) start [2025-04-17 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926968', 'tblTempVendorCDR_20' ) end [2025-04-17 08:15:18] Production.INFO: ProcessCDR(1,14926968,1,1,2) [2025-04-17 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926968', 'tblTempUsageDetail_20' ) start [2025-04-17 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926968', 'tblTempUsageDetail_20' ) end [2025-04-17 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:15:21] Production.INFO: ==31760== Releasing lock... [2025-04-17 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:16:05 [end_date_ymd] => 2025-04-17 08:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:16:05' and `end` < '2025-04-17 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-17 08:16:17] Production.INFO: count ==199 [2025-04-17 08:16:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:16:05 - End Time 2025-04-17 08:16:05 [2025-04-17 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926973', 'tblTempUsageDetail_20' ) start [2025-04-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926973', 'tblTempUsageDetail_20' ) end [2025-04-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926973', 'tblTempVendorCDR_20' ) start [2025-04-17 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926973', 'tblTempVendorCDR_20' ) end [2025-04-17 08:16:17] Production.INFO: ProcessCDR(1,14926973,1,1,2) [2025-04-17 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926973', 'tblTempUsageDetail_20' ) start [2025-04-17 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926973', 'tblTempUsageDetail_20' ) end [2025-04-17 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:16:22] Production.INFO: ==31872== Releasing lock... [2025-04-17 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:16:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-17 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:17:05 [end_date_ymd] => 2025-04-17 08:17:05 [RateCDR] => 1 ) [2025-04-17 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:17:05' and `end` < '2025-04-17 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:17:17] Production.INFO: count ==197 [2025-04-17 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:17:05 - End Time 2025-04-17 08:17:05 [2025-04-17 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926978', 'tblTempUsageDetail_20' ) start [2025-04-17 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926978', 'tblTempUsageDetail_20' ) end [2025-04-17 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926978', 'tblTempVendorCDR_20' ) start [2025-04-17 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926978', 'tblTempVendorCDR_20' ) end [2025-04-17 08:17:17] Production.INFO: ProcessCDR(1,14926978,1,1,2) [2025-04-17 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926978', 'tblTempUsageDetail_20' ) start [2025-04-17 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926978', 'tblTempUsageDetail_20' ) end [2025-04-17 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:17:21] Production.INFO: ==31985== Releasing lock... [2025-04-17 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:17:21] Production.INFO: 30 MB #Memory Used# [2025-04-17 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:18:05 [end_date_ymd] => 2025-04-17 08:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:18:05' and `end` < '2025-04-17 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-17 08:18:18] Production.INFO: count ==197 [2025-04-17 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:18:05 - End Time 2025-04-17 08:18:05 [2025-04-17 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926983', 'tblTempUsageDetail_20' ) start [2025-04-17 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926983', 'tblTempUsageDetail_20' ) end [2025-04-17 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926983', 'tblTempVendorCDR_20' ) start [2025-04-17 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926983', 'tblTempVendorCDR_20' ) end [2025-04-17 08:18:18] Production.INFO: ProcessCDR(1,14926983,1,1,2) [2025-04-17 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926983', 'tblTempUsageDetail_20' ) start [2025-04-17 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926983', 'tblTempUsageDetail_20' ) end [2025-04-17 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:18:21] Production.INFO: ==32096== Releasing lock... [2025-04-17 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:18:21] Production.INFO: 30 MB #Memory Used# [2025-04-17 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:19:05 [end_date_ymd] => 2025-04-17 08:19:05 [RateCDR] => 1 ) [2025-04-17 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:19:05' and `end` < '2025-04-17 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:19:17] Production.INFO: count ==198 [2025-04-17 08:19:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:19:05 - End Time 2025-04-17 08:19:05 [2025-04-17 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926988', 'tblTempUsageDetail_20' ) start [2025-04-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926988', 'tblTempUsageDetail_20' ) end [2025-04-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926988', 'tblTempVendorCDR_20' ) start [2025-04-17 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926988', 'tblTempVendorCDR_20' ) end [2025-04-17 08:19:17] Production.INFO: ProcessCDR(1,14926988,1,1,2) [2025-04-17 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926988', 'tblTempUsageDetail_20' ) start [2025-04-17 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926988', 'tblTempUsageDetail_20' ) end [2025-04-17 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:19:22] Production.INFO: ==32199== Releasing lock... [2025-04-17 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-17 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:20:06 [end_date_ymd] => 2025-04-17 08:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 05:20:06' and `end` < '2025-04-17 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-17 08:20:19] Production.INFO: count ==215 [2025-04-17 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 05:20:06 - End Time 2025-04-17 08:20:06 [2025-04-17 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926994', 'tblTempUsageDetail_20' ) start [2025-04-17 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926994', 'tblTempUsageDetail_20' ) end [2025-04-17 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926994', 'tblTempVendorCDR_20' ) start [2025-04-17 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926994', 'tblTempVendorCDR_20' ) end [2025-04-17 08:20:19] Production.INFO: ProcessCDR(1,14926994,1,1,2) [2025-04-17 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926994', 'tblTempUsageDetail_20' ) start [2025-04-17 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926994', 'tblTempUsageDetail_20' ) end [2025-04-17 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:20:24] Production.INFO: ==32311== Releasing lock... [2025-04-17 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:20:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:21:05 [end_date_ymd] => 2025-04-17 08:21:05 [RateCDR] => 1 ) [2025-04-17 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:21:05' and `end` < '2025-04-17 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:21:18] Production.INFO: count ==228 [2025-04-17 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:21:05 - End Time 2025-04-17 08:21:05 [2025-04-17 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926999', 'tblTempUsageDetail_20' ) start [2025-04-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14926999', 'tblTempUsageDetail_20' ) end [2025-04-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926999', 'tblTempVendorCDR_20' ) start [2025-04-17 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14926999', 'tblTempVendorCDR_20' ) end [2025-04-17 08:21:18] Production.INFO: ProcessCDR(1,14926999,1,1,2) [2025-04-17 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14926999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14926999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14926999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14926999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926999', 'tblTempUsageDetail_20' ) start [2025-04-17 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14926999', 'tblTempUsageDetail_20' ) end [2025-04-17 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:21:21] Production.INFO: ==32418== Releasing lock... [2025-04-17 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:22:05 [end_date_ymd] => 2025-04-17 08:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:22:05' and `end` < '2025-04-17 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-17 08:22:18] Production.INFO: count ==232 [2025-04-17 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:22:05 - End Time 2025-04-17 08:22:05 [2025-04-17 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927004', 'tblTempUsageDetail_20' ) start [2025-04-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927004', 'tblTempUsageDetail_20' ) end [2025-04-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927004', 'tblTempVendorCDR_20' ) start [2025-04-17 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927004', 'tblTempVendorCDR_20' ) end [2025-04-17 08:22:18] Production.INFO: ProcessCDR(1,14927004,1,1,2) [2025-04-17 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927004', 'tblTempUsageDetail_20' ) start [2025-04-17 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927004', 'tblTempUsageDetail_20' ) end [2025-04-17 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:22:21] Production.INFO: ==32534== Releasing lock... [2025-04-17 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:23:05 [end_date_ymd] => 2025-04-17 08:23:05 [RateCDR] => 1 ) [2025-04-17 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:23:05' and `end` < '2025-04-17 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:23:17] Production.INFO: count ==240 [2025-04-17 08:23:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:23:05 - End Time 2025-04-17 08:23:05 [2025-04-17 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927009', 'tblTempUsageDetail_20' ) start [2025-04-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927009', 'tblTempUsageDetail_20' ) end [2025-04-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927009', 'tblTempVendorCDR_20' ) start [2025-04-17 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927009', 'tblTempVendorCDR_20' ) end [2025-04-17 08:23:17] Production.INFO: ProcessCDR(1,14927009,1,1,2) [2025-04-17 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927009', 'tblTempUsageDetail_20' ) start [2025-04-17 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927009', 'tblTempUsageDetail_20' ) end [2025-04-17 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:23:21] Production.INFO: ==32644== Releasing lock... [2025-04-17 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-17 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:24:06 [end_date_ymd] => 2025-04-17 08:24:06 [RateCDR] => 1 ) [2025-04-17 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-17 05:24:06' and `end` < '2025-04-17 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-17 08:24:18] Production.INFO: count ==242 [2025-04-17 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:24:06 - End Time 2025-04-17 08:24:06 [2025-04-17 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927014', 'tblTempUsageDetail_20' ) start [2025-04-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927014', 'tblTempUsageDetail_20' ) end [2025-04-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927014', 'tblTempVendorCDR_20' ) start [2025-04-17 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927014', 'tblTempVendorCDR_20' ) end [2025-04-17 08:24:18] Production.INFO: ProcessCDR(1,14927014,1,1,2) [2025-04-17 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927014', 'tblTempUsageDetail_20' ) start [2025-04-17 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927014', 'tblTempUsageDetail_20' ) end [2025-04-17 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:24:23] Production.INFO: ==32749== Releasing lock... [2025-04-17 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:24:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:25:04 [end_date_ymd] => 2025-04-17 08:25:04 [RateCDR] => 1 ) [2025-04-17 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:25:04' and `end` < '2025-04-17 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:25:17] Production.INFO: count ==252 [2025-04-17 08:25:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:25:04 - End Time 2025-04-17 08:25:04 [2025-04-17 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927019', 'tblTempUsageDetail_20' ) start [2025-04-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927019', 'tblTempUsageDetail_20' ) end [2025-04-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927019', 'tblTempVendorCDR_20' ) start [2025-04-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927019', 'tblTempVendorCDR_20' ) end [2025-04-17 08:25:17] Production.INFO: ProcessCDR(1,14927019,1,1,2) [2025-04-17 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927019', 'tblTempUsageDetail_20' ) start [2025-04-17 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927019', 'tblTempUsageDetail_20' ) end [2025-04-17 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:25:20] Production.INFO: ==408== Releasing lock... [2025-04-17 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:26:05 [end_date_ymd] => 2025-04-17 08:26:05 [RateCDR] => 1 ) [2025-04-17 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:26:05' and `end` < '2025-04-17 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:26:18] Production.INFO: count ==253 [2025-04-17 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:26:05 - End Time 2025-04-17 08:26:05 [2025-04-17 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927024', 'tblTempUsageDetail_20' ) start [2025-04-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927024', 'tblTempUsageDetail_20' ) end [2025-04-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927024', 'tblTempVendorCDR_20' ) start [2025-04-17 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927024', 'tblTempVendorCDR_20' ) end [2025-04-17 08:26:18] Production.INFO: ProcessCDR(1,14927024,1,1,2) [2025-04-17 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927024', 'tblTempUsageDetail_20' ) start [2025-04-17 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927024', 'tblTempUsageDetail_20' ) end [2025-04-17 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:26:23] Production.INFO: ==517== Releasing lock... [2025-04-17 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:26:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:27:05 [end_date_ymd] => 2025-04-17 08:27:05 [RateCDR] => 1 ) [2025-04-17 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:27:05' and `end` < '2025-04-17 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:27:17] Production.INFO: count ==258 [2025-04-17 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:27:05 - End Time 2025-04-17 08:27:05 [2025-04-17 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927029', 'tblTempUsageDetail_20' ) start [2025-04-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927029', 'tblTempUsageDetail_20' ) end [2025-04-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927029', 'tblTempVendorCDR_20' ) start [2025-04-17 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927029', 'tblTempVendorCDR_20' ) end [2025-04-17 08:27:18] Production.INFO: ProcessCDR(1,14927029,1,1,2) [2025-04-17 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927029', 'tblTempUsageDetail_20' ) start [2025-04-17 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927029', 'tblTempUsageDetail_20' ) end [2025-04-17 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:27:21] Production.INFO: ==696== Releasing lock... [2025-04-17 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:28:05 [end_date_ymd] => 2025-04-17 08:28:05 [RateCDR] => 1 ) [2025-04-17 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:28:05' and `end` < '2025-04-17 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:28:18] Production.INFO: count ==258 [2025-04-17 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:28:05 - End Time 2025-04-17 08:28:05 [2025-04-17 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927034', 'tblTempUsageDetail_20' ) start [2025-04-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927034', 'tblTempUsageDetail_20' ) end [2025-04-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927034', 'tblTempVendorCDR_20' ) start [2025-04-17 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927034', 'tblTempVendorCDR_20' ) end [2025-04-17 08:28:18] Production.INFO: ProcessCDR(1,14927034,1,1,2) [2025-04-17 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927034', 'tblTempUsageDetail_20' ) start [2025-04-17 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927034', 'tblTempUsageDetail_20' ) end [2025-04-17 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:28:22] Production.INFO: ==816== Releasing lock... [2025-04-17 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:28:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:29:06 [end_date_ymd] => 2025-04-17 08:29:06 [RateCDR] => 1 ) [2025-04-17 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-17 05:29:06' and `end` < '2025-04-17 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-17 08:29:18] Production.INFO: count ==258 [2025-04-17 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:29:06 - End Time 2025-04-17 08:29:06 [2025-04-17 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927039', 'tblTempUsageDetail_20' ) start [2025-04-17 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927039', 'tblTempUsageDetail_20' ) end [2025-04-17 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927039', 'tblTempVendorCDR_20' ) start [2025-04-17 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927039', 'tblTempVendorCDR_20' ) end [2025-04-17 08:29:18] Production.INFO: ProcessCDR(1,14927039,1,1,2) [2025-04-17 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927039', 'tblTempUsageDetail_20' ) start [2025-04-17 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927039', 'tblTempUsageDetail_20' ) end [2025-04-17 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:29:22] Production.INFO: ==923== Releasing lock... [2025-04-17 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:30:06 [end_date_ymd] => 2025-04-17 08:30:06 [RateCDR] => 1 ) [2025-04-17 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:30:06' and `end` < '2025-04-17 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:30:18] Production.INFO: count ==269 [2025-04-17 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:30:06 - End Time 2025-04-17 08:30:06 [2025-04-17 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927045', 'tblTempUsageDetail_20' ) start [2025-04-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927045', 'tblTempUsageDetail_20' ) end [2025-04-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927045', 'tblTempVendorCDR_20' ) start [2025-04-17 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927045', 'tblTempVendorCDR_20' ) end [2025-04-17 08:30:18] Production.INFO: ProcessCDR(1,14927045,1,1,2) [2025-04-17 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927045', 'tblTempUsageDetail_20' ) start [2025-04-17 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927045', 'tblTempUsageDetail_20' ) end [2025-04-17 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:30:22] Production.INFO: ==1031== Releasing lock... [2025-04-17 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-17 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:31:05 [end_date_ymd] => 2025-04-17 08:31:05 [RateCDR] => 1 ) [2025-04-17 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:31:05' and `end` < '2025-04-17 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:31:18] Production.INFO: count ==299 [2025-04-17 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:31:05 - End Time 2025-04-17 08:31:05 [2025-04-17 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927050', 'tblTempUsageDetail_20' ) start [2025-04-17 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927050', 'tblTempUsageDetail_20' ) end [2025-04-17 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927050', 'tblTempVendorCDR_20' ) start [2025-04-17 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927050', 'tblTempVendorCDR_20' ) end [2025-04-17 08:31:18] Production.INFO: ProcessCDR(1,14927050,1,1,2) [2025-04-17 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927050', 'tblTempUsageDetail_20' ) start [2025-04-17 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927050', 'tblTempUsageDetail_20' ) end [2025-04-17 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:31:22] Production.INFO: ==1148== Releasing lock... [2025-04-17 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:31:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:32:05 [end_date_ymd] => 2025-04-17 08:32:05 [RateCDR] => 1 ) [2025-04-17 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:32:05' and `end` < '2025-04-17 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:32:17] Production.INFO: count ==305 [2025-04-17 08:32:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:32:05 - End Time 2025-04-17 08:32:05 [2025-04-17 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927055', 'tblTempUsageDetail_20' ) start [2025-04-17 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927055', 'tblTempUsageDetail_20' ) end [2025-04-17 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927055', 'tblTempVendorCDR_20' ) start [2025-04-17 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927055', 'tblTempVendorCDR_20' ) end [2025-04-17 08:32:17] Production.INFO: ProcessCDR(1,14927055,1,1,2) [2025-04-17 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927055', 'tblTempUsageDetail_20' ) start [2025-04-17 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927055', 'tblTempUsageDetail_20' ) end [2025-04-17 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:32:22] Production.INFO: ==1272== Releasing lock... [2025-04-17 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:32:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:33:05 [end_date_ymd] => 2025-04-17 08:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:33:05' and `end` < '2025-04-17 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-17 08:33:18] Production.INFO: count ==320 [2025-04-17 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:33:05 - End Time 2025-04-17 08:33:05 [2025-04-17 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927060', 'tblTempUsageDetail_20' ) start [2025-04-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927060', 'tblTempUsageDetail_20' ) end [2025-04-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927060', 'tblTempVendorCDR_20' ) start [2025-04-17 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927060', 'tblTempVendorCDR_20' ) end [2025-04-17 08:33:18] Production.INFO: ProcessCDR(1,14927060,1,1,2) [2025-04-17 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927060', 'tblTempUsageDetail_20' ) start [2025-04-17 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927060', 'tblTempUsageDetail_20' ) end [2025-04-17 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:33:22] Production.INFO: ==1348== Releasing lock... [2025-04-17 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:34:05 [end_date_ymd] => 2025-04-17 08:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:34:05' and `end` < '2025-04-17 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-17 08:34:18] Production.INFO: count ==325 [2025-04-17 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:34:05 - End Time 2025-04-17 08:34:05 [2025-04-17 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927065', 'tblTempUsageDetail_20' ) start [2025-04-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927065', 'tblTempUsageDetail_20' ) end [2025-04-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927065', 'tblTempVendorCDR_20' ) start [2025-04-17 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927065', 'tblTempVendorCDR_20' ) end [2025-04-17 08:34:18] Production.INFO: ProcessCDR(1,14927065,1,1,2) [2025-04-17 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927065', 'tblTempUsageDetail_20' ) start [2025-04-17 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927065', 'tblTempUsageDetail_20' ) end [2025-04-17 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:34:23] Production.INFO: ==1426== Releasing lock... [2025-04-17 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:34:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:35:05 [end_date_ymd] => 2025-04-17 08:35:05 [RateCDR] => 1 ) [2025-04-17 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:35:05' and `end` < '2025-04-17 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:35:18] Production.INFO: count ==327 [2025-04-17 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:35:05 - End Time 2025-04-17 08:35:05 [2025-04-17 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927070', 'tblTempUsageDetail_20' ) start [2025-04-17 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927070', 'tblTempUsageDetail_20' ) end [2025-04-17 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927070', 'tblTempVendorCDR_20' ) start [2025-04-17 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927070', 'tblTempVendorCDR_20' ) end [2025-04-17 08:35:18] Production.INFO: ProcessCDR(1,14927070,1,1,2) [2025-04-17 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927070', 'tblTempUsageDetail_20' ) start [2025-04-17 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927070', 'tblTempUsageDetail_20' ) end [2025-04-17 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:35:23] Production.INFO: ==1497== Releasing lock... [2025-04-17 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:35:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-17 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:36:06 [end_date_ymd] => 2025-04-17 08:36:06 [RateCDR] => 1 ) [2025-04-17 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-17 05:36:06' and `end` < '2025-04-17 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-17 08:36:18] Production.INFO: count ==331 [2025-04-17 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:36:06 - End Time 2025-04-17 08:36:06 [2025-04-17 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927075', 'tblTempUsageDetail_20' ) start [2025-04-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927075', 'tblTempUsageDetail_20' ) end [2025-04-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927075', 'tblTempVendorCDR_20' ) start [2025-04-17 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927075', 'tblTempVendorCDR_20' ) end [2025-04-17 08:36:18] Production.INFO: ProcessCDR(1,14927075,1,1,2) [2025-04-17 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927075', 'tblTempUsageDetail_20' ) start [2025-04-17 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927075', 'tblTempUsageDetail_20' ) end [2025-04-17 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:36:23] Production.INFO: ==1610== Releasing lock... [2025-04-17 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:36:23] Production.INFO: 31 MB #Memory Used# [2025-04-17 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:37:05 [end_date_ymd] => 2025-04-17 08:37:05 [RateCDR] => 1 ) [2025-04-17 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:37:05' and `end` < '2025-04-17 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:37:18] Production.INFO: count ==333 [2025-04-17 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:37:05 - End Time 2025-04-17 08:37:05 [2025-04-17 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927080', 'tblTempUsageDetail_20' ) start [2025-04-17 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927080', 'tblTempUsageDetail_20' ) end [2025-04-17 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927080', 'tblTempVendorCDR_20' ) start [2025-04-17 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927080', 'tblTempVendorCDR_20' ) end [2025-04-17 08:37:18] Production.INFO: ProcessCDR(1,14927080,1,1,2) [2025-04-17 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927080', 'tblTempUsageDetail_20' ) start [2025-04-17 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927080', 'tblTempUsageDetail_20' ) end [2025-04-17 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:37:23] Production.INFO: ==1681== Releasing lock... [2025-04-17 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:37:23] Production.INFO: 31 MB #Memory Used# [2025-04-17 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:38:06 [end_date_ymd] => 2025-04-17 08:38:06 [RateCDR] => 1 ) [2025-04-17 08: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-17 05:38:06' and `end` < '2025-04-17 08: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-17 08:38:18] Production.INFO: count ==344 [2025-04-17 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:38:06 - End Time 2025-04-17 08:38:06 [2025-04-17 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927085', 'tblTempUsageDetail_20' ) start [2025-04-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927085', 'tblTempUsageDetail_20' ) end [2025-04-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927085', 'tblTempVendorCDR_20' ) start [2025-04-17 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927085', 'tblTempVendorCDR_20' ) end [2025-04-17 08:38:18] Production.INFO: ProcessCDR(1,14927085,1,1,2) [2025-04-17 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927085', 'tblTempUsageDetail_20' ) start [2025-04-17 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927085', 'tblTempUsageDetail_20' ) end [2025-04-17 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:38:23] Production.INFO: ==1750== Releasing lock... [2025-04-17 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-17 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:39:05 [end_date_ymd] => 2025-04-17 08:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:39:05' and `end` < '2025-04-17 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-17 08:39:17] Production.INFO: count ==356 [2025-04-17 08:39:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:39:05 - End Time 2025-04-17 08:39:05 [2025-04-17 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927090', 'tblTempUsageDetail_20' ) start [2025-04-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927090', 'tblTempUsageDetail_20' ) end [2025-04-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927090', 'tblTempVendorCDR_20' ) start [2025-04-17 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927090', 'tblTempVendorCDR_20' ) end [2025-04-17 08:39:17] Production.INFO: ProcessCDR(1,14927090,1,1,2) [2025-04-17 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927090', 'tblTempUsageDetail_20' ) start [2025-04-17 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927090', 'tblTempUsageDetail_20' ) end [2025-04-17 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:39:22] Production.INFO: ==1822== Releasing lock... [2025-04-17 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-17 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:40:06 [end_date_ymd] => 2025-04-17 08:40:06 [RateCDR] => 1 ) [2025-04-17 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:40:06' and `end` < '2025-04-17 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:40:19] Production.INFO: count ==367 [2025-04-17 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 05:40:06 - End Time 2025-04-17 08:40:06 [2025-04-17 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927096', 'tblTempUsageDetail_20' ) start [2025-04-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927096', 'tblTempUsageDetail_20' ) end [2025-04-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927096', 'tblTempVendorCDR_20' ) start [2025-04-17 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927096', 'tblTempVendorCDR_20' ) end [2025-04-17 08:40:19] Production.INFO: ProcessCDR(1,14927096,1,1,2) [2025-04-17 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927096', 'tblTempUsageDetail_20' ) start [2025-04-17 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927096', 'tblTempUsageDetail_20' ) end [2025-04-17 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:40:22] Production.INFO: ==1900== Releasing lock... [2025-04-17 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:40:22] Production.INFO: 31 MB #Memory Used# [2025-04-17 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:41:04 [end_date_ymd] => 2025-04-17 08:41:04 [RateCDR] => 1 ) [2025-04-17 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:41:04' and `end` < '2025-04-17 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:41:17] Production.INFO: count ==413 [2025-04-17 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:41:04 - End Time 2025-04-17 08:41:04 [2025-04-17 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927101', 'tblTempUsageDetail_20' ) start [2025-04-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927101', 'tblTempUsageDetail_20' ) end [2025-04-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927101', 'tblTempVendorCDR_20' ) start [2025-04-17 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927101', 'tblTempVendorCDR_20' ) end [2025-04-17 08:41:17] Production.INFO: ProcessCDR(1,14927101,1,1,2) [2025-04-17 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927101', 'tblTempUsageDetail_20' ) start [2025-04-17 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927101', 'tblTempUsageDetail_20' ) end [2025-04-17 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:41:22] Production.INFO: ==1977== Releasing lock... [2025-04-17 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:41:22] Production.INFO: 32 MB #Memory Used# [2025-04-17 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:42:05 [end_date_ymd] => 2025-04-17 08:42:05 [RateCDR] => 1 ) [2025-04-17 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:42:05' and `end` < '2025-04-17 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:42:18] Production.INFO: count ==414 [2025-04-17 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:42:05 - End Time 2025-04-17 08:42:05 [2025-04-17 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927106', 'tblTempUsageDetail_20' ) start [2025-04-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927106', 'tblTempUsageDetail_20' ) end [2025-04-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927106', 'tblTempVendorCDR_20' ) start [2025-04-17 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927106', 'tblTempVendorCDR_20' ) end [2025-04-17 08:42:18] Production.INFO: ProcessCDR(1,14927106,1,1,2) [2025-04-17 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927106', 'tblTempUsageDetail_20' ) start [2025-04-17 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927106', 'tblTempUsageDetail_20' ) end [2025-04-17 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:42:23] Production.INFO: ==2050== Releasing lock... [2025-04-17 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:42:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-17 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:43:04 [end_date_ymd] => 2025-04-17 08:43:04 [RateCDR] => 1 ) [2025-04-17 08:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:43:04' and `end` < '2025-04-17 08:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:43:17] Production.INFO: count ==428 [2025-04-17 08:43:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:43:04 - End Time 2025-04-17 08:43:04 [2025-04-17 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927111', 'tblTempUsageDetail_20' ) start [2025-04-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927111', 'tblTempUsageDetail_20' ) end [2025-04-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927111', 'tblTempVendorCDR_20' ) start [2025-04-17 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927111', 'tblTempVendorCDR_20' ) end [2025-04-17 08:43:17] Production.INFO: ProcessCDR(1,14927111,1,1,2) [2025-04-17 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927111', 'tblTempUsageDetail_20' ) start [2025-04-17 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927111', 'tblTempUsageDetail_20' ) end [2025-04-17 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:43:22] Production.INFO: ==2160== Releasing lock... [2025-04-17 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-17 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:44:05 [end_date_ymd] => 2025-04-17 08:44:05 [RateCDR] => 1 ) [2025-04-17 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:44:05' and `end` < '2025-04-17 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:44:18] Production.INFO: count ==446 [2025-04-17 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:44:05 - End Time 2025-04-17 08:44:05 [2025-04-17 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927116', 'tblTempUsageDetail_20' ) start [2025-04-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927116', 'tblTempUsageDetail_20' ) end [2025-04-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927116', 'tblTempVendorCDR_20' ) start [2025-04-17 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927116', 'tblTempVendorCDR_20' ) end [2025-04-17 08:44:18] Production.INFO: ProcessCDR(1,14927116,1,1,2) [2025-04-17 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927116', 'tblTempUsageDetail_20' ) start [2025-04-17 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927116', 'tblTempUsageDetail_20' ) end [2025-04-17 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:44:23] Production.INFO: ==2238== Releasing lock... [2025-04-17 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:44:23] Production.INFO: 32 MB #Memory Used# [2025-04-17 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:45:05 [end_date_ymd] => 2025-04-17 08:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:45:05' and `end` < '2025-04-17 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-17 08:45:18] Production.INFO: count ==450 [2025-04-17 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:45:05 - End Time 2025-04-17 08:45:05 [2025-04-17 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927121', 'tblTempUsageDetail_20' ) start [2025-04-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927121', 'tblTempUsageDetail_20' ) end [2025-04-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927121', 'tblTempVendorCDR_20' ) start [2025-04-17 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927121', 'tblTempVendorCDR_20' ) end [2025-04-17 08:45:18] Production.INFO: ProcessCDR(1,14927121,1,1,2) [2025-04-17 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927121', 'tblTempUsageDetail_20' ) start [2025-04-17 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927121', 'tblTempUsageDetail_20' ) end [2025-04-17 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:45:23] Production.INFO: ==2312== Releasing lock... [2025-04-17 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:45:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-17 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:46:05 [end_date_ymd] => 2025-04-17 08:46:05 [RateCDR] => 1 ) [2025-04-17 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:46:05' and `end` < '2025-04-17 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:46:17] Production.INFO: count ==453 [2025-04-17 08:46:17] Production.ERROR: pbx CDR StartTime 2025-04-17 05:46:05 - End Time 2025-04-17 08:46:05 [2025-04-17 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927126', 'tblTempUsageDetail_20' ) start [2025-04-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927126', 'tblTempUsageDetail_20' ) end [2025-04-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927126', 'tblTempVendorCDR_20' ) start [2025-04-17 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927126', 'tblTempVendorCDR_20' ) end [2025-04-17 08:46:17] Production.INFO: ProcessCDR(1,14927126,1,1,2) [2025-04-17 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927126', 'tblTempUsageDetail_20' ) start [2025-04-17 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927126', 'tblTempUsageDetail_20' ) end [2025-04-17 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:46:22] Production.INFO: ==2382== Releasing lock... [2025-04-17 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-17 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:47:06 [end_date_ymd] => 2025-04-17 08:47:06 [RateCDR] => 1 ) [2025-04-17 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-17 05:47:06' and `end` < '2025-04-17 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-17 08:47:18] Production.INFO: count ==461 [2025-04-17 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:47:06 - End Time 2025-04-17 08:47:06 [2025-04-17 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927131', 'tblTempUsageDetail_20' ) start [2025-04-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927131', 'tblTempUsageDetail_20' ) end [2025-04-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927131', 'tblTempVendorCDR_20' ) start [2025-04-17 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927131', 'tblTempVendorCDR_20' ) end [2025-04-17 08:47:18] Production.INFO: ProcessCDR(1,14927131,1,1,2) [2025-04-17 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927131', 'tblTempUsageDetail_20' ) start [2025-04-17 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927131', 'tblTempUsageDetail_20' ) end [2025-04-17 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:47:22] Production.INFO: ==2462== Releasing lock... [2025-04-17 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:47:22] Production.INFO: 32 MB #Memory Used# [2025-04-17 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:48:05 [end_date_ymd] => 2025-04-17 08:48:05 [RateCDR] => 1 ) [2025-04-17 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:48:05' and `end` < '2025-04-17 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:48:18] Production.INFO: count ==483 [2025-04-17 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:48:05 - End Time 2025-04-17 08:48:05 [2025-04-17 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927136', 'tblTempUsageDetail_20' ) start [2025-04-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927136', 'tblTempUsageDetail_20' ) end [2025-04-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927136', 'tblTempVendorCDR_20' ) start [2025-04-17 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927136', 'tblTempVendorCDR_20' ) end [2025-04-17 08:48:18] Production.INFO: ProcessCDR(1,14927136,1,1,2) [2025-04-17 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927136', 'tblTempUsageDetail_20' ) start [2025-04-17 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927136', 'tblTempUsageDetail_20' ) end [2025-04-17 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:48:21] Production.INFO: ==2531== Releasing lock... [2025-04-17 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-17 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:49:05 [end_date_ymd] => 2025-04-17 08:49:05 [RateCDR] => 1 ) [2025-04-17 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:49:05' and `end` < '2025-04-17 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:49:18] Production.INFO: count ==498 [2025-04-17 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:49:05 - End Time 2025-04-17 08:49:05 [2025-04-17 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927141', 'tblTempUsageDetail_20' ) start [2025-04-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927141', 'tblTempUsageDetail_20' ) end [2025-04-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927141', 'tblTempVendorCDR_20' ) start [2025-04-17 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927141', 'tblTempVendorCDR_20' ) end [2025-04-17 08:49:18] Production.INFO: ProcessCDR(1,14927141,1,1,2) [2025-04-17 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927141', 'tblTempUsageDetail_20' ) start [2025-04-17 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927141', 'tblTempUsageDetail_20' ) end [2025-04-17 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:49:22] Production.INFO: ==2603== Releasing lock... [2025-04-17 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-17 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:50:05 [end_date_ymd] => 2025-04-17 08:50:05 [RateCDR] => 1 ) [2025-04-17 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:50:05' and `end` < '2025-04-17 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:50:18] Production.INFO: count ==509 [2025-04-17 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-17 05:50:05 - End Time 2025-04-17 08:50:05 [2025-04-17 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927146', 'tblTempUsageDetail_20' ) start [2025-04-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927146', 'tblTempUsageDetail_20' ) end [2025-04-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927146', 'tblTempVendorCDR_20' ) start [2025-04-17 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927146', 'tblTempVendorCDR_20' ) end [2025-04-17 08:50:19] Production.INFO: ProcessCDR(1,14927146,1,1,2) [2025-04-17 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927146', 'tblTempUsageDetail_20' ) start [2025-04-17 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927146', 'tblTempUsageDetail_20' ) end [2025-04-17 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:50:22] Production.INFO: ==2676== Releasing lock... [2025-04-17 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-17 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:51:05 [end_date_ymd] => 2025-04-17 08:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:51:05' and `end` < '2025-04-17 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-17 08:51:18] Production.INFO: count ==519 [2025-04-17 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:51:05 - End Time 2025-04-17 08:51:05 [2025-04-17 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927152', 'tblTempUsageDetail_20' ) start [2025-04-17 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927152', 'tblTempUsageDetail_20' ) end [2025-04-17 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927152', 'tblTempVendorCDR_20' ) start [2025-04-17 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927152', 'tblTempVendorCDR_20' ) end [2025-04-17 08:51:18] Production.INFO: ProcessCDR(1,14927152,1,1,2) [2025-04-17 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927152', 'tblTempUsageDetail_20' ) start [2025-04-17 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927152', 'tblTempUsageDetail_20' ) end [2025-04-17 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:51:23] Production.INFO: ==2751== Releasing lock... [2025-04-17 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-17 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:52:05 [end_date_ymd] => 2025-04-17 08:52:05 [RateCDR] => 1 ) [2025-04-17 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:52:05' and `end` < '2025-04-17 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:52:18] Production.INFO: count ==537 [2025-04-17 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:52:05 - End Time 2025-04-17 08:52:05 [2025-04-17 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927157', 'tblTempUsageDetail_20' ) start [2025-04-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927157', 'tblTempUsageDetail_20' ) end [2025-04-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927157', 'tblTempVendorCDR_20' ) start [2025-04-17 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927157', 'tblTempVendorCDR_20' ) end [2025-04-17 08:52:18] Production.INFO: ProcessCDR(1,14927157,1,1,2) [2025-04-17 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927157', 'tblTempUsageDetail_20' ) start [2025-04-17 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927157', 'tblTempUsageDetail_20' ) end [2025-04-17 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:52:21] Production.INFO: ==2823== Releasing lock... [2025-04-17 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-17 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:53:05 [end_date_ymd] => 2025-04-17 08:53:05 [RateCDR] => 1 ) [2025-04-17 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:53:05' and `end` < '2025-04-17 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:53:18] Production.INFO: count ==539 [2025-04-17 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:53:05 - End Time 2025-04-17 08:53:05 [2025-04-17 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927162', 'tblTempUsageDetail_20' ) start [2025-04-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927162', 'tblTempUsageDetail_20' ) end [2025-04-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927162', 'tblTempVendorCDR_20' ) start [2025-04-17 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927162', 'tblTempVendorCDR_20' ) end [2025-04-17 08:53:18] Production.INFO: ProcessCDR(1,14927162,1,1,2) [2025-04-17 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927162', 'tblTempUsageDetail_20' ) start [2025-04-17 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927162', 'tblTempUsageDetail_20' ) end [2025-04-17 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:53:23] Production.INFO: ==2893== Releasing lock... [2025-04-17 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:53:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-17 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:54:06 [end_date_ymd] => 2025-04-17 08:54:06 [RateCDR] => 1 ) [2025-04-17 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-17 05:54:06' and `end` < '2025-04-17 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-17 08:54:18] Production.INFO: count ==549 [2025-04-17 08:54:19] Production.ERROR: pbx CDR StartTime 2025-04-17 05:54:06 - End Time 2025-04-17 08:54:06 [2025-04-17 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927167', 'tblTempUsageDetail_20' ) start [2025-04-17 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927167', 'tblTempUsageDetail_20' ) end [2025-04-17 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927167', 'tblTempVendorCDR_20' ) start [2025-04-17 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927167', 'tblTempVendorCDR_20' ) end [2025-04-17 08:54:19] Production.INFO: ProcessCDR(1,14927167,1,1,2) [2025-04-17 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927167', 'tblTempUsageDetail_20' ) start [2025-04-17 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927167', 'tblTempUsageDetail_20' ) end [2025-04-17 08:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:54:24] Production.INFO: ==2964== Releasing lock... [2025-04-17 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:54:24] Production.INFO: 33 MB #Memory Used# [2025-04-17 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:55:05 [end_date_ymd] => 2025-04-17 08:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:55:05' and `end` < '2025-04-17 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-17 08:55:18] Production.INFO: count ==569 [2025-04-17 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:55:05 - End Time 2025-04-17 08:55:05 [2025-04-17 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927172', 'tblTempUsageDetail_20' ) start [2025-04-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927172', 'tblTempUsageDetail_20' ) end [2025-04-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927172', 'tblTempVendorCDR_20' ) start [2025-04-17 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927172', 'tblTempVendorCDR_20' ) end [2025-04-17 08:55:18] Production.INFO: ProcessCDR(1,14927172,1,1,2) [2025-04-17 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927172', 'tblTempUsageDetail_20' ) start [2025-04-17 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927172', 'tblTempUsageDetail_20' ) end [2025-04-17 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:55:23] Production.INFO: ==3034== Releasing lock... [2025-04-17 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-17 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:56:05 [end_date_ymd] => 2025-04-17 08:56:05 [RateCDR] => 1 ) [2025-04-17 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:56:05' and `end` < '2025-04-17 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:56:18] Production.INFO: count ==591 [2025-04-17 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:56:05 - End Time 2025-04-17 08:56:05 [2025-04-17 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927177', 'tblTempUsageDetail_20' ) start [2025-04-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927177', 'tblTempUsageDetail_20' ) end [2025-04-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927177', 'tblTempVendorCDR_20' ) start [2025-04-17 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927177', 'tblTempVendorCDR_20' ) end [2025-04-17 08:56:18] Production.INFO: ProcessCDR(1,14927177,1,1,2) [2025-04-17 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927177', 'tblTempUsageDetail_20' ) start [2025-04-17 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927177', 'tblTempUsageDetail_20' ) end [2025-04-17 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:56:23] Production.INFO: ==3108== Releasing lock... [2025-04-17 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-17 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:57:05 [end_date_ymd] => 2025-04-17 08:57:05 [RateCDR] => 1 ) [2025-04-17 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:57:05' and `end` < '2025-04-17 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:57:18] Production.INFO: count ==610 [2025-04-17 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:57:05 - End Time 2025-04-17 08:57:05 [2025-04-17 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927182', 'tblTempUsageDetail_20' ) start [2025-04-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927182', 'tblTempUsageDetail_20' ) end [2025-04-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927182', 'tblTempVendorCDR_20' ) start [2025-04-17 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927182', 'tblTempVendorCDR_20' ) end [2025-04-17 08:57:18] Production.INFO: ProcessCDR(1,14927182,1,1,2) [2025-04-17 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927182', 'tblTempUsageDetail_20' ) start [2025-04-17 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927182', 'tblTempUsageDetail_20' ) end [2025-04-17 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:57:21] Production.INFO: ==3178== Releasing lock... [2025-04-17 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-17 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:58:05 [end_date_ymd] => 2025-04-17 08:58:05 [RateCDR] => 1 ) [2025-04-17 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 05:58:05' and `end` < '2025-04-17 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 08:58:18] Production.INFO: count ==621 [2025-04-17 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:58:05 - End Time 2025-04-17 08:58:05 [2025-04-17 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927187', 'tblTempUsageDetail_20' ) start [2025-04-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927187', 'tblTempUsageDetail_20' ) end [2025-04-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927187', 'tblTempVendorCDR_20' ) start [2025-04-17 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927187', 'tblTempVendorCDR_20' ) end [2025-04-17 08:58:18] Production.INFO: ProcessCDR(1,14927187,1,1,2) [2025-04-17 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927187', 'tblTempUsageDetail_20' ) start [2025-04-17 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927187', 'tblTempUsageDetail_20' ) end [2025-04-17 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:58:23] Production.INFO: ==3289== Releasing lock... [2025-04-17 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:58:23] Production.INFO: 33 MB #Memory Used# [2025-04-17 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 05:59:05 [end_date_ymd] => 2025-04-17 08:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 05:59:05' and `end` < '2025-04-17 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-17 08:59:18] Production.INFO: count ==629 [2025-04-17 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 05:59:05 - End Time 2025-04-17 08:59:05 [2025-04-17 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927192', 'tblTempUsageDetail_20' ) start [2025-04-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927192', 'tblTempUsageDetail_20' ) end [2025-04-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927192', 'tblTempVendorCDR_20' ) start [2025-04-17 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927192', 'tblTempVendorCDR_20' ) end [2025-04-17 08:59:18] Production.INFO: ProcessCDR(1,14927192,1,1,2) [2025-04-17 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927192', 'tblTempUsageDetail_20' ) start [2025-04-17 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927192', 'tblTempUsageDetail_20' ) end [2025-04-17 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 08:59:21] Production.INFO: ==3358== Releasing lock... [2025-04-17 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 08:59:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-17 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:00:05 [end_date_ymd] => 2025-04-17 09:00:05 [RateCDR] => 1 ) [2025-04-17 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:00:05' and `end` < '2025-04-17 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:00:19] Production.INFO: count ==630 [2025-04-17 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:00:05 - End Time 2025-04-17 09:00:05 [2025-04-17 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927197', 'tblTempUsageDetail_20' ) start [2025-04-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927197', 'tblTempUsageDetail_20' ) end [2025-04-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927197', 'tblTempVendorCDR_20' ) start [2025-04-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927197', 'tblTempVendorCDR_20' ) end [2025-04-17 09:00:19] Production.INFO: ProcessCDR(1,14927197,1,1,2) [2025-04-17 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927197', 'tblTempUsageDetail_20' ) start [2025-04-17 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927197', 'tblTempUsageDetail_20' ) end [2025-04-17 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:00:22] Production.INFO: ==3433== Releasing lock... [2025-04-17 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:00:22] Production.INFO: 33 MB #Memory Used# [2025-04-17 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:01:06 [end_date_ymd] => 2025-04-17 09:01:06 [RateCDR] => 1 ) [2025-04-17 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:01:06' and `end` < '2025-04-17 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:01:18] Production.INFO: count ==678 [2025-04-17 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:01:06 - End Time 2025-04-17 09:01:06 [2025-04-17 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927203', 'tblTempUsageDetail_20' ) start [2025-04-17 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927203', 'tblTempUsageDetail_20' ) end [2025-04-17 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927203', 'tblTempVendorCDR_20' ) start [2025-04-17 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927203', 'tblTempVendorCDR_20' ) end [2025-04-17 09:01:18] Production.INFO: ProcessCDR(1,14927203,1,1,2) [2025-04-17 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927203', 'tblTempUsageDetail_20' ) start [2025-04-17 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927203', 'tblTempUsageDetail_20' ) end [2025-04-17 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:01:23] Production.INFO: ==3523== Releasing lock... [2025-04-17 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-17 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:02:05 [end_date_ymd] => 2025-04-17 09:02:05 [RateCDR] => 1 ) [2025-04-17 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:02:05' and `end` < '2025-04-17 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:02:18] Production.INFO: count ==698 [2025-04-17 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:02:05 - End Time 2025-04-17 09:02:05 [2025-04-17 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927208', 'tblTempUsageDetail_20' ) start [2025-04-17 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927208', 'tblTempUsageDetail_20' ) end [2025-04-17 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927208', 'tblTempVendorCDR_20' ) start [2025-04-17 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927208', 'tblTempVendorCDR_20' ) end [2025-04-17 09:02:19] Production.INFO: ProcessCDR(1,14927208,1,1,2) [2025-04-17 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927208', 'tblTempUsageDetail_20' ) start [2025-04-17 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927208', 'tblTempUsageDetail_20' ) end [2025-04-17 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:02:24] Production.INFO: ==3594== Releasing lock... [2025-04-17 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:02:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-17 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:03:05 [end_date_ymd] => 2025-04-17 09:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:03:05' and `end` < '2025-04-17 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-17 09:03:18] Production.INFO: count ==704 [2025-04-17 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:03:05 - End Time 2025-04-17 09:03:05 [2025-04-17 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927213', 'tblTempUsageDetail_20' ) start [2025-04-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927213', 'tblTempUsageDetail_20' ) end [2025-04-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927213', 'tblTempVendorCDR_20' ) start [2025-04-17 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927213', 'tblTempVendorCDR_20' ) end [2025-04-17 09:03:18] Production.INFO: ProcessCDR(1,14927213,1,1,2) [2025-04-17 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927213', 'tblTempUsageDetail_20' ) start [2025-04-17 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927213', 'tblTempUsageDetail_20' ) end [2025-04-17 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:03:23] Production.INFO: ==3667== Releasing lock... [2025-04-17 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:03:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-17 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:04:05 [end_date_ymd] => 2025-04-17 09:04:05 [RateCDR] => 1 ) [2025-04-17 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:04:05' and `end` < '2025-04-17 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:04:18] Production.INFO: count ==732 [2025-04-17 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:04:05 - End Time 2025-04-17 09:04:05 [2025-04-17 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927218', 'tblTempUsageDetail_20' ) start [2025-04-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927218', 'tblTempUsageDetail_20' ) end [2025-04-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927218', 'tblTempVendorCDR_20' ) start [2025-04-17 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927218', 'tblTempVendorCDR_20' ) end [2025-04-17 09:04:18] Production.INFO: ProcessCDR(1,14927218,1,1,2) [2025-04-17 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927218', 'tblTempUsageDetail_20' ) start [2025-04-17 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927218', 'tblTempUsageDetail_20' ) end [2025-04-17 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:04:23] Production.INFO: ==3737== Releasing lock... [2025-04-17 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:04:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-17 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:05:05 [end_date_ymd] => 2025-04-17 09:05:05 [RateCDR] => 1 ) [2025-04-17 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:05:05' and `end` < '2025-04-17 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:05:18] Production.INFO: count ==755 [2025-04-17 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:05:05 - End Time 2025-04-17 09:05:05 [2025-04-17 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927223', 'tblTempUsageDetail_20' ) start [2025-04-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927223', 'tblTempUsageDetail_20' ) end [2025-04-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927223', 'tblTempVendorCDR_20' ) start [2025-04-17 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927223', 'tblTempVendorCDR_20' ) end [2025-04-17 09:05:18] Production.INFO: ProcessCDR(1,14927223,1,1,2) [2025-04-17 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927223', 'tblTempUsageDetail_20' ) start [2025-04-17 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927223', 'tblTempUsageDetail_20' ) end [2025-04-17 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:05:23] Production.INFO: ==3811== Releasing lock... [2025-04-17 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:05:23] Production.INFO: 34 MB #Memory Used# [2025-04-17 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:06:05 [end_date_ymd] => 2025-04-17 09:06:05 [RateCDR] => 1 ) [2025-04-17 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:06:05' and `end` < '2025-04-17 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:06:18] Production.INFO: count ==759 [2025-04-17 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:06:05 - End Time 2025-04-17 09:06:05 [2025-04-17 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927228', 'tblTempUsageDetail_20' ) start [2025-04-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927228', 'tblTempUsageDetail_20' ) end [2025-04-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927228', 'tblTempVendorCDR_20' ) start [2025-04-17 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927228', 'tblTempVendorCDR_20' ) end [2025-04-17 09:06:18] Production.INFO: ProcessCDR(1,14927228,1,1,2) [2025-04-17 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927228', 'tblTempUsageDetail_20' ) start [2025-04-17 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927228', 'tblTempUsageDetail_20' ) end [2025-04-17 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:06:23] Production.INFO: ==3881== Releasing lock... [2025-04-17 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:06:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-17 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:07:04 [end_date_ymd] => 2025-04-17 09:07:04 [RateCDR] => 1 ) [2025-04-17 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:07:04' and `end` < '2025-04-17 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:07:17] Production.INFO: count ==776 [2025-04-17 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:07:04 - End Time 2025-04-17 09:07:04 [2025-04-17 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927233', 'tblTempUsageDetail_20' ) start [2025-04-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927233', 'tblTempUsageDetail_20' ) end [2025-04-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927233', 'tblTempVendorCDR_20' ) start [2025-04-17 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927233', 'tblTempVendorCDR_20' ) end [2025-04-17 09:07:18] Production.INFO: ProcessCDR(1,14927233,1,1,2) [2025-04-17 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927233', 'tblTempUsageDetail_20' ) start [2025-04-17 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927233', 'tblTempUsageDetail_20' ) end [2025-04-17 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:07:22] Production.INFO: ==3964== Releasing lock... [2025-04-17 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-17 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:08:06 [end_date_ymd] => 2025-04-17 09:08:06 [RateCDR] => 1 ) [2025-04-17 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:08:06' and `end` < '2025-04-17 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:08:19] Production.INFO: count ==789 [2025-04-17 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:08:06 - End Time 2025-04-17 09:08:06 [2025-04-17 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927238', 'tblTempUsageDetail_20' ) start [2025-04-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927238', 'tblTempUsageDetail_20' ) end [2025-04-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927238', 'tblTempVendorCDR_20' ) start [2025-04-17 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927238', 'tblTempVendorCDR_20' ) end [2025-04-17 09:08:19] Production.INFO: ProcessCDR(1,14927238,1,1,2) [2025-04-17 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927238', 'tblTempUsageDetail_20' ) start [2025-04-17 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927238', 'tblTempUsageDetail_20' ) end [2025-04-17 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:08:24] Production.INFO: ==4034== Releasing lock... [2025-04-17 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:08:24] Production.INFO: 34 MB #Memory Used# [2025-04-17 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:09:06 [end_date_ymd] => 2025-04-17 09:09:06 [RateCDR] => 1 ) [2025-04-17 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:09:06' and `end` < '2025-04-17 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:09:19] Production.INFO: count ==804 [2025-04-17 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:09:06 - End Time 2025-04-17 09:09:06 [2025-04-17 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927243', 'tblTempUsageDetail_20' ) start [2025-04-17 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927243', 'tblTempUsageDetail_20' ) end [2025-04-17 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927243', 'tblTempVendorCDR_20' ) start [2025-04-17 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927243', 'tblTempVendorCDR_20' ) end [2025-04-17 09:09:19] Production.INFO: ProcessCDR(1,14927243,1,1,2) [2025-04-17 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927243', 'tblTempUsageDetail_20' ) start [2025-04-17 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927243', 'tblTempUsageDetail_20' ) end [2025-04-17 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:09:24] Production.INFO: ==4108== Releasing lock... [2025-04-17 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:09:24] Production.INFO: 34 MB #Memory Used# [2025-04-17 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:10:06 [end_date_ymd] => 2025-04-17 09:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 06:10:06' and `end` < '2025-04-17 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-17 09:10:19] Production.INFO: count ==823 [2025-04-17 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:10:06 - End Time 2025-04-17 09:10:06 [2025-04-17 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927249', 'tblTempUsageDetail_20' ) start [2025-04-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927249', 'tblTempUsageDetail_20' ) end [2025-04-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927249', 'tblTempVendorCDR_20' ) start [2025-04-17 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927249', 'tblTempVendorCDR_20' ) end [2025-04-17 09:10:19] Production.INFO: ProcessCDR(1,14927249,1,1,2) [2025-04-17 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927249', 'tblTempUsageDetail_20' ) start [2025-04-17 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927249', 'tblTempUsageDetail_20' ) end [2025-04-17 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:10:24] Production.INFO: ==4186== Releasing lock... [2025-04-17 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:10:24] Production.INFO: 34 MB #Memory Used# [2025-04-17 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:11:05 [end_date_ymd] => 2025-04-17 09:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:11:05' and `end` < '2025-04-17 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-17 09:11:17] Production.INFO: count ==909 [2025-04-17 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:11:05 - End Time 2025-04-17 09:11:05 [2025-04-17 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927254', 'tblTempUsageDetail_20' ) start [2025-04-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927254', 'tblTempUsageDetail_20' ) end [2025-04-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927254', 'tblTempVendorCDR_20' ) start [2025-04-17 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927254', 'tblTempVendorCDR_20' ) end [2025-04-17 09:11:18] Production.INFO: ProcessCDR(1,14927254,1,1,2) [2025-04-17 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927254', 'tblTempUsageDetail_20' ) start [2025-04-17 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927254', 'tblTempUsageDetail_20' ) end [2025-04-17 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:11:23] Production.INFO: ==4265== Releasing lock... [2025-04-17 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:11:23] Production.INFO: 35 MB #Memory Used# [2025-04-17 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:12:05 [end_date_ymd] => 2025-04-17 09:12:05 [RateCDR] => 1 ) [2025-04-17 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:12:05' and `end` < '2025-04-17 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:12:17] Production.INFO: count ==918 [2025-04-17 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:12:05 - End Time 2025-04-17 09:12:05 [2025-04-17 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927259', 'tblTempUsageDetail_20' ) start [2025-04-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927259', 'tblTempUsageDetail_20' ) end [2025-04-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927259', 'tblTempVendorCDR_20' ) start [2025-04-17 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927259', 'tblTempVendorCDR_20' ) end [2025-04-17 09:12:18] Production.INFO: ProcessCDR(1,14927259,1,1,2) [2025-04-17 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927259', 'tblTempUsageDetail_20' ) start [2025-04-17 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927259', 'tblTempUsageDetail_20' ) end [2025-04-17 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:12:23] Production.INFO: ==4336== Releasing lock... [2025-04-17 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:12:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-17 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:13:05 [end_date_ymd] => 2025-04-17 09:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:13:05' and `end` < '2025-04-17 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-17 09:13:18] Production.INFO: count ==921 [2025-04-17 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:13:05 - End Time 2025-04-17 09:13:05 [2025-04-17 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927264', 'tblTempUsageDetail_20' ) start [2025-04-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927264', 'tblTempUsageDetail_20' ) end [2025-04-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927264', 'tblTempVendorCDR_20' ) start [2025-04-17 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927264', 'tblTempVendorCDR_20' ) end [2025-04-17 09:13:18] Production.INFO: ProcessCDR(1,14927264,1,1,2) [2025-04-17 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927264', 'tblTempUsageDetail_20' ) start [2025-04-17 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927264', 'tblTempUsageDetail_20' ) end [2025-04-17 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:13:23] Production.INFO: ==4409== Releasing lock... [2025-04-17 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:13:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-17 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:14:06 [end_date_ymd] => 2025-04-17 09:14:06 [RateCDR] => 1 ) [2025-04-17 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-17 06:14:06' and `end` < '2025-04-17 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-17 09:14:18] Production.INFO: count ==934 [2025-04-17 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:14:06 - End Time 2025-04-17 09:14:06 [2025-04-17 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927269', 'tblTempUsageDetail_20' ) start [2025-04-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927269', 'tblTempUsageDetail_20' ) end [2025-04-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927269', 'tblTempVendorCDR_20' ) start [2025-04-17 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927269', 'tblTempVendorCDR_20' ) end [2025-04-17 09:14:19] Production.INFO: ProcessCDR(1,14927269,1,1,2) [2025-04-17 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927269', 'tblTempUsageDetail_20' ) start [2025-04-17 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927269', 'tblTempUsageDetail_20' ) end [2025-04-17 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:14:24] Production.INFO: ==4517== Releasing lock... [2025-04-17 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:14:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-17 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:15:05 [end_date_ymd] => 2025-04-17 09:15:05 [RateCDR] => 1 ) [2025-04-17 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:15:05' and `end` < '2025-04-17 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:15:18] Production.INFO: count ==954 [2025-04-17 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:15:05 - End Time 2025-04-17 09:15:05 [2025-04-17 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927274', 'tblTempUsageDetail_20' ) start [2025-04-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927274', 'tblTempUsageDetail_20' ) end [2025-04-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927274', 'tblTempVendorCDR_20' ) start [2025-04-17 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927274', 'tblTempVendorCDR_20' ) end [2025-04-17 09:15:18] Production.INFO: ProcessCDR(1,14927274,1,1,2) [2025-04-17 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927274', 'tblTempUsageDetail_20' ) start [2025-04-17 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927274', 'tblTempUsageDetail_20' ) end [2025-04-17 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:15:23] Production.INFO: ==4601== Releasing lock... [2025-04-17 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:15:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-17 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:16:05 [end_date_ymd] => 2025-04-17 09:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:16:05' and `end` < '2025-04-17 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-17 09:16:18] Production.INFO: count ==973 [2025-04-17 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:16:05 - End Time 2025-04-17 09:16:05 [2025-04-17 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927279', 'tblTempUsageDetail_20' ) start [2025-04-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927279', 'tblTempUsageDetail_20' ) end [2025-04-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927279', 'tblTempVendorCDR_20' ) start [2025-04-17 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927279', 'tblTempVendorCDR_20' ) end [2025-04-17 09:16:18] Production.INFO: ProcessCDR(1,14927279,1,1,2) [2025-04-17 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927279', 'tblTempUsageDetail_20' ) start [2025-04-17 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927279', 'tblTempUsageDetail_20' ) end [2025-04-17 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:16:23] Production.INFO: ==4679== Releasing lock... [2025-04-17 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:16:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-17 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:17:05 [end_date_ymd] => 2025-04-17 09:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:17:05' and `end` < '2025-04-17 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-17 09:17:18] Production.INFO: count ==979 [2025-04-17 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:17:05 - End Time 2025-04-17 09:17:05 [2025-04-17 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927284', 'tblTempUsageDetail_20' ) start [2025-04-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927284', 'tblTempUsageDetail_20' ) end [2025-04-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927284', 'tblTempVendorCDR_20' ) start [2025-04-17 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927284', 'tblTempVendorCDR_20' ) end [2025-04-17 09:17:19] Production.INFO: ProcessCDR(1,14927284,1,1,2) [2025-04-17 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927284', 'tblTempUsageDetail_20' ) start [2025-04-17 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927284', 'tblTempUsageDetail_20' ) end [2025-04-17 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:17:24] Production.INFO: ==4752== Releasing lock... [2025-04-17 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:17:24] Production.INFO: 36 MB #Memory Used# [2025-04-17 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:18:06 [end_date_ymd] => 2025-04-17 09:18:06 [RateCDR] => 1 ) [2025-04-17 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:18:06' and `end` < '2025-04-17 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:18:19] Production.INFO: count ==988 [2025-04-17 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:18:06 - End Time 2025-04-17 09:18:06 [2025-04-17 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927289', 'tblTempUsageDetail_20' ) start [2025-04-17 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927289', 'tblTempUsageDetail_20' ) end [2025-04-17 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927289', 'tblTempVendorCDR_20' ) start [2025-04-17 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927289', 'tblTempVendorCDR_20' ) end [2025-04-17 09:18:19] Production.INFO: ProcessCDR(1,14927289,1,1,2) [2025-04-17 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927289', 'tblTempUsageDetail_20' ) start [2025-04-17 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927289', 'tblTempUsageDetail_20' ) end [2025-04-17 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:18:24] Production.INFO: ==4835== Releasing lock... [2025-04-17 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:18:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-17 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:19:05 [end_date_ymd] => 2025-04-17 09:19:05 [RateCDR] => 1 ) [2025-04-17 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:19:05' and `end` < '2025-04-17 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:19:18] Production.INFO: count ==997 [2025-04-17 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:19:05 - End Time 2025-04-17 09:19:05 [2025-04-17 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927294', 'tblTempUsageDetail_20' ) start [2025-04-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927294', 'tblTempUsageDetail_20' ) end [2025-04-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927294', 'tblTempVendorCDR_20' ) start [2025-04-17 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927294', 'tblTempVendorCDR_20' ) end [2025-04-17 09:19:18] Production.INFO: ProcessCDR(1,14927294,1,1,2) [2025-04-17 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927294', 'tblTempUsageDetail_20' ) start [2025-04-17 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927294', 'tblTempUsageDetail_20' ) end [2025-04-17 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:19:23] Production.INFO: ==4908== Releasing lock... [2025-04-17 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:19:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-17 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:20:05 [end_date_ymd] => 2025-04-17 09:20:05 [RateCDR] => 1 ) [2025-04-17 09: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-17 06:20:05' and `end` < '2025-04-17 09: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-17 09:20:18] Production.INFO: count ==1022 [2025-04-17 09:20:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:20:05 - End Time 2025-04-17 09:20:05 [2025-04-17 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927299', 'tblTempUsageDetail_20' ) start [2025-04-17 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927299', 'tblTempUsageDetail_20' ) end [2025-04-17 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927299', 'tblTempVendorCDR_20' ) start [2025-04-17 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927299', 'tblTempVendorCDR_20' ) end [2025-04-17 09:20:18] Production.INFO: ProcessCDR(1,14927299,1,1,2) [2025-04-17 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927299', 'tblTempUsageDetail_20' ) start [2025-04-17 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927299', 'tblTempUsageDetail_20' ) end [2025-04-17 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:20:24] Production.INFO: ==4984== Releasing lock... [2025-04-17 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:20:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-17 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:21:05 [end_date_ymd] => 2025-04-17 09:21:05 [RateCDR] => 1 ) [2025-04-17 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:21:05' and `end` < '2025-04-17 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:21:18] Production.INFO: count ==1150 [2025-04-17 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:21:05 - End Time 2025-04-17 09:21:05 [2025-04-17 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927305', 'tblTempUsageDetail_20' ) start [2025-04-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927305', 'tblTempUsageDetail_20' ) end [2025-04-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927305', 'tblTempVendorCDR_20' ) start [2025-04-17 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927305', 'tblTempVendorCDR_20' ) end [2025-04-17 09:21:18] Production.INFO: ProcessCDR(1,14927305,1,1,2) [2025-04-17 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927305', 'tblTempUsageDetail_20' ) start [2025-04-17 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927305', 'tblTempUsageDetail_20' ) end [2025-04-17 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:21:24] Production.INFO: ==5057== Releasing lock... [2025-04-17 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:21:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:22:05 [end_date_ymd] => 2025-04-17 09:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:22:05' and `end` < '2025-04-17 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-17 09:22:18] Production.INFO: count ==1169 [2025-04-17 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:22:05 - End Time 2025-04-17 09:22:05 [2025-04-17 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927310', 'tblTempUsageDetail_20' ) start [2025-04-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927310', 'tblTempUsageDetail_20' ) end [2025-04-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927310', 'tblTempVendorCDR_20' ) start [2025-04-17 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927310', 'tblTempVendorCDR_20' ) end [2025-04-17 09:22:19] Production.INFO: ProcessCDR(1,14927310,1,1,2) [2025-04-17 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927310', 'tblTempUsageDetail_20' ) start [2025-04-17 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927310', 'tblTempUsageDetail_20' ) end [2025-04-17 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:22:24] Production.INFO: ==5130== Releasing lock... [2025-04-17 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:22:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-17 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:23:05 [end_date_ymd] => 2025-04-17 09:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:23:05' and `end` < '2025-04-17 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-17 09:23:18] Production.INFO: count ==1181 [2025-04-17 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:23:05 - End Time 2025-04-17 09:23:05 [2025-04-17 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927315', 'tblTempUsageDetail_20' ) start [2025-04-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927315', 'tblTempUsageDetail_20' ) end [2025-04-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927315', 'tblTempVendorCDR_20' ) start [2025-04-17 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927315', 'tblTempVendorCDR_20' ) end [2025-04-17 09:23:18] Production.INFO: ProcessCDR(1,14927315,1,1,2) [2025-04-17 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927315', 'tblTempUsageDetail_20' ) start [2025-04-17 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927315', 'tblTempUsageDetail_20' ) end [2025-04-17 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:23:24] Production.INFO: ==5202== Releasing lock... [2025-04-17 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:23:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:24:05 [end_date_ymd] => 2025-04-17 09:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:24:05' and `end` < '2025-04-17 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-17 09:24:18] Production.INFO: count ==1198 [2025-04-17 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:24:05 - End Time 2025-04-17 09:24:05 [2025-04-17 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927320', 'tblTempUsageDetail_20' ) start [2025-04-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927320', 'tblTempUsageDetail_20' ) end [2025-04-17 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927320', 'tblTempVendorCDR_20' ) start [2025-04-17 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927320', 'tblTempVendorCDR_20' ) end [2025-04-17 09:24:19] Production.INFO: ProcessCDR(1,14927320,1,1,2) [2025-04-17 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927320', 'tblTempUsageDetail_20' ) start [2025-04-17 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927320', 'tblTempUsageDetail_20' ) end [2025-04-17 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:24:23] Production.INFO: ==5276== Releasing lock... [2025-04-17 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:24:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:25:05 [end_date_ymd] => 2025-04-17 09:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:25:05' and `end` < '2025-04-17 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-17 09:25:18] Production.INFO: count ==1233 [2025-04-17 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:25:05 - End Time 2025-04-17 09:25:05 [2025-04-17 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927325', 'tblTempUsageDetail_20' ) start [2025-04-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927325', 'tblTempUsageDetail_20' ) end [2025-04-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927325', 'tblTempVendorCDR_20' ) start [2025-04-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927325', 'tblTempVendorCDR_20' ) end [2025-04-17 09:25:19] Production.INFO: ProcessCDR(1,14927325,1,1,2) [2025-04-17 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927325', 'tblTempUsageDetail_20' ) start [2025-04-17 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927325', 'tblTempUsageDetail_20' ) end [2025-04-17 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:25:24] Production.INFO: ==5350== Releasing lock... [2025-04-17 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:25:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:26:05 [end_date_ymd] => 2025-04-17 09:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:26:05' and `end` < '2025-04-17 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-17 09:26:18] Production.INFO: count ==1241 [2025-04-17 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:26:05 - End Time 2025-04-17 09:26:05 [2025-04-17 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927330', 'tblTempUsageDetail_20' ) start [2025-04-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927330', 'tblTempUsageDetail_20' ) end [2025-04-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927330', 'tblTempVendorCDR_20' ) start [2025-04-17 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927330', 'tblTempVendorCDR_20' ) end [2025-04-17 09:26:19] Production.INFO: ProcessCDR(1,14927330,1,1,2) [2025-04-17 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927330', 'tblTempUsageDetail_20' ) start [2025-04-17 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927330', 'tblTempUsageDetail_20' ) end [2025-04-17 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:26:24] Production.INFO: ==5420== Releasing lock... [2025-04-17 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:26:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-17 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:27:05 [end_date_ymd] => 2025-04-17 09:27:05 [RateCDR] => 1 ) [2025-04-17 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:27:05' and `end` < '2025-04-17 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:27:18] Production.INFO: count ==1251 [2025-04-17 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:27:05 - End Time 2025-04-17 09:27:05 [2025-04-17 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927335', 'tblTempUsageDetail_20' ) start [2025-04-17 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927335', 'tblTempUsageDetail_20' ) end [2025-04-17 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927335', 'tblTempVendorCDR_20' ) start [2025-04-17 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927335', 'tblTempVendorCDR_20' ) end [2025-04-17 09:27:18] Production.INFO: ProcessCDR(1,14927335,1,1,2) [2025-04-17 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927335', 'tblTempUsageDetail_20' ) start [2025-04-17 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927335', 'tblTempUsageDetail_20' ) end [2025-04-17 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:27:24] Production.INFO: ==5492== Releasing lock... [2025-04-17 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:27:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:28:05 [end_date_ymd] => 2025-04-17 09:28:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:28:05' and `end` < '2025-04-17 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-17 09:28:18] Production.INFO: count ==1261 [2025-04-17 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:28:05 - End Time 2025-04-17 09:28:05 [2025-04-17 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927340', 'tblTempUsageDetail_20' ) start [2025-04-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927340', 'tblTempUsageDetail_20' ) end [2025-04-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927340', 'tblTempVendorCDR_20' ) start [2025-04-17 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927340', 'tblTempVendorCDR_20' ) end [2025-04-17 09:28:18] Production.INFO: ProcessCDR(1,14927340,1,1,2) [2025-04-17 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927340', 'tblTempUsageDetail_20' ) start [2025-04-17 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927340', 'tblTempUsageDetail_20' ) end [2025-04-17 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:28:24] Production.INFO: ==5569== Releasing lock... [2025-04-17 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:28:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-17 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:29:05 [end_date_ymd] => 2025-04-17 09:29:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:29:05' and `end` < '2025-04-17 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-17 09:29:19] Production.INFO: count ==1275 [2025-04-17 09:29:20] Production.ERROR: pbx CDR StartTime 2025-04-17 06:29:05 - End Time 2025-04-17 09:29:05 [2025-04-17 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927345', 'tblTempUsageDetail_20' ) start [2025-04-17 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927345', 'tblTempUsageDetail_20' ) end [2025-04-17 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927345', 'tblTempVendorCDR_20' ) start [2025-04-17 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927345', 'tblTempVendorCDR_20' ) end [2025-04-17 09:29:20] Production.INFO: ProcessCDR(1,14927345,1,1,2) [2025-04-17 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927345', 'tblTempUsageDetail_20' ) start [2025-04-17 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927345', 'tblTempUsageDetail_20' ) end [2025-04-17 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:29:25] Production.INFO: ==5685== Releasing lock... [2025-04-17 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:29:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:30:05 [end_date_ymd] => 2025-04-17 09:30:05 [RateCDR] => 1 ) [2025-04-17 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:30:05' and `end` < '2025-04-17 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:30:18] Production.INFO: count ==1305 [2025-04-17 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:30:05 - End Time 2025-04-17 09:30:05 [2025-04-17 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927350', 'tblTempUsageDetail_20' ) start [2025-04-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927350', 'tblTempUsageDetail_20' ) end [2025-04-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927350', 'tblTempVendorCDR_20' ) start [2025-04-17 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927350', 'tblTempVendorCDR_20' ) end [2025-04-17 09:30:19] Production.INFO: ProcessCDR(1,14927350,1,1,2) [2025-04-17 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927350', 'tblTempUsageDetail_20' ) start [2025-04-17 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927350', 'tblTempUsageDetail_20' ) end [2025-04-17 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:30:24] Production.INFO: ==5766== Releasing lock... [2025-04-17 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:30:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-17 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:31:06 [end_date_ymd] => 2025-04-17 09:31:06 [RateCDR] => 1 ) [2025-04-17 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-17 06:31:06' and `end` < '2025-04-17 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-17 09:31:19] Production.INFO: count ==1395 [2025-04-17 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:31:06 - End Time 2025-04-17 09:31:06 [2025-04-17 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927356', 'tblTempUsageDetail_20' ) start [2025-04-17 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927356', 'tblTempUsageDetail_20' ) end [2025-04-17 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927356', 'tblTempVendorCDR_20' ) start [2025-04-17 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927356', 'tblTempVendorCDR_20' ) end [2025-04-17 09:31:19] Production.INFO: ProcessCDR(1,14927356,1,1,2) [2025-04-17 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927356', 'tblTempUsageDetail_20' ) start [2025-04-17 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927356', 'tblTempUsageDetail_20' ) end [2025-04-17 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:31:24] Production.INFO: ==5842== Releasing lock... [2025-04-17 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:31:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-17 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:32:04 [end_date_ymd] => 2025-04-17 09:32:04 [RateCDR] => 1 ) [2025-04-17 09:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:32:04' and `end` < '2025-04-17 09:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:32:17] Production.INFO: count ==1419 [2025-04-17 09:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:32:04 - End Time 2025-04-17 09:32:04 [2025-04-17 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927361', 'tblTempUsageDetail_20' ) start [2025-04-17 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927361', 'tblTempUsageDetail_20' ) end [2025-04-17 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927361', 'tblTempVendorCDR_20' ) start [2025-04-17 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927361', 'tblTempVendorCDR_20' ) end [2025-04-17 09:32:18] Production.INFO: ProcessCDR(1,14927361,1,1,2) [2025-04-17 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927361', 'tblTempUsageDetail_20' ) start [2025-04-17 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927361', 'tblTempUsageDetail_20' ) end [2025-04-17 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:32:23] Production.INFO: ==5917== Releasing lock... [2025-04-17 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:32:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-17 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:33:05 [end_date_ymd] => 2025-04-17 09:33:05 [RateCDR] => 1 ) [2025-04-17 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:33:05' and `end` < '2025-04-17 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:33:18] Production.INFO: count ==1438 [2025-04-17 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:33:05 - End Time 2025-04-17 09:33:05 [2025-04-17 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927366', 'tblTempUsageDetail_20' ) start [2025-04-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927366', 'tblTempUsageDetail_20' ) end [2025-04-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927366', 'tblTempVendorCDR_20' ) start [2025-04-17 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927366', 'tblTempVendorCDR_20' ) end [2025-04-17 09:33:19] Production.INFO: ProcessCDR(1,14927366,1,1,2) [2025-04-17 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927366', 'tblTempUsageDetail_20' ) start [2025-04-17 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927366', 'tblTempUsageDetail_20' ) end [2025-04-17 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:33:24] Production.INFO: ==5991== Releasing lock... [2025-04-17 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-17 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:34:05 [end_date_ymd] => 2025-04-17 09:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:34:05' and `end` < '2025-04-17 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-17 09:34:19] Production.INFO: count ==1446 [2025-04-17 09:34:20] Production.ERROR: pbx CDR StartTime 2025-04-17 06:34:05 - End Time 2025-04-17 09:34:05 [2025-04-17 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927371', 'tblTempUsageDetail_20' ) start [2025-04-17 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927371', 'tblTempUsageDetail_20' ) end [2025-04-17 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927371', 'tblTempVendorCDR_20' ) start [2025-04-17 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927371', 'tblTempVendorCDR_20' ) end [2025-04-17 09:34:20] Production.INFO: ProcessCDR(1,14927371,1,1,2) [2025-04-17 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927371', 'tblTempUsageDetail_20' ) start [2025-04-17 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927371', 'tblTempUsageDetail_20' ) end [2025-04-17 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:34:24] Production.INFO: ==6064== Releasing lock... [2025-04-17 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:34:24] Production.INFO: 39 MB #Memory Used# [2025-04-17 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:35:05 [end_date_ymd] => 2025-04-17 09:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:35:05' and `end` < '2025-04-17 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-17 09:35:18] Production.INFO: count ==1475 [2025-04-17 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:35:05 - End Time 2025-04-17 09:35:05 [2025-04-17 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927376', 'tblTempUsageDetail_20' ) start [2025-04-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927376', 'tblTempUsageDetail_20' ) end [2025-04-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927376', 'tblTempVendorCDR_20' ) start [2025-04-17 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927376', 'tblTempVendorCDR_20' ) end [2025-04-17 09:35:19] Production.INFO: ProcessCDR(1,14927376,1,1,2) [2025-04-17 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927376', 'tblTempUsageDetail_20' ) start [2025-04-17 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927376', 'tblTempUsageDetail_20' ) end [2025-04-17 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:35:24] Production.INFO: ==6142== Releasing lock... [2025-04-17 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-17 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:36:05 [end_date_ymd] => 2025-04-17 09:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:36:05' and `end` < '2025-04-17 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-17 09:36:18] Production.INFO: count ==1485 [2025-04-17 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:36:05 - End Time 2025-04-17 09:36:05 [2025-04-17 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927381', 'tblTempUsageDetail_20' ) start [2025-04-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927381', 'tblTempUsageDetail_20' ) end [2025-04-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927381', 'tblTempVendorCDR_20' ) start [2025-04-17 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927381', 'tblTempVendorCDR_20' ) end [2025-04-17 09:36:19] Production.INFO: ProcessCDR(1,14927381,1,1,2) [2025-04-17 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927381', 'tblTempUsageDetail_20' ) start [2025-04-17 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927381', 'tblTempUsageDetail_20' ) end [2025-04-17 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:36:25] Production.INFO: ==6212== Releasing lock... [2025-04-17 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:36:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-17 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:37:05 [end_date_ymd] => 2025-04-17 09:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:37:05' and `end` < '2025-04-17 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-17 09:37:18] Production.INFO: count ==1492 [2025-04-17 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:37:05 - End Time 2025-04-17 09:37:05 [2025-04-17 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927386', 'tblTempUsageDetail_20' ) start [2025-04-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927386', 'tblTempUsageDetail_20' ) end [2025-04-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927386', 'tblTempVendorCDR_20' ) start [2025-04-17 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927386', 'tblTempVendorCDR_20' ) end [2025-04-17 09:37:19] Production.INFO: ProcessCDR(1,14927386,1,1,2) [2025-04-17 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927386', 'tblTempUsageDetail_20' ) start [2025-04-17 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927386', 'tblTempUsageDetail_20' ) end [2025-04-17 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:37:24] Production.INFO: ==6287== Releasing lock... [2025-04-17 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:37:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-17 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:38:05 [end_date_ymd] => 2025-04-17 09:38:05 [RateCDR] => 1 ) [2025-04-17 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:38:05' and `end` < '2025-04-17 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:38:18] Production.INFO: count ==1513 [2025-04-17 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:38:05 - End Time 2025-04-17 09:38:05 [2025-04-17 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927391', 'tblTempUsageDetail_20' ) start [2025-04-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927391', 'tblTempUsageDetail_20' ) end [2025-04-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927391', 'tblTempVendorCDR_20' ) start [2025-04-17 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927391', 'tblTempVendorCDR_20' ) end [2025-04-17 09:38:19] Production.INFO: ProcessCDR(1,14927391,1,1,2) [2025-04-17 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927391', 'tblTempUsageDetail_20' ) start [2025-04-17 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927391', 'tblTempUsageDetail_20' ) end [2025-04-17 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:38:24] Production.INFO: ==6357== Releasing lock... [2025-04-17 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:38:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-17 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:39:05 [end_date_ymd] => 2025-04-17 09:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:39:05' and `end` < '2025-04-17 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-17 09:39:18] Production.INFO: count ==1530 [2025-04-17 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:39:05 - End Time 2025-04-17 09:39:05 [2025-04-17 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927396', 'tblTempUsageDetail_20' ) start [2025-04-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927396', 'tblTempUsageDetail_20' ) end [2025-04-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927396', 'tblTempVendorCDR_20' ) start [2025-04-17 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927396', 'tblTempVendorCDR_20' ) end [2025-04-17 09:39:19] Production.INFO: ProcessCDR(1,14927396,1,1,2) [2025-04-17 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927396', 'tblTempUsageDetail_20' ) start [2025-04-17 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927396', 'tblTempUsageDetail_20' ) end [2025-04-17 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:39:24] Production.INFO: ==6431== Releasing lock... [2025-04-17 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:39:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-17 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:40:06 [end_date_ymd] => 2025-04-17 09:40:06 [RateCDR] => 1 ) [2025-04-17 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:40:06' and `end` < '2025-04-17 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:40:18] Production.INFO: count ==1542 [2025-04-17 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:40:06 - End Time 2025-04-17 09:40:06 [2025-04-17 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927402', 'tblTempUsageDetail_20' ) start [2025-04-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927402', 'tblTempUsageDetail_20' ) end [2025-04-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927402', 'tblTempVendorCDR_20' ) start [2025-04-17 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927402', 'tblTempVendorCDR_20' ) end [2025-04-17 09:40:19] Production.INFO: ProcessCDR(1,14927402,1,1,2) [2025-04-17 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927402', 'tblTempUsageDetail_20' ) start [2025-04-17 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927402', 'tblTempUsageDetail_20' ) end [2025-04-17 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:40:24] Production.INFO: ==6508== Releasing lock... [2025-04-17 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:40:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-17 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:41:05 [end_date_ymd] => 2025-04-17 09:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:41:05' and `end` < '2025-04-17 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-17 09:41:18] Production.INFO: count ==1611 [2025-04-17 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:41:05 - End Time 2025-04-17 09:41:05 [2025-04-17 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927407', 'tblTempUsageDetail_20' ) start [2025-04-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927407', 'tblTempUsageDetail_20' ) end [2025-04-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927407', 'tblTempVendorCDR_20' ) start [2025-04-17 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927407', 'tblTempVendorCDR_20' ) end [2025-04-17 09:41:19] Production.INFO: ProcessCDR(1,14927407,1,1,2) [2025-04-17 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927407', 'tblTempUsageDetail_20' ) start [2025-04-17 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927407', 'tblTempUsageDetail_20' ) end [2025-04-17 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:41:24] Production.INFO: ==6580== Releasing lock... [2025-04-17 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:41:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-17 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:42:05 [end_date_ymd] => 2025-04-17 09:42:05 [RateCDR] => 1 ) [2025-04-17 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:42:05' and `end` < '2025-04-17 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:42:18] Production.INFO: count ==1623 [2025-04-17 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:42:05 - End Time 2025-04-17 09:42:05 [2025-04-17 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927412', 'tblTempUsageDetail_20' ) start [2025-04-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927412', 'tblTempUsageDetail_20' ) end [2025-04-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927412', 'tblTempVendorCDR_20' ) start [2025-04-17 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927412', 'tblTempVendorCDR_20' ) end [2025-04-17 09:42:19] Production.INFO: ProcessCDR(1,14927412,1,1,2) [2025-04-17 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927412', 'tblTempUsageDetail_20' ) start [2025-04-17 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927412', 'tblTempUsageDetail_20' ) end [2025-04-17 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:42:23] Production.INFO: ==6655== Releasing lock... [2025-04-17 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-17 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:43:05 [end_date_ymd] => 2025-04-17 09:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:43:05' and `end` < '2025-04-17 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-17 09:43:18] Production.INFO: count ==1630 [2025-04-17 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:43:05 - End Time 2025-04-17 09:43:05 [2025-04-17 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927417', 'tblTempUsageDetail_20' ) start [2025-04-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927417', 'tblTempUsageDetail_20' ) end [2025-04-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927417', 'tblTempVendorCDR_20' ) start [2025-04-17 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927417', 'tblTempVendorCDR_20' ) end [2025-04-17 09:43:19] Production.INFO: ProcessCDR(1,14927417,1,1,2) [2025-04-17 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927417', 'tblTempUsageDetail_20' ) start [2025-04-17 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927417', 'tblTempUsageDetail_20' ) end [2025-04-17 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:43:24] Production.INFO: ==6729== Releasing lock... [2025-04-17 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:43:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-17 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:44:06 [end_date_ymd] => 2025-04-17 09:44:06 [RateCDR] => 1 ) [2025-04-17 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:44:06' and `end` < '2025-04-17 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:44:19] Production.INFO: count ==1637 [2025-04-17 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:44:06 - End Time 2025-04-17 09:44:06 [2025-04-17 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927422', 'tblTempUsageDetail_20' ) start [2025-04-17 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927422', 'tblTempUsageDetail_20' ) end [2025-04-17 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927422', 'tblTempVendorCDR_20' ) start [2025-04-17 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927422', 'tblTempVendorCDR_20' ) end [2025-04-17 09:44:19] Production.INFO: ProcessCDR(1,14927422,1,1,2) [2025-04-17 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927422', 'tblTempUsageDetail_20' ) start [2025-04-17 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927422', 'tblTempUsageDetail_20' ) end [2025-04-17 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:44:24] Production.INFO: ==6801== Releasing lock... [2025-04-17 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:44:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-17 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:45:05 [end_date_ymd] => 2025-04-17 09:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:45:05' and `end` < '2025-04-17 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-17 09:45:18] Production.INFO: count ==1645 [2025-04-17 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:45:05 - End Time 2025-04-17 09:45:05 [2025-04-17 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927427', 'tblTempUsageDetail_20' ) start [2025-04-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927427', 'tblTempUsageDetail_20' ) end [2025-04-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927427', 'tblTempVendorCDR_20' ) start [2025-04-17 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927427', 'tblTempVendorCDR_20' ) end [2025-04-17 09:45:19] Production.INFO: ProcessCDR(1,14927427,1,1,2) [2025-04-17 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927427', 'tblTempUsageDetail_20' ) start [2025-04-17 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927427', 'tblTempUsageDetail_20' ) end [2025-04-17 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:45:24] Production.INFO: ==6913== Releasing lock... [2025-04-17 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:45:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:46:06 [end_date_ymd] => 2025-04-17 09:46:06 [RateCDR] => 1 ) [2025-04-17 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-17 06:46:06' and `end` < '2025-04-17 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-17 09:46:18] Production.INFO: count ==1662 [2025-04-17 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:46:06 - End Time 2025-04-17 09:46:06 [2025-04-17 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927432', 'tblTempUsageDetail_20' ) start [2025-04-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927432', 'tblTempUsageDetail_20' ) end [2025-04-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927432', 'tblTempVendorCDR_20' ) start [2025-04-17 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927432', 'tblTempVendorCDR_20' ) end [2025-04-17 09:46:19] Production.INFO: ProcessCDR(1,14927432,1,1,2) [2025-04-17 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927432', 'tblTempUsageDetail_20' ) start [2025-04-17 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927432', 'tblTempUsageDetail_20' ) end [2025-04-17 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:46:24] Production.INFO: ==6985== Releasing lock... [2025-04-17 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:46:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:47:05 [end_date_ymd] => 2025-04-17 09:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:47:05' and `end` < '2025-04-17 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-17 09:47:18] Production.INFO: count ==1667 [2025-04-17 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:47:05 - End Time 2025-04-17 09:47:05 [2025-04-17 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927437', 'tblTempUsageDetail_20' ) start [2025-04-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927437', 'tblTempUsageDetail_20' ) end [2025-04-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927437', 'tblTempVendorCDR_20' ) start [2025-04-17 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927437', 'tblTempVendorCDR_20' ) end [2025-04-17 09:47:19] Production.INFO: ProcessCDR(1,14927437,1,1,2) [2025-04-17 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927437', 'tblTempUsageDetail_20' ) start [2025-04-17 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927437', 'tblTempUsageDetail_20' ) end [2025-04-17 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:47:24] Production.INFO: ==7056== Releasing lock... [2025-04-17 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:47:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:48:05 [end_date_ymd] => 2025-04-17 09:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:48:05' and `end` < '2025-04-17 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-17 09:48:18] Production.INFO: count ==1679 [2025-04-17 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:48:05 - End Time 2025-04-17 09:48:05 [2025-04-17 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927442', 'tblTempUsageDetail_20' ) start [2025-04-17 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927442', 'tblTempUsageDetail_20' ) end [2025-04-17 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927442', 'tblTempVendorCDR_20' ) start [2025-04-17 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927442', 'tblTempVendorCDR_20' ) end [2025-04-17 09:48:19] Production.INFO: ProcessCDR(1,14927442,1,1,2) [2025-04-17 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927442', 'tblTempUsageDetail_20' ) start [2025-04-17 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927442', 'tblTempUsageDetail_20' ) end [2025-04-17 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:48:24] Production.INFO: ==7128== Releasing lock... [2025-04-17 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:48:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:49:05 [end_date_ymd] => 2025-04-17 09:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:49:05' and `end` < '2025-04-17 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-17 09:49:19] Production.INFO: count ==1700 [2025-04-17 09:49:20] Production.ERROR: pbx CDR StartTime 2025-04-17 06:49:05 - End Time 2025-04-17 09:49:05 [2025-04-17 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927447', 'tblTempUsageDetail_20' ) start [2025-04-17 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927447', 'tblTempUsageDetail_20' ) end [2025-04-17 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927447', 'tblTempVendorCDR_20' ) start [2025-04-17 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927447', 'tblTempVendorCDR_20' ) end [2025-04-17 09:49:20] Production.INFO: ProcessCDR(1,14927447,1,1,2) [2025-04-17 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927447', 'tblTempUsageDetail_20' ) start [2025-04-17 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927447', 'tblTempUsageDetail_20' ) end [2025-04-17 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:49:25] Production.INFO: ==7200== Releasing lock... [2025-04-17 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:49:25] Production.INFO: 41 MB #Memory Used# [2025-04-17 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:50:06 [end_date_ymd] => 2025-04-17 09:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 06:50:06' and `end` < '2025-04-17 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-17 09:50:19] Production.INFO: count ==1722 [2025-04-17 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 06:50:06 - End Time 2025-04-17 09:50:06 [2025-04-17 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927452', 'tblTempUsageDetail_20' ) start [2025-04-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927452', 'tblTempUsageDetail_20' ) end [2025-04-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927452', 'tblTempVendorCDR_20' ) start [2025-04-17 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927452', 'tblTempVendorCDR_20' ) end [2025-04-17 09:50:20] Production.INFO: ProcessCDR(1,14927452,1,1,2) [2025-04-17 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927452', 'tblTempUsageDetail_20' ) start [2025-04-17 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927452', 'tblTempUsageDetail_20' ) end [2025-04-17 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:50:25] Production.INFO: ==7276== Releasing lock... [2025-04-17 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:50:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-17 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:51:04 [end_date_ymd] => 2025-04-17 09:51:04 [RateCDR] => 1 ) [2025-04-17 09:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:51:04' and `end` < '2025-04-17 09:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:51:17] Production.INFO: count ==1834 [2025-04-17 09:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 06:51:04 - End Time 2025-04-17 09:51:04 [2025-04-17 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927458', 'tblTempUsageDetail_20' ) start [2025-04-17 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927458', 'tblTempUsageDetail_20' ) end [2025-04-17 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927458', 'tblTempVendorCDR_20' ) start [2025-04-17 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927458', 'tblTempVendorCDR_20' ) end [2025-04-17 09:51:18] Production.INFO: ProcessCDR(1,14927458,1,1,2) [2025-04-17 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927458', 'tblTempUsageDetail_20' ) start [2025-04-17 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927458', 'tblTempUsageDetail_20' ) end [2025-04-17 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:51:24] Production.INFO: ==7351== Releasing lock... [2025-04-17 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:51:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-17 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:52:05 [end_date_ymd] => 2025-04-17 09:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:52:05' and `end` < '2025-04-17 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-17 09:52:18] Production.INFO: count ==1851 [2025-04-17 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:52:05 - End Time 2025-04-17 09:52:05 [2025-04-17 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927463', 'tblTempUsageDetail_20' ) start [2025-04-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927463', 'tblTempUsageDetail_20' ) end [2025-04-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927463', 'tblTempVendorCDR_20' ) start [2025-04-17 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927463', 'tblTempVendorCDR_20' ) end [2025-04-17 09:52:19] Production.INFO: ProcessCDR(1,14927463,1,1,2) [2025-04-17 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927463', 'tblTempUsageDetail_20' ) start [2025-04-17 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927463', 'tblTempUsageDetail_20' ) end [2025-04-17 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:52:24] Production.INFO: ==7425== Releasing lock... [2025-04-17 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:52:24] Production.INFO: 42 MB #Memory Used# [2025-04-17 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:53:06 [end_date_ymd] => 2025-04-17 09:53:06 [RateCDR] => 1 ) [2025-04-17 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:53:06' and `end` < '2025-04-17 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:53:19] Production.INFO: count ==1869 [2025-04-17 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:53:06 - End Time 2025-04-17 09:53:06 [2025-04-17 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927468', 'tblTempUsageDetail_20' ) start [2025-04-17 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927468', 'tblTempUsageDetail_20' ) end [2025-04-17 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927468', 'tblTempVendorCDR_20' ) start [2025-04-17 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927468', 'tblTempVendorCDR_20' ) end [2025-04-17 09:53:20] Production.INFO: ProcessCDR(1,14927468,1,1,2) [2025-04-17 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927468', 'tblTempUsageDetail_20' ) start [2025-04-17 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927468', 'tblTempUsageDetail_20' ) end [2025-04-17 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:53:25] Production.INFO: ==7496== Releasing lock... [2025-04-17 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:53:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:54:05 [end_date_ymd] => 2025-04-17 09:54:05 [RateCDR] => 1 ) [2025-04-17 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:54:05' and `end` < '2025-04-17 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:54:18] Production.INFO: count ==1874 [2025-04-17 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:54:05 - End Time 2025-04-17 09:54:05 [2025-04-17 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927473', 'tblTempUsageDetail_20' ) start [2025-04-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927473', 'tblTempUsageDetail_20' ) end [2025-04-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927473', 'tblTempVendorCDR_20' ) start [2025-04-17 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927473', 'tblTempVendorCDR_20' ) end [2025-04-17 09:54:19] Production.INFO: ProcessCDR(1,14927473,1,1,2) [2025-04-17 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927473', 'tblTempUsageDetail_20' ) start [2025-04-17 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927473', 'tblTempUsageDetail_20' ) end [2025-04-17 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:54:24] Production.INFO: ==7566== Releasing lock... [2025-04-17 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:54:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:55:06 [end_date_ymd] => 2025-04-17 09:55:06 [RateCDR] => 1 ) [2025-04-17 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:55:06' and `end` < '2025-04-17 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:55:19] Production.INFO: count ==1886 [2025-04-17 09:55:20] Production.ERROR: pbx CDR StartTime 2025-04-17 06:55:06 - End Time 2025-04-17 09:55:06 [2025-04-17 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927478', 'tblTempUsageDetail_20' ) start [2025-04-17 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927478', 'tblTempUsageDetail_20' ) end [2025-04-17 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927478', 'tblTempVendorCDR_20' ) start [2025-04-17 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927478', 'tblTempVendorCDR_20' ) end [2025-04-17 09:55:20] Production.INFO: ProcessCDR(1,14927478,1,1,2) [2025-04-17 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927478', 'tblTempUsageDetail_20' ) start [2025-04-17 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927478', 'tblTempUsageDetail_20' ) end [2025-04-17 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:55:25] Production.INFO: ==7642== Releasing lock... [2025-04-17 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:55:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:56:05 [end_date_ymd] => 2025-04-17 09:56:05 [RateCDR] => 1 ) [2025-04-17 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 06:56:05' and `end` < '2025-04-17 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 09:56:18] Production.INFO: count ==1906 [2025-04-17 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:56:05 - End Time 2025-04-17 09:56:05 [2025-04-17 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927483', 'tblTempUsageDetail_20' ) start [2025-04-17 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927483', 'tblTempUsageDetail_20' ) end [2025-04-17 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927483', 'tblTempVendorCDR_20' ) start [2025-04-17 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927483', 'tblTempVendorCDR_20' ) end [2025-04-17 09:56:19] Production.INFO: ProcessCDR(1,14927483,1,1,2) [2025-04-17 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927483', 'tblTempUsageDetail_20' ) start [2025-04-17 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927483', 'tblTempUsageDetail_20' ) end [2025-04-17 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:56:24] Production.INFO: ==7723== Releasing lock... [2025-04-17 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:56:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-17 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:57:05 [end_date_ymd] => 2025-04-17 09:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:57:05' and `end` < '2025-04-17 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-17 09:57:18] Production.INFO: count ==1914 [2025-04-17 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:57:05 - End Time 2025-04-17 09:57:05 [2025-04-17 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927488', 'tblTempUsageDetail_20' ) start [2025-04-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927488', 'tblTempUsageDetail_20' ) end [2025-04-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927488', 'tblTempVendorCDR_20' ) start [2025-04-17 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927488', 'tblTempVendorCDR_20' ) end [2025-04-17 09:57:19] Production.INFO: ProcessCDR(1,14927488,1,1,2) [2025-04-17 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927488', 'tblTempUsageDetail_20' ) start [2025-04-17 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927488', 'tblTempUsageDetail_20' ) end [2025-04-17 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:57:24] Production.INFO: ==7801== Releasing lock... [2025-04-17 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:57:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-17 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:58:05 [end_date_ymd] => 2025-04-17 09:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:58:05' and `end` < '2025-04-17 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-17 09:58:18] Production.INFO: count ==1920 [2025-04-17 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:58:05 - End Time 2025-04-17 09:58:05 [2025-04-17 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927493', 'tblTempUsageDetail_20' ) start [2025-04-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927493', 'tblTempUsageDetail_20' ) end [2025-04-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927493', 'tblTempVendorCDR_20' ) start [2025-04-17 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927493', 'tblTempVendorCDR_20' ) end [2025-04-17 09:58:19] Production.INFO: ProcessCDR(1,14927493,1,1,2) [2025-04-17 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927493', 'tblTempUsageDetail_20' ) start [2025-04-17 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927493', 'tblTempUsageDetail_20' ) end [2025-04-17 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:58:24] Production.INFO: ==7874== Releasing lock... [2025-04-17 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:58:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 06:59:05 [end_date_ymd] => 2025-04-17 09:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 06:59:05' and `end` < '2025-04-17 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-17 09:59:18] Production.INFO: count ==1942 [2025-04-17 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 06:59:05 - End Time 2025-04-17 09:59:05 [2025-04-17 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927498', 'tblTempUsageDetail_20' ) start [2025-04-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927498', 'tblTempUsageDetail_20' ) end [2025-04-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927498', 'tblTempVendorCDR_20' ) start [2025-04-17 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927498', 'tblTempVendorCDR_20' ) end [2025-04-17 09:59:19] Production.INFO: ProcessCDR(1,14927498,1,1,2) [2025-04-17 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927498', 'tblTempUsageDetail_20' ) start [2025-04-17 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927498', 'tblTempUsageDetail_20' ) end [2025-04-17 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 09:59:24] Production.INFO: ==7946== Releasing lock... [2025-04-17 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 09:59:24] Production.INFO: 43 MB #Memory Used# [2025-04-17 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:00:06 [end_date_ymd] => 2025-04-17 10:00:06 [RateCDR] => 1 ) [2025-04-17 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:00:06' and `end` < '2025-04-17 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:00:19] Production.INFO: count ==1954 [2025-04-17 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:00:06 - End Time 2025-04-17 10:00:06 [2025-04-17 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927503', 'tblTempUsageDetail_20' ) start [2025-04-17 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927503', 'tblTempUsageDetail_20' ) end [2025-04-17 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927503', 'tblTempVendorCDR_20' ) start [2025-04-17 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927503', 'tblTempVendorCDR_20' ) end [2025-04-17 10:00:19] Production.INFO: ProcessCDR(1,14927503,1,1,2) [2025-04-17 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927503', 'tblTempUsageDetail_20' ) start [2025-04-17 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927503', 'tblTempUsageDetail_20' ) end [2025-04-17 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:00:24] Production.INFO: ==8059== Releasing lock... [2025-04-17 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:00:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-17 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:01:05 [end_date_ymd] => 2025-04-17 10:01:05 [RateCDR] => 1 ) [2025-04-17 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:01:05' and `end` < '2025-04-17 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:01:18] Production.INFO: count ==2049 [2025-04-17 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:01:05 - End Time 2025-04-17 10:01:05 [2025-04-17 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927509', 'tblTempUsageDetail_20' ) start [2025-04-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927509', 'tblTempUsageDetail_20' ) end [2025-04-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927509', 'tblTempVendorCDR_20' ) start [2025-04-17 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927509', 'tblTempVendorCDR_20' ) end [2025-04-17 10:01:19] Production.INFO: ProcessCDR(1,14927509,1,1,2) [2025-04-17 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927509', 'tblTempUsageDetail_20' ) start [2025-04-17 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927509', 'tblTempUsageDetail_20' ) end [2025-04-17 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:01:24] Production.INFO: ==8144== Releasing lock... [2025-04-17 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:01:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-17 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:02:05 [end_date_ymd] => 2025-04-17 10:02:05 [RateCDR] => 1 ) [2025-04-17 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:02:05' and `end` < '2025-04-17 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:02:18] Production.INFO: count ==2076 [2025-04-17 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:02:05 - End Time 2025-04-17 10:02:05 [2025-04-17 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927514', 'tblTempUsageDetail_20' ) start [2025-04-17 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927514', 'tblTempUsageDetail_20' ) end [2025-04-17 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927514', 'tblTempVendorCDR_20' ) start [2025-04-17 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927514', 'tblTempVendorCDR_20' ) end [2025-04-17 10:02:19] Production.INFO: ProcessCDR(1,14927514,1,1,2) [2025-04-17 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927514', 'tblTempUsageDetail_20' ) start [2025-04-17 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927514', 'tblTempUsageDetail_20' ) end [2025-04-17 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:02:22] Production.INFO: ==8219== Releasing lock... [2025-04-17 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:02:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-17 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:03:05 [end_date_ymd] => 2025-04-17 10:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:03:05' and `end` < '2025-04-17 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-17 10:03:18] Production.INFO: count ==2098 [2025-04-17 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:03:05 - End Time 2025-04-17 10:03:05 [2025-04-17 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927519', 'tblTempUsageDetail_20' ) start [2025-04-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927519', 'tblTempUsageDetail_20' ) end [2025-04-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927519', 'tblTempVendorCDR_20' ) start [2025-04-17 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927519', 'tblTempVendorCDR_20' ) end [2025-04-17 10:03:19] Production.INFO: ProcessCDR(1,14927519,1,1,2) [2025-04-17 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927519', 'tblTempUsageDetail_20' ) start [2025-04-17 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927519', 'tblTempUsageDetail_20' ) end [2025-04-17 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:03:24] Production.INFO: ==8292== Releasing lock... [2025-04-17 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:03:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-17 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:04:05 [end_date_ymd] => 2025-04-17 10:04:05 [RateCDR] => 1 ) [2025-04-17 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:04:05' and `end` < '2025-04-17 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:04:18] Production.INFO: count ==2104 [2025-04-17 10:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 07:04:05 - End Time 2025-04-17 10:04:05 [2025-04-17 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927524', 'tblTempUsageDetail_20' ) start [2025-04-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927524', 'tblTempUsageDetail_20' ) end [2025-04-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927524', 'tblTempVendorCDR_20' ) start [2025-04-17 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927524', 'tblTempVendorCDR_20' ) end [2025-04-17 10:04:18] Production.INFO: ProcessCDR(1,14927524,1,1,2) [2025-04-17 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927524', 'tblTempUsageDetail_20' ) start [2025-04-17 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927524', 'tblTempUsageDetail_20' ) end [2025-04-17 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:04:24] Production.INFO: ==8370== Releasing lock... [2025-04-17 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:04:24] Production.INFO: 44 MB #Memory Used# [2025-04-17 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:05:05 [end_date_ymd] => 2025-04-17 10:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:05:05' and `end` < '2025-04-17 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-17 10:05:18] Production.INFO: count ==2110 [2025-04-17 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:05:05 - End Time 2025-04-17 10:05:05 [2025-04-17 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927529', 'tblTempUsageDetail_20' ) start [2025-04-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927529', 'tblTempUsageDetail_20' ) end [2025-04-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927529', 'tblTempVendorCDR_20' ) start [2025-04-17 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927529', 'tblTempVendorCDR_20' ) end [2025-04-17 10:05:19] Production.INFO: ProcessCDR(1,14927529,1,1,2) [2025-04-17 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927529', 'tblTempUsageDetail_20' ) start [2025-04-17 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927529', 'tblTempUsageDetail_20' ) end [2025-04-17 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:05:24] Production.INFO: ==8442== Releasing lock... [2025-04-17 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:05:24] Production.INFO: 44 MB #Memory Used# [2025-04-17 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:06:05 [end_date_ymd] => 2025-04-17 10:06:05 [RateCDR] => 1 ) [2025-04-17 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:06:05' and `end` < '2025-04-17 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:06:19] Production.INFO: count ==2122 [2025-04-17 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:06:05 - End Time 2025-04-17 10:06:05 [2025-04-17 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927534', 'tblTempUsageDetail_20' ) start [2025-04-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927534', 'tblTempUsageDetail_20' ) end [2025-04-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927534', 'tblTempVendorCDR_20' ) start [2025-04-17 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927534', 'tblTempVendorCDR_20' ) end [2025-04-17 10:06:19] Production.INFO: ProcessCDR(1,14927534,1,1,2) [2025-04-17 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927534', 'tblTempUsageDetail_20' ) start [2025-04-17 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927534', 'tblTempUsageDetail_20' ) end [2025-04-17 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:06:25] Production.INFO: ==8513== Releasing lock... [2025-04-17 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:06:25] Production.INFO: 44 MB #Memory Used# [2025-04-17 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:07:05 [end_date_ymd] => 2025-04-17 10:07:05 [RateCDR] => 1 ) [2025-04-17 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:07:05' and `end` < '2025-04-17 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:07:18] Production.INFO: count ==2157 [2025-04-17 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:07:05 - End Time 2025-04-17 10:07:05 [2025-04-17 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927539', 'tblTempUsageDetail_20' ) start [2025-04-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927539', 'tblTempUsageDetail_20' ) end [2025-04-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927539', 'tblTempVendorCDR_20' ) start [2025-04-17 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927539', 'tblTempVendorCDR_20' ) end [2025-04-17 10:07:19] Production.INFO: ProcessCDR(1,14927539,1,1,2) [2025-04-17 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927539', 'tblTempUsageDetail_20' ) start [2025-04-17 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927539', 'tblTempUsageDetail_20' ) end [2025-04-17 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:07:24] Production.INFO: ==8588== Releasing lock... [2025-04-17 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:07:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:08:05 [end_date_ymd] => 2025-04-17 10:08:05 [RateCDR] => 1 ) [2025-04-17 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:08:05' and `end` < '2025-04-17 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:08:18] Production.INFO: count ==2173 [2025-04-17 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:08:05 - End Time 2025-04-17 10:08:05 [2025-04-17 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927544', 'tblTempUsageDetail_20' ) start [2025-04-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927544', 'tblTempUsageDetail_20' ) end [2025-04-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927544', 'tblTempVendorCDR_20' ) start [2025-04-17 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927544', 'tblTempVendorCDR_20' ) end [2025-04-17 10:08:19] Production.INFO: ProcessCDR(1,14927544,1,1,2) [2025-04-17 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927544', 'tblTempUsageDetail_20' ) start [2025-04-17 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927544', 'tblTempUsageDetail_20' ) end [2025-04-17 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:08:24] Production.INFO: ==8661== Releasing lock... [2025-04-17 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:08:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:09:05 [end_date_ymd] => 2025-04-17 10:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:09:05' and `end` < '2025-04-17 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-17 10:09:18] Production.INFO: count ==2184 [2025-04-17 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:09:05 - End Time 2025-04-17 10:09:05 [2025-04-17 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927549', 'tblTempUsageDetail_20' ) start [2025-04-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927549', 'tblTempUsageDetail_20' ) end [2025-04-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927549', 'tblTempVendorCDR_20' ) start [2025-04-17 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927549', 'tblTempVendorCDR_20' ) end [2025-04-17 10:09:19] Production.INFO: ProcessCDR(1,14927549,1,1,2) [2025-04-17 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927549', 'tblTempUsageDetail_20' ) start [2025-04-17 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927549', 'tblTempUsageDetail_20' ) end [2025-04-17 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:09:23] Production.INFO: ==8738== Releasing lock... [2025-04-17 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:09:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:10:06 [end_date_ymd] => 2025-04-17 10:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:10:06' and `end` < '2025-04-17 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-17 10:10:19] Production.INFO: count ==2209 [2025-04-17 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:10:06 - End Time 2025-04-17 10:10:06 [2025-04-17 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927555', 'tblTempUsageDetail_20' ) start [2025-04-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927555', 'tblTempUsageDetail_20' ) end [2025-04-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927555', 'tblTempVendorCDR_20' ) start [2025-04-17 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927555', 'tblTempVendorCDR_20' ) end [2025-04-17 10:10:20] Production.INFO: ProcessCDR(1,14927555,1,1,2) [2025-04-17 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927555', 'tblTempUsageDetail_20' ) start [2025-04-17 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927555', 'tblTempUsageDetail_20' ) end [2025-04-17 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:10:25] Production.INFO: ==8816== Releasing lock... [2025-04-17 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:10:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:11:04 [end_date_ymd] => 2025-04-17 10:11:04 [RateCDR] => 1 ) [2025-04-17 10:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:11:04' and `end` < '2025-04-17 10:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:11:18] Production.INFO: count ==2308 [2025-04-17 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:11:04 - End Time 2025-04-17 10:11:04 [2025-04-17 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927560', 'tblTempUsageDetail_20' ) start [2025-04-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927560', 'tblTempUsageDetail_20' ) end [2025-04-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927560', 'tblTempVendorCDR_20' ) start [2025-04-17 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927560', 'tblTempVendorCDR_20' ) end [2025-04-17 10:11:19] Production.INFO: ProcessCDR(1,14927560,1,1,2) [2025-04-17 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927560', 'tblTempUsageDetail_20' ) start [2025-04-17 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927560', 'tblTempUsageDetail_20' ) end [2025-04-17 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:11:24] Production.INFO: ==8889== Releasing lock... [2025-04-17 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:11:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:12:05 [end_date_ymd] => 2025-04-17 10:12:05 [RateCDR] => 1 ) [2025-04-17 10: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-17 07:12:05' and `end` < '2025-04-17 10: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-17 10:12:18] Production.INFO: count ==2314 [2025-04-17 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:12:05 - End Time 2025-04-17 10:12:05 [2025-04-17 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927565', 'tblTempUsageDetail_20' ) start [2025-04-17 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927565', 'tblTempUsageDetail_20' ) end [2025-04-17 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927565', 'tblTempVendorCDR_20' ) start [2025-04-17 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927565', 'tblTempVendorCDR_20' ) end [2025-04-17 10:12:19] Production.INFO: ProcessCDR(1,14927565,1,1,2) [2025-04-17 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927565', 'tblTempUsageDetail_20' ) start [2025-04-17 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927565', 'tblTempUsageDetail_20' ) end [2025-04-17 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:12:24] Production.INFO: ==8962== Releasing lock... [2025-04-17 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:12:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:13:06 [end_date_ymd] => 2025-04-17 10:13:06 [RateCDR] => 1 ) [2025-04-17 10: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-17 07:13:06' and `end` < '2025-04-17 10: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-17 10:13:19] Production.INFO: count ==2339 [2025-04-17 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:13:06 - End Time 2025-04-17 10:13:06 [2025-04-17 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927570', 'tblTempUsageDetail_20' ) start [2025-04-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927570', 'tblTempUsageDetail_20' ) end [2025-04-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927570', 'tblTempVendorCDR_20' ) start [2025-04-17 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927570', 'tblTempVendorCDR_20' ) end [2025-04-17 10:13:20] Production.INFO: ProcessCDR(1,14927570,1,1,2) [2025-04-17 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927570', 'tblTempUsageDetail_20' ) start [2025-04-17 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927570', 'tblTempUsageDetail_20' ) end [2025-04-17 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:13:25] Production.INFO: ==9033== Releasing lock... [2025-04-17 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:13:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:14:06 [end_date_ymd] => 2025-04-17 10:14:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:14:06' and `end` < '2025-04-17 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-17 10:14:19] Production.INFO: count ==2361 [2025-04-17 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:14:06 - End Time 2025-04-17 10:14:06 [2025-04-17 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927575', 'tblTempUsageDetail_20' ) start [2025-04-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927575', 'tblTempUsageDetail_20' ) end [2025-04-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927575', 'tblTempVendorCDR_20' ) start [2025-04-17 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927575', 'tblTempVendorCDR_20' ) end [2025-04-17 10:14:20] Production.INFO: ProcessCDR(1,14927575,1,1,2) [2025-04-17 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927575', 'tblTempUsageDetail_20' ) start [2025-04-17 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927575', 'tblTempUsageDetail_20' ) end [2025-04-17 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:14:23] Production.INFO: ==9107== Releasing lock... [2025-04-17 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:14:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:15:04 [end_date_ymd] => 2025-04-17 10:15:04 [RateCDR] => 1 ) [2025-04-17 10:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:15:04' and `end` < '2025-04-17 10:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:15:18] Production.INFO: count ==2391 [2025-04-17 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:15:04 - End Time 2025-04-17 10:15:04 [2025-04-17 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927580', 'tblTempUsageDetail_20' ) start [2025-04-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927580', 'tblTempUsageDetail_20' ) end [2025-04-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927580', 'tblTempVendorCDR_20' ) start [2025-04-17 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927580', 'tblTempVendorCDR_20' ) end [2025-04-17 10:15:19] Production.INFO: ProcessCDR(1,14927580,1,1,2) [2025-04-17 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927580', 'tblTempUsageDetail_20' ) start [2025-04-17 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927580', 'tblTempUsageDetail_20' ) end [2025-04-17 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:15:24] Production.INFO: ==9200== Releasing lock... [2025-04-17 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:15:24] Production.INFO: 46 MB #Memory Used# [2025-04-17 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:16:05 [end_date_ymd] => 2025-04-17 10:16:05 [RateCDR] => 1 ) [2025-04-17 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:16:05' and `end` < '2025-04-17 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:16:18] Production.INFO: count ==2402 [2025-04-17 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:16:05 - End Time 2025-04-17 10:16:05 [2025-04-17 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927585', 'tblTempUsageDetail_20' ) start [2025-04-17 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927585', 'tblTempUsageDetail_20' ) end [2025-04-17 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927585', 'tblTempVendorCDR_20' ) start [2025-04-17 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927585', 'tblTempVendorCDR_20' ) end [2025-04-17 10:16:19] Production.INFO: ProcessCDR(1,14927585,1,1,2) [2025-04-17 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927585', 'tblTempUsageDetail_20' ) start [2025-04-17 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927585', 'tblTempUsageDetail_20' ) end [2025-04-17 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:16:25] Production.INFO: ==9316== Releasing lock... [2025-04-17 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:16:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-17 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:17:05 [end_date_ymd] => 2025-04-17 10:17:05 [RateCDR] => 1 ) [2025-04-17 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:17:05' and `end` < '2025-04-17 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:17:19] Production.INFO: count ==2416 [2025-04-17 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:17:05 - End Time 2025-04-17 10:17:05 [2025-04-17 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927590', 'tblTempUsageDetail_20' ) start [2025-04-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927590', 'tblTempUsageDetail_20' ) end [2025-04-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927590', 'tblTempVendorCDR_20' ) start [2025-04-17 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927590', 'tblTempVendorCDR_20' ) end [2025-04-17 10:17:20] Production.INFO: ProcessCDR(1,14927590,1,1,2) [2025-04-17 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927590', 'tblTempUsageDetail_20' ) start [2025-04-17 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927590', 'tblTempUsageDetail_20' ) end [2025-04-17 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:17:24] Production.INFO: ==9390== Releasing lock... [2025-04-17 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:17:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-17 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:18:05 [end_date_ymd] => 2025-04-17 10:18:05 [RateCDR] => 1 ) [2025-04-17 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:18:05' and `end` < '2025-04-17 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:18:18] Production.INFO: count ==2467 [2025-04-17 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:18:05 - End Time 2025-04-17 10:18:05 [2025-04-17 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927595', 'tblTempUsageDetail_20' ) start [2025-04-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927595', 'tblTempUsageDetail_20' ) end [2025-04-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927595', 'tblTempVendorCDR_20' ) start [2025-04-17 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927595', 'tblTempVendorCDR_20' ) end [2025-04-17 10:18:19] Production.INFO: ProcessCDR(1,14927595,1,1,2) [2025-04-17 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927595', 'tblTempUsageDetail_20' ) start [2025-04-17 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927595', 'tblTempUsageDetail_20' ) end [2025-04-17 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:18:24] Production.INFO: ==9468== Releasing lock... [2025-04-17 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:18:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-17 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:19:05 [end_date_ymd] => 2025-04-17 10:19:05 [RateCDR] => 1 ) [2025-04-17 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:19:05' and `end` < '2025-04-17 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-17 10:19:19] Production.INFO: count ==2497 [2025-04-17 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:19:05 - End Time 2025-04-17 10:19:05 [2025-04-17 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927600', 'tblTempUsageDetail_20' ) start [2025-04-17 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927600', 'tblTempUsageDetail_20' ) end [2025-04-17 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927600', 'tblTempVendorCDR_20' ) start [2025-04-17 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927600', 'tblTempVendorCDR_20' ) end [2025-04-17 10:19:20] Production.INFO: ProcessCDR(1,14927600,1,1,2) [2025-04-17 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927600', 'tblTempUsageDetail_20' ) start [2025-04-17 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927600', 'tblTempUsageDetail_20' ) end [2025-04-17 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:19:25] Production.INFO: ==9548== Releasing lock... [2025-04-17 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:19:25] Production.INFO: 47 MB #Memory Used# [2025-04-17 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:20:05 [end_date_ymd] => 2025-04-17 10:20:05 [RateCDR] => 1 ) [2025-04-17 10: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-17 07:20:05' and `end` < '2025-04-17 10: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-17 10:20:19] Production.INFO: count ==2525 [2025-04-17 10:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:20:05 - End Time 2025-04-17 10:20:05 [2025-04-17 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927606', 'tblTempUsageDetail_20' ) start [2025-04-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927606', 'tblTempUsageDetail_20' ) end [2025-04-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927606', 'tblTempVendorCDR_20' ) start [2025-04-17 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927606', 'tblTempVendorCDR_20' ) end [2025-04-17 10:20:20] Production.INFO: ProcessCDR(1,14927606,1,1,2) [2025-04-17 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927606', 'tblTempUsageDetail_20' ) start [2025-04-17 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927606', 'tblTempUsageDetail_20' ) end [2025-04-17 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:20:24] Production.INFO: ==9628== Releasing lock... [2025-04-17 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:20:24] Production.INFO: 47 MB #Memory Used# [2025-04-17 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:21:05 [end_date_ymd] => 2025-04-17 10:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:21:05' and `end` < '2025-04-17 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-17 10:21:18] Production.INFO: count ==2663 [2025-04-17 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:21:05 - End Time 2025-04-17 10:21:05 [2025-04-17 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927611', 'tblTempUsageDetail_20' ) start [2025-04-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927611', 'tblTempUsageDetail_20' ) end [2025-04-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927611', 'tblTempVendorCDR_20' ) start [2025-04-17 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927611', 'tblTempVendorCDR_20' ) end [2025-04-17 10:21:19] Production.INFO: ProcessCDR(1,14927611,1,1,2) [2025-04-17 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927611', 'tblTempUsageDetail_20' ) start [2025-04-17 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927611', 'tblTempUsageDetail_20' ) end [2025-04-17 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:21:24] Production.INFO: ==9704== Releasing lock... [2025-04-17 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:21:24] Production.INFO: 48 MB #Memory Used# [2025-04-17 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:22:05 [end_date_ymd] => 2025-04-17 10:22:05 [RateCDR] => 1 ) [2025-04-17 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:22:05' and `end` < '2025-04-17 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:22:18] Production.INFO: count ==2680 [2025-04-17 10:22:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:22:05 - End Time 2025-04-17 10:22:05 [2025-04-17 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927616', 'tblTempUsageDetail_20' ) start [2025-04-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927616', 'tblTempUsageDetail_20' ) end [2025-04-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927616', 'tblTempVendorCDR_20' ) start [2025-04-17 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927616', 'tblTempVendorCDR_20' ) end [2025-04-17 10:22:19] Production.INFO: ProcessCDR(1,14927616,1,1,2) [2025-04-17 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927616', 'tblTempUsageDetail_20' ) start [2025-04-17 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927616', 'tblTempUsageDetail_20' ) end [2025-04-17 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:22:24] Production.INFO: ==9776== Releasing lock... [2025-04-17 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:22:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-17 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:23:05 [end_date_ymd] => 2025-04-17 10:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:23:05' and `end` < '2025-04-17 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-17 10:23:18] Production.INFO: count ==2698 [2025-04-17 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:23:05 - End Time 2025-04-17 10:23:05 [2025-04-17 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927621', 'tblTempUsageDetail_20' ) start [2025-04-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927621', 'tblTempUsageDetail_20' ) end [2025-04-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927621', 'tblTempVendorCDR_20' ) start [2025-04-17 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927621', 'tblTempVendorCDR_20' ) end [2025-04-17 10:23:19] Production.INFO: ProcessCDR(1,14927621,1,1,2) [2025-04-17 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927621', 'tblTempUsageDetail_20' ) start [2025-04-17 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927621', 'tblTempUsageDetail_20' ) end [2025-04-17 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:23:24] Production.INFO: ==9857== Releasing lock... [2025-04-17 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:23:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-17 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:24:05 [end_date_ymd] => 2025-04-17 10:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:24:05' and `end` < '2025-04-17 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-17 10:24:19] Production.INFO: count ==2712 [2025-04-17 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:24:05 - End Time 2025-04-17 10:24:05 [2025-04-17 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927626', 'tblTempUsageDetail_20' ) start [2025-04-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927626', 'tblTempUsageDetail_20' ) end [2025-04-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927626', 'tblTempVendorCDR_20' ) start [2025-04-17 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927626', 'tblTempVendorCDR_20' ) end [2025-04-17 10:24:20] Production.INFO: ProcessCDR(1,14927626,1,1,2) [2025-04-17 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927626', 'tblTempUsageDetail_20' ) start [2025-04-17 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927626', 'tblTempUsageDetail_20' ) end [2025-04-17 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:24:25] Production.INFO: ==9929== Releasing lock... [2025-04-17 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:24:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:25:05 [end_date_ymd] => 2025-04-17 10:25:05 [RateCDR] => 1 ) [2025-04-17 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:25:05' and `end` < '2025-04-17 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:25:18] Production.INFO: count ==2733 [2025-04-17 10:25:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:25:05 - End Time 2025-04-17 10:25:05 [2025-04-17 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927631', 'tblTempUsageDetail_20' ) start [2025-04-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927631', 'tblTempUsageDetail_20' ) end [2025-04-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927631', 'tblTempVendorCDR_20' ) start [2025-04-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927631', 'tblTempVendorCDR_20' ) end [2025-04-17 10:25:19] Production.INFO: ProcessCDR(1,14927631,1,1,2) [2025-04-17 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927631', 'tblTempUsageDetail_20' ) start [2025-04-17 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927631', 'tblTempUsageDetail_20' ) end [2025-04-17 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:25:24] Production.INFO: ==10003== Releasing lock... [2025-04-17 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:25:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:26:05 [end_date_ymd] => 2025-04-17 10:26:05 [RateCDR] => 1 ) [2025-04-17 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:26:05' and `end` < '2025-04-17 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:26:18] Production.INFO: count ==2748 [2025-04-17 10:26:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:26:05 - End Time 2025-04-17 10:26:05 [2025-04-17 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927636', 'tblTempUsageDetail_20' ) start [2025-04-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927636', 'tblTempUsageDetail_20' ) end [2025-04-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927636', 'tblTempVendorCDR_20' ) start [2025-04-17 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927636', 'tblTempVendorCDR_20' ) end [2025-04-17 10:26:19] Production.INFO: ProcessCDR(1,14927636,1,1,2) [2025-04-17 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927636', 'tblTempUsageDetail_20' ) start [2025-04-17 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927636', 'tblTempUsageDetail_20' ) end [2025-04-17 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:26:24] Production.INFO: ==10076== Releasing lock... [2025-04-17 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:26:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:27:05 [end_date_ymd] => 2025-04-17 10:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:27:05' and `end` < '2025-04-17 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-17 10:27:18] Production.INFO: count ==2772 [2025-04-17 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:27:05 - End Time 2025-04-17 10:27:05 [2025-04-17 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927641', 'tblTempUsageDetail_20' ) start [2025-04-17 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927641', 'tblTempUsageDetail_20' ) end [2025-04-17 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927641', 'tblTempVendorCDR_20' ) start [2025-04-17 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927641', 'tblTempVendorCDR_20' ) end [2025-04-17 10:27:19] Production.INFO: ProcessCDR(1,14927641,1,1,2) [2025-04-17 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927641', 'tblTempUsageDetail_20' ) start [2025-04-17 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927641', 'tblTempUsageDetail_20' ) end [2025-04-17 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:27:24] Production.INFO: ==10146== Releasing lock... [2025-04-17 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:27:24] Production.INFO: 49 MB #Memory Used# [2025-04-17 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:28:06 [end_date_ymd] => 2025-04-17 10:28:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:28:06' and `end` < '2025-04-17 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-17 10:28:19] Production.INFO: count ==2781 [2025-04-17 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:28:06 - End Time 2025-04-17 10:28:06 [2025-04-17 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927646', 'tblTempUsageDetail_20' ) start [2025-04-17 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927646', 'tblTempUsageDetail_20' ) end [2025-04-17 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927646', 'tblTempVendorCDR_20' ) start [2025-04-17 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927646', 'tblTempVendorCDR_20' ) end [2025-04-17 10:28:20] Production.INFO: ProcessCDR(1,14927646,1,1,2) [2025-04-17 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927646', 'tblTempUsageDetail_20' ) start [2025-04-17 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927646', 'tblTempUsageDetail_20' ) end [2025-04-17 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:28:25] Production.INFO: ==10219== Releasing lock... [2025-04-17 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:28:25] Production.INFO: 49 MB #Memory Used# [2025-04-17 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:29:05 [end_date_ymd] => 2025-04-17 10:29:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:29:05' and `end` < '2025-04-17 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-17 10:29:19] Production.INFO: count ==2800 [2025-04-17 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:29:05 - End Time 2025-04-17 10:29:05 [2025-04-17 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927651', 'tblTempUsageDetail_20' ) start [2025-04-17 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927651', 'tblTempUsageDetail_20' ) end [2025-04-17 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927651', 'tblTempVendorCDR_20' ) start [2025-04-17 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927651', 'tblTempVendorCDR_20' ) end [2025-04-17 10:29:20] Production.INFO: ProcessCDR(1,14927651,1,1,2) [2025-04-17 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927651', 'tblTempUsageDetail_20' ) start [2025-04-17 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927651', 'tblTempUsageDetail_20' ) end [2025-04-17 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:29:24] Production.INFO: ==10291== Releasing lock... [2025-04-17 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:29:24] Production.INFO: 49 MB #Memory Used# [2025-04-17 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:30:06 [end_date_ymd] => 2025-04-17 10:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:30:06' and `end` < '2025-04-17 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-17 10:30:20] Production.INFO: count ==2824 [2025-04-17 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-17 07:30:06 - End Time 2025-04-17 10:30:06 [2025-04-17 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927657', 'tblTempUsageDetail_20' ) start [2025-04-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927657', 'tblTempUsageDetail_20' ) end [2025-04-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927657', 'tblTempVendorCDR_20' ) start [2025-04-17 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927657', 'tblTempVendorCDR_20' ) end [2025-04-17 10:30:21] Production.INFO: ProcessCDR(1,14927657,1,1,2) [2025-04-17 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927657', 'tblTempUsageDetail_20' ) start [2025-04-17 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927657', 'tblTempUsageDetail_20' ) end [2025-04-17 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:30:26] Production.INFO: ==10366== Releasing lock... [2025-04-17 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:30:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:31:05 [end_date_ymd] => 2025-04-17 10:31:05 [RateCDR] => 1 ) [2025-04-17 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:31:05' and `end` < '2025-04-17 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:31:19] Production.INFO: count ==2941 [2025-04-17 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:31:05 - End Time 2025-04-17 10:31:05 [2025-04-17 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927662', 'tblTempUsageDetail_20' ) start [2025-04-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927662', 'tblTempUsageDetail_20' ) end [2025-04-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927662', 'tblTempVendorCDR_20' ) start [2025-04-17 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927662', 'tblTempVendorCDR_20' ) end [2025-04-17 10:31:20] Production.INFO: ProcessCDR(1,14927662,1,1,2) [2025-04-17 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927662', 'tblTempUsageDetail_20' ) start [2025-04-17 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927662', 'tblTempUsageDetail_20' ) end [2025-04-17 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:31:25] Production.INFO: ==10480== Releasing lock... [2025-04-17 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:31:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-17 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:32:05 [end_date_ymd] => 2025-04-17 10:32:05 [RateCDR] => 1 ) [2025-04-17 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:32:05' and `end` < '2025-04-17 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:32:18] Production.INFO: count ==2957 [2025-04-17 10:32:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:32:05 - End Time 2025-04-17 10:32:05 [2025-04-17 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927667', 'tblTempUsageDetail_20' ) start [2025-04-17 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927667', 'tblTempUsageDetail_20' ) end [2025-04-17 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927667', 'tblTempVendorCDR_20' ) start [2025-04-17 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927667', 'tblTempVendorCDR_20' ) end [2025-04-17 10:32:19] Production.INFO: ProcessCDR(1,14927667,1,1,2) [2025-04-17 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927667', 'tblTempUsageDetail_20' ) start [2025-04-17 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927667', 'tblTempUsageDetail_20' ) end [2025-04-17 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:32:24] Production.INFO: ==10556== Releasing lock... [2025-04-17 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:32:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-17 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:33:05 [end_date_ymd] => 2025-04-17 10:33:05 [RateCDR] => 1 ) [2025-04-17 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:33:05' and `end` < '2025-04-17 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:33:19] Production.INFO: count ==2968 [2025-04-17 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:33:05 - End Time 2025-04-17 10:33:05 [2025-04-17 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927672', 'tblTempUsageDetail_20' ) start [2025-04-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927672', 'tblTempUsageDetail_20' ) end [2025-04-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927672', 'tblTempVendorCDR_20' ) start [2025-04-17 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927672', 'tblTempVendorCDR_20' ) end [2025-04-17 10:33:20] Production.INFO: ProcessCDR(1,14927672,1,1,2) [2025-04-17 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927672', 'tblTempUsageDetail_20' ) start [2025-04-17 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927672', 'tblTempUsageDetail_20' ) end [2025-04-17 10:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:33:23] Production.INFO: ==10628== Releasing lock... [2025-04-17 10:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:33:23] Production.INFO: 50 MB #Memory Used# [2025-04-17 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:34:05 [end_date_ymd] => 2025-04-17 10:34:05 [RateCDR] => 1 ) [2025-04-17 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:34:05' and `end` < '2025-04-17 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:34:19] Production.INFO: count ==2984 [2025-04-17 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:34:05 - End Time 2025-04-17 10:34:05 [2025-04-17 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927677', 'tblTempUsageDetail_20' ) start [2025-04-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927677', 'tblTempUsageDetail_20' ) end [2025-04-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927677', 'tblTempVendorCDR_20' ) start [2025-04-17 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927677', 'tblTempVendorCDR_20' ) end [2025-04-17 10:34:20] Production.INFO: ProcessCDR(1,14927677,1,1,2) [2025-04-17 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927677', 'tblTempUsageDetail_20' ) start [2025-04-17 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927677', 'tblTempUsageDetail_20' ) end [2025-04-17 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:34:25] Production.INFO: ==10698== Releasing lock... [2025-04-17 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:34:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-17 10:35:10] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:35:10 [end_date_ymd] => 2025-04-17 10:35:10 [RateCDR] => 1 ) [2025-04-17 10:35:10] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:35:10' and `end` < '2025-04-17 10:35:10' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:35:24] Production.INFO: count ==3000 [2025-04-17 10:35:28] Production.ERROR: pbx CDR StartTime 2025-04-17 07:35:10 - End Time 2025-04-17 10:35:10 [2025-04-17 10:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927682', 'tblTempUsageDetail_20' ) start [2025-04-17 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927682', 'tblTempUsageDetail_20' ) end [2025-04-17 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927682', 'tblTempVendorCDR_20' ) start [2025-04-17 10:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927682', 'tblTempVendorCDR_20' ) end [2025-04-17 10:35:29] Production.INFO: ProcessCDR(1,14927682,1,1,2) [2025-04-17 10:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927682', 'tblTempUsageDetail_20' ) start [2025-04-17 10:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927682', 'tblTempUsageDetail_20' ) end [2025-04-17 10:35:39] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:35:39] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:35:39] Production.INFO: ==10781== Releasing lock... [2025-04-17 10:35:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:35:39] Production.INFO: 50.5 MB #Memory Used# [2025-04-17 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:36:05 [end_date_ymd] => 2025-04-17 10:36:05 [RateCDR] => 1 ) [2025-04-17 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:36:05' and `end` < '2025-04-17 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:36:18] Production.INFO: count ==3016 [2025-04-17 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:36:05 - End Time 2025-04-17 10:36:05 [2025-04-17 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927687', 'tblTempUsageDetail_20' ) start [2025-04-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927687', 'tblTempUsageDetail_20' ) end [2025-04-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927687', 'tblTempVendorCDR_20' ) start [2025-04-17 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927687', 'tblTempVendorCDR_20' ) end [2025-04-17 10:36:19] Production.INFO: ProcessCDR(1,14927687,1,1,2) [2025-04-17 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927687', 'tblTempUsageDetail_20' ) start [2025-04-17 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927687', 'tblTempUsageDetail_20' ) end [2025-04-17 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:36:25] Production.INFO: ==10858== Releasing lock... [2025-04-17 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:36:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-17 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:37:05 [end_date_ymd] => 2025-04-17 10:37:05 [RateCDR] => 1 ) [2025-04-17 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:37:05' and `end` < '2025-04-17 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:37:19] Production.INFO: count ==3033 [2025-04-17 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:37:05 - End Time 2025-04-17 10:37:05 [2025-04-17 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927692', 'tblTempUsageDetail_20' ) start [2025-04-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927692', 'tblTempUsageDetail_20' ) end [2025-04-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927692', 'tblTempVendorCDR_20' ) start [2025-04-17 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927692', 'tblTempVendorCDR_20' ) end [2025-04-17 10:37:20] Production.INFO: ProcessCDR(1,14927692,1,1,2) [2025-04-17 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927692', 'tblTempUsageDetail_20' ) start [2025-04-17 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927692', 'tblTempUsageDetail_20' ) end [2025-04-17 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:37:25] Production.INFO: ==10931== Releasing lock... [2025-04-17 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:37:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:38:06 [end_date_ymd] => 2025-04-17 10:38:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:38:06' and `end` < '2025-04-17 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-17 10:38:19] Production.INFO: count ==3041 [2025-04-17 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:38:06 - End Time 2025-04-17 10:38:06 [2025-04-17 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927697', 'tblTempUsageDetail_20' ) start [2025-04-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927697', 'tblTempUsageDetail_20' ) end [2025-04-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927697', 'tblTempVendorCDR_20' ) start [2025-04-17 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927697', 'tblTempVendorCDR_20' ) end [2025-04-17 10:38:20] Production.INFO: ProcessCDR(1,14927697,1,1,2) [2025-04-17 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927697', 'tblTempUsageDetail_20' ) start [2025-04-17 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927697', 'tblTempUsageDetail_20' ) end [2025-04-17 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:38:25] Production.INFO: ==11005== Releasing lock... [2025-04-17 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:38:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:39:05 [end_date_ymd] => 2025-04-17 10:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:39:05' and `end` < '2025-04-17 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-17 10:39:18] Production.INFO: count ==3057 [2025-04-17 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:39:05 - End Time 2025-04-17 10:39:05 [2025-04-17 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927702', 'tblTempUsageDetail_20' ) start [2025-04-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927702', 'tblTempUsageDetail_20' ) end [2025-04-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927702', 'tblTempVendorCDR_20' ) start [2025-04-17 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927702', 'tblTempVendorCDR_20' ) end [2025-04-17 10:39:20] Production.INFO: ProcessCDR(1,14927702,1,1,2) [2025-04-17 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927702', 'tblTempUsageDetail_20' ) start [2025-04-17 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927702', 'tblTempUsageDetail_20' ) end [2025-04-17 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:39:24] Production.INFO: ==11074== Releasing lock... [2025-04-17 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:39:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:40:06 [end_date_ymd] => 2025-04-17 10:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:40:06' and `end` < '2025-04-17 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-17 10:40:19] Production.INFO: count ==3085 [2025-04-17 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:40:06 - End Time 2025-04-17 10:40:06 [2025-04-17 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927708', 'tblTempUsageDetail_20' ) start [2025-04-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927708', 'tblTempUsageDetail_20' ) end [2025-04-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927708', 'tblTempVendorCDR_20' ) start [2025-04-17 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927708', 'tblTempVendorCDR_20' ) end [2025-04-17 10:40:20] Production.INFO: ProcessCDR(1,14927708,1,1,2) [2025-04-17 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927708', 'tblTempUsageDetail_20' ) start [2025-04-17 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927708', 'tblTempUsageDetail_20' ) end [2025-04-17 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:40:25] Production.INFO: ==11151== Releasing lock... [2025-04-17 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:40:25] Production.INFO: 51 MB #Memory Used# [2025-04-17 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:41:05 [end_date_ymd] => 2025-04-17 10:41:05 [RateCDR] => 1 ) [2025-04-17 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:41:05' and `end` < '2025-04-17 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:41:18] Production.INFO: count ==3205 [2025-04-17 10:41:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:41:05 - End Time 2025-04-17 10:41:05 [2025-04-17 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927713', 'tblTempUsageDetail_20' ) start [2025-04-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927713', 'tblTempUsageDetail_20' ) end [2025-04-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927713', 'tblTempVendorCDR_20' ) start [2025-04-17 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927713', 'tblTempVendorCDR_20' ) end [2025-04-17 10:41:19] Production.INFO: ProcessCDR(1,14927713,1,1,2) [2025-04-17 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927713', 'tblTempUsageDetail_20' ) start [2025-04-17 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927713', 'tblTempUsageDetail_20' ) end [2025-04-17 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:41:24] Production.INFO: ==11225== Releasing lock... [2025-04-17 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:41:24] Production.INFO: 52 MB #Memory Used# [2025-04-17 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:42:05 [end_date_ymd] => 2025-04-17 10:42:05 [RateCDR] => 1 ) [2025-04-17 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:42:05' and `end` < '2025-04-17 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:42:20] Production.INFO: count ==3217 [2025-04-17 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-17 07:42:05 - End Time 2025-04-17 10:42:05 [2025-04-17 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927718', 'tblTempUsageDetail_20' ) start [2025-04-17 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927718', 'tblTempUsageDetail_20' ) end [2025-04-17 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927718', 'tblTempVendorCDR_20' ) start [2025-04-17 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927718', 'tblTempVendorCDR_20' ) end [2025-04-17 10:42:21] Production.INFO: ProcessCDR(1,14927718,1,1,2) [2025-04-17 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927718', 'tblTempUsageDetail_20' ) start [2025-04-17 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927718', 'tblTempUsageDetail_20' ) end [2025-04-17 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:42:26] Production.INFO: ==11296== Releasing lock... [2025-04-17 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:42:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-17 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:43:04 [end_date_ymd] => 2025-04-17 10:43:04 [RateCDR] => 1 ) [2025-04-17 10:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:43:04' and `end` < '2025-04-17 10:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:43:18] Production.INFO: count ==3229 [2025-04-17 10:43:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:43:04 - End Time 2025-04-17 10:43:04 [2025-04-17 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927723', 'tblTempUsageDetail_20' ) start [2025-04-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927723', 'tblTempUsageDetail_20' ) end [2025-04-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927723', 'tblTempVendorCDR_20' ) start [2025-04-17 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927723', 'tblTempVendorCDR_20' ) end [2025-04-17 10:43:19] Production.INFO: ProcessCDR(1,14927723,1,1,2) [2025-04-17 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927723', 'tblTempUsageDetail_20' ) start [2025-04-17 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927723', 'tblTempUsageDetail_20' ) end [2025-04-17 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:43:24] Production.INFO: ==11370== Releasing lock... [2025-04-17 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:43:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-17 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:44:05 [end_date_ymd] => 2025-04-17 10:44:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:44:05' and `end` < '2025-04-17 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-17 10:44:19] Production.INFO: count ==3249 [2025-04-17 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:44:05 - End Time 2025-04-17 10:44:05 [2025-04-17 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927728', 'tblTempUsageDetail_20' ) start [2025-04-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927728', 'tblTempUsageDetail_20' ) end [2025-04-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927728', 'tblTempVendorCDR_20' ) start [2025-04-17 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927728', 'tblTempVendorCDR_20' ) end [2025-04-17 10:44:20] Production.INFO: ProcessCDR(1,14927728,1,1,2) [2025-04-17 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927728', 'tblTempUsageDetail_20' ) start [2025-04-17 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927728', 'tblTempUsageDetail_20' ) end [2025-04-17 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:44:26] Production.INFO: ==11441== Releasing lock... [2025-04-17 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:44:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-17 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:45:05 [end_date_ymd] => 2025-04-17 10:45:05 [RateCDR] => 1 ) [2025-04-17 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:45:05' and `end` < '2025-04-17 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:45:18] Production.INFO: count ==3285 [2025-04-17 10:45:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:45:05 - End Time 2025-04-17 10:45:05 [2025-04-17 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927733', 'tblTempUsageDetail_20' ) start [2025-04-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927733', 'tblTempUsageDetail_20' ) end [2025-04-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927733', 'tblTempVendorCDR_20' ) start [2025-04-17 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927733', 'tblTempVendorCDR_20' ) end [2025-04-17 10:45:19] Production.INFO: ProcessCDR(1,14927733,1,1,2) [2025-04-17 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927733', 'tblTempUsageDetail_20' ) start [2025-04-17 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927733', 'tblTempUsageDetail_20' ) end [2025-04-17 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:45:25] Production.INFO: ==11512== Releasing lock... [2025-04-17 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:45:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-17 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:46:05 [end_date_ymd] => 2025-04-17 10:46:05 [RateCDR] => 1 ) [2025-04-17 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:46:05' and `end` < '2025-04-17 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:46:19] Production.INFO: count ==3320 [2025-04-17 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:46:05 - End Time 2025-04-17 10:46:05 [2025-04-17 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927738', 'tblTempUsageDetail_20' ) start [2025-04-17 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927738', 'tblTempUsageDetail_20' ) end [2025-04-17 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927738', 'tblTempVendorCDR_20' ) start [2025-04-17 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927738', 'tblTempVendorCDR_20' ) end [2025-04-17 10:46:21] Production.INFO: ProcessCDR(1,14927738,1,1,2) [2025-04-17 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927738', 'tblTempUsageDetail_20' ) start [2025-04-17 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927738', 'tblTempUsageDetail_20' ) end [2025-04-17 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:46:25] Production.INFO: ==11585== Releasing lock... [2025-04-17 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:46:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-17 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:47:05 [end_date_ymd] => 2025-04-17 10:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:47:05' and `end` < '2025-04-17 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:47:19] Production.INFO: count ==3334 [2025-04-17 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:47:05 - End Time 2025-04-17 10:47:05 [2025-04-17 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927743', 'tblTempUsageDetail_20' ) start [2025-04-17 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927743', 'tblTempUsageDetail_20' ) end [2025-04-17 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927743', 'tblTempVendorCDR_20' ) start [2025-04-17 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927743', 'tblTempVendorCDR_20' ) end [2025-04-17 10:47:21] Production.INFO: ProcessCDR(1,14927743,1,1,2) [2025-04-17 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927743', 'tblTempUsageDetail_20' ) start [2025-04-17 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927743', 'tblTempUsageDetail_20' ) end [2025-04-17 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:47:26] Production.INFO: ==11695== Releasing lock... [2025-04-17 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:47:26] Production.INFO: 53.5 MB #Memory Used# [2025-04-17 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:48:05 [end_date_ymd] => 2025-04-17 10:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:48:05' and `end` < '2025-04-17 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-17 10:48:19] Production.INFO: count ==3348 [2025-04-17 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:48:05 - End Time 2025-04-17 10:48:05 [2025-04-17 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927748', 'tblTempUsageDetail_20' ) start [2025-04-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927748', 'tblTempUsageDetail_20' ) end [2025-04-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927748', 'tblTempVendorCDR_20' ) start [2025-04-17 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927748', 'tblTempVendorCDR_20' ) end [2025-04-17 10:48:20] Production.INFO: ProcessCDR(1,14927748,1,1,2) [2025-04-17 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927748', 'tblTempUsageDetail_20' ) start [2025-04-17 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927748', 'tblTempUsageDetail_20' ) end [2025-04-17 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:48:25] Production.INFO: ==11768== Releasing lock... [2025-04-17 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:48:25] Production.INFO: 53 MB #Memory Used# [2025-04-17 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:49:05 [end_date_ymd] => 2025-04-17 10:49:05 [RateCDR] => 1 ) [2025-04-17 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:49:05' and `end` < '2025-04-17 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:49:19] Production.INFO: count ==3361 [2025-04-17 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:49:05 - End Time 2025-04-17 10:49:05 [2025-04-17 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927753', 'tblTempUsageDetail_20' ) start [2025-04-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927753', 'tblTempUsageDetail_20' ) end [2025-04-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927753', 'tblTempVendorCDR_20' ) start [2025-04-17 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927753', 'tblTempVendorCDR_20' ) end [2025-04-17 10:49:20] Production.INFO: ProcessCDR(1,14927753,1,1,2) [2025-04-17 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927753', 'tblTempUsageDetail_20' ) start [2025-04-17 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927753', 'tblTempUsageDetail_20' ) end [2025-04-17 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:49:25] Production.INFO: ==11839== Releasing lock... [2025-04-17 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:49:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-17 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:50:05 [end_date_ymd] => 2025-04-17 10:50:05 [RateCDR] => 1 ) [2025-04-17 10: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-17 07:50:05' and `end` < '2025-04-17 10: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-17 10:50:19] Production.INFO: count ==3389 [2025-04-17 10:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:50:05 - End Time 2025-04-17 10:50:05 [2025-04-17 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927758', 'tblTempUsageDetail_20' ) start [2025-04-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927758', 'tblTempUsageDetail_20' ) end [2025-04-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927758', 'tblTempVendorCDR_20' ) start [2025-04-17 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927758', 'tblTempVendorCDR_20' ) end [2025-04-17 10:50:20] Production.INFO: ProcessCDR(1,14927758,1,1,2) [2025-04-17 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927758', 'tblTempUsageDetail_20' ) start [2025-04-17 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927758', 'tblTempUsageDetail_20' ) end [2025-04-17 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:50:25] Production.INFO: ==11926== Releasing lock... [2025-04-17 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:50:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-17 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:51:05 [end_date_ymd] => 2025-04-17 10:51:05 [RateCDR] => 1 ) [2025-04-17 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:51:05' and `end` < '2025-04-17 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:51:19] Production.INFO: count ==3545 [2025-04-17 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:51:05 - End Time 2025-04-17 10:51:05 [2025-04-17 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927764', 'tblTempUsageDetail_20' ) start [2025-04-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927764', 'tblTempUsageDetail_20' ) end [2025-04-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927764', 'tblTempVendorCDR_20' ) start [2025-04-17 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927764', 'tblTempVendorCDR_20' ) end [2025-04-17 10:51:20] Production.INFO: ProcessCDR(1,14927764,1,1,2) [2025-04-17 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927764', 'tblTempUsageDetail_20' ) start [2025-04-17 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927764', 'tblTempUsageDetail_20' ) end [2025-04-17 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:51:25] Production.INFO: ==12006== Releasing lock... [2025-04-17 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:51:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-17 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:52:04 [end_date_ymd] => 2025-04-17 10:52:04 [RateCDR] => 1 ) [2025-04-17 10:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:52:04' and `end` < '2025-04-17 10:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:52:18] Production.INFO: count ==3570 [2025-04-17 10:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:52:04 - End Time 2025-04-17 10:52:04 [2025-04-17 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927769', 'tblTempUsageDetail_20' ) start [2025-04-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927769', 'tblTempUsageDetail_20' ) end [2025-04-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927769', 'tblTempVendorCDR_20' ) start [2025-04-17 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927769', 'tblTempVendorCDR_20' ) end [2025-04-17 10:52:19] Production.INFO: ProcessCDR(1,14927769,1,1,2) [2025-04-17 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927769', 'tblTempUsageDetail_20' ) start [2025-04-17 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927769', 'tblTempUsageDetail_20' ) end [2025-04-17 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:52:25] Production.INFO: ==12076== Releasing lock... [2025-04-17 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:52:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-17 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:53:05 [end_date_ymd] => 2025-04-17 10:53:05 [RateCDR] => 1 ) [2025-04-17 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:53:05' and `end` < '2025-04-17 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:53:18] Production.INFO: count ==3587 [2025-04-17 10:53:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:53:05 - End Time 2025-04-17 10:53:05 [2025-04-17 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927774', 'tblTempUsageDetail_20' ) start [2025-04-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927774', 'tblTempUsageDetail_20' ) end [2025-04-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927774', 'tblTempVendorCDR_20' ) start [2025-04-17 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927774', 'tblTempVendorCDR_20' ) end [2025-04-17 10:53:20] Production.INFO: ProcessCDR(1,14927774,1,1,2) [2025-04-17 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927774', 'tblTempUsageDetail_20' ) start [2025-04-17 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927774', 'tblTempUsageDetail_20' ) end [2025-04-17 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:53:24] Production.INFO: ==12147== Releasing lock... [2025-04-17 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:53:24] Production.INFO: 54.75 MB #Memory Used# [2025-04-17 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:54:05 [end_date_ymd] => 2025-04-17 10:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:54:05' and `end` < '2025-04-17 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-17 10:54:19] Production.INFO: count ==3590 [2025-04-17 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:54:05 - End Time 2025-04-17 10:54:05 [2025-04-17 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927779', 'tblTempUsageDetail_20' ) start [2025-04-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927779', 'tblTempUsageDetail_20' ) end [2025-04-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927779', 'tblTempVendorCDR_20' ) start [2025-04-17 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927779', 'tblTempVendorCDR_20' ) end [2025-04-17 10:54:20] Production.INFO: ProcessCDR(1,14927779,1,1,2) [2025-04-17 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927779', 'tblTempUsageDetail_20' ) start [2025-04-17 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927779', 'tblTempUsageDetail_20' ) end [2025-04-17 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:54:25] Production.INFO: ==12220== Releasing lock... [2025-04-17 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:54:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-17 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:55:05 [end_date_ymd] => 2025-04-17 10:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:55:05' and `end` < '2025-04-17 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-17 10:55:19] Production.INFO: count ==3613 [2025-04-17 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:55:05 - End Time 2025-04-17 10:55:05 [2025-04-17 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927784', 'tblTempUsageDetail_20' ) start [2025-04-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927784', 'tblTempUsageDetail_20' ) end [2025-04-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927784', 'tblTempVendorCDR_20' ) start [2025-04-17 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927784', 'tblTempVendorCDR_20' ) end [2025-04-17 10:55:20] Production.INFO: ProcessCDR(1,14927784,1,1,2) [2025-04-17 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927784', 'tblTempUsageDetail_20' ) start [2025-04-17 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927784', 'tblTempUsageDetail_20' ) end [2025-04-17 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:55:25] Production.INFO: ==12291== Releasing lock... [2025-04-17 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:55:25] Production.INFO: 55 MB #Memory Used# [2025-04-17 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:56:06 [end_date_ymd] => 2025-04-17 10:56:06 [RateCDR] => 1 ) [2025-04-17 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-17 07:56:06' and `end` < '2025-04-17 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-17 10:56:19] Production.INFO: count ==3633 [2025-04-17 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:56:06 - End Time 2025-04-17 10:56:06 [2025-04-17 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927789', 'tblTempUsageDetail_20' ) start [2025-04-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927789', 'tblTempUsageDetail_20' ) end [2025-04-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927789', 'tblTempVendorCDR_20' ) start [2025-04-17 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927789', 'tblTempVendorCDR_20' ) end [2025-04-17 10:56:21] Production.INFO: ProcessCDR(1,14927789,1,1,2) [2025-04-17 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927789', 'tblTempUsageDetail_20' ) start [2025-04-17 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927789', 'tblTempUsageDetail_20' ) end [2025-04-17 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:56:26] Production.INFO: ==12368== Releasing lock... [2025-04-17 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:56:26] Production.INFO: 56 MB #Memory Used# [2025-04-17 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:57:05 [end_date_ymd] => 2025-04-17 10:57:05 [RateCDR] => 1 ) [2025-04-17 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:57:05' and `end` < '2025-04-17 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:57:18] Production.INFO: count ==3643 [2025-04-17 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-17 07:57:05 - End Time 2025-04-17 10:57:05 [2025-04-17 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927794', 'tblTempUsageDetail_20' ) start [2025-04-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927794', 'tblTempUsageDetail_20' ) end [2025-04-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927794', 'tblTempVendorCDR_20' ) start [2025-04-17 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927794', 'tblTempVendorCDR_20' ) end [2025-04-17 10:57:20] Production.INFO: ProcessCDR(1,14927794,1,1,2) [2025-04-17 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927794', 'tblTempUsageDetail_20' ) start [2025-04-17 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927794', 'tblTempUsageDetail_20' ) end [2025-04-17 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:57:25] Production.INFO: ==12437== Releasing lock... [2025-04-17 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:57:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-17 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:58:05 [end_date_ymd] => 2025-04-17 10:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 07:58:05' and `end` < '2025-04-17 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-17 10:58:19] Production.INFO: count ==3667 [2025-04-17 10:58:21] Production.ERROR: pbx CDR StartTime 2025-04-17 07:58:05 - End Time 2025-04-17 10:58:05 [2025-04-17 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927799', 'tblTempUsageDetail_20' ) start [2025-04-17 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927799', 'tblTempUsageDetail_20' ) end [2025-04-17 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927799', 'tblTempVendorCDR_20' ) start [2025-04-17 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927799', 'tblTempVendorCDR_20' ) end [2025-04-17 10:58:21] Production.INFO: ProcessCDR(1,14927799,1,1,2) [2025-04-17 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927799', 'tblTempUsageDetail_20' ) start [2025-04-17 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927799', 'tblTempUsageDetail_20' ) end [2025-04-17 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:58:26] Production.INFO: ==12509== Releasing lock... [2025-04-17 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:58:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-17 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 07:59:04 [end_date_ymd] => 2025-04-17 10:59:04 [RateCDR] => 1 ) [2025-04-17 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 07:59:04' and `end` < '2025-04-17 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 10:59:18] Production.INFO: count ==3680 [2025-04-17 10:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 07:59:04 - End Time 2025-04-17 10:59:04 [2025-04-17 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927804', 'tblTempUsageDetail_20' ) start [2025-04-17 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927804', 'tblTempUsageDetail_20' ) end [2025-04-17 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927804', 'tblTempVendorCDR_20' ) start [2025-04-17 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927804', 'tblTempVendorCDR_20' ) end [2025-04-17 10:59:19] Production.INFO: ProcessCDR(1,14927804,1,1,2) [2025-04-17 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927804', 'tblTempUsageDetail_20' ) start [2025-04-17 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927804', 'tblTempUsageDetail_20' ) end [2025-04-17 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 10:59:25] Production.INFO: ==12579== Releasing lock... [2025-04-17 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 10:59:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-17 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:00:06 [end_date_ymd] => 2025-04-17 11:00:06 [RateCDR] => 1 ) [2025-04-17 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:00:06' and `end` < '2025-04-17 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:00:20] Production.INFO: count ==3689 [2025-04-17 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:00:06 - End Time 2025-04-17 11:00:06 [2025-04-17 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927810', 'tblTempUsageDetail_20' ) start [2025-04-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927810', 'tblTempUsageDetail_20' ) end [2025-04-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927810', 'tblTempVendorCDR_20' ) start [2025-04-17 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927810', 'tblTempVendorCDR_20' ) end [2025-04-17 11:00:21] Production.INFO: ProcessCDR(1,14927810,1,1,2) [2025-04-17 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927810', 'tblTempUsageDetail_20' ) start [2025-04-17 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927810', 'tblTempUsageDetail_20' ) end [2025-04-17 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:00:25] Production.INFO: ==12658== Releasing lock... [2025-04-17 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:00:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-17 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:01:05 [end_date_ymd] => 2025-04-17 11:01:05 [RateCDR] => 1 ) [2025-04-17 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:01:05' and `end` < '2025-04-17 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:01:18] Production.INFO: count ==3791 [2025-04-17 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:01:05 - End Time 2025-04-17 11:01:05 [2025-04-17 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927815', 'tblTempUsageDetail_20' ) start [2025-04-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927815', 'tblTempUsageDetail_20' ) end [2025-04-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927815', 'tblTempVendorCDR_20' ) start [2025-04-17 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927815', 'tblTempVendorCDR_20' ) end [2025-04-17 11:01:20] Production.INFO: ProcessCDR(1,14927815,1,1,2) [2025-04-17 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927815', 'tblTempUsageDetail_20' ) start [2025-04-17 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927815', 'tblTempUsageDetail_20' ) end [2025-04-17 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:01:25] Production.INFO: ==12749== Releasing lock... [2025-04-17 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:01:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-17 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:02:05 [end_date_ymd] => 2025-04-17 11:02:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:02:05' and `end` < '2025-04-17 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-17 11:02:19] Production.INFO: count ==3788 [2025-04-17 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:02:05 - End Time 2025-04-17 11:02:05 [2025-04-17 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927820', 'tblTempUsageDetail_20' ) start [2025-04-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927820', 'tblTempUsageDetail_20' ) end [2025-04-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927820', 'tblTempVendorCDR_20' ) start [2025-04-17 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927820', 'tblTempVendorCDR_20' ) end [2025-04-17 11:02:20] Production.INFO: ProcessCDR(1,14927820,1,1,2) [2025-04-17 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927820', 'tblTempUsageDetail_20' ) start [2025-04-17 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927820', 'tblTempUsageDetail_20' ) end [2025-04-17 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:02:25] Production.INFO: ==12937== Releasing lock... [2025-04-17 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:02:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-17 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:03:05 [end_date_ymd] => 2025-04-17 11:03:05 [RateCDR] => 1 ) [2025-04-17 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:03:05' and `end` < '2025-04-17 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:03:18] Production.INFO: count ==3798 [2025-04-17 11:03:19] Production.ERROR: pbx CDR StartTime 2025-04-17 08:03:05 - End Time 2025-04-17 11:03:05 [2025-04-17 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927825', 'tblTempUsageDetail_20' ) start [2025-04-17 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927825', 'tblTempUsageDetail_20' ) end [2025-04-17 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927825', 'tblTempVendorCDR_20' ) start [2025-04-17 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927825', 'tblTempVendorCDR_20' ) end [2025-04-17 11:03:20] Production.INFO: ProcessCDR(1,14927825,1,1,2) [2025-04-17 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927825', 'tblTempUsageDetail_20' ) start [2025-04-17 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927825', 'tblTempUsageDetail_20' ) end [2025-04-17 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:03:25] Production.INFO: ==13010== Releasing lock... [2025-04-17 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:03:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-17 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:04:05 [end_date_ymd] => 2025-04-17 11:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:04:05' and `end` < '2025-04-17 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-17 11:04:19] Production.INFO: count ==3803 [2025-04-17 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:04:05 - End Time 2025-04-17 11:04:05 [2025-04-17 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927830', 'tblTempUsageDetail_20' ) start [2025-04-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927830', 'tblTempUsageDetail_20' ) end [2025-04-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927830', 'tblTempVendorCDR_20' ) start [2025-04-17 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927830', 'tblTempVendorCDR_20' ) end [2025-04-17 11:04:20] Production.INFO: ProcessCDR(1,14927830,1,1,2) [2025-04-17 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927830', 'tblTempUsageDetail_20' ) start [2025-04-17 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927830', 'tblTempUsageDetail_20' ) end [2025-04-17 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:04:25] Production.INFO: ==13087== Releasing lock... [2025-04-17 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:04:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-17 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:05:04 [end_date_ymd] => 2025-04-17 11:05:04 [RateCDR] => 1 ) [2025-04-17 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:05:04' and `end` < '2025-04-17 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:05:17] Production.INFO: count ==3812 [2025-04-17 11:05:19] Production.ERROR: pbx CDR StartTime 2025-04-17 08:05:04 - End Time 2025-04-17 11:05:04 [2025-04-17 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927835', 'tblTempUsageDetail_20' ) start [2025-04-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927835', 'tblTempUsageDetail_20' ) end [2025-04-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927835', 'tblTempVendorCDR_20' ) start [2025-04-17 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927835', 'tblTempVendorCDR_20' ) end [2025-04-17 11:05:19] Production.INFO: ProcessCDR(1,14927835,1,1,2) [2025-04-17 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927835', 'tblTempUsageDetail_20' ) start [2025-04-17 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927835', 'tblTempUsageDetail_20' ) end [2025-04-17 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:05:24] Production.INFO: ==13235== Releasing lock... [2025-04-17 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:05:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-17 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:06:05 [end_date_ymd] => 2025-04-17 11:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:06:05' and `end` < '2025-04-17 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-17 11:06:19] Production.INFO: count ==3822 [2025-04-17 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:06:05 - End Time 2025-04-17 11:06:05 [2025-04-17 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927840', 'tblTempUsageDetail_20' ) start [2025-04-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927840', 'tblTempUsageDetail_20' ) end [2025-04-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927840', 'tblTempVendorCDR_20' ) start [2025-04-17 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927840', 'tblTempVendorCDR_20' ) end [2025-04-17 11:06:20] Production.INFO: ProcessCDR(1,14927840,1,1,2) [2025-04-17 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927840', 'tblTempUsageDetail_20' ) start [2025-04-17 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927840', 'tblTempUsageDetail_20' ) end [2025-04-17 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:06:25] Production.INFO: ==13316== Releasing lock... [2025-04-17 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:06:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-17 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:07:05 [end_date_ymd] => 2025-04-17 11:07:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:07:05' and `end` < '2025-04-17 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-17 11:07:19] Production.INFO: count ==3835 [2025-04-17 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:07:05 - End Time 2025-04-17 11:07:05 [2025-04-17 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927845', 'tblTempUsageDetail_20' ) start [2025-04-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927845', 'tblTempUsageDetail_20' ) end [2025-04-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927845', 'tblTempVendorCDR_20' ) start [2025-04-17 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927845', 'tblTempVendorCDR_20' ) end [2025-04-17 11:07:20] Production.INFO: ProcessCDR(1,14927845,1,1,2) [2025-04-17 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927845', 'tblTempUsageDetail_20' ) start [2025-04-17 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927845', 'tblTempUsageDetail_20' ) end [2025-04-17 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:07:25] Production.INFO: ==13394== Releasing lock... [2025-04-17 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:07:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-17 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:08:05 [end_date_ymd] => 2025-04-17 11:08:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:08:05' and `end` < '2025-04-17 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-17 11:08:19] Production.INFO: count ==3840 [2025-04-17 11:08:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:08:05 - End Time 2025-04-17 11:08:05 [2025-04-17 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927850', 'tblTempUsageDetail_20' ) start [2025-04-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927850', 'tblTempUsageDetail_20' ) end [2025-04-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927850', 'tblTempVendorCDR_20' ) start [2025-04-17 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927850', 'tblTempVendorCDR_20' ) end [2025-04-17 11:08:21] Production.INFO: ProcessCDR(1,14927850,1,1,2) [2025-04-17 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927850', 'tblTempUsageDetail_20' ) start [2025-04-17 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927850', 'tblTempUsageDetail_20' ) end [2025-04-17 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:08:26] Production.INFO: ==13505== Releasing lock... [2025-04-17 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:08:26] Production.INFO: 57 MB #Memory Used# [2025-04-17 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:09:05 [end_date_ymd] => 2025-04-17 11:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:09:05' and `end` < '2025-04-17 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-17 11:09:19] Production.INFO: count ==3862 [2025-04-17 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:09:05 - End Time 2025-04-17 11:09:05 [2025-04-17 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927855', 'tblTempUsageDetail_20' ) start [2025-04-17 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927855', 'tblTempUsageDetail_20' ) end [2025-04-17 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927855', 'tblTempVendorCDR_20' ) start [2025-04-17 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927855', 'tblTempVendorCDR_20' ) end [2025-04-17 11:09:20] Production.INFO: ProcessCDR(1,14927855,1,1,2) [2025-04-17 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927855', 'tblTempUsageDetail_20' ) start [2025-04-17 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927855', 'tblTempUsageDetail_20' ) end [2025-04-17 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:09:25] Production.INFO: ==13621== Releasing lock... [2025-04-17 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:09:25] Production.INFO: 57 MB #Memory Used# [2025-04-17 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:10:06 [end_date_ymd] => 2025-04-17 11:10:06 [RateCDR] => 1 ) [2025-04-17 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:10:06' and `end` < '2025-04-17 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:10:20] Production.INFO: count ==3859 [2025-04-17 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:10:06 - End Time 2025-04-17 11:10:06 [2025-04-17 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927861', 'tblTempUsageDetail_20' ) start [2025-04-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927861', 'tblTempUsageDetail_20' ) end [2025-04-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927861', 'tblTempVendorCDR_20' ) start [2025-04-17 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927861', 'tblTempVendorCDR_20' ) end [2025-04-17 11:10:21] Production.INFO: ProcessCDR(1,14927861,1,1,2) [2025-04-17 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927861', 'tblTempUsageDetail_20' ) start [2025-04-17 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927861', 'tblTempUsageDetail_20' ) end [2025-04-17 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:10:26] Production.INFO: ==13696== Releasing lock... [2025-04-17 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:10:26] Production.INFO: 57 MB #Memory Used# [2025-04-17 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:11:05 [end_date_ymd] => 2025-04-17 11:11:05 [RateCDR] => 1 ) [2025-04-17 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:11:05' and `end` < '2025-04-17 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:11:18] Production.INFO: count ==3928 [2025-04-17 11:11:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:11:05 - End Time 2025-04-17 11:11:05 [2025-04-17 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927866', 'tblTempUsageDetail_20' ) start [2025-04-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927866', 'tblTempUsageDetail_20' ) end [2025-04-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927866', 'tblTempVendorCDR_20' ) start [2025-04-17 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927866', 'tblTempVendorCDR_20' ) end [2025-04-17 11:11:20] Production.INFO: ProcessCDR(1,14927866,1,1,2) [2025-04-17 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927866', 'tblTempUsageDetail_20' ) start [2025-04-17 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927866', 'tblTempUsageDetail_20' ) end [2025-04-17 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:11:25] Production.INFO: ==13768== Releasing lock... [2025-04-17 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:11:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-17 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:12:05 [end_date_ymd] => 2025-04-17 11:12:05 [RateCDR] => 1 ) [2025-04-17 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:12:05' and `end` < '2025-04-17 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:12:18] Production.INFO: count ==3950 [2025-04-17 11:12:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:12:05 - End Time 2025-04-17 11:12:05 [2025-04-17 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927871', 'tblTempUsageDetail_20' ) start [2025-04-17 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927871', 'tblTempUsageDetail_20' ) end [2025-04-17 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927871', 'tblTempVendorCDR_20' ) start [2025-04-17 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927871', 'tblTempVendorCDR_20' ) end [2025-04-17 11:12:20] Production.INFO: ProcessCDR(1,14927871,1,1,2) [2025-04-17 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927871', 'tblTempUsageDetail_20' ) start [2025-04-17 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927871', 'tblTempUsageDetail_20' ) end [2025-04-17 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:12:25] Production.INFO: ==13922== Releasing lock... [2025-04-17 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:12:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-17 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:13:05 [end_date_ymd] => 2025-04-17 11:13:05 [RateCDR] => 1 ) [2025-04-17 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:13:05' and `end` < '2025-04-17 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:13:18] Production.INFO: count ==3976 [2025-04-17 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:13:05 - End Time 2025-04-17 11:13:05 [2025-04-17 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927876', 'tblTempUsageDetail_20' ) start [2025-04-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927876', 'tblTempUsageDetail_20' ) end [2025-04-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927876', 'tblTempVendorCDR_20' ) start [2025-04-17 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927876', 'tblTempVendorCDR_20' ) end [2025-04-17 11:13:20] Production.INFO: ProcessCDR(1,14927876,1,1,2) [2025-04-17 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927876', 'tblTempUsageDetail_20' ) start [2025-04-17 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927876', 'tblTempUsageDetail_20' ) end [2025-04-17 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:13:25] Production.INFO: ==13995== Releasing lock... [2025-04-17 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:13:25] Production.INFO: 58 MB #Memory Used# [2025-04-17 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:14:04 [end_date_ymd] => 2025-04-17 11:14:04 [RateCDR] => 1 ) [2025-04-17 11:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:14:04' and `end` < '2025-04-17 11:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:14:18] Production.INFO: count ==3987 [2025-04-17 11:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 08:14:04 - End Time 2025-04-17 11:14:04 [2025-04-17 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927881', 'tblTempUsageDetail_20' ) start [2025-04-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927881', 'tblTempUsageDetail_20' ) end [2025-04-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927881', 'tblTempVendorCDR_20' ) start [2025-04-17 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927881', 'tblTempVendorCDR_20' ) end [2025-04-17 11:14:20] Production.INFO: ProcessCDR(1,14927881,1,1,2) [2025-04-17 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927881', 'tblTempUsageDetail_20' ) start [2025-04-17 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927881', 'tblTempUsageDetail_20' ) end [2025-04-17 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:14:25] Production.INFO: ==14067== Releasing lock... [2025-04-17 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:14:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-17 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:15:05 [end_date_ymd] => 2025-04-17 11:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:15:05' and `end` < '2025-04-17 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-17 11:15:19] Production.INFO: count ==3996 [2025-04-17 11:15:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:15:05 - End Time 2025-04-17 11:15:05 [2025-04-17 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927886', 'tblTempUsageDetail_20' ) start [2025-04-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927886', 'tblTempUsageDetail_20' ) end [2025-04-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927886', 'tblTempVendorCDR_20' ) start [2025-04-17 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927886', 'tblTempVendorCDR_20' ) end [2025-04-17 11:15:20] Production.INFO: ProcessCDR(1,14927886,1,1,2) [2025-04-17 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927886', 'tblTempUsageDetail_20' ) start [2025-04-17 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927886', 'tblTempUsageDetail_20' ) end [2025-04-17 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:15:25] Production.INFO: ==14215== Releasing lock... [2025-04-17 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:15:25] Production.INFO: 58 MB #Memory Used# [2025-04-17 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:16:05 [end_date_ymd] => 2025-04-17 11:16:05 [RateCDR] => 1 ) [2025-04-17 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:16:05' and `end` < '2025-04-17 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:16:19] Production.INFO: count ==4003 [2025-04-17 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:16:05 - End Time 2025-04-17 11:16:05 [2025-04-17 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927891', 'tblTempUsageDetail_20' ) start [2025-04-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927891', 'tblTempUsageDetail_20' ) end [2025-04-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927891', 'tblTempVendorCDR_20' ) start [2025-04-17 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927891', 'tblTempVendorCDR_20' ) end [2025-04-17 11:16:20] Production.INFO: ProcessCDR(1,14927891,1,1,2) [2025-04-17 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927891', 'tblTempUsageDetail_20' ) start [2025-04-17 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927891', 'tblTempUsageDetail_20' ) end [2025-04-17 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:16:25] Production.INFO: ==14287== Releasing lock... [2025-04-17 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:16:25] Production.INFO: 58 MB #Memory Used# [2025-04-17 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:17:05 [end_date_ymd] => 2025-04-17 11:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:17:05' and `end` < '2025-04-17 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-17 11:17:19] Production.INFO: count ==4011 [2025-04-17 11:17:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:17:05 - End Time 2025-04-17 11:17:05 [2025-04-17 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927896', 'tblTempUsageDetail_20' ) start [2025-04-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927896', 'tblTempUsageDetail_20' ) end [2025-04-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927896', 'tblTempVendorCDR_20' ) start [2025-04-17 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927896', 'tblTempVendorCDR_20' ) end [2025-04-17 11:17:20] Production.INFO: ProcessCDR(1,14927896,1,1,2) [2025-04-17 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927896', 'tblTempUsageDetail_20' ) start [2025-04-17 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927896', 'tblTempUsageDetail_20' ) end [2025-04-17 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:17:25] Production.INFO: ==14403== Releasing lock... [2025-04-17 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:17:25] Production.INFO: 58 MB #Memory Used# [2025-04-17 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:18:05 [end_date_ymd] => 2025-04-17 11:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:18:05' and `end` < '2025-04-17 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-17 11:18:19] Production.INFO: count ==4030 [2025-04-17 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:18:05 - End Time 2025-04-17 11:18:05 [2025-04-17 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927901', 'tblTempUsageDetail_20' ) start [2025-04-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927901', 'tblTempUsageDetail_20' ) end [2025-04-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927901', 'tblTempVendorCDR_20' ) start [2025-04-17 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927901', 'tblTempVendorCDR_20' ) end [2025-04-17 11:18:21] Production.INFO: ProcessCDR(1,14927901,1,1,2) [2025-04-17 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927901', 'tblTempUsageDetail_20' ) start [2025-04-17 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927901', 'tblTempUsageDetail_20' ) end [2025-04-17 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:18:26] Production.INFO: ==14480== Releasing lock... [2025-04-17 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:18:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-17 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:19:05 [end_date_ymd] => 2025-04-17 11:19:05 [RateCDR] => 1 ) [2025-04-17 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:19:05' and `end` < '2025-04-17 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:19:18] Production.INFO: count ==4050 [2025-04-17 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:19:05 - End Time 2025-04-17 11:19:05 [2025-04-17 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927906', 'tblTempUsageDetail_20' ) start [2025-04-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927906', 'tblTempUsageDetail_20' ) end [2025-04-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927906', 'tblTempVendorCDR_20' ) start [2025-04-17 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927906', 'tblTempVendorCDR_20' ) end [2025-04-17 11:19:20] Production.INFO: ProcessCDR(1,14927906,1,1,2) [2025-04-17 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927906', 'tblTempUsageDetail_20' ) start [2025-04-17 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927906', 'tblTempUsageDetail_20' ) end [2025-04-17 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:19:25] Production.INFO: ==14552== Releasing lock... [2025-04-17 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:19:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-17 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:20:05 [end_date_ymd] => 2025-04-17 11:20:05 [RateCDR] => 1 ) [2025-04-17 11: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-17 08:20:05' and `end` < '2025-04-17 11: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-17 11:20:19] Production.INFO: count ==4065 [2025-04-17 11:20:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:20:05 - End Time 2025-04-17 11:20:05 [2025-04-17 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927911', 'tblTempUsageDetail_20' ) start [2025-04-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927911', 'tblTempUsageDetail_20' ) end [2025-04-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927911', 'tblTempVendorCDR_20' ) start [2025-04-17 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927911', 'tblTempVendorCDR_20' ) end [2025-04-17 11:20:21] Production.INFO: ProcessCDR(1,14927911,1,1,2) [2025-04-17 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927911', 'tblTempUsageDetail_20' ) start [2025-04-17 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927911', 'tblTempUsageDetail_20' ) end [2025-04-17 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:20:25] Production.INFO: ==14626== Releasing lock... [2025-04-17 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:20:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-17 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:21:05 [end_date_ymd] => 2025-04-17 11:21:05 [RateCDR] => 1 ) [2025-04-17 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:21:05' and `end` < '2025-04-17 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:21:18] Production.INFO: count ==4128 [2025-04-17 11:21:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:21:05 - End Time 2025-04-17 11:21:05 [2025-04-17 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927917', 'tblTempUsageDetail_20' ) start [2025-04-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927917', 'tblTempUsageDetail_20' ) end [2025-04-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927917', 'tblTempVendorCDR_20' ) start [2025-04-17 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927917', 'tblTempVendorCDR_20' ) end [2025-04-17 11:21:20] Production.INFO: ProcessCDR(1,14927917,1,1,2) [2025-04-17 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927917', 'tblTempUsageDetail_20' ) start [2025-04-17 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927917', 'tblTempUsageDetail_20' ) end [2025-04-17 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:21:25] Production.INFO: ==14703== Releasing lock... [2025-04-17 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:21:25] Production.INFO: 59 MB #Memory Used# [2025-04-17 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:22:05 [end_date_ymd] => 2025-04-17 11:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:22:05' and `end` < '2025-04-17 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-17 11:22:18] Production.INFO: count ==4133 [2025-04-17 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:22:05 - End Time 2025-04-17 11:22:05 [2025-04-17 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927922', 'tblTempUsageDetail_20' ) start [2025-04-17 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927922', 'tblTempUsageDetail_20' ) end [2025-04-17 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927922', 'tblTempVendorCDR_20' ) start [2025-04-17 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927922', 'tblTempVendorCDR_20' ) end [2025-04-17 11:22:20] Production.INFO: ProcessCDR(1,14927922,1,1,2) [2025-04-17 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927922', 'tblTempUsageDetail_20' ) start [2025-04-17 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927922', 'tblTempUsageDetail_20' ) end [2025-04-17 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:22:25] Production.INFO: ==14777== Releasing lock... [2025-04-17 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:22:25] Production.INFO: 59 MB #Memory Used# [2025-04-17 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:23:05 [end_date_ymd] => 2025-04-17 11:23:05 [RateCDR] => 1 ) [2025-04-17 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:23:05' and `end` < '2025-04-17 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-17 11:23:19] Production.INFO: count ==4143 [2025-04-17 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:23:05 - End Time 2025-04-17 11:23:05 [2025-04-17 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927927', 'tblTempUsageDetail_20' ) start [2025-04-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927927', 'tblTempUsageDetail_20' ) end [2025-04-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927927', 'tblTempVendorCDR_20' ) start [2025-04-17 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927927', 'tblTempVendorCDR_20' ) end [2025-04-17 11:23:21] Production.INFO: ProcessCDR(1,14927927,1,1,2) [2025-04-17 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927927', 'tblTempUsageDetail_20' ) start [2025-04-17 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927927', 'tblTempUsageDetail_20' ) end [2025-04-17 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:23:26] Production.INFO: ==14848== Releasing lock... [2025-04-17 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:23:26] Production.INFO: 59 MB #Memory Used# [2025-04-17 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:24:05 [end_date_ymd] => 2025-04-17 11:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:24:05' and `end` < '2025-04-17 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-17 11:24:19] Production.INFO: count ==4143 [2025-04-17 11:24:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:24:05 - End Time 2025-04-17 11:24:05 [2025-04-17 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927932', 'tblTempUsageDetail_20' ) start [2025-04-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927932', 'tblTempUsageDetail_20' ) end [2025-04-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927932', 'tblTempVendorCDR_20' ) start [2025-04-17 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927932', 'tblTempVendorCDR_20' ) end [2025-04-17 11:24:20] Production.INFO: ProcessCDR(1,14927932,1,1,2) [2025-04-17 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927932', 'tblTempUsageDetail_20' ) start [2025-04-17 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927932', 'tblTempUsageDetail_20' ) end [2025-04-17 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:24:25] Production.INFO: ==14924== Releasing lock... [2025-04-17 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:24:25] Production.INFO: 59 MB #Memory Used# [2025-04-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:25:05 [end_date_ymd] => 2025-04-17 11:25:05 [RateCDR] => 1 ) [2025-04-17 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:25:05' and `end` < '2025-04-17 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:25:19] Production.INFO: count ==4151 [2025-04-17 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:25:05 - End Time 2025-04-17 11:25:05 [2025-04-17 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927937', 'tblTempUsageDetail_20' ) start [2025-04-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927937', 'tblTempUsageDetail_20' ) end [2025-04-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927937', 'tblTempVendorCDR_20' ) start [2025-04-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927937', 'tblTempVendorCDR_20' ) end [2025-04-17 11:25:20] Production.INFO: ProcessCDR(1,14927937,1,1,2) [2025-04-17 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927937', 'tblTempUsageDetail_20' ) start [2025-04-17 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927937', 'tblTempUsageDetail_20' ) end [2025-04-17 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:25:25] Production.INFO: ==14993== Releasing lock... [2025-04-17 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:25:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-17 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:26:05 [end_date_ymd] => 2025-04-17 11:26:05 [RateCDR] => 1 ) [2025-04-17 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:26:05' and `end` < '2025-04-17 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:26:18] Production.INFO: count ==4158 [2025-04-17 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:26:05 - End Time 2025-04-17 11:26:05 [2025-04-17 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927942', 'tblTempUsageDetail_20' ) start [2025-04-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927942', 'tblTempUsageDetail_20' ) end [2025-04-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927942', 'tblTempVendorCDR_20' ) start [2025-04-17 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927942', 'tblTempVendorCDR_20' ) end [2025-04-17 11:26:20] Production.INFO: ProcessCDR(1,14927942,1,1,2) [2025-04-17 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927942', 'tblTempUsageDetail_20' ) start [2025-04-17 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927942', 'tblTempUsageDetail_20' ) end [2025-04-17 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:26:25] Production.INFO: ==15067== Releasing lock... [2025-04-17 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:26:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-17 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:27:05 [end_date_ymd] => 2025-04-17 11:27:05 [RateCDR] => 1 ) [2025-04-17 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:27:05' and `end` < '2025-04-17 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:27:19] Production.INFO: count ==4181 [2025-04-17 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:27:05 - End Time 2025-04-17 11:27:05 [2025-04-17 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927947', 'tblTempUsageDetail_20' ) start [2025-04-17 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927947', 'tblTempUsageDetail_20' ) end [2025-04-17 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927947', 'tblTempVendorCDR_20' ) start [2025-04-17 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927947', 'tblTempVendorCDR_20' ) end [2025-04-17 11:27:21] Production.INFO: ProcessCDR(1,14927947,1,1,2) [2025-04-17 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927947', 'tblTempUsageDetail_20' ) start [2025-04-17 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927947', 'tblTempUsageDetail_20' ) end [2025-04-17 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:27:25] Production.INFO: ==15137== Releasing lock... [2025-04-17 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:27:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-17 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:28:05 [end_date_ymd] => 2025-04-17 11:28:05 [RateCDR] => 1 ) [2025-04-17 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:28:05' and `end` < '2025-04-17 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:28:18] Production.INFO: count ==4208 [2025-04-17 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:28:05 - End Time 2025-04-17 11:28:05 [2025-04-17 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927952', 'tblTempUsageDetail_20' ) start [2025-04-17 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927952', 'tblTempUsageDetail_20' ) end [2025-04-17 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927952', 'tblTempVendorCDR_20' ) start [2025-04-17 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927952', 'tblTempVendorCDR_20' ) end [2025-04-17 11:28:20] Production.INFO: ProcessCDR(1,14927952,1,1,2) [2025-04-17 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927952', 'tblTempUsageDetail_20' ) start [2025-04-17 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927952', 'tblTempUsageDetail_20' ) end [2025-04-17 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:28:25] Production.INFO: ==15213== Releasing lock... [2025-04-17 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:28:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-17 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:29:05 [end_date_ymd] => 2025-04-17 11:29:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:29:05' and `end` < '2025-04-17 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-17 11:29:18] Production.INFO: count ==4219 [2025-04-17 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:29:05 - End Time 2025-04-17 11:29:05 [2025-04-17 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927957', 'tblTempUsageDetail_20' ) start [2025-04-17 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927957', 'tblTempUsageDetail_20' ) end [2025-04-17 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927957', 'tblTempVendorCDR_20' ) start [2025-04-17 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927957', 'tblTempVendorCDR_20' ) end [2025-04-17 11:29:20] Production.INFO: ProcessCDR(1,14927957,1,1,2) [2025-04-17 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927957', 'tblTempUsageDetail_20' ) start [2025-04-17 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927957', 'tblTempUsageDetail_20' ) end [2025-04-17 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:29:25] Production.INFO: ==15289== Releasing lock... [2025-04-17 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:29:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-17 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:30:06 [end_date_ymd] => 2025-04-17 11:30:06 [RateCDR] => 1 ) [2025-04-17 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:30:06' and `end` < '2025-04-17 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:30:20] Production.INFO: count ==4229 [2025-04-17 11:30:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:30:06 - End Time 2025-04-17 11:30:06 [2025-04-17 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927962', 'tblTempUsageDetail_20' ) start [2025-04-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927962', 'tblTempUsageDetail_20' ) end [2025-04-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927962', 'tblTempVendorCDR_20' ) start [2025-04-17 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927962', 'tblTempVendorCDR_20' ) end [2025-04-17 11:30:21] Production.INFO: ProcessCDR(1,14927962,1,1,2) [2025-04-17 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927962', 'tblTempUsageDetail_20' ) start [2025-04-17 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927962', 'tblTempUsageDetail_20' ) end [2025-04-17 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:30:26] Production.INFO: ==15363== Releasing lock... [2025-04-17 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:30:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-17 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:31:05 [end_date_ymd] => 2025-04-17 11:31:05 [RateCDR] => 1 ) [2025-04-17 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:31:05' and `end` < '2025-04-17 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:31:19] Production.INFO: count ==4321 [2025-04-17 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:31:05 - End Time 2025-04-17 11:31:05 [2025-04-17 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927968', 'tblTempUsageDetail_20' ) start [2025-04-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927968', 'tblTempUsageDetail_20' ) end [2025-04-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927968', 'tblTempVendorCDR_20' ) start [2025-04-17 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927968', 'tblTempVendorCDR_20' ) end [2025-04-17 11:31:20] Production.INFO: ProcessCDR(1,14927968,1,1,2) [2025-04-17 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927968', 'tblTempUsageDetail_20' ) start [2025-04-17 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927968', 'tblTempUsageDetail_20' ) end [2025-04-17 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:31:26] Production.INFO: ==15446== Releasing lock... [2025-04-17 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:31:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-17 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:32:06 [end_date_ymd] => 2025-04-17 11:32:06 [RateCDR] => 1 ) [2025-04-17 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-17 08:32:06' and `end` < '2025-04-17 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-17 11:32:19] Production.INFO: count ==4333 [2025-04-17 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:32:06 - End Time 2025-04-17 11:32:06 [2025-04-17 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927973', 'tblTempUsageDetail_20' ) start [2025-04-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927973', 'tblTempUsageDetail_20' ) end [2025-04-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927973', 'tblTempVendorCDR_20' ) start [2025-04-17 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927973', 'tblTempVendorCDR_20' ) end [2025-04-17 11:32:21] Production.INFO: ProcessCDR(1,14927973,1,1,2) [2025-04-17 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927973', 'tblTempUsageDetail_20' ) start [2025-04-17 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927973', 'tblTempUsageDetail_20' ) end [2025-04-17 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:32:26] Production.INFO: ==15517== Releasing lock... [2025-04-17 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:32:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-17 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:33:05 [end_date_ymd] => 2025-04-17 11:33:05 [RateCDR] => 1 ) [2025-04-17 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:33:05' and `end` < '2025-04-17 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:33:18] Production.INFO: count ==4339 [2025-04-17 11:33:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:33:05 - End Time 2025-04-17 11:33:05 [2025-04-17 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927978', 'tblTempUsageDetail_20' ) start [2025-04-17 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927978', 'tblTempUsageDetail_20' ) end [2025-04-17 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927978', 'tblTempVendorCDR_20' ) start [2025-04-17 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927978', 'tblTempVendorCDR_20' ) end [2025-04-17 11:33:20] Production.INFO: ProcessCDR(1,14927978,1,1,2) [2025-04-17 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927978', 'tblTempUsageDetail_20' ) start [2025-04-17 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927978', 'tblTempUsageDetail_20' ) end [2025-04-17 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:33:26] Production.INFO: ==15626== Releasing lock... [2025-04-17 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:33:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:34:05 [end_date_ymd] => 2025-04-17 11:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:34:05' and `end` < '2025-04-17 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-17 11:34:19] Production.INFO: count ==4344 [2025-04-17 11:34:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:34:05 - End Time 2025-04-17 11:34:05 [2025-04-17 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927983', 'tblTempUsageDetail_20' ) start [2025-04-17 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927983', 'tblTempUsageDetail_20' ) end [2025-04-17 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927983', 'tblTempVendorCDR_20' ) start [2025-04-17 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927983', 'tblTempVendorCDR_20' ) end [2025-04-17 11:34:21] Production.INFO: ProcessCDR(1,14927983,1,1,2) [2025-04-17 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927983', 'tblTempUsageDetail_20' ) start [2025-04-17 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927983', 'tblTempUsageDetail_20' ) end [2025-04-17 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:34:26] Production.INFO: ==15698== Releasing lock... [2025-04-17 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:34:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-17 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:35:05 [end_date_ymd] => 2025-04-17 11:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:35:05' and `end` < '2025-04-17 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-17 11:35:19] Production.INFO: count ==4352 [2025-04-17 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:35:05 - End Time 2025-04-17 11:35:05 [2025-04-17 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927988', 'tblTempUsageDetail_20' ) start [2025-04-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927988', 'tblTempUsageDetail_20' ) end [2025-04-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927988', 'tblTempVendorCDR_20' ) start [2025-04-17 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927988', 'tblTempVendorCDR_20' ) end [2025-04-17 11:35:21] Production.INFO: ProcessCDR(1,14927988,1,1,2) [2025-04-17 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927988', 'tblTempUsageDetail_20' ) start [2025-04-17 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927988', 'tblTempUsageDetail_20' ) end [2025-04-17 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:35:26] Production.INFO: ==15775== Releasing lock... [2025-04-17 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:35:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:36:05 [end_date_ymd] => 2025-04-17 11:36:05 [RateCDR] => 1 ) [2025-04-17 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:36:05' and `end` < '2025-04-17 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:36:18] Production.INFO: count ==4367 [2025-04-17 11:36:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:36:05 - End Time 2025-04-17 11:36:05 [2025-04-17 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927993', 'tblTempUsageDetail_20' ) start [2025-04-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927993', 'tblTempUsageDetail_20' ) end [2025-04-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927993', 'tblTempVendorCDR_20' ) start [2025-04-17 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927993', 'tblTempVendorCDR_20' ) end [2025-04-17 11:36:20] Production.INFO: ProcessCDR(1,14927993,1,1,2) [2025-04-17 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927993', 'tblTempUsageDetail_20' ) start [2025-04-17 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927993', 'tblTempUsageDetail_20' ) end [2025-04-17 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:36:25] Production.INFO: ==15852== Releasing lock... [2025-04-17 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:36:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:37:06 [end_date_ymd] => 2025-04-17 11:37:06 [RateCDR] => 1 ) [2025-04-17 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:37:06' and `end` < '2025-04-17 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:37:19] Production.INFO: count ==4368 [2025-04-17 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:37:06 - End Time 2025-04-17 11:37:06 [2025-04-17 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927998', 'tblTempUsageDetail_20' ) start [2025-04-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14927998', 'tblTempUsageDetail_20' ) end [2025-04-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927998', 'tblTempVendorCDR_20' ) start [2025-04-17 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14927998', 'tblTempVendorCDR_20' ) end [2025-04-17 11:37:21] Production.INFO: ProcessCDR(1,14927998,1,1,2) [2025-04-17 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14927998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14927998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14927998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14927998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927998', 'tblTempUsageDetail_20' ) start [2025-04-17 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14927998', 'tblTempUsageDetail_20' ) end [2025-04-17 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:37:26] Production.INFO: ==15943== Releasing lock... [2025-04-17 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:37:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:38:05 [end_date_ymd] => 2025-04-17 11:38:05 [RateCDR] => 1 ) [2025-04-17 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:38:05' and `end` < '2025-04-17 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:38:19] Production.INFO: count ==4391 [2025-04-17 11:38:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:38:05 - End Time 2025-04-17 11:38:05 [2025-04-17 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928003', 'tblTempUsageDetail_20' ) start [2025-04-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928003', 'tblTempUsageDetail_20' ) end [2025-04-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928003', 'tblTempVendorCDR_20' ) start [2025-04-17 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928003', 'tblTempVendorCDR_20' ) end [2025-04-17 11:38:20] Production.INFO: ProcessCDR(1,14928003,1,1,2) [2025-04-17 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928003', 'tblTempUsageDetail_20' ) start [2025-04-17 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928003', 'tblTempUsageDetail_20' ) end [2025-04-17 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:38:25] Production.INFO: ==16017== Releasing lock... [2025-04-17 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:38:25] Production.INFO: 61 MB #Memory Used# [2025-04-17 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:39:05 [end_date_ymd] => 2025-04-17 11:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:39:05' and `end` < '2025-04-17 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-17 11:39:19] Production.INFO: count ==4395 [2025-04-17 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:39:05 - End Time 2025-04-17 11:39:05 [2025-04-17 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928008', 'tblTempUsageDetail_20' ) start [2025-04-17 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928008', 'tblTempUsageDetail_20' ) end [2025-04-17 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928008', 'tblTempVendorCDR_20' ) start [2025-04-17 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928008', 'tblTempVendorCDR_20' ) end [2025-04-17 11:39:21] Production.INFO: ProcessCDR(1,14928008,1,1,2) [2025-04-17 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928008', 'tblTempUsageDetail_20' ) start [2025-04-17 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928008', 'tblTempUsageDetail_20' ) end [2025-04-17 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:39:26] Production.INFO: ==16094== Releasing lock... [2025-04-17 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:39:26] Production.INFO: 61 MB #Memory Used# [2025-04-17 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:40:06 [end_date_ymd] => 2025-04-17 11:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 08:40:06' and `end` < '2025-04-17 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-17 11:40:19] Production.INFO: count ==4415 [2025-04-17 11:40:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:40:06 - End Time 2025-04-17 11:40:06 [2025-04-17 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928014', 'tblTempUsageDetail_20' ) start [2025-04-17 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928014', 'tblTempUsageDetail_20' ) end [2025-04-17 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928014', 'tblTempVendorCDR_20' ) start [2025-04-17 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928014', 'tblTempVendorCDR_20' ) end [2025-04-17 11:40:21] Production.INFO: ProcessCDR(1,14928014,1,1,2) [2025-04-17 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928014', 'tblTempUsageDetail_20' ) start [2025-04-17 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928014', 'tblTempUsageDetail_20' ) end [2025-04-17 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:40:27] Production.INFO: ==16167== Releasing lock... [2025-04-17 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:40:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-17 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:41:05 [end_date_ymd] => 2025-04-17 11:41:05 [RateCDR] => 1 ) [2025-04-17 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:41:05' and `end` < '2025-04-17 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:41:19] Production.INFO: count ==4488 [2025-04-17 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:41:05 - End Time 2025-04-17 11:41:05 [2025-04-17 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928019', 'tblTempUsageDetail_20' ) start [2025-04-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928019', 'tblTempUsageDetail_20' ) end [2025-04-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928019', 'tblTempVendorCDR_20' ) start [2025-04-17 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928019', 'tblTempVendorCDR_20' ) end [2025-04-17 11:41:21] Production.INFO: ProcessCDR(1,14928019,1,1,2) [2025-04-17 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928019', 'tblTempUsageDetail_20' ) start [2025-04-17 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928019', 'tblTempUsageDetail_20' ) end [2025-04-17 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:41:26] Production.INFO: ==16244== Releasing lock... [2025-04-17 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:41:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-17 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:42:05 [end_date_ymd] => 2025-04-17 11:42:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:42:05' and `end` < '2025-04-17 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-17 11:42:18] Production.INFO: count ==4514 [2025-04-17 11:42:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:42:05 - End Time 2025-04-17 11:42:05 [2025-04-17 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928024', 'tblTempUsageDetail_20' ) start [2025-04-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928024', 'tblTempUsageDetail_20' ) end [2025-04-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928024', 'tblTempVendorCDR_20' ) start [2025-04-17 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928024', 'tblTempVendorCDR_20' ) end [2025-04-17 11:42:20] Production.INFO: ProcessCDR(1,14928024,1,1,2) [2025-04-17 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928024', 'tblTempUsageDetail_20' ) start [2025-04-17 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928024', 'tblTempUsageDetail_20' ) end [2025-04-17 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:42:25] Production.INFO: ==16315== Releasing lock... [2025-04-17 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:42:25] Production.INFO: 61.75 MB #Memory Used# [2025-04-17 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:43:05 [end_date_ymd] => 2025-04-17 11:43:05 [RateCDR] => 1 ) [2025-04-17 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:43:05' and `end` < '2025-04-17 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:43:19] Production.INFO: count ==4513 [2025-04-17 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:43:05 - End Time 2025-04-17 11:43:05 [2025-04-17 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928029', 'tblTempUsageDetail_20' ) start [2025-04-17 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928029', 'tblTempUsageDetail_20' ) end [2025-04-17 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928029', 'tblTempVendorCDR_20' ) start [2025-04-17 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928029', 'tblTempVendorCDR_20' ) end [2025-04-17 11:43:21] Production.INFO: ProcessCDR(1,14928029,1,1,2) [2025-04-17 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928029', 'tblTempUsageDetail_20' ) start [2025-04-17 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928029', 'tblTempUsageDetail_20' ) end [2025-04-17 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:43:26] Production.INFO: ==16393== Releasing lock... [2025-04-17 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:43:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-17 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:44:06 [end_date_ymd] => 2025-04-17 11:44:06 [RateCDR] => 1 ) [2025-04-17 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:44:06' and `end` < '2025-04-17 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:44:19] Production.INFO: count ==4524 [2025-04-17 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:44:06 - End Time 2025-04-17 11:44:06 [2025-04-17 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928034', 'tblTempUsageDetail_20' ) start [2025-04-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928034', 'tblTempUsageDetail_20' ) end [2025-04-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928034', 'tblTempVendorCDR_20' ) start [2025-04-17 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928034', 'tblTempVendorCDR_20' ) end [2025-04-17 11:44:21] Production.INFO: ProcessCDR(1,14928034,1,1,2) [2025-04-17 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928034', 'tblTempUsageDetail_20' ) start [2025-04-17 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928034', 'tblTempUsageDetail_20' ) end [2025-04-17 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:44:27] Production.INFO: ==16470== Releasing lock... [2025-04-17 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:44:27] Production.INFO: 62 MB #Memory Used# [2025-04-17 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:45:05 [end_date_ymd] => 2025-04-17 11:45:05 [RateCDR] => 1 ) [2025-04-17 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:45:05' and `end` < '2025-04-17 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:45:19] Production.INFO: count ==4538 [2025-04-17 11:45:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:45:05 - End Time 2025-04-17 11:45:05 [2025-04-17 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928039', 'tblTempUsageDetail_20' ) start [2025-04-17 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928039', 'tblTempUsageDetail_20' ) end [2025-04-17 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928039', 'tblTempVendorCDR_20' ) start [2025-04-17 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928039', 'tblTempVendorCDR_20' ) end [2025-04-17 11:45:21] Production.INFO: ProcessCDR(1,14928039,1,1,2) [2025-04-17 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928039', 'tblTempUsageDetail_20' ) start [2025-04-17 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928039', 'tblTempUsageDetail_20' ) end [2025-04-17 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:45:27] Production.INFO: ==16547== Releasing lock... [2025-04-17 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:45:27] Production.INFO: 62 MB #Memory Used# [2025-04-17 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:46:06 [end_date_ymd] => 2025-04-17 11:46:06 [RateCDR] => 1 ) [2025-04-17 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:46:06' and `end` < '2025-04-17 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:46:20] Production.INFO: count ==4547 [2025-04-17 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:46:06 - End Time 2025-04-17 11:46:06 [2025-04-17 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928044', 'tblTempUsageDetail_20' ) start [2025-04-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928044', 'tblTempUsageDetail_20' ) end [2025-04-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928044', 'tblTempVendorCDR_20' ) start [2025-04-17 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928044', 'tblTempVendorCDR_20' ) end [2025-04-17 11:46:21] Production.INFO: ProcessCDR(1,14928044,1,1,2) [2025-04-17 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928044', 'tblTempUsageDetail_20' ) start [2025-04-17 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928044', 'tblTempUsageDetail_20' ) end [2025-04-17 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:46:26] Production.INFO: ==16626== Releasing lock... [2025-04-17 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:46:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:47:05 [end_date_ymd] => 2025-04-17 11:47:05 [RateCDR] => 1 ) [2025-04-17 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:47:05' and `end` < '2025-04-17 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:47:19] Production.INFO: count ==4553 [2025-04-17 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:47:05 - End Time 2025-04-17 11:47:05 [2025-04-17 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928049', 'tblTempUsageDetail_20' ) start [2025-04-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928049', 'tblTempUsageDetail_20' ) end [2025-04-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928049', 'tblTempVendorCDR_20' ) start [2025-04-17 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928049', 'tblTempVendorCDR_20' ) end [2025-04-17 11:47:21] Production.INFO: ProcessCDR(1,14928049,1,1,2) [2025-04-17 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928049', 'tblTempUsageDetail_20' ) start [2025-04-17 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928049', 'tblTempUsageDetail_20' ) end [2025-04-17 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:47:26] Production.INFO: ==16699== Releasing lock... [2025-04-17 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:47:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:48:06 [end_date_ymd] => 2025-04-17 11:48:06 [RateCDR] => 1 ) [2025-04-17 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:48:06' and `end` < '2025-04-17 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:48:19] Production.INFO: count ==4552 [2025-04-17 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:48:06 - End Time 2025-04-17 11:48:06 [2025-04-17 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928054', 'tblTempUsageDetail_20' ) start [2025-04-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928054', 'tblTempUsageDetail_20' ) end [2025-04-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928054', 'tblTempVendorCDR_20' ) start [2025-04-17 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928054', 'tblTempVendorCDR_20' ) end [2025-04-17 11:48:21] Production.INFO: ProcessCDR(1,14928054,1,1,2) [2025-04-17 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928054', 'tblTempUsageDetail_20' ) start [2025-04-17 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928054', 'tblTempUsageDetail_20' ) end [2025-04-17 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:48:27] Production.INFO: ==16813== Releasing lock... [2025-04-17 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:48:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:49:05 [end_date_ymd] => 2025-04-17 11:49:05 [RateCDR] => 1 ) [2025-04-17 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:49:05' and `end` < '2025-04-17 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:49:19] Production.INFO: count ==4550 [2025-04-17 11:49:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:49:05 - End Time 2025-04-17 11:49:05 [2025-04-17 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928059', 'tblTempUsageDetail_20' ) start [2025-04-17 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928059', 'tblTempUsageDetail_20' ) end [2025-04-17 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928059', 'tblTempVendorCDR_20' ) start [2025-04-17 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928059', 'tblTempVendorCDR_20' ) end [2025-04-17 11:49:21] Production.INFO: ProcessCDR(1,14928059,1,1,2) [2025-04-17 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928059', 'tblTempUsageDetail_20' ) start [2025-04-17 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928059', 'tblTempUsageDetail_20' ) end [2025-04-17 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:49:25] Production.INFO: ==16887== Releasing lock... [2025-04-17 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:49:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:50:06 [end_date_ymd] => 2025-04-17 11:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 08:50:06' and `end` < '2025-04-17 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-17 11:50:20] Production.INFO: count ==4555 [2025-04-17 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-17 08:50:06 - End Time 2025-04-17 11:50:06 [2025-04-17 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928065', 'tblTempUsageDetail_20' ) start [2025-04-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928065', 'tblTempUsageDetail_20' ) end [2025-04-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928065', 'tblTempVendorCDR_20' ) start [2025-04-17 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928065', 'tblTempVendorCDR_20' ) end [2025-04-17 11:50:22] Production.INFO: ProcessCDR(1,14928065,1,1,2) [2025-04-17 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928065', 'tblTempUsageDetail_20' ) start [2025-04-17 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928065', 'tblTempUsageDetail_20' ) end [2025-04-17 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:50:27] Production.INFO: ==16959== Releasing lock... [2025-04-17 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:50:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:51:05 [end_date_ymd] => 2025-04-17 11:51:05 [RateCDR] => 1 ) [2025-04-17 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:51:05' and `end` < '2025-04-17 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:51:18] Production.INFO: count ==4632 [2025-04-17 11:51:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:51:05 - End Time 2025-04-17 11:51:05 [2025-04-17 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928070', 'tblTempUsageDetail_20' ) start [2025-04-17 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928070', 'tblTempUsageDetail_20' ) end [2025-04-17 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928070', 'tblTempVendorCDR_20' ) start [2025-04-17 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928070', 'tblTempVendorCDR_20' ) end [2025-04-17 11:51:20] Production.INFO: ProcessCDR(1,14928070,1,1,2) [2025-04-17 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928070', 'tblTempUsageDetail_20' ) start [2025-04-17 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928070', 'tblTempUsageDetail_20' ) end [2025-04-17 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:51:26] Production.INFO: ==17034== Releasing lock... [2025-04-17 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:51:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:52:05 [end_date_ymd] => 2025-04-17 11:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:52:05' and `end` < '2025-04-17 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-17 11:52:19] Production.INFO: count ==4635 [2025-04-17 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:52:05 - End Time 2025-04-17 11:52:05 [2025-04-17 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928075', 'tblTempUsageDetail_20' ) start [2025-04-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928075', 'tblTempUsageDetail_20' ) end [2025-04-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928075', 'tblTempVendorCDR_20' ) start [2025-04-17 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928075', 'tblTempVendorCDR_20' ) end [2025-04-17 11:52:21] Production.INFO: ProcessCDR(1,14928075,1,1,2) [2025-04-17 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928075', 'tblTempUsageDetail_20' ) start [2025-04-17 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928075', 'tblTempUsageDetail_20' ) end [2025-04-17 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:52:26] Production.INFO: ==17106== Releasing lock... [2025-04-17 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:52:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:53:05 [end_date_ymd] => 2025-04-17 11:53:05 [RateCDR] => 1 ) [2025-04-17 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:53:05' and `end` < '2025-04-17 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:53:18] Production.INFO: count ==4639 [2025-04-17 11:53:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:53:05 - End Time 2025-04-17 11:53:05 [2025-04-17 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928080', 'tblTempUsageDetail_20' ) start [2025-04-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928080', 'tblTempUsageDetail_20' ) end [2025-04-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928080', 'tblTempVendorCDR_20' ) start [2025-04-17 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928080', 'tblTempVendorCDR_20' ) end [2025-04-17 11:53:20] Production.INFO: ProcessCDR(1,14928080,1,1,2) [2025-04-17 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928080', 'tblTempUsageDetail_20' ) start [2025-04-17 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928080', 'tblTempUsageDetail_20' ) end [2025-04-17 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:53:25] Production.INFO: ==17181== Releasing lock... [2025-04-17 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:53:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:54:05 [end_date_ymd] => 2025-04-17 11:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:54:05' and `end` < '2025-04-17 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-17 11:54:19] Production.INFO: count ==4629 [2025-04-17 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:54:05 - End Time 2025-04-17 11:54:05 [2025-04-17 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928085', 'tblTempUsageDetail_20' ) start [2025-04-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928085', 'tblTempUsageDetail_20' ) end [2025-04-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928085', 'tblTempVendorCDR_20' ) start [2025-04-17 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928085', 'tblTempVendorCDR_20' ) end [2025-04-17 11:54:21] Production.INFO: ProcessCDR(1,14928085,1,1,2) [2025-04-17 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928085', 'tblTempUsageDetail_20' ) start [2025-04-17 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928085', 'tblTempUsageDetail_20' ) end [2025-04-17 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:54:26] Production.INFO: ==17268== Releasing lock... [2025-04-17 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:54:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:55:05 [end_date_ymd] => 2025-04-17 11:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 08:55:05' and `end` < '2025-04-17 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-17 11:55:19] Production.INFO: count ==4630 [2025-04-17 11:55:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:55:05 - End Time 2025-04-17 11:55:05 [2025-04-17 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928090', 'tblTempUsageDetail_20' ) start [2025-04-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928090', 'tblTempUsageDetail_20' ) end [2025-04-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928090', 'tblTempVendorCDR_20' ) start [2025-04-17 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928090', 'tblTempVendorCDR_20' ) end [2025-04-17 11:55:21] Production.INFO: ProcessCDR(1,14928090,1,1,2) [2025-04-17 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928090', 'tblTempUsageDetail_20' ) start [2025-04-17 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928090', 'tblTempUsageDetail_20' ) end [2025-04-17 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:55:26] Production.INFO: ==17340== Releasing lock... [2025-04-17 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:55:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:56:05 [end_date_ymd] => 2025-04-17 11:56:05 [RateCDR] => 1 ) [2025-04-17 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 08:56:05' and `end` < '2025-04-17 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 11:56:19] Production.INFO: count ==4632 [2025-04-17 11:56:20] Production.ERROR: pbx CDR StartTime 2025-04-17 08:56:05 - End Time 2025-04-17 11:56:05 [2025-04-17 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928095', 'tblTempUsageDetail_20' ) start [2025-04-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928095', 'tblTempUsageDetail_20' ) end [2025-04-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928095', 'tblTempVendorCDR_20' ) start [2025-04-17 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928095', 'tblTempVendorCDR_20' ) end [2025-04-17 11:56:21] Production.INFO: ProcessCDR(1,14928095,1,1,2) [2025-04-17 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928095', 'tblTempUsageDetail_20' ) start [2025-04-17 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928095', 'tblTempUsageDetail_20' ) end [2025-04-17 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:56:26] Production.INFO: ==17420== Releasing lock... [2025-04-17 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:56:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:57:06 [end_date_ymd] => 2025-04-17 11:57:06 [RateCDR] => 1 ) [2025-04-17 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-17 08:57:06' and `end` < '2025-04-17 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-17 11:57:19] Production.INFO: count ==4636 [2025-04-17 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:57:06 - End Time 2025-04-17 11:57:06 [2025-04-17 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928100', 'tblTempUsageDetail_20' ) start [2025-04-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928100', 'tblTempUsageDetail_20' ) end [2025-04-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928100', 'tblTempVendorCDR_20' ) start [2025-04-17 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928100', 'tblTempVendorCDR_20' ) end [2025-04-17 11:57:21] Production.INFO: ProcessCDR(1,14928100,1,1,2) [2025-04-17 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928100', 'tblTempUsageDetail_20' ) start [2025-04-17 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928100', 'tblTempUsageDetail_20' ) end [2025-04-17 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:57:26] Production.INFO: ==17508== Releasing lock... [2025-04-17 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:57:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:58:06 [end_date_ymd] => 2025-04-17 11:58:06 [RateCDR] => 1 ) [2025-04-17 11: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-17 08:58:06' and `end` < '2025-04-17 11: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-17 11:58:21] Production.INFO: count ==4642 [2025-04-17 11:58:23] Production.ERROR: pbx CDR StartTime 2025-04-17 08:58:06 - End Time 2025-04-17 11:58:06 [2025-04-17 11:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928105', 'tblTempUsageDetail_20' ) start [2025-04-17 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928105', 'tblTempUsageDetail_20' ) end [2025-04-17 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928105', 'tblTempVendorCDR_20' ) start [2025-04-17 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928105', 'tblTempVendorCDR_20' ) end [2025-04-17 11:58:23] Production.INFO: ProcessCDR(1,14928105,1,1,2) [2025-04-17 11:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928105', 'tblTempUsageDetail_20' ) start [2025-04-17 11:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928105', 'tblTempUsageDetail_20' ) end [2025-04-17 11:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:58:28] Production.INFO: ==17603== Releasing lock... [2025-04-17 11:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:58:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 08:59:06 [end_date_ymd] => 2025-04-17 11:59:06 [RateCDR] => 1 ) [2025-04-17 11: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-17 08:59:06' and `end` < '2025-04-17 11: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-17 11:59:19] Production.INFO: count ==4649 [2025-04-17 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-17 08:59:06 - End Time 2025-04-17 11:59:06 [2025-04-17 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928110', 'tblTempUsageDetail_20' ) start [2025-04-17 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928110', 'tblTempUsageDetail_20' ) end [2025-04-17 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928110', 'tblTempVendorCDR_20' ) start [2025-04-17 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928110', 'tblTempVendorCDR_20' ) end [2025-04-17 11:59:22] Production.INFO: ProcessCDR(1,14928110,1,1,2) [2025-04-17 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928110', 'tblTempUsageDetail_20' ) start [2025-04-17 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928110', 'tblTempUsageDetail_20' ) end [2025-04-17 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 11:59:26] Production.INFO: ==17695== Releasing lock... [2025-04-17 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 11:59:26] Production.INFO: 63 MB #Memory Used# [2025-04-17 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:00:06 [end_date_ymd] => 2025-04-17 12:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 09:00:06' and `end` < '2025-04-17 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-17 12:00:20] Production.INFO: count ==4639 [2025-04-17 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:00:06 - End Time 2025-04-17 12:00:06 [2025-04-17 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928116', 'tblTempUsageDetail_20' ) start [2025-04-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928116', 'tblTempUsageDetail_20' ) end [2025-04-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928116', 'tblTempVendorCDR_20' ) start [2025-04-17 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928116', 'tblTempVendorCDR_20' ) end [2025-04-17 12:00:22] Production.INFO: ProcessCDR(1,14928116,1,1,2) [2025-04-17 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928116', 'tblTempUsageDetail_20' ) start [2025-04-17 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928116', 'tblTempUsageDetail_20' ) end [2025-04-17 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:00:27] Production.INFO: ==17786== Releasing lock... [2025-04-17 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:00:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-17 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:01:05 [end_date_ymd] => 2025-04-17 12:01:05 [RateCDR] => 1 ) [2025-04-17 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:01:05' and `end` < '2025-04-17 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:01:19] Production.INFO: count ==4657 [2025-04-17 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:01:05 - End Time 2025-04-17 12:01:05 [2025-04-17 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928121', 'tblTempUsageDetail_20' ) start [2025-04-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928121', 'tblTempUsageDetail_20' ) end [2025-04-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928121', 'tblTempVendorCDR_20' ) start [2025-04-17 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928121', 'tblTempVendorCDR_20' ) end [2025-04-17 12:01:21] Production.INFO: ProcessCDR(1,14928121,1,1,2) [2025-04-17 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928121', 'tblTempUsageDetail_20' ) start [2025-04-17 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928121', 'tblTempUsageDetail_20' ) end [2025-04-17 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:01:26] Production.INFO: ==17895== Releasing lock... [2025-04-17 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:01:26] Production.INFO: 63 MB #Memory Used# [2025-04-17 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:02:05 [end_date_ymd] => 2025-04-17 12:02:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:02:05' and `end` < '2025-04-17 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-17 12:02:19] Production.INFO: count ==4670 [2025-04-17 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:02:05 - End Time 2025-04-17 12:02:05 [2025-04-17 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928126', 'tblTempUsageDetail_20' ) start [2025-04-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928126', 'tblTempUsageDetail_20' ) end [2025-04-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928126', 'tblTempVendorCDR_20' ) start [2025-04-17 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928126', 'tblTempVendorCDR_20' ) end [2025-04-17 12:02:21] Production.INFO: ProcessCDR(1,14928126,1,1,2) [2025-04-17 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928126', 'tblTempUsageDetail_20' ) start [2025-04-17 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928126', 'tblTempUsageDetail_20' ) end [2025-04-17 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:02:26] Production.INFO: ==17990== Releasing lock... [2025-04-17 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:02:26] Production.INFO: 63 MB #Memory Used# [2025-04-17 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:03:05 [end_date_ymd] => 2025-04-17 12:03:05 [RateCDR] => 1 ) [2025-04-17 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:03:05' and `end` < '2025-04-17 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:03:19] Production.INFO: count ==4670 [2025-04-17 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:03:05 - End Time 2025-04-17 12:03:05 [2025-04-17 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928131', 'tblTempUsageDetail_20' ) start [2025-04-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928131', 'tblTempUsageDetail_20' ) end [2025-04-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928131', 'tblTempVendorCDR_20' ) start [2025-04-17 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928131', 'tblTempVendorCDR_20' ) end [2025-04-17 12:03:21] Production.INFO: ProcessCDR(1,14928131,1,1,2) [2025-04-17 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928131', 'tblTempUsageDetail_20' ) start [2025-04-17 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928131', 'tblTempUsageDetail_20' ) end [2025-04-17 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:03:26] Production.INFO: ==18078== Releasing lock... [2025-04-17 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:03:26] Production.INFO: 63 MB #Memory Used# [2025-04-17 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:04:05 [end_date_ymd] => 2025-04-17 12:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:04:05' and `end` < '2025-04-17 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-17 12:04:19] Production.INFO: count ==4702 [2025-04-17 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:04:05 - End Time 2025-04-17 12:04:05 [2025-04-17 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928136', 'tblTempUsageDetail_20' ) start [2025-04-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928136', 'tblTempUsageDetail_20' ) end [2025-04-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928136', 'tblTempVendorCDR_20' ) start [2025-04-17 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928136', 'tblTempVendorCDR_20' ) end [2025-04-17 12:04:21] Production.INFO: ProcessCDR(1,14928136,1,1,2) [2025-04-17 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928136', 'tblTempUsageDetail_20' ) start [2025-04-17 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928136', 'tblTempUsageDetail_20' ) end [2025-04-17 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:04:26] Production.INFO: ==18208== Releasing lock... [2025-04-17 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:04:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-17 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:05:05 [end_date_ymd] => 2025-04-17 12:05:05 [RateCDR] => 1 ) [2025-04-17 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:05:05' and `end` < '2025-04-17 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:05:19] Production.INFO: count ==4684 [2025-04-17 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:05:05 - End Time 2025-04-17 12:05:05 [2025-04-17 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928141', 'tblTempUsageDetail_20' ) start [2025-04-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928141', 'tblTempUsageDetail_20' ) end [2025-04-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928141', 'tblTempVendorCDR_20' ) start [2025-04-17 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928141', 'tblTempVendorCDR_20' ) end [2025-04-17 12:05:21] Production.INFO: ProcessCDR(1,14928141,1,1,2) [2025-04-17 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928141', 'tblTempUsageDetail_20' ) start [2025-04-17 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928141', 'tblTempUsageDetail_20' ) end [2025-04-17 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:05:26] Production.INFO: ==18299== Releasing lock... [2025-04-17 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:05:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-17 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:06:06 [end_date_ymd] => 2025-04-17 12:06:06 [RateCDR] => 1 ) [2025-04-17 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:06:06' and `end` < '2025-04-17 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:06:20] Production.INFO: count ==4701 [2025-04-17 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:06:06 - End Time 2025-04-17 12:06:06 [2025-04-17 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928146', 'tblTempUsageDetail_20' ) start [2025-04-17 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928146', 'tblTempUsageDetail_20' ) end [2025-04-17 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928146', 'tblTempVendorCDR_20' ) start [2025-04-17 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928146', 'tblTempVendorCDR_20' ) end [2025-04-17 12:06:22] Production.INFO: ProcessCDR(1,14928146,1,1,2) [2025-04-17 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928146', 'tblTempUsageDetail_20' ) start [2025-04-17 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928146', 'tblTempUsageDetail_20' ) end [2025-04-17 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:06:27] Production.INFO: ==18391== Releasing lock... [2025-04-17 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:06:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-17 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:07:05 [end_date_ymd] => 2025-04-17 12:07:05 [RateCDR] => 1 ) [2025-04-17 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:07:05' and `end` < '2025-04-17 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:07:19] Production.INFO: count ==4711 [2025-04-17 12:07:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:07:05 - End Time 2025-04-17 12:07:05 [2025-04-17 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928151', 'tblTempUsageDetail_20' ) start [2025-04-17 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928151', 'tblTempUsageDetail_20' ) end [2025-04-17 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928151', 'tblTempVendorCDR_20' ) start [2025-04-17 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928151', 'tblTempVendorCDR_20' ) end [2025-04-17 12:07:21] Production.INFO: ProcessCDR(1,14928151,1,1,2) [2025-04-17 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928151', 'tblTempUsageDetail_20' ) start [2025-04-17 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928151', 'tblTempUsageDetail_20' ) end [2025-04-17 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:07:26] Production.INFO: ==18482== Releasing lock... [2025-04-17 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:07:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-17 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:08:05 [end_date_ymd] => 2025-04-17 12:08:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:08:05' and `end` < '2025-04-17 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-17 12:08:19] Production.INFO: count ==4713 [2025-04-17 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:08:05 - End Time 2025-04-17 12:08:05 [2025-04-17 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928156', 'tblTempUsageDetail_20' ) start [2025-04-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928156', 'tblTempUsageDetail_20' ) end [2025-04-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928156', 'tblTempVendorCDR_20' ) start [2025-04-17 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928156', 'tblTempVendorCDR_20' ) end [2025-04-17 12:08:21] Production.INFO: ProcessCDR(1,14928156,1,1,2) [2025-04-17 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928156', 'tblTempUsageDetail_20' ) start [2025-04-17 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928156', 'tblTempUsageDetail_20' ) end [2025-04-17 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:08:26] Production.INFO: ==18577== Releasing lock... [2025-04-17 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:08:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-17 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:09:04 [end_date_ymd] => 2025-04-17 12:09:04 [RateCDR] => 1 ) [2025-04-17 12:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:09:04' and `end` < '2025-04-17 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:09:19] Production.INFO: count ==4740 [2025-04-17 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:09:04 - End Time 2025-04-17 12:09:04 [2025-04-17 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928160', 'tblTempUsageDetail_20' ) start [2025-04-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928160', 'tblTempUsageDetail_20' ) end [2025-04-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928160', 'tblTempVendorCDR_20' ) start [2025-04-17 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928160', 'tblTempVendorCDR_20' ) end [2025-04-17 12:09:21] Production.INFO: ProcessCDR(1,14928160,1,1,2) [2025-04-17 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928160', 'tblTempUsageDetail_20' ) start [2025-04-17 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928160', 'tblTempUsageDetail_20' ) end [2025-04-17 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:09:26] Production.INFO: ==18667== Releasing lock... [2025-04-17 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:09:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-17 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:10:06 [end_date_ymd] => 2025-04-17 12:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 09:10:06' and `end` < '2025-04-17 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-17 12:10:20] Production.INFO: count ==4772 [2025-04-17 12:10:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:10:06 - End Time 2025-04-17 12:10:06 [2025-04-17 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928167', 'tblTempUsageDetail_20' ) start [2025-04-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928167', 'tblTempUsageDetail_20' ) end [2025-04-17 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928167', 'tblTempVendorCDR_20' ) start [2025-04-17 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928167', 'tblTempVendorCDR_20' ) end [2025-04-17 12:10:23] Production.INFO: ProcessCDR(1,14928167,1,1,2) [2025-04-17 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928167', 'tblTempUsageDetail_20' ) start [2025-04-17 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928167', 'tblTempUsageDetail_20' ) end [2025-04-17 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:10:28] Production.INFO: ==18764== Releasing lock... [2025-04-17 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:10:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-17 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:11:05 [end_date_ymd] => 2025-04-17 12:11:05 [RateCDR] => 1 ) [2025-04-17 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:11:05' and `end` < '2025-04-17 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:11:19] Production.INFO: count ==4812 [2025-04-17 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:11:05 - End Time 2025-04-17 12:11:05 [2025-04-17 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928172', 'tblTempUsageDetail_20' ) start [2025-04-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928172', 'tblTempUsageDetail_20' ) end [2025-04-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928172', 'tblTempVendorCDR_20' ) start [2025-04-17 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928172', 'tblTempVendorCDR_20' ) end [2025-04-17 12:11:21] Production.INFO: ProcessCDR(1,14928172,1,1,2) [2025-04-17 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928172', 'tblTempUsageDetail_20' ) start [2025-04-17 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928172', 'tblTempUsageDetail_20' ) end [2025-04-17 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:11:26] Production.INFO: ==18854== Releasing lock... [2025-04-17 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:11:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-17 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:12:05 [end_date_ymd] => 2025-04-17 12:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:12:05' and `end` < '2025-04-17 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-17 12:12:19] Production.INFO: count ==4847 [2025-04-17 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:12:05 - End Time 2025-04-17 12:12:05 [2025-04-17 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928177', 'tblTempUsageDetail_20' ) start [2025-04-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928177', 'tblTempUsageDetail_20' ) end [2025-04-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928177', 'tblTempVendorCDR_20' ) start [2025-04-17 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928177', 'tblTempVendorCDR_20' ) end [2025-04-17 12:12:21] Production.INFO: ProcessCDR(1,14928177,1,1,2) [2025-04-17 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928177', 'tblTempUsageDetail_20' ) start [2025-04-17 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928177', 'tblTempUsageDetail_20' ) end [2025-04-17 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:12:26] Production.INFO: ==18951== Releasing lock... [2025-04-17 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:12:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:13:05 [end_date_ymd] => 2025-04-17 12:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:13:05' and `end` < '2025-04-17 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-17 12:13:18] Production.INFO: count ==4868 [2025-04-17 12:13:20] Production.ERROR: pbx CDR StartTime 2025-04-17 09:13:05 - End Time 2025-04-17 12:13:05 [2025-04-17 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928182', 'tblTempUsageDetail_20' ) start [2025-04-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928182', 'tblTempUsageDetail_20' ) end [2025-04-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928182', 'tblTempVendorCDR_20' ) start [2025-04-17 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928182', 'tblTempVendorCDR_20' ) end [2025-04-17 12:13:21] Production.INFO: ProcessCDR(1,14928182,1,1,2) [2025-04-17 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928182', 'tblTempUsageDetail_20' ) start [2025-04-17 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928182', 'tblTempUsageDetail_20' ) end [2025-04-17 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:13:26] Production.INFO: ==19041== Releasing lock... [2025-04-17 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:13:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:14:05 [end_date_ymd] => 2025-04-17 12:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:14:05' and `end` < '2025-04-17 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-17 12:14:19] Production.INFO: count ==4868 [2025-04-17 12:14:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:14:05 - End Time 2025-04-17 12:14:05 [2025-04-17 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928187', 'tblTempUsageDetail_20' ) start [2025-04-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928187', 'tblTempUsageDetail_20' ) end [2025-04-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928187', 'tblTempVendorCDR_20' ) start [2025-04-17 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928187', 'tblTempVendorCDR_20' ) end [2025-04-17 12:14:21] Production.INFO: ProcessCDR(1,14928187,1,1,2) [2025-04-17 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928187', 'tblTempUsageDetail_20' ) start [2025-04-17 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928187', 'tblTempUsageDetail_20' ) end [2025-04-17 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:14:26] Production.INFO: ==19133== Releasing lock... [2025-04-17 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:14:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:15:05 [end_date_ymd] => 2025-04-17 12:15:05 [RateCDR] => 1 ) [2025-04-17 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:15:05' and `end` < '2025-04-17 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:15:19] Production.INFO: count ==4860 [2025-04-17 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:15:05 - End Time 2025-04-17 12:15:05 [2025-04-17 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928192', 'tblTempUsageDetail_20' ) start [2025-04-17 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928192', 'tblTempUsageDetail_20' ) end [2025-04-17 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928192', 'tblTempVendorCDR_20' ) start [2025-04-17 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928192', 'tblTempVendorCDR_20' ) end [2025-04-17 12:15:21] Production.INFO: ProcessCDR(1,14928192,1,1,2) [2025-04-17 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928192', 'tblTempUsageDetail_20' ) start [2025-04-17 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928192', 'tblTempUsageDetail_20' ) end [2025-04-17 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:15:26] Production.INFO: ==19221== Releasing lock... [2025-04-17 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:15:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:16:05 [end_date_ymd] => 2025-04-17 12:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:16:05' and `end` < '2025-04-17 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-17 12:16:19] Production.INFO: count ==4866 [2025-04-17 12:16:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:16:05 - End Time 2025-04-17 12:16:05 [2025-04-17 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928197', 'tblTempUsageDetail_20' ) start [2025-04-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928197', 'tblTempUsageDetail_20' ) end [2025-04-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928197', 'tblTempVendorCDR_20' ) start [2025-04-17 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928197', 'tblTempVendorCDR_20' ) end [2025-04-17 12:16:21] Production.INFO: ProcessCDR(1,14928197,1,1,2) [2025-04-17 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928197', 'tblTempUsageDetail_20' ) start [2025-04-17 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928197', 'tblTempUsageDetail_20' ) end [2025-04-17 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:16:27] Production.INFO: ==19314== Releasing lock... [2025-04-17 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:16:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:17:05 [end_date_ymd] => 2025-04-17 12:17:05 [RateCDR] => 1 ) [2025-04-17 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:17:05' and `end` < '2025-04-17 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:17:19] Production.INFO: count ==4866 [2025-04-17 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:17:05 - End Time 2025-04-17 12:17:05 [2025-04-17 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928202', 'tblTempUsageDetail_20' ) start [2025-04-17 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928202', 'tblTempUsageDetail_20' ) end [2025-04-17 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928202', 'tblTempVendorCDR_20' ) start [2025-04-17 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928202', 'tblTempVendorCDR_20' ) end [2025-04-17 12:17:22] Production.INFO: ProcessCDR(1,14928202,1,1,2) [2025-04-17 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928202', 'tblTempUsageDetail_20' ) start [2025-04-17 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928202', 'tblTempUsageDetail_20' ) end [2025-04-17 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:17:27] Production.INFO: ==19405== Releasing lock... [2025-04-17 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:17:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:18:05 [end_date_ymd] => 2025-04-17 12:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:18:05' and `end` < '2025-04-17 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-17 12:18:19] Production.INFO: count ==4875 [2025-04-17 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:18:05 - End Time 2025-04-17 12:18:05 [2025-04-17 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928207', 'tblTempUsageDetail_20' ) start [2025-04-17 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928207', 'tblTempUsageDetail_20' ) end [2025-04-17 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928207', 'tblTempVendorCDR_20' ) start [2025-04-17 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928207', 'tblTempVendorCDR_20' ) end [2025-04-17 12:18:21] Production.INFO: ProcessCDR(1,14928207,1,1,2) [2025-04-17 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928207', 'tblTempUsageDetail_20' ) start [2025-04-17 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928207', 'tblTempUsageDetail_20' ) end [2025-04-17 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:18:26] Production.INFO: ==19497== Releasing lock... [2025-04-17 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:18:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:19:05 [end_date_ymd] => 2025-04-17 12:19:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:19:05' and `end` < '2025-04-17 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-17 12:19:19] Production.INFO: count ==4887 [2025-04-17 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:19:05 - End Time 2025-04-17 12:19:05 [2025-04-17 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928212', 'tblTempUsageDetail_20' ) start [2025-04-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928212', 'tblTempUsageDetail_20' ) end [2025-04-17 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928212', 'tblTempVendorCDR_20' ) start [2025-04-17 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928212', 'tblTempVendorCDR_20' ) end [2025-04-17 12:19:22] Production.INFO: ProcessCDR(1,14928212,1,1,2) [2025-04-17 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928212', 'tblTempUsageDetail_20' ) start [2025-04-17 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928212', 'tblTempUsageDetail_20' ) end [2025-04-17 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:19:27] Production.INFO: ==19630== Releasing lock... [2025-04-17 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:19:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-17 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:20:05 [end_date_ymd] => 2025-04-17 12:20:05 [RateCDR] => 1 ) [2025-04-17 12: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-17 09:20:05' and `end` < '2025-04-17 12: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-17 12:20:19] Production.INFO: count ==4912 [2025-04-17 12:20:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:20:05 - End Time 2025-04-17 12:20:05 [2025-04-17 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928218', 'tblTempUsageDetail_20' ) start [2025-04-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928218', 'tblTempUsageDetail_20' ) end [2025-04-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928218', 'tblTempVendorCDR_20' ) start [2025-04-17 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928218', 'tblTempVendorCDR_20' ) end [2025-04-17 12:20:21] Production.INFO: ProcessCDR(1,14928218,1,1,2) [2025-04-17 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928218', 'tblTempUsageDetail_20' ) start [2025-04-17 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928218', 'tblTempUsageDetail_20' ) end [2025-04-17 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:20:27] Production.INFO: ==19721== Releasing lock... [2025-04-17 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:20:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-17 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:21:05 [end_date_ymd] => 2025-04-17 12:21:05 [RateCDR] => 1 ) [2025-04-17 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:21:05' and `end` < '2025-04-17 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:21:19] Production.INFO: count ==4939 [2025-04-17 12:21:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:21:05 - End Time 2025-04-17 12:21:05 [2025-04-17 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928223', 'tblTempUsageDetail_20' ) start [2025-04-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928223', 'tblTempUsageDetail_20' ) end [2025-04-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928223', 'tblTempVendorCDR_20' ) start [2025-04-17 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928223', 'tblTempVendorCDR_20' ) end [2025-04-17 12:21:21] Production.INFO: ProcessCDR(1,14928223,1,1,2) [2025-04-17 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928223', 'tblTempUsageDetail_20' ) start [2025-04-17 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928223', 'tblTempUsageDetail_20' ) end [2025-04-17 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:21:26] Production.INFO: ==19811== Releasing lock... [2025-04-17 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:21:26] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:22:06 [end_date_ymd] => 2025-04-17 12:22:06 [RateCDR] => 1 ) [2025-04-17 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:22:06' and `end` < '2025-04-17 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:22:20] Production.INFO: count ==4914 [2025-04-17 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:22:06 - End Time 2025-04-17 12:22:06 [2025-04-17 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928228', 'tblTempUsageDetail_20' ) start [2025-04-17 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928228', 'tblTempUsageDetail_20' ) end [2025-04-17 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928228', 'tblTempVendorCDR_20' ) start [2025-04-17 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928228', 'tblTempVendorCDR_20' ) end [2025-04-17 12:22:22] Production.INFO: ProcessCDR(1,14928228,1,1,2) [2025-04-17 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928228', 'tblTempUsageDetail_20' ) start [2025-04-17 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928228', 'tblTempUsageDetail_20' ) end [2025-04-17 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:22:27] Production.INFO: ==19904== Releasing lock... [2025-04-17 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:22:27] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:23:05 [end_date_ymd] => 2025-04-17 12:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:23:05' and `end` < '2025-04-17 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-17 12:23:19] Production.INFO: count ==4921 [2025-04-17 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:23:05 - End Time 2025-04-17 12:23:05 [2025-04-17 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928233', 'tblTempUsageDetail_20' ) start [2025-04-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928233', 'tblTempUsageDetail_20' ) end [2025-04-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928233', 'tblTempVendorCDR_20' ) start [2025-04-17 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928233', 'tblTempVendorCDR_20' ) end [2025-04-17 12:23:21] Production.INFO: ProcessCDR(1,14928233,1,1,2) [2025-04-17 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928233', 'tblTempUsageDetail_20' ) start [2025-04-17 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928233', 'tblTempUsageDetail_20' ) end [2025-04-17 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:23:27] Production.INFO: ==19996== Releasing lock... [2025-04-17 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:23:27] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:24:05 [end_date_ymd] => 2025-04-17 12:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:24:05' and `end` < '2025-04-17 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-17 12:24:19] Production.INFO: count ==4914 [2025-04-17 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:24:05 - End Time 2025-04-17 12:24:05 [2025-04-17 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928238', 'tblTempUsageDetail_20' ) start [2025-04-17 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928238', 'tblTempUsageDetail_20' ) end [2025-04-17 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928238', 'tblTempVendorCDR_20' ) start [2025-04-17 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928238', 'tblTempVendorCDR_20' ) end [2025-04-17 12:24:21] Production.INFO: ProcessCDR(1,14928238,1,1,2) [2025-04-17 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928238', 'tblTempUsageDetail_20' ) start [2025-04-17 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928238', 'tblTempUsageDetail_20' ) end [2025-04-17 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:24:26] Production.INFO: ==20085== Releasing lock... [2025-04-17 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:24:26] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:25:05 [end_date_ymd] => 2025-04-17 12:25:05 [RateCDR] => 1 ) [2025-04-17 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:25:05' and `end` < '2025-04-17 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:25:19] Production.INFO: count ==4923 [2025-04-17 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:25:05 - End Time 2025-04-17 12:25:05 [2025-04-17 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928243', 'tblTempUsageDetail_20' ) start [2025-04-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928243', 'tblTempUsageDetail_20' ) end [2025-04-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928243', 'tblTempVendorCDR_20' ) start [2025-04-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928243', 'tblTempVendorCDR_20' ) end [2025-04-17 12:25:21] Production.INFO: ProcessCDR(1,14928243,1,1,2) [2025-04-17 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928243', 'tblTempUsageDetail_20' ) start [2025-04-17 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928243', 'tblTempUsageDetail_20' ) end [2025-04-17 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:25:26] Production.INFO: ==20175== Releasing lock... [2025-04-17 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:25:26] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:26:06 [end_date_ymd] => 2025-04-17 12:26:06 [RateCDR] => 1 ) [2025-04-17 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:26:06' and `end` < '2025-04-17 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:26:21] Production.INFO: count ==4923 [2025-04-17 12:26:23] Production.ERROR: pbx CDR StartTime 2025-04-17 09:26:06 - End Time 2025-04-17 12:26:06 [2025-04-17 12:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928248', 'tblTempUsageDetail_20' ) start [2025-04-17 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928248', 'tblTempUsageDetail_20' ) end [2025-04-17 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928248', 'tblTempVendorCDR_20' ) start [2025-04-17 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928248', 'tblTempVendorCDR_20' ) end [2025-04-17 12:26:23] Production.INFO: ProcessCDR(1,14928248,1,1,2) [2025-04-17 12:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928248', 'tblTempUsageDetail_20' ) start [2025-04-17 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928248', 'tblTempUsageDetail_20' ) end [2025-04-17 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:26:29] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:26:29] Production.INFO: ==20248== Releasing lock... [2025-04-17 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:26:29] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:27:05 [end_date_ymd] => 2025-04-17 12:27:05 [RateCDR] => 1 ) [2025-04-17 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:27:05' and `end` < '2025-04-17 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:27:19] Production.INFO: count ==4918 [2025-04-17 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:27:05 - End Time 2025-04-17 12:27:05 [2025-04-17 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928253', 'tblTempUsageDetail_20' ) start [2025-04-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928253', 'tblTempUsageDetail_20' ) end [2025-04-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928253', 'tblTempVendorCDR_20' ) start [2025-04-17 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928253', 'tblTempVendorCDR_20' ) end [2025-04-17 12:27:21] Production.INFO: ProcessCDR(1,14928253,1,1,2) [2025-04-17 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928253', 'tblTempUsageDetail_20' ) start [2025-04-17 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928253', 'tblTempUsageDetail_20' ) end [2025-04-17 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:27:26] Production.INFO: ==20318== Releasing lock... [2025-04-17 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:27:26] Production.INFO: 65 MB #Memory Used# [2025-04-17 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:28:05 [end_date_ymd] => 2025-04-17 12:28:05 [RateCDR] => 1 ) [2025-04-17 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:28:05' and `end` < '2025-04-17 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:28:20] Production.INFO: count ==5381 [2025-04-17 12:28:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:28:05 - End Time 2025-04-17 12:28:05 [2025-04-17 12:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928258', 'tblTempUsageDetail_20' ) start [2025-04-17 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928258', 'tblTempUsageDetail_20' ) end [2025-04-17 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928258', 'tblTempVendorCDR_20' ) start [2025-04-17 12:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928258', 'tblTempVendorCDR_20' ) end [2025-04-17 12:28:22] Production.INFO: ProcessCDR(1,14928258,1,1,2) [2025-04-17 12:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928258', 'tblTempUsageDetail_20' ) start [2025-04-17 12:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928258', 'tblTempUsageDetail_20' ) end [2025-04-17 12:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:28:28] Production.INFO: ==20393== Releasing lock... [2025-04-17 12:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:28:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-17 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:29:05 [end_date_ymd] => 2025-04-17 12:29:05 [RateCDR] => 1 ) [2025-04-17 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:29:05' and `end` < '2025-04-17 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:29:19] Production.INFO: count ==5462 [2025-04-17 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:29:05 - End Time 2025-04-17 12:29:05 [2025-04-17 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928263', 'tblTempUsageDetail_20' ) start [2025-04-17 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928263', 'tblTempUsageDetail_20' ) end [2025-04-17 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928263', 'tblTempVendorCDR_20' ) start [2025-04-17 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928263', 'tblTempVendorCDR_20' ) end [2025-04-17 12:29:22] Production.INFO: ProcessCDR(1,14928263,1,1,2) [2025-04-17 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928263', 'tblTempUsageDetail_20' ) start [2025-04-17 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928263', 'tblTempUsageDetail_20' ) end [2025-04-17 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:29:27] Production.INFO: ==20466== Releasing lock... [2025-04-17 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:29:27] Production.INFO: 69 MB #Memory Used# [2025-04-17 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:30:07 [end_date_ymd] => 2025-04-17 12:30:07 [RateCDR] => 1 ) [2025-04-17 12: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-17 09:30:07' and `end` < '2025-04-17 12: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-17 12:30:21] Production.INFO: count ==5478 [2025-04-17 12:30:24] Production.ERROR: pbx CDR StartTime 2025-04-17 09:30:07 - End Time 2025-04-17 12:30:07 [2025-04-17 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928269', 'tblTempUsageDetail_20' ) start [2025-04-17 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928269', 'tblTempUsageDetail_20' ) end [2025-04-17 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928269', 'tblTempVendorCDR_20' ) start [2025-04-17 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928269', 'tblTempVendorCDR_20' ) end [2025-04-17 12:30:24] Production.INFO: ProcessCDR(1,14928269,1,1,2) [2025-04-17 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928269', 'tblTempUsageDetail_20' ) start [2025-04-17 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928269', 'tblTempUsageDetail_20' ) end [2025-04-17 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:30:29] Production.INFO: ==20542== Releasing lock... [2025-04-17 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:30:29] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:31:05 [end_date_ymd] => 2025-04-17 12:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:31:05' and `end` < '2025-04-17 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-17 12:31:19] Production.INFO: count ==5501 [2025-04-17 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:31:05 - End Time 2025-04-17 12:31:05 [2025-04-17 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928274', 'tblTempUsageDetail_20' ) start [2025-04-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928274', 'tblTempUsageDetail_20' ) end [2025-04-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928274', 'tblTempVendorCDR_20' ) start [2025-04-17 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928274', 'tblTempVendorCDR_20' ) end [2025-04-17 12:31:21] Production.INFO: ProcessCDR(1,14928274,1,1,2) [2025-04-17 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928274', 'tblTempUsageDetail_20' ) start [2025-04-17 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928274', 'tblTempUsageDetail_20' ) end [2025-04-17 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:31:26] Production.INFO: ==20622== Releasing lock... [2025-04-17 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:31:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:32:06 [end_date_ymd] => 2025-04-17 12:32:06 [RateCDR] => 1 ) [2025-04-17 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-17 09:32:06' and `end` < '2025-04-17 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-17 12:32:20] Production.INFO: count ==5552 [2025-04-17 12:32:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:32:06 - End Time 2025-04-17 12:32:06 [2025-04-17 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928279', 'tblTempUsageDetail_20' ) start [2025-04-17 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928279', 'tblTempUsageDetail_20' ) end [2025-04-17 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928279', 'tblTempVendorCDR_20' ) start [2025-04-17 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928279', 'tblTempVendorCDR_20' ) end [2025-04-17 12:32:22] Production.INFO: ProcessCDR(1,14928279,1,1,2) [2025-04-17 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928279', 'tblTempUsageDetail_20' ) start [2025-04-17 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928279', 'tblTempUsageDetail_20' ) end [2025-04-17 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:32:27] Production.INFO: ==20701== Releasing lock... [2025-04-17 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:32:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:33:05 [end_date_ymd] => 2025-04-17 12:33:05 [RateCDR] => 1 ) [2025-04-17 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:33:05' and `end` < '2025-04-17 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:33:19] Production.INFO: count ==5572 [2025-04-17 12:33:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:33:05 - End Time 2025-04-17 12:33:05 [2025-04-17 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928284', 'tblTempUsageDetail_20' ) start [2025-04-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928284', 'tblTempUsageDetail_20' ) end [2025-04-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928284', 'tblTempVendorCDR_20' ) start [2025-04-17 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928284', 'tblTempVendorCDR_20' ) end [2025-04-17 12:33:21] Production.INFO: ProcessCDR(1,14928284,1,1,2) [2025-04-17 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928284', 'tblTempUsageDetail_20' ) start [2025-04-17 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928284', 'tblTempUsageDetail_20' ) end [2025-04-17 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:33:27] Production.INFO: ==20787== Releasing lock... [2025-04-17 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:33:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:34:05 [end_date_ymd] => 2025-04-17 12:34:05 [RateCDR] => 1 ) [2025-04-17 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:34:05' and `end` < '2025-04-17 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:34:20] Production.INFO: count ==5596 [2025-04-17 12:34:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:34:05 - End Time 2025-04-17 12:34:05 [2025-04-17 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928289', 'tblTempUsageDetail_20' ) start [2025-04-17 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928289', 'tblTempUsageDetail_20' ) end [2025-04-17 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928289', 'tblTempVendorCDR_20' ) start [2025-04-17 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928289', 'tblTempVendorCDR_20' ) end [2025-04-17 12:34:22] Production.INFO: ProcessCDR(1,14928289,1,1,2) [2025-04-17 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928289', 'tblTempUsageDetail_20' ) start [2025-04-17 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928289', 'tblTempUsageDetail_20' ) end [2025-04-17 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:34:27] Production.INFO: ==20867== Releasing lock... [2025-04-17 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:34:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:35:06 [end_date_ymd] => 2025-04-17 12:35:06 [RateCDR] => 1 ) [2025-04-17 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:35:06' and `end` < '2025-04-17 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:35:20] Production.INFO: count ==5603 [2025-04-17 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:35:06 - End Time 2025-04-17 12:35:06 [2025-04-17 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928294', 'tblTempUsageDetail_20' ) start [2025-04-17 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928294', 'tblTempUsageDetail_20' ) end [2025-04-17 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928294', 'tblTempVendorCDR_20' ) start [2025-04-17 12:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928294', 'tblTempVendorCDR_20' ) end [2025-04-17 12:35:23] Production.INFO: ProcessCDR(1,14928294,1,1,2) [2025-04-17 12:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928294', 'tblTempUsageDetail_20' ) start [2025-04-17 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928294', 'tblTempUsageDetail_20' ) end [2025-04-17 12:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:35:28] Production.INFO: ==20989== Releasing lock... [2025-04-17 12:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:35:28] Production.INFO: 70 MB #Memory Used# [2025-04-17 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:36:05 [end_date_ymd] => 2025-04-17 12:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:36:05' and `end` < '2025-04-17 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-17 12:36:19] Production.INFO: count ==5620 [2025-04-17 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:36:05 - End Time 2025-04-17 12:36:05 [2025-04-17 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928299', 'tblTempUsageDetail_20' ) start [2025-04-17 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928299', 'tblTempUsageDetail_20' ) end [2025-04-17 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928299', 'tblTempVendorCDR_20' ) start [2025-04-17 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928299', 'tblTempVendorCDR_20' ) end [2025-04-17 12:36:22] Production.INFO: ProcessCDR(1,14928299,1,1,2) [2025-04-17 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928299', 'tblTempUsageDetail_20' ) start [2025-04-17 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928299', 'tblTempUsageDetail_20' ) end [2025-04-17 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:36:27] Production.INFO: ==21064== Releasing lock... [2025-04-17 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:36:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:37:06 [end_date_ymd] => 2025-04-17 12:37:06 [RateCDR] => 1 ) [2025-04-17 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:37:06' and `end` < '2025-04-17 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:37:20] Production.INFO: count ==5618 [2025-04-17 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:37:06 - End Time 2025-04-17 12:37:06 [2025-04-17 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928304', 'tblTempUsageDetail_20' ) start [2025-04-17 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928304', 'tblTempUsageDetail_20' ) end [2025-04-17 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928304', 'tblTempVendorCDR_20' ) start [2025-04-17 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928304', 'tblTempVendorCDR_20' ) end [2025-04-17 12:37:23] Production.INFO: ProcessCDR(1,14928304,1,1,2) [2025-04-17 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928304', 'tblTempUsageDetail_20' ) start [2025-04-17 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928304', 'tblTempUsageDetail_20' ) end [2025-04-17 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:37:28] Production.INFO: ==21137== Releasing lock... [2025-04-17 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:37:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:38:05 [end_date_ymd] => 2025-04-17 12:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:38:05' and `end` < '2025-04-17 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-17 12:38:19] Production.INFO: count ==5624 [2025-04-17 12:38:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:38:05 - End Time 2025-04-17 12:38:05 [2025-04-17 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928309', 'tblTempUsageDetail_20' ) start [2025-04-17 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928309', 'tblTempUsageDetail_20' ) end [2025-04-17 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928309', 'tblTempVendorCDR_20' ) start [2025-04-17 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928309', 'tblTempVendorCDR_20' ) end [2025-04-17 12:38:21] Production.INFO: ProcessCDR(1,14928309,1,1,2) [2025-04-17 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928309', 'tblTempUsageDetail_20' ) start [2025-04-17 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928309', 'tblTempUsageDetail_20' ) end [2025-04-17 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:38:26] Production.INFO: ==21210== Releasing lock... [2025-04-17 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:38:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:39:06 [end_date_ymd] => 2025-04-17 12:39:06 [RateCDR] => 1 ) [2025-04-17 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-17 09:39:06' and `end` < '2025-04-17 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-17 12:39:20] Production.INFO: count ==5642 [2025-04-17 12:39:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:39:06 - End Time 2025-04-17 12:39:06 [2025-04-17 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928314', 'tblTempUsageDetail_20' ) start [2025-04-17 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928314', 'tblTempUsageDetail_20' ) end [2025-04-17 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928314', 'tblTempVendorCDR_20' ) start [2025-04-17 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928314', 'tblTempVendorCDR_20' ) end [2025-04-17 12:39:23] Production.INFO: ProcessCDR(1,14928314,1,1,2) [2025-04-17 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928314', 'tblTempUsageDetail_20' ) start [2025-04-17 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928314', 'tblTempUsageDetail_20' ) end [2025-04-17 12:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:39:28] Production.INFO: ==21291== Releasing lock... [2025-04-17 12:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:39:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:40:06 [end_date_ymd] => 2025-04-17 12:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 09:40:06' and `end` < '2025-04-17 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-17 12:40:21] Production.INFO: count ==5654 [2025-04-17 12:40:24] Production.ERROR: pbx CDR StartTime 2025-04-17 09:40:06 - End Time 2025-04-17 12:40:06 [2025-04-17 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928319', 'tblTempUsageDetail_20' ) start [2025-04-17 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928319', 'tblTempUsageDetail_20' ) end [2025-04-17 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928319', 'tblTempVendorCDR_20' ) start [2025-04-17 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928319', 'tblTempVendorCDR_20' ) end [2025-04-17 12:40:24] Production.INFO: ProcessCDR(1,14928319,1,1,2) [2025-04-17 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928319', 'tblTempUsageDetail_20' ) start [2025-04-17 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928319', 'tblTempUsageDetail_20' ) end [2025-04-17 12:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:40:29] Production.INFO: ==21390== Releasing lock... [2025-04-17 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:40:29] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:41:05 [end_date_ymd] => 2025-04-17 12:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:41:05' and `end` < '2025-04-17 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-17 12:41:19] Production.INFO: count ==5675 [2025-04-17 12:41:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:41:05 - End Time 2025-04-17 12:41:05 [2025-04-17 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928325', 'tblTempUsageDetail_20' ) start [2025-04-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928325', 'tblTempUsageDetail_20' ) end [2025-04-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928325', 'tblTempVendorCDR_20' ) start [2025-04-17 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928325', 'tblTempVendorCDR_20' ) end [2025-04-17 12:41:22] Production.INFO: ProcessCDR(1,14928325,1,1,2) [2025-04-17 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928325', 'tblTempUsageDetail_20' ) start [2025-04-17 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928325', 'tblTempUsageDetail_20' ) end [2025-04-17 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:41:27] Production.INFO: ==21521== Releasing lock... [2025-04-17 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:41:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:42:05 [end_date_ymd] => 2025-04-17 12:42:05 [RateCDR] => 1 ) [2025-04-17 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:42:05' and `end` < '2025-04-17 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:42:19] Production.INFO: count ==5681 [2025-04-17 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:42:05 - End Time 2025-04-17 12:42:05 [2025-04-17 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928330', 'tblTempUsageDetail_20' ) start [2025-04-17 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928330', 'tblTempUsageDetail_20' ) end [2025-04-17 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928330', 'tblTempVendorCDR_20' ) start [2025-04-17 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928330', 'tblTempVendorCDR_20' ) end [2025-04-17 12:42:22] Production.INFO: ProcessCDR(1,14928330,1,1,2) [2025-04-17 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928330', 'tblTempUsageDetail_20' ) start [2025-04-17 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928330', 'tblTempUsageDetail_20' ) end [2025-04-17 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:42:27] Production.INFO: ==21612== Releasing lock... [2025-04-17 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:42:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:43:06 [end_date_ymd] => 2025-04-17 12:43:06 [RateCDR] => 1 ) [2025-04-17 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:43:06' and `end` < '2025-04-17 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:43:20] Production.INFO: count ==5690 [2025-04-17 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:43:06 - End Time 2025-04-17 12:43:06 [2025-04-17 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928335', 'tblTempUsageDetail_20' ) start [2025-04-17 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928335', 'tblTempUsageDetail_20' ) end [2025-04-17 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928335', 'tblTempVendorCDR_20' ) start [2025-04-17 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928335', 'tblTempVendorCDR_20' ) end [2025-04-17 12:43:23] Production.INFO: ProcessCDR(1,14928335,1,1,2) [2025-04-17 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928335', 'tblTempUsageDetail_20' ) start [2025-04-17 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928335', 'tblTempUsageDetail_20' ) end [2025-04-17 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:43:28] Production.INFO: ==21683== Releasing lock... [2025-04-17 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:43:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:44:05 [end_date_ymd] => 2025-04-17 12:44:05 [RateCDR] => 1 ) [2025-04-17 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:44:05' and `end` < '2025-04-17 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:44:19] Production.INFO: count ==5694 [2025-04-17 12:44:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:44:05 - End Time 2025-04-17 12:44:05 [2025-04-17 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928340', 'tblTempUsageDetail_20' ) start [2025-04-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928340', 'tblTempUsageDetail_20' ) end [2025-04-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928340', 'tblTempVendorCDR_20' ) start [2025-04-17 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928340', 'tblTempVendorCDR_20' ) end [2025-04-17 12:44:22] Production.INFO: ProcessCDR(1,14928340,1,1,2) [2025-04-17 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928340', 'tblTempUsageDetail_20' ) start [2025-04-17 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928340', 'tblTempUsageDetail_20' ) end [2025-04-17 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:44:27] Production.INFO: ==21757== Releasing lock... [2025-04-17 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:44:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:45:05 [end_date_ymd] => 2025-04-17 12:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:45:05' and `end` < '2025-04-17 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-17 12:45:20] Production.INFO: count ==5695 [2025-04-17 12:45:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:45:05 - End Time 2025-04-17 12:45:05 [2025-04-17 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928345', 'tblTempUsageDetail_20' ) start [2025-04-17 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928345', 'tblTempUsageDetail_20' ) end [2025-04-17 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928345', 'tblTempVendorCDR_20' ) start [2025-04-17 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928345', 'tblTempVendorCDR_20' ) end [2025-04-17 12:45:22] Production.INFO: ProcessCDR(1,14928345,1,1,2) [2025-04-17 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928345', 'tblTempUsageDetail_20' ) start [2025-04-17 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928345', 'tblTempUsageDetail_20' ) end [2025-04-17 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:45:27] Production.INFO: ==21831== Releasing lock... [2025-04-17 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:45:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:46:05 [end_date_ymd] => 2025-04-17 12:46:05 [RateCDR] => 1 ) [2025-04-17 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:46:05' and `end` < '2025-04-17 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:46:19] Production.INFO: count ==5690 [2025-04-17 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:46:05 - End Time 2025-04-17 12:46:05 [2025-04-17 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928350', 'tblTempUsageDetail_20' ) start [2025-04-17 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928350', 'tblTempUsageDetail_20' ) end [2025-04-17 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928350', 'tblTempVendorCDR_20' ) start [2025-04-17 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928350', 'tblTempVendorCDR_20' ) end [2025-04-17 12:46:22] Production.INFO: ProcessCDR(1,14928350,1,1,2) [2025-04-17 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928350', 'tblTempUsageDetail_20' ) start [2025-04-17 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928350', 'tblTempUsageDetail_20' ) end [2025-04-17 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:46:27] Production.INFO: ==21900== Releasing lock... [2025-04-17 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:46:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:47:06 [end_date_ymd] => 2025-04-17 12:47:06 [RateCDR] => 1 ) [2025-04-17 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:47:06' and `end` < '2025-04-17 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:47:20] Production.INFO: count ==5690 [2025-04-17 12:47:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:47:06 - End Time 2025-04-17 12:47:06 [2025-04-17 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928355', 'tblTempUsageDetail_20' ) start [2025-04-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928355', 'tblTempUsageDetail_20' ) end [2025-04-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928355', 'tblTempVendorCDR_20' ) start [2025-04-17 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928355', 'tblTempVendorCDR_20' ) end [2025-04-17 12:47:22] Production.INFO: ProcessCDR(1,14928355,1,1,2) [2025-04-17 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928355', 'tblTempUsageDetail_20' ) start [2025-04-17 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928355', 'tblTempUsageDetail_20' ) end [2025-04-17 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:47:27] Production.INFO: ==21976== Releasing lock... [2025-04-17 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:47:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:48:05 [end_date_ymd] => 2025-04-17 12:48:05 [RateCDR] => 1 ) [2025-04-17 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:48:05' and `end` < '2025-04-17 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:48:18] Production.INFO: count ==5693 [2025-04-17 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:48:05 - End Time 2025-04-17 12:48:05 [2025-04-17 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928360', 'tblTempUsageDetail_20' ) start [2025-04-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928360', 'tblTempUsageDetail_20' ) end [2025-04-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928360', 'tblTempVendorCDR_20' ) start [2025-04-17 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928360', 'tblTempVendorCDR_20' ) end [2025-04-17 12:48:21] Production.INFO: ProcessCDR(1,14928360,1,1,2) [2025-04-17 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928360', 'tblTempUsageDetail_20' ) start [2025-04-17 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928360', 'tblTempUsageDetail_20' ) end [2025-04-17 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:48:26] Production.INFO: ==22046== Releasing lock... [2025-04-17 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:48:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:49:05 [end_date_ymd] => 2025-04-17 12:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:49:05' and `end` < '2025-04-17 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-17 12:49:19] Production.INFO: count ==5702 [2025-04-17 12:49:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:49:05 - End Time 2025-04-17 12:49:05 [2025-04-17 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928365', 'tblTempUsageDetail_20' ) start [2025-04-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928365', 'tblTempUsageDetail_20' ) end [2025-04-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928365', 'tblTempVendorCDR_20' ) start [2025-04-17 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928365', 'tblTempVendorCDR_20' ) end [2025-04-17 12:49:22] Production.INFO: ProcessCDR(1,14928365,1,1,2) [2025-04-17 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928365', 'tblTempUsageDetail_20' ) start [2025-04-17 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928365', 'tblTempUsageDetail_20' ) end [2025-04-17 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:49:27] Production.INFO: ==22119== Releasing lock... [2025-04-17 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:49:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:50:05 [end_date_ymd] => 2025-04-17 12:50:05 [RateCDR] => 1 ) [2025-04-17 12: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-17 09:50:05' and `end` < '2025-04-17 12: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-17 12:50:19] Production.INFO: count ==5702 [2025-04-17 12:50:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:50:05 - End Time 2025-04-17 12:50:05 [2025-04-17 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928370', 'tblTempUsageDetail_20' ) start [2025-04-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928370', 'tblTempUsageDetail_20' ) end [2025-04-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928370', 'tblTempVendorCDR_20' ) start [2025-04-17 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928370', 'tblTempVendorCDR_20' ) end [2025-04-17 12:50:22] Production.INFO: ProcessCDR(1,14928370,1,1,2) [2025-04-17 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928370', 'tblTempUsageDetail_20' ) start [2025-04-17 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928370', 'tblTempUsageDetail_20' ) end [2025-04-17 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:50:27] Production.INFO: ==22230== Releasing lock... [2025-04-17 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:50:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:51:06 [end_date_ymd] => 2025-04-17 12:51:06 [RateCDR] => 1 ) [2025-04-17 12: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-17 09:51:06' and `end` < '2025-04-17 12: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-17 12:51:19] Production.INFO: count ==5699 [2025-04-17 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:51:06 - End Time 2025-04-17 12:51:06 [2025-04-17 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928376', 'tblTempUsageDetail_20' ) start [2025-04-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928376', 'tblTempUsageDetail_20' ) end [2025-04-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928376', 'tblTempVendorCDR_20' ) start [2025-04-17 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928376', 'tblTempVendorCDR_20' ) end [2025-04-17 12:51:22] Production.INFO: ProcessCDR(1,14928376,1,1,2) [2025-04-17 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928376', 'tblTempUsageDetail_20' ) start [2025-04-17 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928376', 'tblTempUsageDetail_20' ) end [2025-04-17 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:51:27] Production.INFO: ==22305== Releasing lock... [2025-04-17 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:51:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:52:05 [end_date_ymd] => 2025-04-17 12:52:05 [RateCDR] => 1 ) [2025-04-17 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:52:05' and `end` < '2025-04-17 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:52:19] Production.INFO: count ==5683 [2025-04-17 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:52:05 - End Time 2025-04-17 12:52:05 [2025-04-17 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928381', 'tblTempUsageDetail_20' ) start [2025-04-17 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928381', 'tblTempUsageDetail_20' ) end [2025-04-17 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928381', 'tblTempVendorCDR_20' ) start [2025-04-17 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928381', 'tblTempVendorCDR_20' ) end [2025-04-17 12:52:22] Production.INFO: ProcessCDR(1,14928381,1,1,2) [2025-04-17 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928381', 'tblTempUsageDetail_20' ) start [2025-04-17 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928381', 'tblTempUsageDetail_20' ) end [2025-04-17 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:52:27] Production.INFO: ==22378== Releasing lock... [2025-04-17 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:52:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:53:05 [end_date_ymd] => 2025-04-17 12:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:53:05' and `end` < '2025-04-17 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-17 12:53:19] Production.INFO: count ==5685 [2025-04-17 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:53:05 - End Time 2025-04-17 12:53:05 [2025-04-17 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928386', 'tblTempUsageDetail_20' ) start [2025-04-17 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928386', 'tblTempUsageDetail_20' ) end [2025-04-17 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928386', 'tblTempVendorCDR_20' ) start [2025-04-17 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928386', 'tblTempVendorCDR_20' ) end [2025-04-17 12:53:21] Production.INFO: ProcessCDR(1,14928386,1,1,2) [2025-04-17 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928386', 'tblTempUsageDetail_20' ) start [2025-04-17 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928386', 'tblTempUsageDetail_20' ) end [2025-04-17 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:53:26] Production.INFO: ==22460== Releasing lock... [2025-04-17 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:53:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:54:05 [end_date_ymd] => 2025-04-17 12:54:05 [RateCDR] => 1 ) [2025-04-17 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:54:05' and `end` < '2025-04-17 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:54:19] Production.INFO: count ==5689 [2025-04-17 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:54:05 - End Time 2025-04-17 12:54:05 [2025-04-17 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928391', 'tblTempUsageDetail_20' ) start [2025-04-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928391', 'tblTempUsageDetail_20' ) end [2025-04-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928391', 'tblTempVendorCDR_20' ) start [2025-04-17 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928391', 'tblTempVendorCDR_20' ) end [2025-04-17 12:54:21] Production.INFO: ProcessCDR(1,14928391,1,1,2) [2025-04-17 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928391', 'tblTempUsageDetail_20' ) start [2025-04-17 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928391', 'tblTempUsageDetail_20' ) end [2025-04-17 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:54:26] Production.INFO: ==22533== Releasing lock... [2025-04-17 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:54:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:55:05 [end_date_ymd] => 2025-04-17 12:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:55:05' and `end` < '2025-04-17 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-17 12:55:19] Production.INFO: count ==5700 [2025-04-17 12:55:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:55:05 - End Time 2025-04-17 12:55:05 [2025-04-17 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928396', 'tblTempUsageDetail_20' ) start [2025-04-17 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928396', 'tblTempUsageDetail_20' ) end [2025-04-17 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928396', 'tblTempVendorCDR_20' ) start [2025-04-17 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928396', 'tblTempVendorCDR_20' ) end [2025-04-17 12:55:22] Production.INFO: ProcessCDR(1,14928396,1,1,2) [2025-04-17 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928396', 'tblTempUsageDetail_20' ) start [2025-04-17 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928396', 'tblTempUsageDetail_20' ) end [2025-04-17 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:55:27] Production.INFO: ==22604== Releasing lock... [2025-04-17 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:55:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:56:05 [end_date_ymd] => 2025-04-17 12:56:05 [RateCDR] => 1 ) [2025-04-17 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:56:05' and `end` < '2025-04-17 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:56:19] Production.INFO: count ==5697 [2025-04-17 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:56:05 - End Time 2025-04-17 12:56:05 [2025-04-17 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928401', 'tblTempUsageDetail_20' ) start [2025-04-17 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928401', 'tblTempUsageDetail_20' ) end [2025-04-17 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928401', 'tblTempVendorCDR_20' ) start [2025-04-17 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928401', 'tblTempVendorCDR_20' ) end [2025-04-17 12:56:22] Production.INFO: ProcessCDR(1,14928401,1,1,2) [2025-04-17 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928401', 'tblTempUsageDetail_20' ) start [2025-04-17 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928401', 'tblTempUsageDetail_20' ) end [2025-04-17 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:56:27] Production.INFO: ==22678== Releasing lock... [2025-04-17 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:56:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:57:05 [end_date_ymd] => 2025-04-17 12:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:57:05' and `end` < '2025-04-17 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-17 12:57:19] Production.INFO: count ==5714 [2025-04-17 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:57:05 - End Time 2025-04-17 12:57:05 [2025-04-17 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928406', 'tblTempUsageDetail_20' ) start [2025-04-17 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928406', 'tblTempUsageDetail_20' ) end [2025-04-17 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928406', 'tblTempVendorCDR_20' ) start [2025-04-17 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928406', 'tblTempVendorCDR_20' ) end [2025-04-17 12:57:22] Production.INFO: ProcessCDR(1,14928406,1,1,2) [2025-04-17 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928406', 'tblTempUsageDetail_20' ) start [2025-04-17 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928406', 'tblTempUsageDetail_20' ) end [2025-04-17 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:57:27] Production.INFO: ==22753== Releasing lock... [2025-04-17 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:57:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:58:06 [end_date_ymd] => 2025-04-17 12:58:06 [RateCDR] => 1 ) [2025-04-17 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 09:58:06' and `end` < '2025-04-17 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 12:58:19] Production.INFO: count ==5727 [2025-04-17 12:58:22] Production.ERROR: pbx CDR StartTime 2025-04-17 09:58:06 - End Time 2025-04-17 12:58:06 [2025-04-17 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928411', 'tblTempUsageDetail_20' ) start [2025-04-17 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928411', 'tblTempUsageDetail_20' ) end [2025-04-17 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928411', 'tblTempVendorCDR_20' ) start [2025-04-17 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928411', 'tblTempVendorCDR_20' ) end [2025-04-17 12:58:22] Production.INFO: ProcessCDR(1,14928411,1,1,2) [2025-04-17 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928411', 'tblTempUsageDetail_20' ) start [2025-04-17 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928411', 'tblTempUsageDetail_20' ) end [2025-04-17 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:58:27] Production.INFO: ==22827== Releasing lock... [2025-04-17 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:58:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 09:59:05 [end_date_ymd] => 2025-04-17 12:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 09:59:05' and `end` < '2025-04-17 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-17 12:59:19] Production.INFO: count ==5706 [2025-04-17 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-17 09:59:05 - End Time 2025-04-17 12:59:05 [2025-04-17 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928416', 'tblTempUsageDetail_20' ) start [2025-04-17 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928416', 'tblTempUsageDetail_20' ) end [2025-04-17 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928416', 'tblTempVendorCDR_20' ) start [2025-04-17 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928416', 'tblTempVendorCDR_20' ) end [2025-04-17 12:59:21] Production.INFO: ProcessCDR(1,14928416,1,1,2) [2025-04-17 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928416', 'tblTempUsageDetail_20' ) start [2025-04-17 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928416', 'tblTempUsageDetail_20' ) end [2025-04-17 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 12:59:26] Production.INFO: ==22899== Releasing lock... [2025-04-17 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 12:59:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:00:06 [end_date_ymd] => 2025-04-17 13:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:00:06' and `end` < '2025-04-17 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-17 13:00:20] Production.INFO: count ==5680 [2025-04-17 13:00:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:00:06 - End Time 2025-04-17 13:00:06 [2025-04-17 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928421', 'tblTempUsageDetail_20' ) start [2025-04-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928421', 'tblTempUsageDetail_20' ) end [2025-04-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928421', 'tblTempVendorCDR_20' ) start [2025-04-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928421', 'tblTempVendorCDR_20' ) end [2025-04-17 13:00:23] Production.INFO: ProcessCDR(1,14928421,1,1,2) [2025-04-17 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928421', 'tblTempUsageDetail_20' ) start [2025-04-17 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928421', 'tblTempUsageDetail_20' ) end [2025-04-17 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:00:26] Production.INFO: ==22973== Releasing lock... [2025-04-17 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:00:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:01:05 [end_date_ymd] => 2025-04-17 13:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:01:05' and `end` < '2025-04-17 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-17 13:01:19] Production.INFO: count ==5712 [2025-04-17 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:01:05 - End Time 2025-04-17 13:01:05 [2025-04-17 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928427', 'tblTempUsageDetail_20' ) start [2025-04-17 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928427', 'tblTempUsageDetail_20' ) end [2025-04-17 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928427', 'tblTempVendorCDR_20' ) start [2025-04-17 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928427', 'tblTempVendorCDR_20' ) end [2025-04-17 13:01:22] Production.INFO: ProcessCDR(1,14928427,1,1,2) [2025-04-17 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928427', 'tblTempUsageDetail_20' ) start [2025-04-17 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928427', 'tblTempUsageDetail_20' ) end [2025-04-17 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:01:27] Production.INFO: ==23059== Releasing lock... [2025-04-17 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:01:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:02:06 [end_date_ymd] => 2025-04-17 13:02:06 [RateCDR] => 1 ) [2025-04-17 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:02:06' and `end` < '2025-04-17 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:02:20] Production.INFO: count ==5720 [2025-04-17 13:02:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:02:06 - End Time 2025-04-17 13:02:06 [2025-04-17 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928432', 'tblTempUsageDetail_20' ) start [2025-04-17 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928432', 'tblTempUsageDetail_20' ) end [2025-04-17 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928432', 'tblTempVendorCDR_20' ) start [2025-04-17 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928432', 'tblTempVendorCDR_20' ) end [2025-04-17 13:02:23] Production.INFO: ProcessCDR(1,14928432,1,1,2) [2025-04-17 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928432', 'tblTempUsageDetail_20' ) start [2025-04-17 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928432', 'tblTempUsageDetail_20' ) end [2025-04-17 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:02:26] Production.INFO: ==23129== Releasing lock... [2025-04-17 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:02:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:03:05 [end_date_ymd] => 2025-04-17 13:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:03:05' and `end` < '2025-04-17 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-17 13:03:19] Production.INFO: count ==5744 [2025-04-17 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:03:05 - End Time 2025-04-17 13:03:05 [2025-04-17 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928437', 'tblTempUsageDetail_20' ) start [2025-04-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928437', 'tblTempUsageDetail_20' ) end [2025-04-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928437', 'tblTempVendorCDR_20' ) start [2025-04-17 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928437', 'tblTempVendorCDR_20' ) end [2025-04-17 13:03:21] Production.INFO: ProcessCDR(1,14928437,1,1,2) [2025-04-17 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928437', 'tblTempUsageDetail_20' ) start [2025-04-17 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928437', 'tblTempUsageDetail_20' ) end [2025-04-17 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:03:26] Production.INFO: ==23202== Releasing lock... [2025-04-17 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:03:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:04:05 [end_date_ymd] => 2025-04-17 13:04:05 [RateCDR] => 1 ) [2025-04-17 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:04:05' and `end` < '2025-04-17 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:04:21] Production.INFO: count ==5758 [2025-04-17 13:04:23] Production.ERROR: pbx CDR StartTime 2025-04-17 10:04:05 - End Time 2025-04-17 13:04:05 [2025-04-17 13:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928442', 'tblTempUsageDetail_20' ) start [2025-04-17 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928442', 'tblTempUsageDetail_20' ) end [2025-04-17 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928442', 'tblTempVendorCDR_20' ) start [2025-04-17 13:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928442', 'tblTempVendorCDR_20' ) end [2025-04-17 13:04:23] Production.INFO: ProcessCDR(1,14928442,1,1,2) [2025-04-17 13:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928442', 'tblTempUsageDetail_20' ) start [2025-04-17 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928442', 'tblTempUsageDetail_20' ) end [2025-04-17 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:04:28] Production.INFO: ==23277== Releasing lock... [2025-04-17 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:04:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:05:05 [end_date_ymd] => 2025-04-17 13:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:05:05' and `end` < '2025-04-17 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-17 13:05:19] Production.INFO: count ==5762 [2025-04-17 13:05:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:05:05 - End Time 2025-04-17 13:05:05 [2025-04-17 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928447', 'tblTempUsageDetail_20' ) start [2025-04-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928447', 'tblTempUsageDetail_20' ) end [2025-04-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928447', 'tblTempVendorCDR_20' ) start [2025-04-17 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928447', 'tblTempVendorCDR_20' ) end [2025-04-17 13:05:21] Production.INFO: ProcessCDR(1,14928447,1,1,2) [2025-04-17 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928447', 'tblTempUsageDetail_20' ) start [2025-04-17 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928447', 'tblTempUsageDetail_20' ) end [2025-04-17 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:05:27] Production.INFO: ==23356== Releasing lock... [2025-04-17 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:05:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:06:06 [end_date_ymd] => 2025-04-17 13:06:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:06:06' and `end` < '2025-04-17 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-17 13:06:19] Production.INFO: count ==5743 [2025-04-17 13:06:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:06:06 - End Time 2025-04-17 13:06:06 [2025-04-17 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928452', 'tblTempUsageDetail_20' ) start [2025-04-17 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928452', 'tblTempUsageDetail_20' ) end [2025-04-17 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928452', 'tblTempVendorCDR_20' ) start [2025-04-17 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928452', 'tblTempVendorCDR_20' ) end [2025-04-17 13:06:22] Production.INFO: ProcessCDR(1,14928452,1,1,2) [2025-04-17 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928452', 'tblTempUsageDetail_20' ) start [2025-04-17 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928452', 'tblTempUsageDetail_20' ) end [2025-04-17 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:06:27] Production.INFO: ==23479== Releasing lock... [2025-04-17 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:06:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:07:05 [end_date_ymd] => 2025-04-17 13:07:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:07:05' and `end` < '2025-04-17 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-17 13:07:19] Production.INFO: count ==5741 [2025-04-17 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:07:05 - End Time 2025-04-17 13:07:05 [2025-04-17 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928457', 'tblTempUsageDetail_20' ) start [2025-04-17 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928457', 'tblTempUsageDetail_20' ) end [2025-04-17 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928457', 'tblTempVendorCDR_20' ) start [2025-04-17 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928457', 'tblTempVendorCDR_20' ) end [2025-04-17 13:07:22] Production.INFO: ProcessCDR(1,14928457,1,1,2) [2025-04-17 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928457', 'tblTempUsageDetail_20' ) start [2025-04-17 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928457', 'tblTempUsageDetail_20' ) end [2025-04-17 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:07:27] Production.INFO: ==23570== Releasing lock... [2025-04-17 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:07:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:08:06 [end_date_ymd] => 2025-04-17 13:08:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:08:06' and `end` < '2025-04-17 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-17 13:08:19] Production.INFO: count ==5747 [2025-04-17 13:08:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:08:06 - End Time 2025-04-17 13:08:06 [2025-04-17 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928462', 'tblTempUsageDetail_20' ) start [2025-04-17 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928462', 'tblTempUsageDetail_20' ) end [2025-04-17 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928462', 'tblTempVendorCDR_20' ) start [2025-04-17 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928462', 'tblTempVendorCDR_20' ) end [2025-04-17 13:08:22] Production.INFO: ProcessCDR(1,14928462,1,1,2) [2025-04-17 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928462', 'tblTempUsageDetail_20' ) start [2025-04-17 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928462', 'tblTempUsageDetail_20' ) end [2025-04-17 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:08:27] Production.INFO: ==23660== Releasing lock... [2025-04-17 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:08:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:09:04 [end_date_ymd] => 2025-04-17 13:09:04 [RateCDR] => 1 ) [2025-04-17 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:09:04' and `end` < '2025-04-17 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:09:18] Production.INFO: count ==5749 [2025-04-17 13:09:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:09:04 - End Time 2025-04-17 13:09:04 [2025-04-17 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928467', 'tblTempUsageDetail_20' ) start [2025-04-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928467', 'tblTempUsageDetail_20' ) end [2025-04-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928467', 'tblTempVendorCDR_20' ) start [2025-04-17 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928467', 'tblTempVendorCDR_20' ) end [2025-04-17 13:09:21] Production.INFO: ProcessCDR(1,14928467,1,1,2) [2025-04-17 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928467', 'tblTempUsageDetail_20' ) start [2025-04-17 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928467', 'tblTempUsageDetail_20' ) end [2025-04-17 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:09:26] Production.INFO: ==23751== Releasing lock... [2025-04-17 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:09:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:10:06 [end_date_ymd] => 2025-04-17 13:10:06 [RateCDR] => 1 ) [2025-04-17 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:10:06' and `end` < '2025-04-17 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:10:20] Production.INFO: count ==5746 [2025-04-17 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:10:06 - End Time 2025-04-17 13:10:06 [2025-04-17 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928473', 'tblTempUsageDetail_20' ) start [2025-04-17 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928473', 'tblTempUsageDetail_20' ) end [2025-04-17 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928473', 'tblTempVendorCDR_20' ) start [2025-04-17 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928473', 'tblTempVendorCDR_20' ) end [2025-04-17 13:10:23] Production.INFO: ProcessCDR(1,14928473,1,1,2) [2025-04-17 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928473', 'tblTempUsageDetail_20' ) start [2025-04-17 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928473', 'tblTempUsageDetail_20' ) end [2025-04-17 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:10:28] Production.INFO: ==23847== Releasing lock... [2025-04-17 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:10:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:11:06 [end_date_ymd] => 2025-04-17 13:11:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:11:06' and `end` < '2025-04-17 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-17 13:11:19] Production.INFO: count ==5785 [2025-04-17 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:11:06 - End Time 2025-04-17 13:11:06 [2025-04-17 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928478', 'tblTempUsageDetail_20' ) start [2025-04-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928478', 'tblTempUsageDetail_20' ) end [2025-04-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928478', 'tblTempVendorCDR_20' ) start [2025-04-17 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928478', 'tblTempVendorCDR_20' ) end [2025-04-17 13:11:22] Production.INFO: ProcessCDR(1,14928478,1,1,2) [2025-04-17 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928478', 'tblTempUsageDetail_20' ) start [2025-04-17 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928478', 'tblTempUsageDetail_20' ) end [2025-04-17 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:11:28] Production.INFO: ==23922== Releasing lock... [2025-04-17 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:11:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:12:05 [end_date_ymd] => 2025-04-17 13:12:05 [RateCDR] => 1 ) [2025-04-17 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:12:05' and `end` < '2025-04-17 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:12:19] Production.INFO: count ==5806 [2025-04-17 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:12:05 - End Time 2025-04-17 13:12:05 [2025-04-17 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928483', 'tblTempUsageDetail_20' ) start [2025-04-17 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928483', 'tblTempUsageDetail_20' ) end [2025-04-17 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928483', 'tblTempVendorCDR_20' ) start [2025-04-17 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928483', 'tblTempVendorCDR_20' ) end [2025-04-17 13:12:22] Production.INFO: ProcessCDR(1,14928483,1,1,2) [2025-04-17 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928483', 'tblTempUsageDetail_20' ) start [2025-04-17 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928483', 'tblTempUsageDetail_20' ) end [2025-04-17 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:12:27] Production.INFO: ==23997== Releasing lock... [2025-04-17 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:12:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:13:05 [end_date_ymd] => 2025-04-17 13:13:05 [RateCDR] => 1 ) [2025-04-17 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:13:05' and `end` < '2025-04-17 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:13:19] Production.INFO: count ==5806 [2025-04-17 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:13:05 - End Time 2025-04-17 13:13:05 [2025-04-17 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928488', 'tblTempUsageDetail_20' ) start [2025-04-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928488', 'tblTempUsageDetail_20' ) end [2025-04-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928488', 'tblTempVendorCDR_20' ) start [2025-04-17 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928488', 'tblTempVendorCDR_20' ) end [2025-04-17 13:13:21] Production.INFO: ProcessCDR(1,14928488,1,1,2) [2025-04-17 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928488', 'tblTempUsageDetail_20' ) start [2025-04-17 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928488', 'tblTempUsageDetail_20' ) end [2025-04-17 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:13:27] Production.INFO: ==24074== Releasing lock... [2025-04-17 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:13:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:14:05 [end_date_ymd] => 2025-04-17 13:14:05 [RateCDR] => 1 ) [2025-04-17 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:14:05' and `end` < '2025-04-17 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:14:19] Production.INFO: count ==5808 [2025-04-17 13:14:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:14:05 - End Time 2025-04-17 13:14:05 [2025-04-17 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928493', 'tblTempUsageDetail_20' ) start [2025-04-17 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928493', 'tblTempUsageDetail_20' ) end [2025-04-17 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928493', 'tblTempVendorCDR_20' ) start [2025-04-17 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928493', 'tblTempVendorCDR_20' ) end [2025-04-17 13:14:22] Production.INFO: ProcessCDR(1,14928493,1,1,2) [2025-04-17 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928493', 'tblTempUsageDetail_20' ) start [2025-04-17 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928493', 'tblTempUsageDetail_20' ) end [2025-04-17 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:14:27] Production.INFO: ==24144== Releasing lock... [2025-04-17 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:14:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:15:06 [end_date_ymd] => 2025-04-17 13:15:06 [RateCDR] => 1 ) [2025-04-17 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:15:06' and `end` < '2025-04-17 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:15:19] Production.INFO: count ==5806 [2025-04-17 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:15:06 - End Time 2025-04-17 13:15:06 [2025-04-17 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928498', 'tblTempUsageDetail_20' ) start [2025-04-17 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928498', 'tblTempUsageDetail_20' ) end [2025-04-17 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928498', 'tblTempVendorCDR_20' ) start [2025-04-17 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928498', 'tblTempVendorCDR_20' ) end [2025-04-17 13:15:22] Production.INFO: ProcessCDR(1,14928498,1,1,2) [2025-04-17 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928498', 'tblTempUsageDetail_20' ) start [2025-04-17 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928498', 'tblTempUsageDetail_20' ) end [2025-04-17 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:15:27] Production.INFO: ==24216== Releasing lock... [2025-04-17 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:15:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:16:05 [end_date_ymd] => 2025-04-17 13:16:05 [RateCDR] => 1 ) [2025-04-17 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:16:05' and `end` < '2025-04-17 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:16:19] Production.INFO: count ==5794 [2025-04-17 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:16:05 - End Time 2025-04-17 13:16:05 [2025-04-17 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928503', 'tblTempUsageDetail_20' ) start [2025-04-17 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928503', 'tblTempUsageDetail_20' ) end [2025-04-17 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928503', 'tblTempVendorCDR_20' ) start [2025-04-17 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928503', 'tblTempVendorCDR_20' ) end [2025-04-17 13:16:22] Production.INFO: ProcessCDR(1,14928503,1,1,2) [2025-04-17 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928503', 'tblTempUsageDetail_20' ) start [2025-04-17 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928503', 'tblTempUsageDetail_20' ) end [2025-04-17 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:16:26] Production.INFO: ==24290== Releasing lock... [2025-04-17 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:16:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:17:05 [end_date_ymd] => 2025-04-17 13:17:05 [RateCDR] => 1 ) [2025-04-17 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:17:05' and `end` < '2025-04-17 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:17:19] Production.INFO: count ==5766 [2025-04-17 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:17:05 - End Time 2025-04-17 13:17:05 [2025-04-17 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928508', 'tblTempUsageDetail_20' ) start [2025-04-17 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928508', 'tblTempUsageDetail_20' ) end [2025-04-17 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928508', 'tblTempVendorCDR_20' ) start [2025-04-17 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928508', 'tblTempVendorCDR_20' ) end [2025-04-17 13:17:22] Production.INFO: ProcessCDR(1,14928508,1,1,2) [2025-04-17 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928508', 'tblTempUsageDetail_20' ) start [2025-04-17 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928508', 'tblTempUsageDetail_20' ) end [2025-04-17 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:17:27] Production.INFO: ==24361== Releasing lock... [2025-04-17 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:17:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:18:05 [end_date_ymd] => 2025-04-17 13:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:18:05' and `end` < '2025-04-17 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-17 13:18:19] Production.INFO: count ==5762 [2025-04-17 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:18:05 - End Time 2025-04-17 13:18:05 [2025-04-17 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928513', 'tblTempUsageDetail_20' ) start [2025-04-17 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928513', 'tblTempUsageDetail_20' ) end [2025-04-17 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928513', 'tblTempVendorCDR_20' ) start [2025-04-17 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928513', 'tblTempVendorCDR_20' ) end [2025-04-17 13:18:22] Production.INFO: ProcessCDR(1,14928513,1,1,2) [2025-04-17 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928513', 'tblTempUsageDetail_20' ) start [2025-04-17 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928513', 'tblTempUsageDetail_20' ) end [2025-04-17 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:18:27] Production.INFO: ==24445== Releasing lock... [2025-04-17 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:19:05 [end_date_ymd] => 2025-04-17 13:19:05 [RateCDR] => 1 ) [2025-04-17 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:19:05' and `end` < '2025-04-17 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:19:19] Production.INFO: count ==5781 [2025-04-17 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:19:05 - End Time 2025-04-17 13:19:05 [2025-04-17 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928518', 'tblTempUsageDetail_20' ) start [2025-04-17 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928518', 'tblTempUsageDetail_20' ) end [2025-04-17 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928518', 'tblTempVendorCDR_20' ) start [2025-04-17 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928518', 'tblTempVendorCDR_20' ) end [2025-04-17 13:19:22] Production.INFO: ProcessCDR(1,14928518,1,1,2) [2025-04-17 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928518', 'tblTempUsageDetail_20' ) start [2025-04-17 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928518', 'tblTempUsageDetail_20' ) end [2025-04-17 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:19:27] Production.INFO: ==24517== Releasing lock... [2025-04-17 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:19:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:20:06 [end_date_ymd] => 2025-04-17 13:20:06 [RateCDR] => 1 ) [2025-04-17 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:20:06' and `end` < '2025-04-17 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:20:19] Production.INFO: count ==5795 [2025-04-17 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:20:06 - End Time 2025-04-17 13:20:06 [2025-04-17 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928523', 'tblTempUsageDetail_20' ) start [2025-04-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928523', 'tblTempUsageDetail_20' ) end [2025-04-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928523', 'tblTempVendorCDR_20' ) start [2025-04-17 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928523', 'tblTempVendorCDR_20' ) end [2025-04-17 13:20:22] Production.INFO: ProcessCDR(1,14928523,1,1,2) [2025-04-17 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928523', 'tblTempUsageDetail_20' ) start [2025-04-17 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928523', 'tblTempUsageDetail_20' ) end [2025-04-17 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:20:28] Production.INFO: ==24601== Releasing lock... [2025-04-17 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:20:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:21:05 [end_date_ymd] => 2025-04-17 13:21:05 [RateCDR] => 1 ) [2025-04-17 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:21:05' and `end` < '2025-04-17 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:21:19] Production.INFO: count ==5737 [2025-04-17 13:21:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:21:05 - End Time 2025-04-17 13:21:05 [2025-04-17 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928529', 'tblTempUsageDetail_20' ) start [2025-04-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928529', 'tblTempUsageDetail_20' ) end [2025-04-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928529', 'tblTempVendorCDR_20' ) start [2025-04-17 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928529', 'tblTempVendorCDR_20' ) end [2025-04-17 13:21:21] Production.INFO: ProcessCDR(1,14928529,1,1,2) [2025-04-17 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928529', 'tblTempUsageDetail_20' ) start [2025-04-17 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928529', 'tblTempUsageDetail_20' ) end [2025-04-17 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:21:27] Production.INFO: ==24713== Releasing lock... [2025-04-17 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:21:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:22:05 [end_date_ymd] => 2025-04-17 13:22:05 [RateCDR] => 1 ) [2025-04-17 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:22:05' and `end` < '2025-04-17 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:22:19] Production.INFO: count ==5731 [2025-04-17 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:22:05 - End Time 2025-04-17 13:22:05 [2025-04-17 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928534', 'tblTempUsageDetail_20' ) start [2025-04-17 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928534', 'tblTempUsageDetail_20' ) end [2025-04-17 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928534', 'tblTempVendorCDR_20' ) start [2025-04-17 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928534', 'tblTempVendorCDR_20' ) end [2025-04-17 13:22:22] Production.INFO: ProcessCDR(1,14928534,1,1,2) [2025-04-17 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928534', 'tblTempUsageDetail_20' ) start [2025-04-17 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928534', 'tblTempUsageDetail_20' ) end [2025-04-17 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:22:27] Production.INFO: ==24784== Releasing lock... [2025-04-17 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:22:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:23:05 [end_date_ymd] => 2025-04-17 13:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:23:05' and `end` < '2025-04-17 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-17 13:23:19] Production.INFO: count ==5713 [2025-04-17 13:23:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:23:05 - End Time 2025-04-17 13:23:05 [2025-04-17 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928539', 'tblTempUsageDetail_20' ) start [2025-04-17 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928539', 'tblTempUsageDetail_20' ) end [2025-04-17 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928539', 'tblTempVendorCDR_20' ) start [2025-04-17 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928539', 'tblTempVendorCDR_20' ) end [2025-04-17 13:23:22] Production.INFO: ProcessCDR(1,14928539,1,1,2) [2025-04-17 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928539', 'tblTempUsageDetail_20' ) start [2025-04-17 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928539', 'tblTempUsageDetail_20' ) end [2025-04-17 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:23:25] Production.INFO: ==24860== Releasing lock... [2025-04-17 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:23:25] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:24:05 [end_date_ymd] => 2025-04-17 13:24:05 [RateCDR] => 1 ) [2025-04-17 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:24:05' and `end` < '2025-04-17 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:24:19] Production.INFO: count ==5720 [2025-04-17 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:24:05 - End Time 2025-04-17 13:24:05 [2025-04-17 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928544', 'tblTempUsageDetail_20' ) start [2025-04-17 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928544', 'tblTempUsageDetail_20' ) end [2025-04-17 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928544', 'tblTempVendorCDR_20' ) start [2025-04-17 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928544', 'tblTempVendorCDR_20' ) end [2025-04-17 13:24:22] Production.INFO: ProcessCDR(1,14928544,1,1,2) [2025-04-17 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928544', 'tblTempUsageDetail_20' ) start [2025-04-17 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928544', 'tblTempUsageDetail_20' ) end [2025-04-17 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:24:27] Production.INFO: ==24930== Releasing lock... [2025-04-17 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:24:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:25:05 [end_date_ymd] => 2025-04-17 13:25:05 [RateCDR] => 1 ) [2025-04-17 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:25:05' and `end` < '2025-04-17 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:25:19] Production.INFO: count ==5739 [2025-04-17 13:25:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:25:05 - End Time 2025-04-17 13:25:05 [2025-04-17 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928549', 'tblTempUsageDetail_20' ) start [2025-04-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928549', 'tblTempUsageDetail_20' ) end [2025-04-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928549', 'tblTempVendorCDR_20' ) start [2025-04-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928549', 'tblTempVendorCDR_20' ) end [2025-04-17 13:25:22] Production.INFO: ProcessCDR(1,14928549,1,1,2) [2025-04-17 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928549', 'tblTempUsageDetail_20' ) start [2025-04-17 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928549', 'tblTempUsageDetail_20' ) end [2025-04-17 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:25:27] Production.INFO: ==25006== Releasing lock... [2025-04-17 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:25:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:26:05 [end_date_ymd] => 2025-04-17 13:26:05 [RateCDR] => 1 ) [2025-04-17 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:26:05' and `end` < '2025-04-17 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:26:19] Production.INFO: count ==5733 [2025-04-17 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:26:05 - End Time 2025-04-17 13:26:05 [2025-04-17 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928554', 'tblTempUsageDetail_20' ) start [2025-04-17 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928554', 'tblTempUsageDetail_20' ) end [2025-04-17 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928554', 'tblTempVendorCDR_20' ) start [2025-04-17 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928554', 'tblTempVendorCDR_20' ) end [2025-04-17 13:26:22] Production.INFO: ProcessCDR(1,14928554,1,1,2) [2025-04-17 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928554', 'tblTempUsageDetail_20' ) start [2025-04-17 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928554', 'tblTempUsageDetail_20' ) end [2025-04-17 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:26:27] Production.INFO: ==25077== Releasing lock... [2025-04-17 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:26:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:27:05 [end_date_ymd] => 2025-04-17 13:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:27:05' and `end` < '2025-04-17 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-17 13:27:18] Production.INFO: count ==5741 [2025-04-17 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:27:05 - End Time 2025-04-17 13:27:05 [2025-04-17 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928559', 'tblTempUsageDetail_20' ) start [2025-04-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928559', 'tblTempUsageDetail_20' ) end [2025-04-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928559', 'tblTempVendorCDR_20' ) start [2025-04-17 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928559', 'tblTempVendorCDR_20' ) end [2025-04-17 13:27:21] Production.INFO: ProcessCDR(1,14928559,1,1,2) [2025-04-17 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928559', 'tblTempUsageDetail_20' ) start [2025-04-17 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928559', 'tblTempUsageDetail_20' ) end [2025-04-17 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:27:26] Production.INFO: ==25161== Releasing lock... [2025-04-17 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:27:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:28:05 [end_date_ymd] => 2025-04-17 13:28:05 [RateCDR] => 1 ) [2025-04-17 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:28:05' and `end` < '2025-04-17 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:28:19] Production.INFO: count ==5742 [2025-04-17 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:28:05 - End Time 2025-04-17 13:28:05 [2025-04-17 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928564', 'tblTempUsageDetail_20' ) start [2025-04-17 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928564', 'tblTempUsageDetail_20' ) end [2025-04-17 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928564', 'tblTempVendorCDR_20' ) start [2025-04-17 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928564', 'tblTempVendorCDR_20' ) end [2025-04-17 13:28:21] Production.INFO: ProcessCDR(1,14928564,1,1,2) [2025-04-17 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928564', 'tblTempUsageDetail_20' ) start [2025-04-17 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928564', 'tblTempUsageDetail_20' ) end [2025-04-17 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:28:26] Production.INFO: ==25237== Releasing lock... [2025-04-17 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:28:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:29:05 [end_date_ymd] => 2025-04-17 13:29:05 [RateCDR] => 1 ) [2025-04-17 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:29:05' and `end` < '2025-04-17 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:29:19] Production.INFO: count ==5749 [2025-04-17 13:29:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:29:05 - End Time 2025-04-17 13:29:05 [2025-04-17 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928569', 'tblTempUsageDetail_20' ) start [2025-04-17 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928569', 'tblTempUsageDetail_20' ) end [2025-04-17 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928569', 'tblTempVendorCDR_20' ) start [2025-04-17 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928569', 'tblTempVendorCDR_20' ) end [2025-04-17 13:29:22] Production.INFO: ProcessCDR(1,14928569,1,1,2) [2025-04-17 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928569', 'tblTempUsageDetail_20' ) start [2025-04-17 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928569', 'tblTempUsageDetail_20' ) end [2025-04-17 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:29:27] Production.INFO: ==25311== Releasing lock... [2025-04-17 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:29:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:30:05 [end_date_ymd] => 2025-04-17 13:30:05 [RateCDR] => 1 ) [2025-04-17 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:30:05' and `end` < '2025-04-17 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:30:19] Production.INFO: count ==5744 [2025-04-17 13:30:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:30:05 - End Time 2025-04-17 13:30:05 [2025-04-17 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928575', 'tblTempUsageDetail_20' ) start [2025-04-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928575', 'tblTempUsageDetail_20' ) end [2025-04-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928575', 'tblTempVendorCDR_20' ) start [2025-04-17 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928575', 'tblTempVendorCDR_20' ) end [2025-04-17 13:30:22] Production.INFO: ProcessCDR(1,14928575,1,1,2) [2025-04-17 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928575', 'tblTempUsageDetail_20' ) start [2025-04-17 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928575', 'tblTempUsageDetail_20' ) end [2025-04-17 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:30:27] Production.INFO: ==25388== Releasing lock... [2025-04-17 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:30:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:31:05 [end_date_ymd] => 2025-04-17 13:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:31:05' and `end` < '2025-04-17 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-17 13:31:19] Production.INFO: count ==5736 [2025-04-17 13:31:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:31:05 - End Time 2025-04-17 13:31:05 [2025-04-17 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928580', 'tblTempUsageDetail_20' ) start [2025-04-17 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928580', 'tblTempUsageDetail_20' ) end [2025-04-17 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928580', 'tblTempVendorCDR_20' ) start [2025-04-17 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928580', 'tblTempVendorCDR_20' ) end [2025-04-17 13:31:22] Production.INFO: ProcessCDR(1,14928580,1,1,2) [2025-04-17 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928580', 'tblTempUsageDetail_20' ) start [2025-04-17 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928580', 'tblTempUsageDetail_20' ) end [2025-04-17 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:31:28] Production.INFO: ==25463== Releasing lock... [2025-04-17 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:31:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:32:05 [end_date_ymd] => 2025-04-17 13:32:05 [RateCDR] => 1 ) [2025-04-17 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:32:05' and `end` < '2025-04-17 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:32:19] Production.INFO: count ==5736 [2025-04-17 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:32:05 - End Time 2025-04-17 13:32:05 [2025-04-17 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928585', 'tblTempUsageDetail_20' ) start [2025-04-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928585', 'tblTempUsageDetail_20' ) end [2025-04-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928585', 'tblTempVendorCDR_20' ) start [2025-04-17 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928585', 'tblTempVendorCDR_20' ) end [2025-04-17 13:32:22] Production.INFO: ProcessCDR(1,14928585,1,1,2) [2025-04-17 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928585', 'tblTempUsageDetail_20' ) start [2025-04-17 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928585', 'tblTempUsageDetail_20' ) end [2025-04-17 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:32:27] Production.INFO: ==25534== Releasing lock... [2025-04-17 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:32:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:33:05 [end_date_ymd] => 2025-04-17 13:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:33:05' and `end` < '2025-04-17 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-17 13:33:19] Production.INFO: count ==5738 [2025-04-17 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:33:05 - End Time 2025-04-17 13:33:05 [2025-04-17 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928590', 'tblTempUsageDetail_20' ) start [2025-04-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928590', 'tblTempUsageDetail_20' ) end [2025-04-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928590', 'tblTempVendorCDR_20' ) start [2025-04-17 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928590', 'tblTempVendorCDR_20' ) end [2025-04-17 13:33:22] Production.INFO: ProcessCDR(1,14928590,1,1,2) [2025-04-17 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928590', 'tblTempUsageDetail_20' ) start [2025-04-17 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928590', 'tblTempUsageDetail_20' ) end [2025-04-17 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:33:27] Production.INFO: ==25617== Releasing lock... [2025-04-17 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:33:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:34:04 [end_date_ymd] => 2025-04-17 13:34:04 [RateCDR] => 1 ) [2025-04-17 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:34:04' and `end` < '2025-04-17 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:34:18] Production.INFO: count ==5739 [2025-04-17 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:34:04 - End Time 2025-04-17 13:34:04 [2025-04-17 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928595', 'tblTempUsageDetail_20' ) start [2025-04-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928595', 'tblTempUsageDetail_20' ) end [2025-04-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928595', 'tblTempVendorCDR_20' ) start [2025-04-17 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928595', 'tblTempVendorCDR_20' ) end [2025-04-17 13:34:21] Production.INFO: ProcessCDR(1,14928595,1,1,2) [2025-04-17 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928595', 'tblTempUsageDetail_20' ) start [2025-04-17 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928595', 'tblTempUsageDetail_20' ) end [2025-04-17 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:34:26] Production.INFO: ==25691== Releasing lock... [2025-04-17 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:34:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:35:05 [end_date_ymd] => 2025-04-17 13:35:05 [RateCDR] => 1 ) [2025-04-17 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:35:05' and `end` < '2025-04-17 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:35:19] Production.INFO: count ==5741 [2025-04-17 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:35:05 - End Time 2025-04-17 13:35:05 [2025-04-17 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928600', 'tblTempUsageDetail_20' ) start [2025-04-17 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928600', 'tblTempUsageDetail_20' ) end [2025-04-17 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928600', 'tblTempVendorCDR_20' ) start [2025-04-17 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928600', 'tblTempVendorCDR_20' ) end [2025-04-17 13:35:22] Production.INFO: ProcessCDR(1,14928600,1,1,2) [2025-04-17 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928600', 'tblTempUsageDetail_20' ) start [2025-04-17 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928600', 'tblTempUsageDetail_20' ) end [2025-04-17 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:35:27] Production.INFO: ==25763== Releasing lock... [2025-04-17 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:35:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:36:05 [end_date_ymd] => 2025-04-17 13:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:36:05' and `end` < '2025-04-17 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-17 13:36:19] Production.INFO: count ==5744 [2025-04-17 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:36:05 - End Time 2025-04-17 13:36:05 [2025-04-17 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928605', 'tblTempUsageDetail_20' ) start [2025-04-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928605', 'tblTempUsageDetail_20' ) end [2025-04-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928605', 'tblTempVendorCDR_20' ) start [2025-04-17 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928605', 'tblTempVendorCDR_20' ) end [2025-04-17 13:36:22] Production.INFO: ProcessCDR(1,14928605,1,1,2) [2025-04-17 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928605', 'tblTempUsageDetail_20' ) start [2025-04-17 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928605', 'tblTempUsageDetail_20' ) end [2025-04-17 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:36:27] Production.INFO: ==25874== Releasing lock... [2025-04-17 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:36:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:37:05 [end_date_ymd] => 2025-04-17 13:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:37:05' and `end` < '2025-04-17 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-17 13:37:19] Production.INFO: count ==5751 [2025-04-17 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:37:05 - End Time 2025-04-17 13:37:05 [2025-04-17 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928610', 'tblTempUsageDetail_20' ) start [2025-04-17 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928610', 'tblTempUsageDetail_20' ) end [2025-04-17 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928610', 'tblTempVendorCDR_20' ) start [2025-04-17 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928610', 'tblTempVendorCDR_20' ) end [2025-04-17 13:37:22] Production.INFO: ProcessCDR(1,14928610,1,1,2) [2025-04-17 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928610', 'tblTempUsageDetail_20' ) start [2025-04-17 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928610', 'tblTempUsageDetail_20' ) end [2025-04-17 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:37:26] Production.INFO: ==25945== Releasing lock... [2025-04-17 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:37:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:38:06 [end_date_ymd] => 2025-04-17 13:38:06 [RateCDR] => 1 ) [2025-04-17 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:38:06' and `end` < '2025-04-17 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:38:19] Production.INFO: count ==5764 [2025-04-17 13:38:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:38:06 - End Time 2025-04-17 13:38:06 [2025-04-17 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928615', 'tblTempUsageDetail_20' ) start [2025-04-17 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928615', 'tblTempUsageDetail_20' ) end [2025-04-17 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928615', 'tblTempVendorCDR_20' ) start [2025-04-17 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928615', 'tblTempVendorCDR_20' ) end [2025-04-17 13:38:22] Production.INFO: ProcessCDR(1,14928615,1,1,2) [2025-04-17 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928615', 'tblTempUsageDetail_20' ) start [2025-04-17 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928615', 'tblTempUsageDetail_20' ) end [2025-04-17 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:38:27] Production.INFO: ==26021== Releasing lock... [2025-04-17 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:38:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:39:05 [end_date_ymd] => 2025-04-17 13:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:39:05' and `end` < '2025-04-17 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-17 13:39:18] Production.INFO: count ==5744 [2025-04-17 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:39:05 - End Time 2025-04-17 13:39:05 [2025-04-17 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928620', 'tblTempUsageDetail_20' ) start [2025-04-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928620', 'tblTempUsageDetail_20' ) end [2025-04-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928620', 'tblTempVendorCDR_20' ) start [2025-04-17 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928620', 'tblTempVendorCDR_20' ) end [2025-04-17 13:39:21] Production.INFO: ProcessCDR(1,14928620,1,1,2) [2025-04-17 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928620', 'tblTempUsageDetail_20' ) start [2025-04-17 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928620', 'tblTempUsageDetail_20' ) end [2025-04-17 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:39:26] Production.INFO: ==26096== Releasing lock... [2025-04-17 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:39:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:40:06 [end_date_ymd] => 2025-04-17 13:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:40:06' and `end` < '2025-04-17 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-17 13:40:20] Production.INFO: count ==5768 [2025-04-17 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:40:06 - End Time 2025-04-17 13:40:06 [2025-04-17 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928625', 'tblTempUsageDetail_20' ) start [2025-04-17 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928625', 'tblTempUsageDetail_20' ) end [2025-04-17 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928625', 'tblTempVendorCDR_20' ) start [2025-04-17 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928625', 'tblTempVendorCDR_20' ) end [2025-04-17 13:40:22] Production.INFO: ProcessCDR(1,14928625,1,1,2) [2025-04-17 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928625', 'tblTempUsageDetail_20' ) start [2025-04-17 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928625', 'tblTempUsageDetail_20' ) end [2025-04-17 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:40:27] Production.INFO: ==26175== Releasing lock... [2025-04-17 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:40:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:41:04 [end_date_ymd] => 2025-04-17 13:41:04 [RateCDR] => 1 ) [2025-04-17 13:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:41:04' and `end` < '2025-04-17 13:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:41:18] Production.INFO: count ==5745 [2025-04-17 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:41:04 - End Time 2025-04-17 13:41:04 [2025-04-17 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928631', 'tblTempUsageDetail_20' ) start [2025-04-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928631', 'tblTempUsageDetail_20' ) end [2025-04-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928631', 'tblTempVendorCDR_20' ) start [2025-04-17 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928631', 'tblTempVendorCDR_20' ) end [2025-04-17 13:41:21] Production.INFO: ProcessCDR(1,14928631,1,1,2) [2025-04-17 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928631', 'tblTempUsageDetail_20' ) start [2025-04-17 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928631', 'tblTempUsageDetail_20' ) end [2025-04-17 13:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:41:24] Production.INFO: ==26247== Releasing lock... [2025-04-17 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:41:24] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:42:05 [end_date_ymd] => 2025-04-17 13:42:05 [RateCDR] => 1 ) [2025-04-17 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:42:05' and `end` < '2025-04-17 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:42:19] Production.INFO: count ==5754 [2025-04-17 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:42:05 - End Time 2025-04-17 13:42:05 [2025-04-17 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928636', 'tblTempUsageDetail_20' ) start [2025-04-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928636', 'tblTempUsageDetail_20' ) end [2025-04-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928636', 'tblTempVendorCDR_20' ) start [2025-04-17 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928636', 'tblTempVendorCDR_20' ) end [2025-04-17 13:42:22] Production.INFO: ProcessCDR(1,14928636,1,1,2) [2025-04-17 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928636', 'tblTempUsageDetail_20' ) start [2025-04-17 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928636', 'tblTempUsageDetail_20' ) end [2025-04-17 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:42:27] Production.INFO: ==26322== Releasing lock... [2025-04-17 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:42:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:43:04 [end_date_ymd] => 2025-04-17 13:43:04 [RateCDR] => 1 ) [2025-04-17 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:43:04' and `end` < '2025-04-17 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:43:18] Production.INFO: count ==5757 [2025-04-17 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:43:04 - End Time 2025-04-17 13:43:04 [2025-04-17 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928641', 'tblTempUsageDetail_20' ) start [2025-04-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928641', 'tblTempUsageDetail_20' ) end [2025-04-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928641', 'tblTempVendorCDR_20' ) start [2025-04-17 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928641', 'tblTempVendorCDR_20' ) end [2025-04-17 13:43:21] Production.INFO: ProcessCDR(1,14928641,1,1,2) [2025-04-17 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928641', 'tblTempUsageDetail_20' ) start [2025-04-17 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928641', 'tblTempUsageDetail_20' ) end [2025-04-17 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:43:26] Production.INFO: ==26394== Releasing lock... [2025-04-17 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:43:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:44:06 [end_date_ymd] => 2025-04-17 13:44:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:44:06' and `end` < '2025-04-17 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-17 13:44:19] Production.INFO: count ==5744 [2025-04-17 13:44:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:44:06 - End Time 2025-04-17 13:44:06 [2025-04-17 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928646', 'tblTempUsageDetail_20' ) start [2025-04-17 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928646', 'tblTempUsageDetail_20' ) end [2025-04-17 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928646', 'tblTempVendorCDR_20' ) start [2025-04-17 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928646', 'tblTempVendorCDR_20' ) end [2025-04-17 13:44:22] Production.INFO: ProcessCDR(1,14928646,1,1,2) [2025-04-17 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928646', 'tblTempUsageDetail_20' ) start [2025-04-17 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928646', 'tblTempUsageDetail_20' ) end [2025-04-17 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:44:27] Production.INFO: ==26474== Releasing lock... [2025-04-17 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:44:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:45:05 [end_date_ymd] => 2025-04-17 13:45:05 [RateCDR] => 1 ) [2025-04-17 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:45:05' and `end` < '2025-04-17 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:45:18] Production.INFO: count ==5719 [2025-04-17 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:45:05 - End Time 2025-04-17 13:45:05 [2025-04-17 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928651', 'tblTempUsageDetail_20' ) start [2025-04-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928651', 'tblTempUsageDetail_20' ) end [2025-04-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928651', 'tblTempVendorCDR_20' ) start [2025-04-17 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928651', 'tblTempVendorCDR_20' ) end [2025-04-17 13:45:21] Production.INFO: ProcessCDR(1,14928651,1,1,2) [2025-04-17 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928651', 'tblTempUsageDetail_20' ) start [2025-04-17 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928651', 'tblTempUsageDetail_20' ) end [2025-04-17 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:45:26] Production.INFO: ==26546== Releasing lock... [2025-04-17 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:45:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:46:05 [end_date_ymd] => 2025-04-17 13:46:05 [RateCDR] => 1 ) [2025-04-17 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:46:05' and `end` < '2025-04-17 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:46:19] Production.INFO: count ==5715 [2025-04-17 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:46:05 - End Time 2025-04-17 13:46:05 [2025-04-17 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928656', 'tblTempUsageDetail_20' ) start [2025-04-17 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928656', 'tblTempUsageDetail_20' ) end [2025-04-17 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928656', 'tblTempVendorCDR_20' ) start [2025-04-17 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928656', 'tblTempVendorCDR_20' ) end [2025-04-17 13:46:22] Production.INFO: ProcessCDR(1,14928656,1,1,2) [2025-04-17 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928656', 'tblTempUsageDetail_20' ) start [2025-04-17 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928656', 'tblTempUsageDetail_20' ) end [2025-04-17 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:46:27] Production.INFO: ==26621== Releasing lock... [2025-04-17 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:46:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:47:05 [end_date_ymd] => 2025-04-17 13:47:05 [RateCDR] => 1 ) [2025-04-17 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:47:05' and `end` < '2025-04-17 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-17 13:47:19] Production.INFO: count ==5714 [2025-04-17 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:47:05 - End Time 2025-04-17 13:47:05 [2025-04-17 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928661', 'tblTempUsageDetail_20' ) start [2025-04-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928661', 'tblTempUsageDetail_20' ) end [2025-04-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928661', 'tblTempVendorCDR_20' ) start [2025-04-17 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928661', 'tblTempVendorCDR_20' ) end [2025-04-17 13:47:22] Production.INFO: ProcessCDR(1,14928661,1,1,2) [2025-04-17 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928661', 'tblTempUsageDetail_20' ) start [2025-04-17 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928661', 'tblTempUsageDetail_20' ) end [2025-04-17 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:47:27] Production.INFO: ==26696== Releasing lock... [2025-04-17 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:47:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:48:05 [end_date_ymd] => 2025-04-17 13:48:05 [RateCDR] => 1 ) [2025-04-17 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:48:05' and `end` < '2025-04-17 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:48:19] Production.INFO: count ==5717 [2025-04-17 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:48:05 - End Time 2025-04-17 13:48:05 [2025-04-17 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928666', 'tblTempUsageDetail_20' ) start [2025-04-17 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928666', 'tblTempUsageDetail_20' ) end [2025-04-17 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928666', 'tblTempVendorCDR_20' ) start [2025-04-17 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928666', 'tblTempVendorCDR_20' ) end [2025-04-17 13:48:22] Production.INFO: ProcessCDR(1,14928666,1,1,2) [2025-04-17 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928666', 'tblTempUsageDetail_20' ) start [2025-04-17 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928666', 'tblTempUsageDetail_20' ) end [2025-04-17 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:48:27] Production.INFO: ==26769== Releasing lock... [2025-04-17 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:48:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:49:05 [end_date_ymd] => 2025-04-17 13:49:05 [RateCDR] => 1 ) [2025-04-17 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:49:05' and `end` < '2025-04-17 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:49:19] Production.INFO: count ==5723 [2025-04-17 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:49:05 - End Time 2025-04-17 13:49:05 [2025-04-17 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928671', 'tblTempUsageDetail_20' ) start [2025-04-17 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928671', 'tblTempUsageDetail_20' ) end [2025-04-17 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928671', 'tblTempVendorCDR_20' ) start [2025-04-17 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928671', 'tblTempVendorCDR_20' ) end [2025-04-17 13:49:22] Production.INFO: ProcessCDR(1,14928671,1,1,2) [2025-04-17 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928671', 'tblTempUsageDetail_20' ) start [2025-04-17 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928671', 'tblTempUsageDetail_20' ) end [2025-04-17 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:49:27] Production.INFO: ==26842== Releasing lock... [2025-04-17 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:49:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:50:05 [end_date_ymd] => 2025-04-17 13:50:05 [RateCDR] => 1 ) [2025-04-17 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:50:05' and `end` < '2025-04-17 13: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-17 13:50:20] Production.INFO: count ==5730 [2025-04-17 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:50:05 - End Time 2025-04-17 13:50:05 [2025-04-17 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928677', 'tblTempUsageDetail_20' ) start [2025-04-17 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928677', 'tblTempUsageDetail_20' ) end [2025-04-17 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928677', 'tblTempVendorCDR_20' ) start [2025-04-17 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928677', 'tblTempVendorCDR_20' ) end [2025-04-17 13:50:22] Production.INFO: ProcessCDR(1,14928677,1,1,2) [2025-04-17 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928677', 'tblTempUsageDetail_20' ) start [2025-04-17 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928677', 'tblTempUsageDetail_20' ) end [2025-04-17 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:50:27] Production.INFO: ==26917== Releasing lock... [2025-04-17 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:50:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:51:05 [end_date_ymd] => 2025-04-17 13:51:05 [RateCDR] => 1 ) [2025-04-17 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:51:05' and `end` < '2025-04-17 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:51:19] Production.INFO: count ==5718 [2025-04-17 13:51:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:51:05 - End Time 2025-04-17 13:51:05 [2025-04-17 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928682', 'tblTempUsageDetail_20' ) start [2025-04-17 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928682', 'tblTempUsageDetail_20' ) end [2025-04-17 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928682', 'tblTempVendorCDR_20' ) start [2025-04-17 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928682', 'tblTempVendorCDR_20' ) end [2025-04-17 13:51:21] Production.INFO: ProcessCDR(1,14928682,1,1,2) [2025-04-17 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928682', 'tblTempUsageDetail_20' ) start [2025-04-17 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928682', 'tblTempUsageDetail_20' ) end [2025-04-17 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:51:26] Production.INFO: ==26993== Releasing lock... [2025-04-17 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:51:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:52:05 [end_date_ymd] => 2025-04-17 13:52:05 [RateCDR] => 1 ) [2025-04-17 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:52:05' and `end` < '2025-04-17 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:52:19] Production.INFO: count ==5720 [2025-04-17 13:52:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:52:05 - End Time 2025-04-17 13:52:05 [2025-04-17 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928687', 'tblTempUsageDetail_20' ) start [2025-04-17 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928687', 'tblTempUsageDetail_20' ) end [2025-04-17 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928687', 'tblTempVendorCDR_20' ) start [2025-04-17 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928687', 'tblTempVendorCDR_20' ) end [2025-04-17 13:52:22] Production.INFO: ProcessCDR(1,14928687,1,1,2) [2025-04-17 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928687', 'tblTempUsageDetail_20' ) start [2025-04-17 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928687', 'tblTempUsageDetail_20' ) end [2025-04-17 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:52:27] Production.INFO: ==27107== Releasing lock... [2025-04-17 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:52:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:53:05 [end_date_ymd] => 2025-04-17 13:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:53:05' and `end` < '2025-04-17 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-17 13:53:19] Production.INFO: count ==5727 [2025-04-17 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:53:05 - End Time 2025-04-17 13:53:05 [2025-04-17 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928692', 'tblTempUsageDetail_20' ) start [2025-04-17 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928692', 'tblTempUsageDetail_20' ) end [2025-04-17 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928692', 'tblTempVendorCDR_20' ) start [2025-04-17 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928692', 'tblTempVendorCDR_20' ) end [2025-04-17 13:53:22] Production.INFO: ProcessCDR(1,14928692,1,1,2) [2025-04-17 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928692', 'tblTempUsageDetail_20' ) start [2025-04-17 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928692', 'tblTempUsageDetail_20' ) end [2025-04-17 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:53:28] Production.INFO: ==27184== Releasing lock... [2025-04-17 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:53:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:54:06 [end_date_ymd] => 2025-04-17 13:54:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:54:06' and `end` < '2025-04-17 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-17 13:54:19] Production.INFO: count ==5745 [2025-04-17 13:54:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:54:06 - End Time 2025-04-17 13:54:06 [2025-04-17 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928697', 'tblTempUsageDetail_20' ) start [2025-04-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928697', 'tblTempUsageDetail_20' ) end [2025-04-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928697', 'tblTempVendorCDR_20' ) start [2025-04-17 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928697', 'tblTempVendorCDR_20' ) end [2025-04-17 13:54:22] Production.INFO: ProcessCDR(1,14928697,1,1,2) [2025-04-17 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928697', 'tblTempUsageDetail_20' ) start [2025-04-17 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928697', 'tblTempUsageDetail_20' ) end [2025-04-17 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:54:27] Production.INFO: ==27258== Releasing lock... [2025-04-17 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:54:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:55:05 [end_date_ymd] => 2025-04-17 13:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:55:05' and `end` < '2025-04-17 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-17 13:55:19] Production.INFO: count ==5734 [2025-04-17 13:55:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:55:05 - End Time 2025-04-17 13:55:05 [2025-04-17 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928702', 'tblTempUsageDetail_20' ) start [2025-04-17 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928702', 'tblTempUsageDetail_20' ) end [2025-04-17 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928702', 'tblTempVendorCDR_20' ) start [2025-04-17 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928702', 'tblTempVendorCDR_20' ) end [2025-04-17 13:55:22] Production.INFO: ProcessCDR(1,14928702,1,1,2) [2025-04-17 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928702', 'tblTempUsageDetail_20' ) start [2025-04-17 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928702', 'tblTempUsageDetail_20' ) end [2025-04-17 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:55:27] Production.INFO: ==27328== Releasing lock... [2025-04-17 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:55:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:56:06 [end_date_ymd] => 2025-04-17 13:56:06 [RateCDR] => 1 ) [2025-04-17 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-17 10:56:06' and `end` < '2025-04-17 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-17 13:56:20] Production.INFO: count ==5723 [2025-04-17 13:56:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:56:06 - End Time 2025-04-17 13:56:06 [2025-04-17 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928707', 'tblTempUsageDetail_20' ) start [2025-04-17 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928707', 'tblTempUsageDetail_20' ) end [2025-04-17 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928707', 'tblTempVendorCDR_20' ) start [2025-04-17 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928707', 'tblTempVendorCDR_20' ) end [2025-04-17 13:56:23] Production.INFO: ProcessCDR(1,14928707,1,1,2) [2025-04-17 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928707', 'tblTempUsageDetail_20' ) start [2025-04-17 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928707', 'tblTempUsageDetail_20' ) end [2025-04-17 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:56:28] Production.INFO: ==27408== Releasing lock... [2025-04-17 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:56:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:57:05 [end_date_ymd] => 2025-04-17 13:57:05 [RateCDR] => 1 ) [2025-04-17 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 10:57:05' and `end` < '2025-04-17 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-17 13:57:19] Production.INFO: count ==5723 [2025-04-17 13:57:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:57:05 - End Time 2025-04-17 13:57:05 [2025-04-17 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928712', 'tblTempUsageDetail_20' ) start [2025-04-17 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928712', 'tblTempUsageDetail_20' ) end [2025-04-17 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928712', 'tblTempVendorCDR_20' ) start [2025-04-17 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928712', 'tblTempVendorCDR_20' ) end [2025-04-17 13:57:22] Production.INFO: ProcessCDR(1,14928712,1,1,2) [2025-04-17 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928712', 'tblTempUsageDetail_20' ) start [2025-04-17 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928712', 'tblTempUsageDetail_20' ) end [2025-04-17 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:57:27] Production.INFO: ==27482== Releasing lock... [2025-04-17 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:57:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:58:05 [end_date_ymd] => 2025-04-17 13:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:58:05' and `end` < '2025-04-17 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 13:58:19] Production.INFO: count ==5729 [2025-04-17 13:58:22] Production.ERROR: pbx CDR StartTime 2025-04-17 10:58:05 - End Time 2025-04-17 13:58:05 [2025-04-17 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928717', 'tblTempUsageDetail_20' ) start [2025-04-17 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928717', 'tblTempUsageDetail_20' ) end [2025-04-17 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928717', 'tblTempVendorCDR_20' ) start [2025-04-17 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928717', 'tblTempVendorCDR_20' ) end [2025-04-17 13:58:22] Production.INFO: ProcessCDR(1,14928717,1,1,2) [2025-04-17 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928717', 'tblTempUsageDetail_20' ) start [2025-04-17 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928717', 'tblTempUsageDetail_20' ) end [2025-04-17 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:58:27] Production.INFO: ==27558== Releasing lock... [2025-04-17 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:58:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 10:59:05 [end_date_ymd] => 2025-04-17 13:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 10:59:05' and `end` < '2025-04-17 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-17 13:59:18] Production.INFO: count ==5722 [2025-04-17 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-17 10:59:05 - End Time 2025-04-17 13:59:05 [2025-04-17 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928722', 'tblTempUsageDetail_20' ) start [2025-04-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928722', 'tblTempUsageDetail_20' ) end [2025-04-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928722', 'tblTempVendorCDR_20' ) start [2025-04-17 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928722', 'tblTempVendorCDR_20' ) end [2025-04-17 13:59:21] Production.INFO: ProcessCDR(1,14928722,1,1,2) [2025-04-17 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928722', 'tblTempUsageDetail_20' ) start [2025-04-17 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928722', 'tblTempUsageDetail_20' ) end [2025-04-17 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 13:59:26] Production.INFO: ==27627== Releasing lock... [2025-04-17 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 13:59:26] Production.INFO: 71 MB #Memory Used# [2025-04-17 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:00:06 [end_date_ymd] => 2025-04-17 14:00:06 [RateCDR] => 1 ) [2025-04-17 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:00:06' and `end` < '2025-04-17 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-17 14:00:20] Production.INFO: count ==5725 [2025-04-17 14:00:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:00:06 - End Time 2025-04-17 14:00:06 [2025-04-17 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928728', 'tblTempUsageDetail_20' ) start [2025-04-17 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928728', 'tblTempUsageDetail_20' ) end [2025-04-17 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928728', 'tblTempVendorCDR_20' ) start [2025-04-17 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928728', 'tblTempVendorCDR_20' ) end [2025-04-17 14:00:23] Production.INFO: ProcessCDR(1,14928728,1,1,2) [2025-04-17 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928728', 'tblTempUsageDetail_20' ) start [2025-04-17 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928728', 'tblTempUsageDetail_20' ) end [2025-04-17 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:00:28] Production.INFO: ==27705== Releasing lock... [2025-04-17 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:00:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:01:05 [end_date_ymd] => 2025-04-17 14:01:05 [RateCDR] => 1 ) [2025-04-17 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:01:05' and `end` < '2025-04-17 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:01:19] Production.INFO: count ==5737 [2025-04-17 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:01:05 - End Time 2025-04-17 14:01:05 [2025-04-17 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928733', 'tblTempUsageDetail_20' ) start [2025-04-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928733', 'tblTempUsageDetail_20' ) end [2025-04-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928733', 'tblTempVendorCDR_20' ) start [2025-04-17 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928733', 'tblTempVendorCDR_20' ) end [2025-04-17 14:01:21] Production.INFO: ProcessCDR(1,14928733,1,1,2) [2025-04-17 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928733', 'tblTempUsageDetail_20' ) start [2025-04-17 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928733', 'tblTempUsageDetail_20' ) end [2025-04-17 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:01:27] Production.INFO: ==27801== Releasing lock... [2025-04-17 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:01:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:02:05 [end_date_ymd] => 2025-04-17 14:02:05 [RateCDR] => 1 ) [2025-04-17 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:02:05' and `end` < '2025-04-17 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:02:19] Production.INFO: count ==5778 [2025-04-17 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:02:05 - End Time 2025-04-17 14:02:05 [2025-04-17 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928738', 'tblTempUsageDetail_20' ) start [2025-04-17 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928738', 'tblTempUsageDetail_20' ) end [2025-04-17 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928738', 'tblTempVendorCDR_20' ) start [2025-04-17 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928738', 'tblTempVendorCDR_20' ) end [2025-04-17 14:02:22] Production.INFO: ProcessCDR(1,14928738,1,1,2) [2025-04-17 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928738', 'tblTempUsageDetail_20' ) start [2025-04-17 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928738', 'tblTempUsageDetail_20' ) end [2025-04-17 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:02:28] Production.INFO: ==27877== Releasing lock... [2025-04-17 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:02:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:03:06 [end_date_ymd] => 2025-04-17 14:03:06 [RateCDR] => 1 ) [2025-04-17 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-17 11:03:06' and `end` < '2025-04-17 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-17 14:03:19] Production.INFO: count ==5793 [2025-04-17 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:03:06 - End Time 2025-04-17 14:03:06 [2025-04-17 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928743', 'tblTempUsageDetail_20' ) start [2025-04-17 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928743', 'tblTempUsageDetail_20' ) end [2025-04-17 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928743', 'tblTempVendorCDR_20' ) start [2025-04-17 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928743', 'tblTempVendorCDR_20' ) end [2025-04-17 14:03:22] Production.INFO: ProcessCDR(1,14928743,1,1,2) [2025-04-17 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928743', 'tblTempUsageDetail_20' ) start [2025-04-17 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928743', 'tblTempUsageDetail_20' ) end [2025-04-17 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:03:27] Production.INFO: ==27951== Releasing lock... [2025-04-17 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:03:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:04:05 [end_date_ymd] => 2025-04-17 14:04:05 [RateCDR] => 1 ) [2025-04-17 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:04:05' and `end` < '2025-04-17 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:04:19] Production.INFO: count ==5802 [2025-04-17 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:04:05 - End Time 2025-04-17 14:04:05 [2025-04-17 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928748', 'tblTempUsageDetail_20' ) start [2025-04-17 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928748', 'tblTempUsageDetail_20' ) end [2025-04-17 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928748', 'tblTempVendorCDR_20' ) start [2025-04-17 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928748', 'tblTempVendorCDR_20' ) end [2025-04-17 14:04:22] Production.INFO: ProcessCDR(1,14928748,1,1,2) [2025-04-17 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928748', 'tblTempUsageDetail_20' ) start [2025-04-17 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928748', 'tblTempUsageDetail_20' ) end [2025-04-17 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:04:27] Production.INFO: ==28029== Releasing lock... [2025-04-17 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:04:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:05:05 [end_date_ymd] => 2025-04-17 14:05:05 [RateCDR] => 1 ) [2025-04-17 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:05:05' and `end` < '2025-04-17 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:05:19] Production.INFO: count ==5786 [2025-04-17 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:05:05 - End Time 2025-04-17 14:05:05 [2025-04-17 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928753', 'tblTempUsageDetail_20' ) start [2025-04-17 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928753', 'tblTempUsageDetail_20' ) end [2025-04-17 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928753', 'tblTempVendorCDR_20' ) start [2025-04-17 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928753', 'tblTempVendorCDR_20' ) end [2025-04-17 14:05:22] Production.INFO: ProcessCDR(1,14928753,1,1,2) [2025-04-17 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928753', 'tblTempUsageDetail_20' ) start [2025-04-17 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928753', 'tblTempUsageDetail_20' ) end [2025-04-17 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:05:27] Production.INFO: ==28102== Releasing lock... [2025-04-17 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:05:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:06:05 [end_date_ymd] => 2025-04-17 14:06:05 [RateCDR] => 1 ) [2025-04-17 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:06:05' and `end` < '2025-04-17 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:06:19] Production.INFO: count ==5785 [2025-04-17 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:06:05 - End Time 2025-04-17 14:06:05 [2025-04-17 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928758', 'tblTempUsageDetail_20' ) start [2025-04-17 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928758', 'tblTempUsageDetail_20' ) end [2025-04-17 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928758', 'tblTempVendorCDR_20' ) start [2025-04-17 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928758', 'tblTempVendorCDR_20' ) end [2025-04-17 14:06:22] Production.INFO: ProcessCDR(1,14928758,1,1,2) [2025-04-17 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928758', 'tblTempUsageDetail_20' ) start [2025-04-17 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928758', 'tblTempUsageDetail_20' ) end [2025-04-17 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:06:27] Production.INFO: ==28174== Releasing lock... [2025-04-17 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:06:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:07:05 [end_date_ymd] => 2025-04-17 14:07:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:07:05' and `end` < '2025-04-17 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-17 14:07:20] Production.INFO: count ==5776 [2025-04-17 14:07:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:07:05 - End Time 2025-04-17 14:07:05 [2025-04-17 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928763', 'tblTempUsageDetail_20' ) start [2025-04-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928763', 'tblTempUsageDetail_20' ) end [2025-04-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928763', 'tblTempVendorCDR_20' ) start [2025-04-17 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928763', 'tblTempVendorCDR_20' ) end [2025-04-17 14:07:23] Production.INFO: ProcessCDR(1,14928763,1,1,2) [2025-04-17 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928763', 'tblTempUsageDetail_20' ) start [2025-04-17 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928763', 'tblTempUsageDetail_20' ) end [2025-04-17 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:07:28] Production.INFO: ==28290== Releasing lock... [2025-04-17 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:07:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:08:05 [end_date_ymd] => 2025-04-17 14:08:05 [RateCDR] => 1 ) [2025-04-17 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:08:05' and `end` < '2025-04-17 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:08:20] Production.INFO: count ==5779 [2025-04-17 14:08:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:08:05 - End Time 2025-04-17 14:08:05 [2025-04-17 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928768', 'tblTempUsageDetail_20' ) start [2025-04-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928768', 'tblTempUsageDetail_20' ) end [2025-04-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928768', 'tblTempVendorCDR_20' ) start [2025-04-17 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928768', 'tblTempVendorCDR_20' ) end [2025-04-17 14:08:23] Production.INFO: ProcessCDR(1,14928768,1,1,2) [2025-04-17 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928768', 'tblTempUsageDetail_20' ) start [2025-04-17 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928768', 'tblTempUsageDetail_20' ) end [2025-04-17 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:08:28] Production.INFO: ==28360== Releasing lock... [2025-04-17 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:08:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:09:05 [end_date_ymd] => 2025-04-17 14:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:09:05' and `end` < '2025-04-17 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-17 14:09:19] Production.INFO: count ==5785 [2025-04-17 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:09:05 - End Time 2025-04-17 14:09:05 [2025-04-17 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928773', 'tblTempUsageDetail_20' ) start [2025-04-17 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928773', 'tblTempUsageDetail_20' ) end [2025-04-17 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928773', 'tblTempVendorCDR_20' ) start [2025-04-17 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928773', 'tblTempVendorCDR_20' ) end [2025-04-17 14:09:22] Production.INFO: ProcessCDR(1,14928773,1,1,2) [2025-04-17 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928773', 'tblTempUsageDetail_20' ) start [2025-04-17 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928773', 'tblTempUsageDetail_20' ) end [2025-04-17 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:09:27] Production.INFO: ==28444== Releasing lock... [2025-04-17 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:09:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:10:06 [end_date_ymd] => 2025-04-17 14:10:06 [RateCDR] => 1 ) [2025-04-17 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:10:06' and `end` < '2025-04-17 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:10:19] Production.INFO: count ==5773 [2025-04-17 14:10:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:10:06 - End Time 2025-04-17 14:10:06 [2025-04-17 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928779', 'tblTempUsageDetail_20' ) start [2025-04-17 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928779', 'tblTempUsageDetail_20' ) end [2025-04-17 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928779', 'tblTempVendorCDR_20' ) start [2025-04-17 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928779', 'tblTempVendorCDR_20' ) end [2025-04-17 14:10:22] Production.INFO: ProcessCDR(1,14928779,1,1,2) [2025-04-17 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928779', 'tblTempUsageDetail_20' ) start [2025-04-17 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928779', 'tblTempUsageDetail_20' ) end [2025-04-17 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:10:27] Production.INFO: ==28520== Releasing lock... [2025-04-17 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:10:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:11:05 [end_date_ymd] => 2025-04-17 14:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:11:05' and `end` < '2025-04-17 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-17 14:11:19] Production.INFO: count ==5823 [2025-04-17 14:11:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:11:05 - End Time 2025-04-17 14:11:05 [2025-04-17 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928784', 'tblTempUsageDetail_20' ) start [2025-04-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928784', 'tblTempUsageDetail_20' ) end [2025-04-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928784', 'tblTempVendorCDR_20' ) start [2025-04-17 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928784', 'tblTempVendorCDR_20' ) end [2025-04-17 14:11:22] Production.INFO: ProcessCDR(1,14928784,1,1,2) [2025-04-17 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928784', 'tblTempUsageDetail_20' ) start [2025-04-17 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928784', 'tblTempUsageDetail_20' ) end [2025-04-17 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:11:27] Production.INFO: ==28605== Releasing lock... [2025-04-17 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:11:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-17 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:12:05 [end_date_ymd] => 2025-04-17 14:12:05 [RateCDR] => 1 ) [2025-04-17 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:12:05' and `end` < '2025-04-17 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:12:19] Production.INFO: count ==5825 [2025-04-17 14:12:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:12:05 - End Time 2025-04-17 14:12:05 [2025-04-17 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928789', 'tblTempUsageDetail_20' ) start [2025-04-17 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928789', 'tblTempUsageDetail_20' ) end [2025-04-17 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928789', 'tblTempVendorCDR_20' ) start [2025-04-17 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928789', 'tblTempVendorCDR_20' ) end [2025-04-17 14:12:22] Production.INFO: ProcessCDR(1,14928789,1,1,2) [2025-04-17 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928789', 'tblTempUsageDetail_20' ) start [2025-04-17 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928789', 'tblTempUsageDetail_20' ) end [2025-04-17 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:12:27] Production.INFO: ==28681== Releasing lock... [2025-04-17 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:12:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-17 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:13:05 [end_date_ymd] => 2025-04-17 14:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:13:05' and `end` < '2025-04-17 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-17 14:13:19] Production.INFO: count ==5839 [2025-04-17 14:13:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:13:05 - End Time 2025-04-17 14:13:05 [2025-04-17 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928794', 'tblTempUsageDetail_20' ) start [2025-04-17 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928794', 'tblTempUsageDetail_20' ) end [2025-04-17 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928794', 'tblTempVendorCDR_20' ) start [2025-04-17 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928794', 'tblTempVendorCDR_20' ) end [2025-04-17 14:13:22] Production.INFO: ProcessCDR(1,14928794,1,1,2) [2025-04-17 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928794', 'tblTempUsageDetail_20' ) start [2025-04-17 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928794', 'tblTempUsageDetail_20' ) end [2025-04-17 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:13:27] Production.INFO: ==28767== Releasing lock... [2025-04-17 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:13:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-17 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:14:05 [end_date_ymd] => 2025-04-17 14:14:05 [RateCDR] => 1 ) [2025-04-17 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:14:05' and `end` < '2025-04-17 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:14:19] Production.INFO: count ==5860 [2025-04-17 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:14:05 - End Time 2025-04-17 14:14:05 [2025-04-17 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928799', 'tblTempUsageDetail_20' ) start [2025-04-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928799', 'tblTempUsageDetail_20' ) end [2025-04-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928799', 'tblTempVendorCDR_20' ) start [2025-04-17 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928799', 'tblTempVendorCDR_20' ) end [2025-04-17 14:14:22] Production.INFO: ProcessCDR(1,14928799,1,1,2) [2025-04-17 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928799', 'tblTempUsageDetail_20' ) start [2025-04-17 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928799', 'tblTempUsageDetail_20' ) end [2025-04-17 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:14:27] Production.INFO: ==28851== Releasing lock... [2025-04-17 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:14:27] Production.INFO: 72 MB #Memory Used# [2025-04-17 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:15:04 [end_date_ymd] => 2025-04-17 14:15:04 [RateCDR] => 1 ) [2025-04-17 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:15:04' and `end` < '2025-04-17 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:15:19] Production.INFO: count ==5862 [2025-04-17 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:15:04 - End Time 2025-04-17 14:15:04 [2025-04-17 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928804', 'tblTempUsageDetail_20' ) start [2025-04-17 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928804', 'tblTempUsageDetail_20' ) end [2025-04-17 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928804', 'tblTempVendorCDR_20' ) start [2025-04-17 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928804', 'tblTempVendorCDR_20' ) end [2025-04-17 14:15:22] Production.INFO: ProcessCDR(1,14928804,1,1,2) [2025-04-17 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928804', 'tblTempUsageDetail_20' ) start [2025-04-17 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928804', 'tblTempUsageDetail_20' ) end [2025-04-17 14:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:15:25] Production.INFO: ==28923== Releasing lock... [2025-04-17 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:15:25] Production.INFO: 72 MB #Memory Used# [2025-04-17 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:16:06 [end_date_ymd] => 2025-04-17 14:16:06 [RateCDR] => 1 ) [2025-04-17 14: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-17 11:16:06' and `end` < '2025-04-17 14: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-17 14:16:20] Production.INFO: count ==5887 [2025-04-17 14:16:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:16:06 - End Time 2025-04-17 14:16:06 [2025-04-17 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928809', 'tblTempUsageDetail_20' ) start [2025-04-17 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928809', 'tblTempUsageDetail_20' ) end [2025-04-17 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928809', 'tblTempVendorCDR_20' ) start [2025-04-17 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928809', 'tblTempVendorCDR_20' ) end [2025-04-17 14:16:23] Production.INFO: ProcessCDR(1,14928809,1,1,2) [2025-04-17 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928809', 'tblTempUsageDetail_20' ) start [2025-04-17 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928809', 'tblTempUsageDetail_20' ) end [2025-04-17 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:16:27] Production.INFO: ==29000== Releasing lock... [2025-04-17 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:16:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-17 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:17:04 [end_date_ymd] => 2025-04-17 14:17:04 [RateCDR] => 1 ) [2025-04-17 14: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-17 11:17:04' and `end` < '2025-04-17 14: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-17 14:17:19] Production.INFO: count ==5904 [2025-04-17 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:17:04 - End Time 2025-04-17 14:17:04 [2025-04-17 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928814', 'tblTempUsageDetail_20' ) start [2025-04-17 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928814', 'tblTempUsageDetail_20' ) end [2025-04-17 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928814', 'tblTempVendorCDR_20' ) start [2025-04-17 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928814', 'tblTempVendorCDR_20' ) end [2025-04-17 14:17:22] Production.INFO: ProcessCDR(1,14928814,1,1,2) [2025-04-17 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928814', 'tblTempUsageDetail_20' ) start [2025-04-17 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928814', 'tblTempUsageDetail_20' ) end [2025-04-17 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:17:27] Production.INFO: ==29079== Releasing lock... [2025-04-17 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:17:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-17 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:18:05 [end_date_ymd] => 2025-04-17 14:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:18:05' and `end` < '2025-04-17 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-17 14:18:19] Production.INFO: count ==5893 [2025-04-17 14:18:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:18:05 - End Time 2025-04-17 14:18:05 [2025-04-17 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928819', 'tblTempUsageDetail_20' ) start [2025-04-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928819', 'tblTempUsageDetail_20' ) end [2025-04-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928819', 'tblTempVendorCDR_20' ) start [2025-04-17 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928819', 'tblTempVendorCDR_20' ) end [2025-04-17 14:18:22] Production.INFO: ProcessCDR(1,14928819,1,1,2) [2025-04-17 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928819', 'tblTempUsageDetail_20' ) start [2025-04-17 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928819', 'tblTempUsageDetail_20' ) end [2025-04-17 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:18:27] Production.INFO: ==29155== Releasing lock... [2025-04-17 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:18:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:19:04 [end_date_ymd] => 2025-04-17 14:19:04 [RateCDR] => 1 ) [2025-04-17 14:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:19:04' and `end` < '2025-04-17 14:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:19:18] Production.INFO: count ==5891 [2025-04-17 14:19:20] Production.ERROR: pbx CDR StartTime 2025-04-17 11:19:04 - End Time 2025-04-17 14:19:04 [2025-04-17 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928824', 'tblTempUsageDetail_20' ) start [2025-04-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928824', 'tblTempUsageDetail_20' ) end [2025-04-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928824', 'tblTempVendorCDR_20' ) start [2025-04-17 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928824', 'tblTempVendorCDR_20' ) end [2025-04-17 14:19:21] Production.INFO: ProcessCDR(1,14928824,1,1,2) [2025-04-17 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928824', 'tblTempUsageDetail_20' ) start [2025-04-17 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928824', 'tblTempUsageDetail_20' ) end [2025-04-17 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:19:26] Production.INFO: ==29233== Releasing lock... [2025-04-17 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:19:26] Production.INFO: 72.25 MB #Memory Used# [2025-04-17 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:20:06 [end_date_ymd] => 2025-04-17 14:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 11:20:06' and `end` < '2025-04-17 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-17 14:20:20] Production.INFO: count ==5880 [2025-04-17 14:20:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:20:06 - End Time 2025-04-17 14:20:06 [2025-04-17 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928829', 'tblTempUsageDetail_20' ) start [2025-04-17 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928829', 'tblTempUsageDetail_20' ) end [2025-04-17 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928829', 'tblTempVendorCDR_20' ) start [2025-04-17 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928829', 'tblTempVendorCDR_20' ) end [2025-04-17 14:20:23] Production.INFO: ProcessCDR(1,14928829,1,1,2) [2025-04-17 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928829', 'tblTempUsageDetail_20' ) start [2025-04-17 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928829', 'tblTempUsageDetail_20' ) end [2025-04-17 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:20:28] Production.INFO: ==29309== Releasing lock... [2025-04-17 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:20:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-17 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:21:05 [end_date_ymd] => 2025-04-17 14:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:21:05' and `end` < '2025-04-17 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-17 14:21:19] Production.INFO: count ==5915 [2025-04-17 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:21:05 - End Time 2025-04-17 14:21:05 [2025-04-17 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928835', 'tblTempUsageDetail_20' ) start [2025-04-17 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928835', 'tblTempUsageDetail_20' ) end [2025-04-17 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928835', 'tblTempVendorCDR_20' ) start [2025-04-17 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928835', 'tblTempVendorCDR_20' ) end [2025-04-17 14:21:22] Production.INFO: ProcessCDR(1,14928835,1,1,2) [2025-04-17 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928835', 'tblTempUsageDetail_20' ) start [2025-04-17 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928835', 'tblTempUsageDetail_20' ) end [2025-04-17 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:21:27] Production.INFO: ==29385== Releasing lock... [2025-04-17 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:21:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:22:05 [end_date_ymd] => 2025-04-17 14:22:05 [RateCDR] => 1 ) [2025-04-17 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:22:05' and `end` < '2025-04-17 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-17 14:22:19] Production.INFO: count ==5918 [2025-04-17 14:22:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:22:05 - End Time 2025-04-17 14:22:05 [2025-04-17 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928840', 'tblTempUsageDetail_20' ) start [2025-04-17 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928840', 'tblTempUsageDetail_20' ) end [2025-04-17 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928840', 'tblTempVendorCDR_20' ) start [2025-04-17 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928840', 'tblTempVendorCDR_20' ) end [2025-04-17 14:22:22] Production.INFO: ProcessCDR(1,14928840,1,1,2) [2025-04-17 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928840', 'tblTempUsageDetail_20' ) start [2025-04-17 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928840', 'tblTempUsageDetail_20' ) end [2025-04-17 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:22:28] Production.INFO: ==29465== Releasing lock... [2025-04-17 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:22:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:23:06 [end_date_ymd] => 2025-04-17 14:23:06 [RateCDR] => 1 ) [2025-04-17 14: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-17 11:23:06' and `end` < '2025-04-17 14: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-17 14:23:20] Production.INFO: count ==5924 [2025-04-17 14:23:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:23:06 - End Time 2025-04-17 14:23:06 [2025-04-17 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928845', 'tblTempUsageDetail_20' ) start [2025-04-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928845', 'tblTempUsageDetail_20' ) end [2025-04-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928845', 'tblTempVendorCDR_20' ) start [2025-04-17 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928845', 'tblTempVendorCDR_20' ) end [2025-04-17 14:23:23] Production.INFO: ProcessCDR(1,14928845,1,1,2) [2025-04-17 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928845', 'tblTempUsageDetail_20' ) start [2025-04-17 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928845', 'tblTempUsageDetail_20' ) end [2025-04-17 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:23:28] Production.INFO: ==29580== Releasing lock... [2025-04-17 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:23:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:24:05 [end_date_ymd] => 2025-04-17 14:24:05 [RateCDR] => 1 ) [2025-04-17 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:24:05' and `end` < '2025-04-17 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:24:19] Production.INFO: count ==5931 [2025-04-17 14:24:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:24:05 - End Time 2025-04-17 14:24:05 [2025-04-17 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928850', 'tblTempUsageDetail_20' ) start [2025-04-17 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928850', 'tblTempUsageDetail_20' ) end [2025-04-17 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928850', 'tblTempVendorCDR_20' ) start [2025-04-17 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928850', 'tblTempVendorCDR_20' ) end [2025-04-17 14:24:22] Production.INFO: ProcessCDR(1,14928850,1,1,2) [2025-04-17 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928850', 'tblTempUsageDetail_20' ) start [2025-04-17 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928850', 'tblTempUsageDetail_20' ) end [2025-04-17 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:24:27] Production.INFO: ==29654== Releasing lock... [2025-04-17 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:24:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:25:05 [end_date_ymd] => 2025-04-17 14:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:25:05' and `end` < '2025-04-17 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-17 14:25:19] Production.INFO: count ==5921 [2025-04-17 14:25:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:25:05 - End Time 2025-04-17 14:25:05 [2025-04-17 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928855', 'tblTempUsageDetail_20' ) start [2025-04-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928855', 'tblTempUsageDetail_20' ) end [2025-04-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928855', 'tblTempVendorCDR_20' ) start [2025-04-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928855', 'tblTempVendorCDR_20' ) end [2025-04-17 14:25:22] Production.INFO: ProcessCDR(1,14928855,1,1,2) [2025-04-17 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928855', 'tblTempUsageDetail_20' ) start [2025-04-17 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928855', 'tblTempUsageDetail_20' ) end [2025-04-17 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:25:28] Production.INFO: ==29727== Releasing lock... [2025-04-17 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:25:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:26:05 [end_date_ymd] => 2025-04-17 14:26:05 [RateCDR] => 1 ) [2025-04-17 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:26:05' and `end` < '2025-04-17 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:26:19] Production.INFO: count ==5927 [2025-04-17 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:26:05 - End Time 2025-04-17 14:26:05 [2025-04-17 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928860', 'tblTempUsageDetail_20' ) start [2025-04-17 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928860', 'tblTempUsageDetail_20' ) end [2025-04-17 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928860', 'tblTempVendorCDR_20' ) start [2025-04-17 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928860', 'tblTempVendorCDR_20' ) end [2025-04-17 14:26:22] Production.INFO: ProcessCDR(1,14928860,1,1,2) [2025-04-17 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928860', 'tblTempUsageDetail_20' ) start [2025-04-17 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928860', 'tblTempUsageDetail_20' ) end [2025-04-17 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:26:27] Production.INFO: ==29798== Releasing lock... [2025-04-17 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:26:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:27:06 [end_date_ymd] => 2025-04-17 14:27:06 [RateCDR] => 1 ) [2025-04-17 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:27:06' and `end` < '2025-04-17 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:27:19] Production.INFO: count ==5917 [2025-04-17 14:27:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:27:06 - End Time 2025-04-17 14:27:06 [2025-04-17 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928865', 'tblTempUsageDetail_20' ) start [2025-04-17 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928865', 'tblTempUsageDetail_20' ) end [2025-04-17 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928865', 'tblTempVendorCDR_20' ) start [2025-04-17 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928865', 'tblTempVendorCDR_20' ) end [2025-04-17 14:27:22] Production.INFO: ProcessCDR(1,14928865,1,1,2) [2025-04-17 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928865', 'tblTempUsageDetail_20' ) start [2025-04-17 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928865', 'tblTempUsageDetail_20' ) end [2025-04-17 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:27:27] Production.INFO: ==29876== Releasing lock... [2025-04-17 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:27:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:28:05 [end_date_ymd] => 2025-04-17 14:28:05 [RateCDR] => 1 ) [2025-04-17 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:28:05' and `end` < '2025-04-17 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:28:19] Production.INFO: count ==5911 [2025-04-17 14:28:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:28:05 - End Time 2025-04-17 14:28:05 [2025-04-17 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928870', 'tblTempUsageDetail_20' ) start [2025-04-17 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928870', 'tblTempUsageDetail_20' ) end [2025-04-17 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928870', 'tblTempVendorCDR_20' ) start [2025-04-17 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928870', 'tblTempVendorCDR_20' ) end [2025-04-17 14:28:22] Production.INFO: ProcessCDR(1,14928870,1,1,2) [2025-04-17 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928870', 'tblTempUsageDetail_20' ) start [2025-04-17 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928870', 'tblTempUsageDetail_20' ) end [2025-04-17 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:28:27] Production.INFO: ==29957== Releasing lock... [2025-04-17 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:28:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-17 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:29:05 [end_date_ymd] => 2025-04-17 14:29:05 [RateCDR] => 1 ) [2025-04-17 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:29:05' and `end` < '2025-04-17 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:29:19] Production.INFO: count ==5919 [2025-04-17 14:29:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:29:05 - End Time 2025-04-17 14:29:05 [2025-04-17 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928875', 'tblTempUsageDetail_20' ) start [2025-04-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928875', 'tblTempUsageDetail_20' ) end [2025-04-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928875', 'tblTempVendorCDR_20' ) start [2025-04-17 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928875', 'tblTempVendorCDR_20' ) end [2025-04-17 14:29:22] Production.INFO: ProcessCDR(1,14928875,1,1,2) [2025-04-17 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928875', 'tblTempUsageDetail_20' ) start [2025-04-17 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928875', 'tblTempUsageDetail_20' ) end [2025-04-17 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:29:27] Production.INFO: ==30034== Releasing lock... [2025-04-17 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:29:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:30:06 [end_date_ymd] => 2025-04-17 14:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 11:30:06' and `end` < '2025-04-17 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-17 14:30:20] Production.INFO: count ==5926 [2025-04-17 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:30:06 - End Time 2025-04-17 14:30:06 [2025-04-17 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928881', 'tblTempUsageDetail_20' ) start [2025-04-17 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928881', 'tblTempUsageDetail_20' ) end [2025-04-17 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928881', 'tblTempVendorCDR_20' ) start [2025-04-17 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928881', 'tblTempVendorCDR_20' ) end [2025-04-17 14:30:23] Production.INFO: ProcessCDR(1,14928881,1,1,2) [2025-04-17 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928881', 'tblTempUsageDetail_20' ) start [2025-04-17 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928881', 'tblTempUsageDetail_20' ) end [2025-04-17 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:30:28] Production.INFO: ==30108== Releasing lock... [2025-04-17 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:30:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:31:05 [end_date_ymd] => 2025-04-17 14:31:05 [RateCDR] => 1 ) [2025-04-17 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:31:05' and `end` < '2025-04-17 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:31:19] Production.INFO: count ==5922 [2025-04-17 14:31:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:31:05 - End Time 2025-04-17 14:31:05 [2025-04-17 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928886', 'tblTempUsageDetail_20' ) start [2025-04-17 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928886', 'tblTempUsageDetail_20' ) end [2025-04-17 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928886', 'tblTempVendorCDR_20' ) start [2025-04-17 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928886', 'tblTempVendorCDR_20' ) end [2025-04-17 14:31:22] Production.INFO: ProcessCDR(1,14928886,1,1,2) [2025-04-17 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928886', 'tblTempUsageDetail_20' ) start [2025-04-17 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928886', 'tblTempUsageDetail_20' ) end [2025-04-17 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:31:27] Production.INFO: ==30184== Releasing lock... [2025-04-17 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:31:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:32:05 [end_date_ymd] => 2025-04-17 14:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:32:05' and `end` < '2025-04-17 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-17 14:32:19] Production.INFO: count ==5930 [2025-04-17 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:32:05 - End Time 2025-04-17 14:32:05 [2025-04-17 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928891', 'tblTempUsageDetail_20' ) start [2025-04-17 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928891', 'tblTempUsageDetail_20' ) end [2025-04-17 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928891', 'tblTempVendorCDR_20' ) start [2025-04-17 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928891', 'tblTempVendorCDR_20' ) end [2025-04-17 14:32:22] Production.INFO: ProcessCDR(1,14928891,1,1,2) [2025-04-17 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928891', 'tblTempUsageDetail_20' ) start [2025-04-17 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928891', 'tblTempUsageDetail_20' ) end [2025-04-17 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:32:27] Production.INFO: ==30256== Releasing lock... [2025-04-17 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:32:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:33:05 [end_date_ymd] => 2025-04-17 14:33:05 [RateCDR] => 1 ) [2025-04-17 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:33:05' and `end` < '2025-04-17 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:33:19] Production.INFO: count ==5937 [2025-04-17 14:33:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:33:05 - End Time 2025-04-17 14:33:05 [2025-04-17 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928896', 'tblTempUsageDetail_20' ) start [2025-04-17 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928896', 'tblTempUsageDetail_20' ) end [2025-04-17 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928896', 'tblTempVendorCDR_20' ) start [2025-04-17 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928896', 'tblTempVendorCDR_20' ) end [2025-04-17 14:33:23] Production.INFO: ProcessCDR(1,14928896,1,1,2) [2025-04-17 14:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928896', 'tblTempUsageDetail_20' ) start [2025-04-17 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928896', 'tblTempUsageDetail_20' ) end [2025-04-17 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:33:28] Production.INFO: ==30336== Releasing lock... [2025-04-17 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:33:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:34:05 [end_date_ymd] => 2025-04-17 14:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:34:05' and `end` < '2025-04-17 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-17 14:34:19] Production.INFO: count ==5955 [2025-04-17 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:34:05 - End Time 2025-04-17 14:34:05 [2025-04-17 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928901', 'tblTempUsageDetail_20' ) start [2025-04-17 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928901', 'tblTempUsageDetail_20' ) end [2025-04-17 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928901', 'tblTempVendorCDR_20' ) start [2025-04-17 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928901', 'tblTempVendorCDR_20' ) end [2025-04-17 14:34:22] Production.INFO: ProcessCDR(1,14928901,1,1,2) [2025-04-17 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928901', 'tblTempUsageDetail_20' ) start [2025-04-17 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928901', 'tblTempUsageDetail_20' ) end [2025-04-17 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:34:27] Production.INFO: ==30413== Releasing lock... [2025-04-17 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:34:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-17 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:35:05 [end_date_ymd] => 2025-04-17 14:35:05 [RateCDR] => 1 ) [2025-04-17 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:35:05' and `end` < '2025-04-17 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:35:19] Production.INFO: count ==5949 [2025-04-17 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:35:05 - End Time 2025-04-17 14:35:05 [2025-04-17 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928906', 'tblTempUsageDetail_20' ) start [2025-04-17 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928906', 'tblTempUsageDetail_20' ) end [2025-04-17 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928906', 'tblTempVendorCDR_20' ) start [2025-04-17 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928906', 'tblTempVendorCDR_20' ) end [2025-04-17 14:35:22] Production.INFO: ProcessCDR(1,14928906,1,1,2) [2025-04-17 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928906', 'tblTempUsageDetail_20' ) start [2025-04-17 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928906', 'tblTempUsageDetail_20' ) end [2025-04-17 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:35:27] Production.INFO: ==30504== Releasing lock... [2025-04-17 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:35:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-17 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:36:05 [end_date_ymd] => 2025-04-17 14:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:36:05' and `end` < '2025-04-17 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-17 14:36:19] Production.INFO: count ==5943 [2025-04-17 14:36:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:36:05 - End Time 2025-04-17 14:36:05 [2025-04-17 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928911', 'tblTempUsageDetail_20' ) start [2025-04-17 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928911', 'tblTempUsageDetail_20' ) end [2025-04-17 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928911', 'tblTempVendorCDR_20' ) start [2025-04-17 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928911', 'tblTempVendorCDR_20' ) end [2025-04-17 14:36:22] Production.INFO: ProcessCDR(1,14928911,1,1,2) [2025-04-17 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928911', 'tblTempUsageDetail_20' ) start [2025-04-17 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928911', 'tblTempUsageDetail_20' ) end [2025-04-17 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:36:27] Production.INFO: ==30581== Releasing lock... [2025-04-17 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:36:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:37:05 [end_date_ymd] => 2025-04-17 14:37:05 [RateCDR] => 1 ) [2025-04-17 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:37:05' and `end` < '2025-04-17 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:37:19] Production.INFO: count ==5946 [2025-04-17 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:37:05 - End Time 2025-04-17 14:37:05 [2025-04-17 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928916', 'tblTempUsageDetail_20' ) start [2025-04-17 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928916', 'tblTempUsageDetail_20' ) end [2025-04-17 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928916', 'tblTempVendorCDR_20' ) start [2025-04-17 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928916', 'tblTempVendorCDR_20' ) end [2025-04-17 14:37:22] Production.INFO: ProcessCDR(1,14928916,1,1,2) [2025-04-17 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928916', 'tblTempUsageDetail_20' ) start [2025-04-17 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928916', 'tblTempUsageDetail_20' ) end [2025-04-17 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:37:26] Production.INFO: ==30651== Releasing lock... [2025-04-17 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:37:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-17 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:38:05 [end_date_ymd] => 2025-04-17 14:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:38:05' and `end` < '2025-04-17 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-17 14:38:19] Production.INFO: count ==5946 [2025-04-17 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:38:05 - End Time 2025-04-17 14:38:05 [2025-04-17 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928921', 'tblTempUsageDetail_20' ) start [2025-04-17 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928921', 'tblTempUsageDetail_20' ) end [2025-04-17 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928921', 'tblTempVendorCDR_20' ) start [2025-04-17 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928921', 'tblTempVendorCDR_20' ) end [2025-04-17 14:38:22] Production.INFO: ProcessCDR(1,14928921,1,1,2) [2025-04-17 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928921', 'tblTempUsageDetail_20' ) start [2025-04-17 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928921', 'tblTempUsageDetail_20' ) end [2025-04-17 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:38:27] Production.INFO: ==30764== Releasing lock... [2025-04-17 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:38:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-17 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:39:05 [end_date_ymd] => 2025-04-17 14:39:05 [RateCDR] => 1 ) [2025-04-17 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:39:05' and `end` < '2025-04-17 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:39:19] Production.INFO: count ==5935 [2025-04-17 14:39:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:39:05 - End Time 2025-04-17 14:39:05 [2025-04-17 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928926', 'tblTempUsageDetail_20' ) start [2025-04-17 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928926', 'tblTempUsageDetail_20' ) end [2025-04-17 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928926', 'tblTempVendorCDR_20' ) start [2025-04-17 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928926', 'tblTempVendorCDR_20' ) end [2025-04-17 14:39:22] Production.INFO: ProcessCDR(1,14928926,1,1,2) [2025-04-17 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928926', 'tblTempUsageDetail_20' ) start [2025-04-17 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928926', 'tblTempUsageDetail_20' ) end [2025-04-17 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:39:27] Production.INFO: ==30839== Releasing lock... [2025-04-17 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:39:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:40:06 [end_date_ymd] => 2025-04-17 14:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 11:40:06' and `end` < '2025-04-17 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-17 14:40:20] Production.INFO: count ==5923 [2025-04-17 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:40:06 - End Time 2025-04-17 14:40:06 [2025-04-17 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928932', 'tblTempUsageDetail_20' ) start [2025-04-17 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928932', 'tblTempUsageDetail_20' ) end [2025-04-17 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928932', 'tblTempVendorCDR_20' ) start [2025-04-17 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928932', 'tblTempVendorCDR_20' ) end [2025-04-17 14:40:23] Production.INFO: ProcessCDR(1,14928932,1,1,2) [2025-04-17 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928932', 'tblTempUsageDetail_20' ) start [2025-04-17 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928932', 'tblTempUsageDetail_20' ) end [2025-04-17 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:40:28] Production.INFO: ==30913== Releasing lock... [2025-04-17 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:40:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:41:05 [end_date_ymd] => 2025-04-17 14:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:41:05' and `end` < '2025-04-17 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-17 14:41:19] Production.INFO: count ==5938 [2025-04-17 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:41:05 - End Time 2025-04-17 14:41:05 [2025-04-17 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928937', 'tblTempUsageDetail_20' ) start [2025-04-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928937', 'tblTempUsageDetail_20' ) end [2025-04-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928937', 'tblTempVendorCDR_20' ) start [2025-04-17 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928937', 'tblTempVendorCDR_20' ) end [2025-04-17 14:41:22] Production.INFO: ProcessCDR(1,14928937,1,1,2) [2025-04-17 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928937', 'tblTempUsageDetail_20' ) start [2025-04-17 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928937', 'tblTempUsageDetail_20' ) end [2025-04-17 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:41:27] Production.INFO: ==30997== Releasing lock... [2025-04-17 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:41:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-17 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:42:05 [end_date_ymd] => 2025-04-17 14:42:05 [RateCDR] => 1 ) [2025-04-17 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:42:05' and `end` < '2025-04-17 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:42:19] Production.INFO: count ==5961 [2025-04-17 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:42:05 - End Time 2025-04-17 14:42:05 [2025-04-17 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928942', 'tblTempUsageDetail_20' ) start [2025-04-17 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928942', 'tblTempUsageDetail_20' ) end [2025-04-17 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928942', 'tblTempVendorCDR_20' ) start [2025-04-17 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928942', 'tblTempVendorCDR_20' ) end [2025-04-17 14:42:22] Production.INFO: ProcessCDR(1,14928942,1,1,2) [2025-04-17 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928942', 'tblTempUsageDetail_20' ) start [2025-04-17 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928942', 'tblTempUsageDetail_20' ) end [2025-04-17 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:42:27] Production.INFO: ==31074== Releasing lock... [2025-04-17 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:42:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-17 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:43:05 [end_date_ymd] => 2025-04-17 14:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:43:05' and `end` < '2025-04-17 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-17 14:43:19] Production.INFO: count ==5984 [2025-04-17 14:43:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:43:05 - End Time 2025-04-17 14:43:05 [2025-04-17 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928947', 'tblTempUsageDetail_20' ) start [2025-04-17 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928947', 'tblTempUsageDetail_20' ) end [2025-04-17 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928947', 'tblTempVendorCDR_20' ) start [2025-04-17 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928947', 'tblTempVendorCDR_20' ) end [2025-04-17 14:43:22] Production.INFO: ProcessCDR(1,14928947,1,1,2) [2025-04-17 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928947', 'tblTempUsageDetail_20' ) start [2025-04-17 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928947', 'tblTempUsageDetail_20' ) end [2025-04-17 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:43:27] Production.INFO: ==31152== Releasing lock... [2025-04-17 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:43:27] Production.INFO: 73 MB #Memory Used# [2025-04-17 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:44:05 [end_date_ymd] => 2025-04-17 14:44:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:44:05' and `end` < '2025-04-17 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-17 14:44:19] Production.INFO: count ==6013 [2025-04-17 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:44:05 - End Time 2025-04-17 14:44:05 [2025-04-17 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928952', 'tblTempUsageDetail_20' ) start [2025-04-17 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928952', 'tblTempUsageDetail_20' ) end [2025-04-17 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928952', 'tblTempVendorCDR_20' ) start [2025-04-17 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928952', 'tblTempVendorCDR_20' ) end [2025-04-17 14:44:22] Production.INFO: ProcessCDR(1,14928952,1,1,2) [2025-04-17 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928952', 'tblTempUsageDetail_20' ) start [2025-04-17 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928952', 'tblTempUsageDetail_20' ) end [2025-04-17 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:44:27] Production.INFO: ==31223== Releasing lock... [2025-04-17 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:44:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-17 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:45:05 [end_date_ymd] => 2025-04-17 14:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:45:05' and `end` < '2025-04-17 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-17 14:45:19] Production.INFO: count ==6031 [2025-04-17 14:45:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:45:05 - End Time 2025-04-17 14:45:05 [2025-04-17 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928957', 'tblTempUsageDetail_20' ) start [2025-04-17 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928957', 'tblTempUsageDetail_20' ) end [2025-04-17 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928957', 'tblTempVendorCDR_20' ) start [2025-04-17 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928957', 'tblTempVendorCDR_20' ) end [2025-04-17 14:45:22] Production.INFO: ProcessCDR(1,14928957,1,1,2) [2025-04-17 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928957', 'tblTempUsageDetail_20' ) start [2025-04-17 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928957', 'tblTempUsageDetail_20' ) end [2025-04-17 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:45:28] Production.INFO: ==31301== Releasing lock... [2025-04-17 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:45:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-17 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:46:04 [end_date_ymd] => 2025-04-17 14:46:04 [RateCDR] => 1 ) [2025-04-17 14:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:46:04' and `end` < '2025-04-17 14:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:46:18] Production.INFO: count ==6023 [2025-04-17 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:46:04 - End Time 2025-04-17 14:46:04 [2025-04-17 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928962', 'tblTempUsageDetail_20' ) start [2025-04-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928962', 'tblTempUsageDetail_20' ) end [2025-04-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928962', 'tblTempVendorCDR_20' ) start [2025-04-17 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928962', 'tblTempVendorCDR_20' ) end [2025-04-17 14:46:21] Production.INFO: ProcessCDR(1,14928962,1,1,2) [2025-04-17 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928962', 'tblTempUsageDetail_20' ) start [2025-04-17 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928962', 'tblTempUsageDetail_20' ) end [2025-04-17 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:46:26] Production.INFO: ==31373== Releasing lock... [2025-04-17 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:46:26] Production.INFO: 73.25 MB #Memory Used# [2025-04-17 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:47:04 [end_date_ymd] => 2025-04-17 14:47:04 [RateCDR] => 1 ) [2025-04-17 14:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:47:04' and `end` < '2025-04-17 14:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:47:18] Production.INFO: count ==6064 [2025-04-17 14:47:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:47:04 - End Time 2025-04-17 14:47:04 [2025-04-17 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928967', 'tblTempUsageDetail_20' ) start [2025-04-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928967', 'tblTempUsageDetail_20' ) end [2025-04-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928967', 'tblTempVendorCDR_20' ) start [2025-04-17 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928967', 'tblTempVendorCDR_20' ) end [2025-04-17 14:47:21] Production.INFO: ProcessCDR(1,14928967,1,1,2) [2025-04-17 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928967', 'tblTempUsageDetail_20' ) start [2025-04-17 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928967', 'tblTempUsageDetail_20' ) end [2025-04-17 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:47:26] Production.INFO: ==31447== Releasing lock... [2025-04-17 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:47:26] Production.INFO: 73.5 MB #Memory Used# [2025-04-17 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:48:05 [end_date_ymd] => 2025-04-17 14:48:05 [RateCDR] => 1 ) [2025-04-17 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:48:05' and `end` < '2025-04-17 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:48:19] Production.INFO: count ==6081 [2025-04-17 14:48:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:48:05 - End Time 2025-04-17 14:48:05 [2025-04-17 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928972', 'tblTempUsageDetail_20' ) start [2025-04-17 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928972', 'tblTempUsageDetail_20' ) end [2025-04-17 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928972', 'tblTempVendorCDR_20' ) start [2025-04-17 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928972', 'tblTempVendorCDR_20' ) end [2025-04-17 14:48:22] Production.INFO: ProcessCDR(1,14928972,1,1,2) [2025-04-17 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928972', 'tblTempUsageDetail_20' ) start [2025-04-17 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928972', 'tblTempUsageDetail_20' ) end [2025-04-17 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:48:27] Production.INFO: ==31524== Releasing lock... [2025-04-17 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:48:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-17 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:49:05 [end_date_ymd] => 2025-04-17 14:49:05 [RateCDR] => 1 ) [2025-04-17 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:49:05' and `end` < '2025-04-17 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:49:19] Production.INFO: count ==6083 [2025-04-17 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:49:05 - End Time 2025-04-17 14:49:05 [2025-04-17 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928977', 'tblTempUsageDetail_20' ) start [2025-04-17 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928977', 'tblTempUsageDetail_20' ) end [2025-04-17 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928977', 'tblTempVendorCDR_20' ) start [2025-04-17 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928977', 'tblTempVendorCDR_20' ) end [2025-04-17 14:49:22] Production.INFO: ProcessCDR(1,14928977,1,1,2) [2025-04-17 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928977', 'tblTempUsageDetail_20' ) start [2025-04-17 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928977', 'tblTempUsageDetail_20' ) end [2025-04-17 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:49:27] Production.INFO: ==31594== Releasing lock... [2025-04-17 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:49:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-17 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:50:06 [end_date_ymd] => 2025-04-17 14:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 11:50:06' and `end` < '2025-04-17 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-17 14:50:20] Production.INFO: count ==6084 [2025-04-17 14:50:23] Production.ERROR: pbx CDR StartTime 2025-04-17 11:50:06 - End Time 2025-04-17 14:50:06 [2025-04-17 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928983', 'tblTempUsageDetail_20' ) start [2025-04-17 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928983', 'tblTempUsageDetail_20' ) end [2025-04-17 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928983', 'tblTempVendorCDR_20' ) start [2025-04-17 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928983', 'tblTempVendorCDR_20' ) end [2025-04-17 14:50:23] Production.INFO: ProcessCDR(1,14928983,1,1,2) [2025-04-17 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928983', 'tblTempUsageDetail_20' ) start [2025-04-17 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928983', 'tblTempUsageDetail_20' ) end [2025-04-17 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:50:28] Production.INFO: ==31672== Releasing lock... [2025-04-17 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:50:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-17 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:51:04 [end_date_ymd] => 2025-04-17 14:51:04 [RateCDR] => 1 ) [2025-04-17 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:51:04' and `end` < '2025-04-17 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:51:18] Production.INFO: count ==6103 [2025-04-17 14:51:20] Production.ERROR: pbx CDR StartTime 2025-04-17 11:51:04 - End Time 2025-04-17 14:51:04 [2025-04-17 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928988', 'tblTempUsageDetail_20' ) start [2025-04-17 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928988', 'tblTempUsageDetail_20' ) end [2025-04-17 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928988', 'tblTempVendorCDR_20' ) start [2025-04-17 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928988', 'tblTempVendorCDR_20' ) end [2025-04-17 14:51:21] Production.INFO: ProcessCDR(1,14928988,1,1,2) [2025-04-17 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928988', 'tblTempUsageDetail_20' ) start [2025-04-17 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928988', 'tblTempUsageDetail_20' ) end [2025-04-17 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:51:26] Production.INFO: ==31753== Releasing lock... [2025-04-17 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:51:26] Production.INFO: 73.75 MB #Memory Used# [2025-04-17 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:52:05 [end_date_ymd] => 2025-04-17 14:52:05 [RateCDR] => 1 ) [2025-04-17 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:52:05' and `end` < '2025-04-17 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:52:19] Production.INFO: count ==6133 [2025-04-17 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:52:05 - End Time 2025-04-17 14:52:05 [2025-04-17 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928993', 'tblTempUsageDetail_20' ) start [2025-04-17 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928993', 'tblTempUsageDetail_20' ) end [2025-04-17 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928993', 'tblTempVendorCDR_20' ) start [2025-04-17 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928993', 'tblTempVendorCDR_20' ) end [2025-04-17 14:52:22] Production.INFO: ProcessCDR(1,14928993,1,1,2) [2025-04-17 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928993', 'tblTempUsageDetail_20' ) start [2025-04-17 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928993', 'tblTempUsageDetail_20' ) end [2025-04-17 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:52:27] Production.INFO: ==31826== Releasing lock... [2025-04-17 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:52:27] Production.INFO: 74 MB #Memory Used# [2025-04-17 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:53:05 [end_date_ymd] => 2025-04-17 14:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:53:05' and `end` < '2025-04-17 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-17 14:53:20] Production.INFO: count ==6160 [2025-04-17 14:53:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:53:05 - End Time 2025-04-17 14:53:05 [2025-04-17 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928998', 'tblTempUsageDetail_20' ) start [2025-04-17 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14928998', 'tblTempUsageDetail_20' ) end [2025-04-17 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928998', 'tblTempVendorCDR_20' ) start [2025-04-17 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14928998', 'tblTempVendorCDR_20' ) end [2025-04-17 14:53:23] Production.INFO: ProcessCDR(1,14928998,1,1,2) [2025-04-17 14:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14928998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14928998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14928998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14928998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928998', 'tblTempUsageDetail_20' ) start [2025-04-17 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14928998', 'tblTempUsageDetail_20' ) end [2025-04-17 14:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:53:28] Production.INFO: ==31902== Releasing lock... [2025-04-17 14:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:53:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:54:05 [end_date_ymd] => 2025-04-17 14:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:54:05' and `end` < '2025-04-17 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-17 14:54:19] Production.INFO: count ==6161 [2025-04-17 14:54:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:54:05 - End Time 2025-04-17 14:54:05 [2025-04-17 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929003', 'tblTempUsageDetail_20' ) start [2025-04-17 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929003', 'tblTempUsageDetail_20' ) end [2025-04-17 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929003', 'tblTempVendorCDR_20' ) start [2025-04-17 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929003', 'tblTempVendorCDR_20' ) end [2025-04-17 14:54:22] Production.INFO: ProcessCDR(1,14929003,1,1,2) [2025-04-17 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929003', 'tblTempUsageDetail_20' ) start [2025-04-17 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929003', 'tblTempUsageDetail_20' ) end [2025-04-17 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:54:27] Production.INFO: ==32020== Releasing lock... [2025-04-17 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:54:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:55:05 [end_date_ymd] => 2025-04-17 14:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:55:05' and `end` < '2025-04-17 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-17 14:55:19] Production.INFO: count ==6174 [2025-04-17 14:55:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:55:05 - End Time 2025-04-17 14:55:05 [2025-04-17 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929008', 'tblTempUsageDetail_20' ) start [2025-04-17 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929008', 'tblTempUsageDetail_20' ) end [2025-04-17 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929008', 'tblTempVendorCDR_20' ) start [2025-04-17 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929008', 'tblTempVendorCDR_20' ) end [2025-04-17 14:55:23] Production.INFO: ProcessCDR(1,14929008,1,1,2) [2025-04-17 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929008', 'tblTempUsageDetail_20' ) start [2025-04-17 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929008', 'tblTempUsageDetail_20' ) end [2025-04-17 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:55:28] Production.INFO: ==32100== Releasing lock... [2025-04-17 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:55:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:56:04 [end_date_ymd] => 2025-04-17 14:56:04 [RateCDR] => 1 ) [2025-04-17 14:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:56:04' and `end` < '2025-04-17 14:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:56:18] Production.INFO: count ==6169 [2025-04-17 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:56:04 - End Time 2025-04-17 14:56:04 [2025-04-17 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929013', 'tblTempUsageDetail_20' ) start [2025-04-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929013', 'tblTempUsageDetail_20' ) end [2025-04-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929013', 'tblTempVendorCDR_20' ) start [2025-04-17 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929013', 'tblTempVendorCDR_20' ) end [2025-04-17 14:56:21] Production.INFO: ProcessCDR(1,14929013,1,1,2) [2025-04-17 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929013', 'tblTempUsageDetail_20' ) start [2025-04-17 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929013', 'tblTempUsageDetail_20' ) end [2025-04-17 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:56:26] Production.INFO: ==32172== Releasing lock... [2025-04-17 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:56:26] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:57:05 [end_date_ymd] => 2025-04-17 14:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:57:05' and `end` < '2025-04-17 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-17 14:57:19] Production.INFO: count ==6168 [2025-04-17 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-17 11:57:05 - End Time 2025-04-17 14:57:05 [2025-04-17 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929018', 'tblTempUsageDetail_20' ) start [2025-04-17 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929018', 'tblTempUsageDetail_20' ) end [2025-04-17 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929018', 'tblTempVendorCDR_20' ) start [2025-04-17 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929018', 'tblTempVendorCDR_20' ) end [2025-04-17 14:57:22] Production.INFO: ProcessCDR(1,14929018,1,1,2) [2025-04-17 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929018', 'tblTempUsageDetail_20' ) start [2025-04-17 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929018', 'tblTempUsageDetail_20' ) end [2025-04-17 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:57:27] Production.INFO: ==32247== Releasing lock... [2025-04-17 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:57:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:58:05 [end_date_ymd] => 2025-04-17 14:58:05 [RateCDR] => 1 ) [2025-04-17 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 11:58:05' and `end` < '2025-04-17 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 14:58:19] Production.INFO: count ==6165 [2025-04-17 14:58:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:58:05 - End Time 2025-04-17 14:58:05 [2025-04-17 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929023', 'tblTempUsageDetail_20' ) start [2025-04-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929023', 'tblTempUsageDetail_20' ) end [2025-04-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929023', 'tblTempVendorCDR_20' ) start [2025-04-17 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929023', 'tblTempVendorCDR_20' ) end [2025-04-17 14:58:22] Production.INFO: ProcessCDR(1,14929023,1,1,2) [2025-04-17 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929023', 'tblTempUsageDetail_20' ) start [2025-04-17 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929023', 'tblTempUsageDetail_20' ) end [2025-04-17 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:58:27] Production.INFO: ==32319== Releasing lock... [2025-04-17 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:58:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 11:59:05 [end_date_ymd] => 2025-04-17 14:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 11:59:05' and `end` < '2025-04-17 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-17 14:59:19] Production.INFO: count ==6162 [2025-04-17 14:59:22] Production.ERROR: pbx CDR StartTime 2025-04-17 11:59:05 - End Time 2025-04-17 14:59:05 [2025-04-17 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929028', 'tblTempUsageDetail_20' ) start [2025-04-17 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929028', 'tblTempUsageDetail_20' ) end [2025-04-17 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929028', 'tblTempVendorCDR_20' ) start [2025-04-17 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929028', 'tblTempVendorCDR_20' ) end [2025-04-17 14:59:22] Production.INFO: ProcessCDR(1,14929028,1,1,2) [2025-04-17 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929028', 'tblTempUsageDetail_20' ) start [2025-04-17 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929028', 'tblTempUsageDetail_20' ) end [2025-04-17 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 14:59:28] Production.INFO: ==32397== Releasing lock... [2025-04-17 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 14:59:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:00:06 [end_date_ymd] => 2025-04-17 15:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:00:06' and `end` < '2025-04-17 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-17 15:00:20] Production.INFO: count ==6156 [2025-04-17 15:00:23] Production.ERROR: pbx CDR StartTime 2025-04-17 12:00:06 - End Time 2025-04-17 15:00:06 [2025-04-17 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929034', 'tblTempUsageDetail_20' ) start [2025-04-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929034', 'tblTempUsageDetail_20' ) end [2025-04-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929034', 'tblTempVendorCDR_20' ) start [2025-04-17 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929034', 'tblTempVendorCDR_20' ) end [2025-04-17 15:00:24] Production.INFO: ProcessCDR(1,14929034,1,1,2) [2025-04-17 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929034', 'tblTempUsageDetail_20' ) start [2025-04-17 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929034', 'tblTempUsageDetail_20' ) end [2025-04-17 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:00:29] Production.INFO: ==32482== Releasing lock... [2025-04-17 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:00:29] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:01:05 [end_date_ymd] => 2025-04-17 15:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:01:05' and `end` < '2025-04-17 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-17 15:01:19] Production.INFO: count ==6187 [2025-04-17 15:01:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:01:05 - End Time 2025-04-17 15:01:05 [2025-04-17 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929039', 'tblTempUsageDetail_20' ) start [2025-04-17 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929039', 'tblTempUsageDetail_20' ) end [2025-04-17 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929039', 'tblTempVendorCDR_20' ) start [2025-04-17 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929039', 'tblTempVendorCDR_20' ) end [2025-04-17 15:01:23] Production.INFO: ProcessCDR(1,14929039,1,1,2) [2025-04-17 15:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929039', 'tblTempUsageDetail_20' ) start [2025-04-17 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929039', 'tblTempUsageDetail_20' ) end [2025-04-17 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:01:28] Production.INFO: ==32572== Releasing lock... [2025-04-17 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:01:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-17 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:02:06 [end_date_ymd] => 2025-04-17 15:02:06 [RateCDR] => 1 ) [2025-04-17 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:02:06' and `end` < '2025-04-17 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:02:19] Production.INFO: count ==6176 [2025-04-17 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:02:06 - End Time 2025-04-17 15:02:06 [2025-04-17 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929044', 'tblTempUsageDetail_20' ) start [2025-04-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929044', 'tblTempUsageDetail_20' ) end [2025-04-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929044', 'tblTempVendorCDR_20' ) start [2025-04-17 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929044', 'tblTempVendorCDR_20' ) end [2025-04-17 15:02:23] Production.INFO: ProcessCDR(1,14929044,1,1,2) [2025-04-17 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929044', 'tblTempUsageDetail_20' ) start [2025-04-17 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929044', 'tblTempUsageDetail_20' ) end [2025-04-17 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:02:28] Production.INFO: ==32723== Releasing lock... [2025-04-17 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:02:28] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:03:05 [end_date_ymd] => 2025-04-17 15:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:03:05' and `end` < '2025-04-17 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-17 15:03:19] Production.INFO: count ==6160 [2025-04-17 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:03:05 - End Time 2025-04-17 15:03:05 [2025-04-17 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929049', 'tblTempUsageDetail_20' ) start [2025-04-17 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929049', 'tblTempUsageDetail_20' ) end [2025-04-17 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929049', 'tblTempVendorCDR_20' ) start [2025-04-17 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929049', 'tblTempVendorCDR_20' ) end [2025-04-17 15:03:22] Production.INFO: ProcessCDR(1,14929049,1,1,2) [2025-04-17 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929049', 'tblTempUsageDetail_20' ) start [2025-04-17 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929049', 'tblTempUsageDetail_20' ) end [2025-04-17 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:03:27] Production.INFO: ==354== Releasing lock... [2025-04-17 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:03:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:04:06 [end_date_ymd] => 2025-04-17 15:04:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:04:06' and `end` < '2025-04-17 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-17 15:04:20] Production.INFO: count ==6144 [2025-04-17 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:04:06 - End Time 2025-04-17 15:04:06 [2025-04-17 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929054', 'tblTempUsageDetail_20' ) start [2025-04-17 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929054', 'tblTempUsageDetail_20' ) end [2025-04-17 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929054', 'tblTempVendorCDR_20' ) start [2025-04-17 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929054', 'tblTempVendorCDR_20' ) end [2025-04-17 15:04:23] Production.INFO: ProcessCDR(1,14929054,1,1,2) [2025-04-17 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929054', 'tblTempUsageDetail_20' ) start [2025-04-17 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929054', 'tblTempUsageDetail_20' ) end [2025-04-17 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:04:27] Production.INFO: ==429== Releasing lock... [2025-04-17 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:04:27] Production.INFO: 74 MB #Memory Used# [2025-04-17 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:05:05 [end_date_ymd] => 2025-04-17 15:05:05 [RateCDR] => 1 ) [2025-04-17 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:05:05' and `end` < '2025-04-17 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:05:19] Production.INFO: count ==6132 [2025-04-17 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:05:05 - End Time 2025-04-17 15:05:05 [2025-04-17 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929059', 'tblTempUsageDetail_20' ) start [2025-04-17 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929059', 'tblTempUsageDetail_20' ) end [2025-04-17 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929059', 'tblTempVendorCDR_20' ) start [2025-04-17 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929059', 'tblTempVendorCDR_20' ) end [2025-04-17 15:05:22] Production.INFO: ProcessCDR(1,14929059,1,1,2) [2025-04-17 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929059', 'tblTempUsageDetail_20' ) start [2025-04-17 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929059', 'tblTempUsageDetail_20' ) end [2025-04-17 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:05:27] Production.INFO: ==584== Releasing lock... [2025-04-17 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:05:27] Production.INFO: 74 MB #Memory Used# [2025-04-17 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:06:05 [end_date_ymd] => 2025-04-17 15:06:05 [RateCDR] => 1 ) [2025-04-17 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:06:05' and `end` < '2025-04-17 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:06:19] Production.INFO: count ==6141 [2025-04-17 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:06:05 - End Time 2025-04-17 15:06:05 [2025-04-17 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929064', 'tblTempUsageDetail_20' ) start [2025-04-17 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929064', 'tblTempUsageDetail_20' ) end [2025-04-17 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929064', 'tblTempVendorCDR_20' ) start [2025-04-17 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929064', 'tblTempVendorCDR_20' ) end [2025-04-17 15:06:22] Production.INFO: ProcessCDR(1,14929064,1,1,2) [2025-04-17 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929064', 'tblTempUsageDetail_20' ) start [2025-04-17 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929064', 'tblTempUsageDetail_20' ) end [2025-04-17 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:06:28] Production.INFO: ==683== Releasing lock... [2025-04-17 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:06:28] Production.INFO: 74 MB #Memory Used# [2025-04-17 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:07:04 [end_date_ymd] => 2025-04-17 15:07:04 [RateCDR] => 1 ) [2025-04-17 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:07:04' and `end` < '2025-04-17 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:07:19] Production.INFO: count ==6146 [2025-04-17 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:07:04 - End Time 2025-04-17 15:07:04 [2025-04-17 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929069', 'tblTempUsageDetail_20' ) start [2025-04-17 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929069', 'tblTempUsageDetail_20' ) end [2025-04-17 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929069', 'tblTempVendorCDR_20' ) start [2025-04-17 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929069', 'tblTempVendorCDR_20' ) end [2025-04-17 15:07:22] Production.INFO: ProcessCDR(1,14929069,1,1,2) [2025-04-17 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929069', 'tblTempUsageDetail_20' ) start [2025-04-17 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929069', 'tblTempUsageDetail_20' ) end [2025-04-17 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:07:27] Production.INFO: ==774== Releasing lock... [2025-04-17 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:07:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-17 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:08:05 [end_date_ymd] => 2025-04-17 15:08:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:08:05' and `end` < '2025-04-17 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-17 15:08:19] Production.INFO: count ==6136 [2025-04-17 15:08:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:08:05 - End Time 2025-04-17 15:08:05 [2025-04-17 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929074', 'tblTempUsageDetail_20' ) start [2025-04-17 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929074', 'tblTempUsageDetail_20' ) end [2025-04-17 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929074', 'tblTempVendorCDR_20' ) start [2025-04-17 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929074', 'tblTempVendorCDR_20' ) end [2025-04-17 15:08:22] Production.INFO: ProcessCDR(1,14929074,1,1,2) [2025-04-17 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929074', 'tblTempUsageDetail_20' ) start [2025-04-17 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929074', 'tblTempUsageDetail_20' ) end [2025-04-17 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:08:27] Production.INFO: ==925== Releasing lock... [2025-04-17 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:08:27] Production.INFO: 74 MB #Memory Used# [2025-04-17 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:09:05 [end_date_ymd] => 2025-04-17 15:09:05 [RateCDR] => 1 ) [2025-04-17 15: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-17 12:09:05' and `end` < '2025-04-17 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-17 15:09:19] Production.INFO: count ==6115 [2025-04-17 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:09:05 - End Time 2025-04-17 15:09:05 [2025-04-17 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929079', 'tblTempUsageDetail_20' ) start [2025-04-17 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929079', 'tblTempUsageDetail_20' ) end [2025-04-17 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929079', 'tblTempVendorCDR_20' ) start [2025-04-17 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929079', 'tblTempVendorCDR_20' ) end [2025-04-17 15:09:23] Production.INFO: ProcessCDR(1,14929079,1,1,2) [2025-04-17 15:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929079', 'tblTempUsageDetail_20' ) start [2025-04-17 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929079', 'tblTempUsageDetail_20' ) end [2025-04-17 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:09:28] Production.INFO: ==1048== Releasing lock... [2025-04-17 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:09:28] Production.INFO: 74 MB #Memory Used# [2025-04-17 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:10:05 [end_date_ymd] => 2025-04-17 15:10:05 [RateCDR] => 1 ) [2025-04-17 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:10:05' and `end` < '2025-04-17 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:10:19] Production.INFO: count ==6088 [2025-04-17 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:10:05 - End Time 2025-04-17 15:10:05 [2025-04-17 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929084', 'tblTempUsageDetail_20' ) start [2025-04-17 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929084', 'tblTempUsageDetail_20' ) end [2025-04-17 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929084', 'tblTempVendorCDR_20' ) start [2025-04-17 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929084', 'tblTempVendorCDR_20' ) end [2025-04-17 15:10:22] Production.INFO: ProcessCDR(1,14929084,1,1,2) [2025-04-17 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929084', 'tblTempUsageDetail_20' ) start [2025-04-17 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929084', 'tblTempUsageDetail_20' ) end [2025-04-17 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:10:28] Production.INFO: ==1124== Releasing lock... [2025-04-17 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:10:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-17 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:11:06 [end_date_ymd] => 2025-04-17 15:11:06 [RateCDR] => 1 ) [2025-04-17 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:11:06' and `end` < '2025-04-17 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:11:20] Production.INFO: count ==6033 [2025-04-17 15:11:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:11:06 - End Time 2025-04-17 15:11:06 [2025-04-17 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929090', 'tblTempUsageDetail_20' ) start [2025-04-17 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929090', 'tblTempUsageDetail_20' ) end [2025-04-17 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929090', 'tblTempVendorCDR_20' ) start [2025-04-17 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929090', 'tblTempVendorCDR_20' ) end [2025-04-17 15:11:23] Production.INFO: ProcessCDR(1,14929090,1,1,2) [2025-04-17 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929090', 'tblTempUsageDetail_20' ) start [2025-04-17 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929090', 'tblTempUsageDetail_20' ) end [2025-04-17 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:11:28] Production.INFO: ==1209== Releasing lock... [2025-04-17 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:11:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-17 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:12:05 [end_date_ymd] => 2025-04-17 15:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:12:05' and `end` < '2025-04-17 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-17 15:12:19] Production.INFO: count ==6025 [2025-04-17 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:12:05 - End Time 2025-04-17 15:12:05 [2025-04-17 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929095', 'tblTempUsageDetail_20' ) start [2025-04-17 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929095', 'tblTempUsageDetail_20' ) end [2025-04-17 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929095', 'tblTempVendorCDR_20' ) start [2025-04-17 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929095', 'tblTempVendorCDR_20' ) end [2025-04-17 15:12:22] Production.INFO: ProcessCDR(1,14929095,1,1,2) [2025-04-17 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929095', 'tblTempUsageDetail_20' ) start [2025-04-17 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929095', 'tblTempUsageDetail_20' ) end [2025-04-17 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:12:27] Production.INFO: ==1376== Releasing lock... [2025-04-17 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:12:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-17 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:13:05 [end_date_ymd] => 2025-04-17 15:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:13:05' and `end` < '2025-04-17 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-17 15:13:19] Production.INFO: count ==5995 [2025-04-17 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:13:05 - End Time 2025-04-17 15:13:05 [2025-04-17 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929100', 'tblTempUsageDetail_20' ) start [2025-04-17 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929100', 'tblTempUsageDetail_20' ) end [2025-04-17 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929100', 'tblTempVendorCDR_20' ) start [2025-04-17 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929100', 'tblTempVendorCDR_20' ) end [2025-04-17 15:13:22] Production.INFO: ProcessCDR(1,14929100,1,1,2) [2025-04-17 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929100', 'tblTempUsageDetail_20' ) start [2025-04-17 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929100', 'tblTempUsageDetail_20' ) end [2025-04-17 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:13:27] Production.INFO: ==1452== Releasing lock... [2025-04-17 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:13:27] Production.INFO: 73 MB #Memory Used# [2025-04-17 15:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:14:04 [end_date_ymd] => 2025-04-17 15:14:04 [RateCDR] => 1 ) [2025-04-17 15:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:14:04' and `end` < '2025-04-17 15:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:14:18] Production.INFO: count ==6007 [2025-04-17 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:14:04 - End Time 2025-04-17 15:14:04 [2025-04-17 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929105', 'tblTempUsageDetail_20' ) start [2025-04-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929105', 'tblTempUsageDetail_20' ) end [2025-04-17 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929105', 'tblTempVendorCDR_20' ) start [2025-04-17 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929105', 'tblTempVendorCDR_20' ) end [2025-04-17 15:14:22] Production.INFO: ProcessCDR(1,14929105,1,1,2) [2025-04-17 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929105', 'tblTempUsageDetail_20' ) start [2025-04-17 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929105', 'tblTempUsageDetail_20' ) end [2025-04-17 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:14:27] Production.INFO: ==1561== Releasing lock... [2025-04-17 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:14:27] Production.INFO: 73 MB #Memory Used# [2025-04-17 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:15:05 [end_date_ymd] => 2025-04-17 15:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:15:05' and `end` < '2025-04-17 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-17 15:15:19] Production.INFO: count ==6011 [2025-04-17 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:15:05 - End Time 2025-04-17 15:15:05 [2025-04-17 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929110', 'tblTempUsageDetail_20' ) start [2025-04-17 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929110', 'tblTempUsageDetail_20' ) end [2025-04-17 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929110', 'tblTempVendorCDR_20' ) start [2025-04-17 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929110', 'tblTempVendorCDR_20' ) end [2025-04-17 15:15:22] Production.INFO: ProcessCDR(1,14929110,1,1,2) [2025-04-17 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929110', 'tblTempUsageDetail_20' ) start [2025-04-17 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929110', 'tblTempUsageDetail_20' ) end [2025-04-17 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:15:27] Production.INFO: ==1719== Releasing lock... [2025-04-17 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:15:27] Production.INFO: 73 MB #Memory Used# [2025-04-17 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:16:06 [end_date_ymd] => 2025-04-17 15:16:06 [RateCDR] => 1 ) [2025-04-17 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:16:06' and `end` < '2025-04-17 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:16:20] Production.INFO: count ==6003 [2025-04-17 15:16:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:16:06 - End Time 2025-04-17 15:16:06 [2025-04-17 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929115', 'tblTempUsageDetail_20' ) start [2025-04-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929115', 'tblTempUsageDetail_20' ) end [2025-04-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929115', 'tblTempVendorCDR_20' ) start [2025-04-17 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929115', 'tblTempVendorCDR_20' ) end [2025-04-17 15:16:23] Production.INFO: ProcessCDR(1,14929115,1,1,2) [2025-04-17 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929115', 'tblTempUsageDetail_20' ) start [2025-04-17 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929115', 'tblTempUsageDetail_20' ) end [2025-04-17 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:16:28] Production.INFO: ==1794== Releasing lock... [2025-04-17 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:16:28] Production.INFO: 73 MB #Memory Used# [2025-04-17 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:17:05 [end_date_ymd] => 2025-04-17 15:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:17:05' and `end` < '2025-04-17 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-17 15:17:19] Production.INFO: count ==5995 [2025-04-17 15:17:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:17:05 - End Time 2025-04-17 15:17:05 [2025-04-17 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929120', 'tblTempUsageDetail_20' ) start [2025-04-17 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929120', 'tblTempUsageDetail_20' ) end [2025-04-17 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929120', 'tblTempVendorCDR_20' ) start [2025-04-17 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929120', 'tblTempVendorCDR_20' ) end [2025-04-17 15:17:22] Production.INFO: ProcessCDR(1,14929120,1,1,2) [2025-04-17 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929120', 'tblTempUsageDetail_20' ) start [2025-04-17 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929120', 'tblTempUsageDetail_20' ) end [2025-04-17 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:17:27] Production.INFO: ==1872== Releasing lock... [2025-04-17 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:17:27] Production.INFO: 73 MB #Memory Used# [2025-04-17 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:18:05 [end_date_ymd] => 2025-04-17 15:18:05 [RateCDR] => 1 ) [2025-04-17 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:18:05' and `end` < '2025-04-17 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:18:19] Production.INFO: count ==5940 [2025-04-17 15:18:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:18:05 - End Time 2025-04-17 15:18:05 [2025-04-17 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929125', 'tblTempUsageDetail_20' ) start [2025-04-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929125', 'tblTempUsageDetail_20' ) end [2025-04-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929125', 'tblTempVendorCDR_20' ) start [2025-04-17 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929125', 'tblTempVendorCDR_20' ) end [2025-04-17 15:18:22] Production.INFO: ProcessCDR(1,14929125,1,1,2) [2025-04-17 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929125', 'tblTempUsageDetail_20' ) start [2025-04-17 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929125', 'tblTempUsageDetail_20' ) end [2025-04-17 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:18:27] Production.INFO: ==1947== Releasing lock... [2025-04-17 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:18:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-17 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:19:05 [end_date_ymd] => 2025-04-17 15:19:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:19:05' and `end` < '2025-04-17 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-17 15:19:19] Production.INFO: count ==5891 [2025-04-17 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:19:05 - End Time 2025-04-17 15:19:05 [2025-04-17 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929130', 'tblTempUsageDetail_20' ) start [2025-04-17 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929130', 'tblTempUsageDetail_20' ) end [2025-04-17 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929130', 'tblTempVendorCDR_20' ) start [2025-04-17 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929130', 'tblTempVendorCDR_20' ) end [2025-04-17 15:19:22] Production.INFO: ProcessCDR(1,14929130,1,1,2) [2025-04-17 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929130', 'tblTempUsageDetail_20' ) start [2025-04-17 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929130', 'tblTempUsageDetail_20' ) end [2025-04-17 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:19:27] Production.INFO: ==2023== Releasing lock... [2025-04-17 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:19:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-17 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:20:06 [end_date_ymd] => 2025-04-17 15:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:20:06' and `end` < '2025-04-17 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-17 15:20:20] Production.INFO: count ==5831 [2025-04-17 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:20:06 - End Time 2025-04-17 15:20:06 [2025-04-17 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929135', 'tblTempUsageDetail_20' ) start [2025-04-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929135', 'tblTempUsageDetail_20' ) end [2025-04-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929135', 'tblTempVendorCDR_20' ) start [2025-04-17 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929135', 'tblTempVendorCDR_20' ) end [2025-04-17 15:20:23] Production.INFO: ProcessCDR(1,14929135,1,1,2) [2025-04-17 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929135', 'tblTempUsageDetail_20' ) start [2025-04-17 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929135', 'tblTempUsageDetail_20' ) end [2025-04-17 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:20:28] Production.INFO: ==2100== Releasing lock... [2025-04-17 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:20:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-17 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:21:04 [end_date_ymd] => 2025-04-17 15:21:04 [RateCDR] => 1 ) [2025-04-17 15:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:21:04' and `end` < '2025-04-17 15:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:21:18] Production.INFO: count ==5787 [2025-04-17 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:21:04 - End Time 2025-04-17 15:21:04 [2025-04-17 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929141', 'tblTempUsageDetail_20' ) start [2025-04-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929141', 'tblTempUsageDetail_20' ) end [2025-04-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929141', 'tblTempVendorCDR_20' ) start [2025-04-17 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929141', 'tblTempVendorCDR_20' ) end [2025-04-17 15:21:21] Production.INFO: ProcessCDR(1,14929141,1,1,2) [2025-04-17 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929141', 'tblTempUsageDetail_20' ) start [2025-04-17 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929141', 'tblTempUsageDetail_20' ) end [2025-04-17 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:21:27] Production.INFO: ==2175== Releasing lock... [2025-04-17 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:21:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:22:05 [end_date_ymd] => 2025-04-17 15:22:05 [RateCDR] => 1 ) [2025-04-17 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:22:05' and `end` < '2025-04-17 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:22:19] Production.INFO: count ==5767 [2025-04-17 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:22:05 - End Time 2025-04-17 15:22:05 [2025-04-17 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929146', 'tblTempUsageDetail_20' ) start [2025-04-17 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929146', 'tblTempUsageDetail_20' ) end [2025-04-17 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929146', 'tblTempVendorCDR_20' ) start [2025-04-17 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929146', 'tblTempVendorCDR_20' ) end [2025-04-17 15:22:22] Production.INFO: ProcessCDR(1,14929146,1,1,2) [2025-04-17 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929146', 'tblTempUsageDetail_20' ) start [2025-04-17 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929146', 'tblTempUsageDetail_20' ) end [2025-04-17 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:22:27] Production.INFO: ==2250== Releasing lock... [2025-04-17 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:22:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:23:05 [end_date_ymd] => 2025-04-17 15:23:05 [RateCDR] => 1 ) [2025-04-17 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:23:05' and `end` < '2025-04-17 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:23:19] Production.INFO: count ==5749 [2025-04-17 15:23:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:23:05 - End Time 2025-04-17 15:23:05 [2025-04-17 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929151', 'tblTempUsageDetail_20' ) start [2025-04-17 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929151', 'tblTempUsageDetail_20' ) end [2025-04-17 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929151', 'tblTempVendorCDR_20' ) start [2025-04-17 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929151', 'tblTempVendorCDR_20' ) end [2025-04-17 15:23:22] Production.INFO: ProcessCDR(1,14929151,1,1,2) [2025-04-17 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929151', 'tblTempUsageDetail_20' ) start [2025-04-17 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929151', 'tblTempUsageDetail_20' ) end [2025-04-17 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:23:27] Production.INFO: ==2331== Releasing lock... [2025-04-17 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:23:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:24:05 [end_date_ymd] => 2025-04-17 15:24:05 [RateCDR] => 1 ) [2025-04-17 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:24:05' and `end` < '2025-04-17 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:24:19] Production.INFO: count ==5724 [2025-04-17 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:24:05 - End Time 2025-04-17 15:24:05 [2025-04-17 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929156', 'tblTempUsageDetail_20' ) start [2025-04-17 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929156', 'tblTempUsageDetail_20' ) end [2025-04-17 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929156', 'tblTempVendorCDR_20' ) start [2025-04-17 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929156', 'tblTempVendorCDR_20' ) end [2025-04-17 15:24:22] Production.INFO: ProcessCDR(1,14929156,1,1,2) [2025-04-17 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929156', 'tblTempUsageDetail_20' ) start [2025-04-17 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929156', 'tblTempUsageDetail_20' ) end [2025-04-17 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:24:28] Production.INFO: ==2407== Releasing lock... [2025-04-17 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:24:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:25:05 [end_date_ymd] => 2025-04-17 15:25:05 [RateCDR] => 1 ) [2025-04-17 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:25:05' and `end` < '2025-04-17 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-17 15:25:19] Production.INFO: count ==5672 [2025-04-17 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:25:05 - End Time 2025-04-17 15:25:05 [2025-04-17 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929161', 'tblTempUsageDetail_20' ) start [2025-04-17 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929161', 'tblTempUsageDetail_20' ) end [2025-04-17 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929161', 'tblTempVendorCDR_20' ) start [2025-04-17 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929161', 'tblTempVendorCDR_20' ) end [2025-04-17 15:25:22] Production.INFO: ProcessCDR(1,14929161,1,1,2) [2025-04-17 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929161', 'tblTempUsageDetail_20' ) start [2025-04-17 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929161', 'tblTempUsageDetail_20' ) end [2025-04-17 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:25:27] Production.INFO: ==2519== Releasing lock... [2025-04-17 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:25:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:26:05 [end_date_ymd] => 2025-04-17 15:26:05 [RateCDR] => 1 ) [2025-04-17 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:26:05' and `end` < '2025-04-17 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:26:19] Production.INFO: count ==5589 [2025-04-17 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:26:05 - End Time 2025-04-17 15:26:05 [2025-04-17 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929166', 'tblTempUsageDetail_20' ) start [2025-04-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929166', 'tblTempUsageDetail_20' ) end [2025-04-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929166', 'tblTempVendorCDR_20' ) start [2025-04-17 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929166', 'tblTempVendorCDR_20' ) end [2025-04-17 15:26:22] Production.INFO: ProcessCDR(1,14929166,1,1,2) [2025-04-17 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929166', 'tblTempUsageDetail_20' ) start [2025-04-17 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929166', 'tblTempUsageDetail_20' ) end [2025-04-17 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:26:27] Production.INFO: ==2595== Releasing lock... [2025-04-17 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:26:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:27:06 [end_date_ymd] => 2025-04-17 15:27:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:27:06' and `end` < '2025-04-17 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-17 15:27:20] Production.INFO: count ==5510 [2025-04-17 15:27:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:27:06 - End Time 2025-04-17 15:27:06 [2025-04-17 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929171', 'tblTempUsageDetail_20' ) start [2025-04-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929171', 'tblTempUsageDetail_20' ) end [2025-04-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929171', 'tblTempVendorCDR_20' ) start [2025-04-17 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929171', 'tblTempVendorCDR_20' ) end [2025-04-17 15:27:22] Production.INFO: ProcessCDR(1,14929171,1,1,2) [2025-04-17 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929171', 'tblTempUsageDetail_20' ) start [2025-04-17 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929171', 'tblTempUsageDetail_20' ) end [2025-04-17 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:27:27] Production.INFO: ==2667== Releasing lock... [2025-04-17 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:27:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:28:05 [end_date_ymd] => 2025-04-17 15:28:05 [RateCDR] => 1 ) [2025-04-17 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:28:05' and `end` < '2025-04-17 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:28:19] Production.INFO: count ==5468 [2025-04-17 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:28:05 - End Time 2025-04-17 15:28:05 [2025-04-17 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929176', 'tblTempUsageDetail_20' ) start [2025-04-17 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929176', 'tblTempUsageDetail_20' ) end [2025-04-17 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929176', 'tblTempVendorCDR_20' ) start [2025-04-17 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929176', 'tblTempVendorCDR_20' ) end [2025-04-17 15:28:22] Production.INFO: ProcessCDR(1,14929176,1,1,2) [2025-04-17 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929176', 'tblTempUsageDetail_20' ) start [2025-04-17 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929176', 'tblTempUsageDetail_20' ) end [2025-04-17 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:28:27] Production.INFO: ==2740== Releasing lock... [2025-04-17 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:28:27] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:29:05 [end_date_ymd] => 2025-04-17 15:29:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:29:05' and `end` < '2025-04-17 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-17 15:29:19] Production.INFO: count ==5485 [2025-04-17 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:29:05 - End Time 2025-04-17 15:29:05 [2025-04-17 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929181', 'tblTempUsageDetail_20' ) start [2025-04-17 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929181', 'tblTempUsageDetail_20' ) end [2025-04-17 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929181', 'tblTempVendorCDR_20' ) start [2025-04-17 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929181', 'tblTempVendorCDR_20' ) end [2025-04-17 15:29:22] Production.INFO: ProcessCDR(1,14929181,1,1,2) [2025-04-17 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929181', 'tblTempUsageDetail_20' ) start [2025-04-17 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929181', 'tblTempUsageDetail_20' ) end [2025-04-17 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:29:27] Production.INFO: ==2820== Releasing lock... [2025-04-17 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:29:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:30:05 [end_date_ymd] => 2025-04-17 15:30:05 [RateCDR] => 1 ) [2025-04-17 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:30:05' and `end` < '2025-04-17 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:30:19] Production.INFO: count ==5487 [2025-04-17 15:30:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:30:05 - End Time 2025-04-17 15:30:05 [2025-04-17 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929187', 'tblTempUsageDetail_20' ) start [2025-04-17 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929187', 'tblTempUsageDetail_20' ) end [2025-04-17 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929187', 'tblTempVendorCDR_20' ) start [2025-04-17 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929187', 'tblTempVendorCDR_20' ) end [2025-04-17 15:30:22] Production.INFO: ProcessCDR(1,14929187,1,1,2) [2025-04-17 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929187', 'tblTempUsageDetail_20' ) start [2025-04-17 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929187', 'tblTempUsageDetail_20' ) end [2025-04-17 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:30:27] Production.INFO: ==2892== Releasing lock... [2025-04-17 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:30:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:31:05 [end_date_ymd] => 2025-04-17 15:31:05 [RateCDR] => 1 ) [2025-04-17 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:31:05' and `end` < '2025-04-17 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:31:19] Production.INFO: count ==5497 [2025-04-17 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:31:05 - End Time 2025-04-17 15:31:05 [2025-04-17 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929192', 'tblTempUsageDetail_20' ) start [2025-04-17 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929192', 'tblTempUsageDetail_20' ) end [2025-04-17 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929192', 'tblTempVendorCDR_20' ) start [2025-04-17 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929192', 'tblTempVendorCDR_20' ) end [2025-04-17 15:31:22] Production.INFO: ProcessCDR(1,14929192,1,1,2) [2025-04-17 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929192', 'tblTempUsageDetail_20' ) start [2025-04-17 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929192', 'tblTempUsageDetail_20' ) end [2025-04-17 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:31:27] Production.INFO: ==2972== Releasing lock... [2025-04-17 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:31:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:32:05 [end_date_ymd] => 2025-04-17 15:32:05 [RateCDR] => 1 ) [2025-04-17 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:32:05' and `end` < '2025-04-17 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:32:19] Production.INFO: count ==5475 [2025-04-17 15:32:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:32:05 - End Time 2025-04-17 15:32:05 [2025-04-17 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929197', 'tblTempUsageDetail_20' ) start [2025-04-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929197', 'tblTempUsageDetail_20' ) end [2025-04-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929197', 'tblTempVendorCDR_20' ) start [2025-04-17 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929197', 'tblTempVendorCDR_20' ) end [2025-04-17 15:32:22] Production.INFO: ProcessCDR(1,14929197,1,1,2) [2025-04-17 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929197', 'tblTempUsageDetail_20' ) start [2025-04-17 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929197', 'tblTempUsageDetail_20' ) end [2025-04-17 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:32:26] Production.INFO: ==3047== Releasing lock... [2025-04-17 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:32:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:33:05 [end_date_ymd] => 2025-04-17 15:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:33:05' and `end` < '2025-04-17 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-17 15:33:19] Production.INFO: count ==5472 [2025-04-17 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:33:05 - End Time 2025-04-17 15:33:05 [2025-04-17 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929202', 'tblTempUsageDetail_20' ) start [2025-04-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929202', 'tblTempUsageDetail_20' ) end [2025-04-17 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929202', 'tblTempVendorCDR_20' ) start [2025-04-17 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929202', 'tblTempVendorCDR_20' ) end [2025-04-17 15:33:22] Production.INFO: ProcessCDR(1,14929202,1,1,2) [2025-04-17 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929202', 'tblTempUsageDetail_20' ) start [2025-04-17 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929202', 'tblTempUsageDetail_20' ) end [2025-04-17 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:33:25] Production.INFO: ==3124== Releasing lock... [2025-04-17 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:33:25] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:34:06 [end_date_ymd] => 2025-04-17 15:34:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:34:06' and `end` < '2025-04-17 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-17 15:34:20] Production.INFO: count ==5453 [2025-04-17 15:34:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:34:06 - End Time 2025-04-17 15:34:06 [2025-04-17 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929207', 'tblTempUsageDetail_20' ) start [2025-04-17 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929207', 'tblTempUsageDetail_20' ) end [2025-04-17 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929207', 'tblTempVendorCDR_20' ) start [2025-04-17 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929207', 'tblTempVendorCDR_20' ) end [2025-04-17 15:34:23] Production.INFO: ProcessCDR(1,14929207,1,1,2) [2025-04-17 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929207', 'tblTempUsageDetail_20' ) start [2025-04-17 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929207', 'tblTempUsageDetail_20' ) end [2025-04-17 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:34:27] Production.INFO: ==3194== Releasing lock... [2025-04-17 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:34:27] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:35:05 [end_date_ymd] => 2025-04-17 15:35:05 [RateCDR] => 1 ) [2025-04-17 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:35:05' and `end` < '2025-04-17 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:35:19] Production.INFO: count ==5453 [2025-04-17 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:35:05 - End Time 2025-04-17 15:35:05 [2025-04-17 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929212', 'tblTempUsageDetail_20' ) start [2025-04-17 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929212', 'tblTempUsageDetail_20' ) end [2025-04-17 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929212', 'tblTempVendorCDR_20' ) start [2025-04-17 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929212', 'tblTempVendorCDR_20' ) end [2025-04-17 15:35:22] Production.INFO: ProcessCDR(1,14929212,1,1,2) [2025-04-17 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929212', 'tblTempUsageDetail_20' ) start [2025-04-17 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929212', 'tblTempUsageDetail_20' ) end [2025-04-17 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:35:27] Production.INFO: ==3282== Releasing lock... [2025-04-17 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:35:27] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:36:05 [end_date_ymd] => 2025-04-17 15:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:36:05' and `end` < '2025-04-17 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-17 15:36:19] Production.INFO: count ==5454 [2025-04-17 15:36:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:36:05 - End Time 2025-04-17 15:36:05 [2025-04-17 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929217', 'tblTempUsageDetail_20' ) start [2025-04-17 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929217', 'tblTempUsageDetail_20' ) end [2025-04-17 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929217', 'tblTempVendorCDR_20' ) start [2025-04-17 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929217', 'tblTempVendorCDR_20' ) end [2025-04-17 15:36:22] Production.INFO: ProcessCDR(1,14929217,1,1,2) [2025-04-17 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929217', 'tblTempUsageDetail_20' ) start [2025-04-17 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929217', 'tblTempUsageDetail_20' ) end [2025-04-17 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:36:27] Production.INFO: ==3361== Releasing lock... [2025-04-17 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:36:27] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:37:05 [end_date_ymd] => 2025-04-17 15:37:05 [RateCDR] => 1 ) [2025-04-17 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:37:05' and `end` < '2025-04-17 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:37:19] Production.INFO: count ==5460 [2025-04-17 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:37:05 - End Time 2025-04-17 15:37:05 [2025-04-17 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929222', 'tblTempUsageDetail_20' ) start [2025-04-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929222', 'tblTempUsageDetail_20' ) end [2025-04-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929222', 'tblTempVendorCDR_20' ) start [2025-04-17 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929222', 'tblTempVendorCDR_20' ) end [2025-04-17 15:37:21] Production.INFO: ProcessCDR(1,14929222,1,1,2) [2025-04-17 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929222', 'tblTempUsageDetail_20' ) start [2025-04-17 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929222', 'tblTempUsageDetail_20' ) end [2025-04-17 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:37:26] Production.INFO: ==3440== Releasing lock... [2025-04-17 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:37:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:38:05 [end_date_ymd] => 2025-04-17 15:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:38:05' and `end` < '2025-04-17 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-17 15:38:19] Production.INFO: count ==5459 [2025-04-17 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:38:05 - End Time 2025-04-17 15:38:05 [2025-04-17 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929227', 'tblTempUsageDetail_20' ) start [2025-04-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929227', 'tblTempUsageDetail_20' ) end [2025-04-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929227', 'tblTempVendorCDR_20' ) start [2025-04-17 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929227', 'tblTempVendorCDR_20' ) end [2025-04-17 15:38:21] Production.INFO: ProcessCDR(1,14929227,1,1,2) [2025-04-17 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929227', 'tblTempUsageDetail_20' ) start [2025-04-17 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929227', 'tblTempUsageDetail_20' ) end [2025-04-17 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:38:26] Production.INFO: ==3511== Releasing lock... [2025-04-17 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:38:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:39:05 [end_date_ymd] => 2025-04-17 15:39:05 [RateCDR] => 1 ) [2025-04-17 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:39:05' and `end` < '2025-04-17 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:39:19] Production.INFO: count ==5464 [2025-04-17 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:39:05 - End Time 2025-04-17 15:39:05 [2025-04-17 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929232', 'tblTempUsageDetail_20' ) start [2025-04-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929232', 'tblTempUsageDetail_20' ) end [2025-04-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929232', 'tblTempVendorCDR_20' ) start [2025-04-17 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929232', 'tblTempVendorCDR_20' ) end [2025-04-17 15:39:21] Production.INFO: ProcessCDR(1,14929232,1,1,2) [2025-04-17 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929232', 'tblTempUsageDetail_20' ) start [2025-04-17 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929232', 'tblTempUsageDetail_20' ) end [2025-04-17 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:39:26] Production.INFO: ==3590== Releasing lock... [2025-04-17 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:39:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:40:06 [end_date_ymd] => 2025-04-17 15:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:40:06' and `end` < '2025-04-17 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-17 15:40:20] Production.INFO: count ==5480 [2025-04-17 15:40:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:40:06 - End Time 2025-04-17 15:40:06 [2025-04-17 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929238', 'tblTempUsageDetail_20' ) start [2025-04-17 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929238', 'tblTempUsageDetail_20' ) end [2025-04-17 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929238', 'tblTempVendorCDR_20' ) start [2025-04-17 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929238', 'tblTempVendorCDR_20' ) end [2025-04-17 15:40:23] Production.INFO: ProcessCDR(1,14929238,1,1,2) [2025-04-17 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929238', 'tblTempUsageDetail_20' ) start [2025-04-17 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929238', 'tblTempUsageDetail_20' ) end [2025-04-17 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:40:28] Production.INFO: ==3709== Releasing lock... [2025-04-17 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:40:28] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:41:05 [end_date_ymd] => 2025-04-17 15:41:05 [RateCDR] => 1 ) [2025-04-17 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:41:05' and `end` < '2025-04-17 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:41:19] Production.INFO: count ==5519 [2025-04-17 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:41:05 - End Time 2025-04-17 15:41:05 [2025-04-17 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929243', 'tblTempUsageDetail_20' ) start [2025-04-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929243', 'tblTempUsageDetail_20' ) end [2025-04-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929243', 'tblTempVendorCDR_20' ) start [2025-04-17 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929243', 'tblTempVendorCDR_20' ) end [2025-04-17 15:41:21] Production.INFO: ProcessCDR(1,14929243,1,1,2) [2025-04-17 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929243', 'tblTempUsageDetail_20' ) start [2025-04-17 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929243', 'tblTempUsageDetail_20' ) end [2025-04-17 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:41:26] Production.INFO: ==3791== Releasing lock... [2025-04-17 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:41:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:42:05 [end_date_ymd] => 2025-04-17 15:42:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:42:05' and `end` < '2025-04-17 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-17 15:42:18] Production.INFO: count ==5567 [2025-04-17 15:42:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:42:05 - End Time 2025-04-17 15:42:05 [2025-04-17 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929248', 'tblTempUsageDetail_20' ) start [2025-04-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929248', 'tblTempUsageDetail_20' ) end [2025-04-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929248', 'tblTempVendorCDR_20' ) start [2025-04-17 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929248', 'tblTempVendorCDR_20' ) end [2025-04-17 15:42:21] Production.INFO: ProcessCDR(1,14929248,1,1,2) [2025-04-17 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929248', 'tblTempUsageDetail_20' ) start [2025-04-17 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929248', 'tblTempUsageDetail_20' ) end [2025-04-17 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:42:26] Production.INFO: ==3866== Releasing lock... [2025-04-17 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:42:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:43:05 [end_date_ymd] => 2025-04-17 15:43:05 [RateCDR] => 1 ) [2025-04-17 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:43:05' and `end` < '2025-04-17 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:43:19] Production.INFO: count ==5547 [2025-04-17 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:43:05 - End Time 2025-04-17 15:43:05 [2025-04-17 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929253', 'tblTempUsageDetail_20' ) start [2025-04-17 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929253', 'tblTempUsageDetail_20' ) end [2025-04-17 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929253', 'tblTempVendorCDR_20' ) start [2025-04-17 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929253', 'tblTempVendorCDR_20' ) end [2025-04-17 15:43:22] Production.INFO: ProcessCDR(1,14929253,1,1,2) [2025-04-17 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929253', 'tblTempUsageDetail_20' ) start [2025-04-17 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929253', 'tblTempUsageDetail_20' ) end [2025-04-17 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:43:27] Production.INFO: ==3939== Releasing lock... [2025-04-17 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:43:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:44:04 [end_date_ymd] => 2025-04-17 15:44:04 [RateCDR] => 1 ) [2025-04-17 15:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:44:04' and `end` < '2025-04-17 15:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:44:19] Production.INFO: count ==5547 [2025-04-17 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:44:04 - End Time 2025-04-17 15:44:04 [2025-04-17 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929258', 'tblTempUsageDetail_20' ) start [2025-04-17 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929258', 'tblTempUsageDetail_20' ) end [2025-04-17 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929258', 'tblTempVendorCDR_20' ) start [2025-04-17 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929258', 'tblTempVendorCDR_20' ) end [2025-04-17 15:44:21] Production.INFO: ProcessCDR(1,14929258,1,1,2) [2025-04-17 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929258', 'tblTempUsageDetail_20' ) start [2025-04-17 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929258', 'tblTempUsageDetail_20' ) end [2025-04-17 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:44:26] Production.INFO: ==4012== Releasing lock... [2025-04-17 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:44:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:45:05 [end_date_ymd] => 2025-04-17 15:45:05 [RateCDR] => 1 ) [2025-04-17 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:45:05' and `end` < '2025-04-17 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:45:19] Production.INFO: count ==5561 [2025-04-17 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:45:05 - End Time 2025-04-17 15:45:05 [2025-04-17 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929263', 'tblTempUsageDetail_20' ) start [2025-04-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929263', 'tblTempUsageDetail_20' ) end [2025-04-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929263', 'tblTempVendorCDR_20' ) start [2025-04-17 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929263', 'tblTempVendorCDR_20' ) end [2025-04-17 15:45:21] Production.INFO: ProcessCDR(1,14929263,1,1,2) [2025-04-17 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929263', 'tblTempUsageDetail_20' ) start [2025-04-17 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929263', 'tblTempUsageDetail_20' ) end [2025-04-17 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:45:26] Production.INFO: ==4085== Releasing lock... [2025-04-17 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:45:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:46:05 [end_date_ymd] => 2025-04-17 15:46:05 [RateCDR] => 1 ) [2025-04-17 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:46:05' and `end` < '2025-04-17 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:46:19] Production.INFO: count ==5585 [2025-04-17 15:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:46:05 - End Time 2025-04-17 15:46:05 [2025-04-17 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929268', 'tblTempUsageDetail_20' ) start [2025-04-17 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929268', 'tblTempUsageDetail_20' ) end [2025-04-17 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929268', 'tblTempVendorCDR_20' ) start [2025-04-17 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929268', 'tblTempVendorCDR_20' ) end [2025-04-17 15:46:22] Production.INFO: ProcessCDR(1,14929268,1,1,2) [2025-04-17 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929268', 'tblTempUsageDetail_20' ) start [2025-04-17 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929268', 'tblTempUsageDetail_20' ) end [2025-04-17 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:46:27] Production.INFO: ==4174== Releasing lock... [2025-04-17 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:46:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:47:04 [end_date_ymd] => 2025-04-17 15:47:04 [RateCDR] => 1 ) [2025-04-17 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:47:04' and `end` < '2025-04-17 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:47:19] Production.INFO: count ==5591 [2025-04-17 15:47:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:47:04 - End Time 2025-04-17 15:47:04 [2025-04-17 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929273', 'tblTempUsageDetail_20' ) start [2025-04-17 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929273', 'tblTempUsageDetail_20' ) end [2025-04-17 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929273', 'tblTempVendorCDR_20' ) start [2025-04-17 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929273', 'tblTempVendorCDR_20' ) end [2025-04-17 15:47:22] Production.INFO: ProcessCDR(1,14929273,1,1,2) [2025-04-17 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929273', 'tblTempUsageDetail_20' ) start [2025-04-17 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929273', 'tblTempUsageDetail_20' ) end [2025-04-17 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:47:27] Production.INFO: ==4252== Releasing lock... [2025-04-17 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:47:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:48:05 [end_date_ymd] => 2025-04-17 15:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:48:05' and `end` < '2025-04-17 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-17 15:48:19] Production.INFO: count ==5602 [2025-04-17 15:48:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:48:05 - End Time 2025-04-17 15:48:05 [2025-04-17 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929278', 'tblTempUsageDetail_20' ) start [2025-04-17 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929278', 'tblTempUsageDetail_20' ) end [2025-04-17 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929278', 'tblTempVendorCDR_20' ) start [2025-04-17 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929278', 'tblTempVendorCDR_20' ) end [2025-04-17 15:48:22] Production.INFO: ProcessCDR(1,14929278,1,1,2) [2025-04-17 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929278', 'tblTempUsageDetail_20' ) start [2025-04-17 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929278', 'tblTempUsageDetail_20' ) end [2025-04-17 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:48:27] Production.INFO: ==4325== Releasing lock... [2025-04-17 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:48:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:49:05 [end_date_ymd] => 2025-04-17 15:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:49:05' and `end` < '2025-04-17 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-17 15:49:19] Production.INFO: count ==5582 [2025-04-17 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:49:05 - End Time 2025-04-17 15:49:05 [2025-04-17 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929283', 'tblTempUsageDetail_20' ) start [2025-04-17 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929283', 'tblTempUsageDetail_20' ) end [2025-04-17 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929283', 'tblTempVendorCDR_20' ) start [2025-04-17 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929283', 'tblTempVendorCDR_20' ) end [2025-04-17 15:49:22] Production.INFO: ProcessCDR(1,14929283,1,1,2) [2025-04-17 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929283', 'tblTempUsageDetail_20' ) start [2025-04-17 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929283', 'tblTempUsageDetail_20' ) end [2025-04-17 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:49:27] Production.INFO: ==4398== Releasing lock... [2025-04-17 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:49:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:50:06 [end_date_ymd] => 2025-04-17 15:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:50:06' and `end` < '2025-04-17 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-17 15:50:20] Production.INFO: count ==5570 [2025-04-17 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:50:06 - End Time 2025-04-17 15:50:06 [2025-04-17 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929288', 'tblTempUsageDetail_20' ) start [2025-04-17 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929288', 'tblTempUsageDetail_20' ) end [2025-04-17 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929288', 'tblTempVendorCDR_20' ) start [2025-04-17 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929288', 'tblTempVendorCDR_20' ) end [2025-04-17 15:50:23] Production.INFO: ProcessCDR(1,14929288,1,1,2) [2025-04-17 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929288', 'tblTempUsageDetail_20' ) start [2025-04-17 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929288', 'tblTempUsageDetail_20' ) end [2025-04-17 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:50:28] Production.INFO: ==4475== Releasing lock... [2025-04-17 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:50:28] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:51:05 [end_date_ymd] => 2025-04-17 15:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:51:05' and `end` < '2025-04-17 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-17 15:51:19] Production.INFO: count ==5586 [2025-04-17 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:51:05 - End Time 2025-04-17 15:51:05 [2025-04-17 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929294', 'tblTempUsageDetail_20' ) start [2025-04-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929294', 'tblTempUsageDetail_20' ) end [2025-04-17 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929294', 'tblTempVendorCDR_20' ) start [2025-04-17 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929294', 'tblTempVendorCDR_20' ) end [2025-04-17 15:51:22] Production.INFO: ProcessCDR(1,14929294,1,1,2) [2025-04-17 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929294', 'tblTempUsageDetail_20' ) start [2025-04-17 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929294', 'tblTempUsageDetail_20' ) end [2025-04-17 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:51:26] Production.INFO: ==4548== Releasing lock... [2025-04-17 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:51:26] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:52:05 [end_date_ymd] => 2025-04-17 15:52:05 [RateCDR] => 1 ) [2025-04-17 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:52:05' and `end` < '2025-04-17 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:52:19] Production.INFO: count ==5586 [2025-04-17 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:52:05 - End Time 2025-04-17 15:52:05 [2025-04-17 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929299', 'tblTempUsageDetail_20' ) start [2025-04-17 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929299', 'tblTempUsageDetail_20' ) end [2025-04-17 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929299', 'tblTempVendorCDR_20' ) start [2025-04-17 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929299', 'tblTempVendorCDR_20' ) end [2025-04-17 15:52:22] Production.INFO: ProcessCDR(1,14929299,1,1,2) [2025-04-17 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929299', 'tblTempUsageDetail_20' ) start [2025-04-17 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929299', 'tblTempUsageDetail_20' ) end [2025-04-17 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:52:27] Production.INFO: ==4639== Releasing lock... [2025-04-17 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:52:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:53:06 [end_date_ymd] => 2025-04-17 15:53:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:53:06' and `end` < '2025-04-17 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-17 15:53:20] Production.INFO: count ==5629 [2025-04-17 15:53:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:53:06 - End Time 2025-04-17 15:53:06 [2025-04-17 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929304', 'tblTempUsageDetail_20' ) start [2025-04-17 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929304', 'tblTempUsageDetail_20' ) end [2025-04-17 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929304', 'tblTempVendorCDR_20' ) start [2025-04-17 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929304', 'tblTempVendorCDR_20' ) end [2025-04-17 15:53:23] Production.INFO: ProcessCDR(1,14929304,1,1,2) [2025-04-17 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929304', 'tblTempUsageDetail_20' ) start [2025-04-17 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929304', 'tblTempUsageDetail_20' ) end [2025-04-17 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:53:28] Production.INFO: ==4715== Releasing lock... [2025-04-17 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:53:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:54:05 [end_date_ymd] => 2025-04-17 15:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:54:05' and `end` < '2025-04-17 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-17 15:54:19] Production.INFO: count ==5641 [2025-04-17 15:54:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:54:05 - End Time 2025-04-17 15:54:05 [2025-04-17 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929309', 'tblTempUsageDetail_20' ) start [2025-04-17 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929309', 'tblTempUsageDetail_20' ) end [2025-04-17 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929309', 'tblTempVendorCDR_20' ) start [2025-04-17 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929309', 'tblTempVendorCDR_20' ) end [2025-04-17 15:54:22] Production.INFO: ProcessCDR(1,14929309,1,1,2) [2025-04-17 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929309', 'tblTempUsageDetail_20' ) start [2025-04-17 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929309', 'tblTempUsageDetail_20' ) end [2025-04-17 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:54:28] Production.INFO: ==4792== Releasing lock... [2025-04-17 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:54:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:55:06 [end_date_ymd] => 2025-04-17 15:55:06 [RateCDR] => 1 ) [2025-04-17 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-17 12:55:06' and `end` < '2025-04-17 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-17 15:55:20] Production.INFO: count ==5645 [2025-04-17 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:55:06 - End Time 2025-04-17 15:55:06 [2025-04-17 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929314', 'tblTempUsageDetail_20' ) start [2025-04-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929314', 'tblTempUsageDetail_20' ) end [2025-04-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929314', 'tblTempVendorCDR_20' ) start [2025-04-17 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929314', 'tblTempVendorCDR_20' ) end [2025-04-17 15:55:22] Production.INFO: ProcessCDR(1,14929314,1,1,2) [2025-04-17 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929314', 'tblTempUsageDetail_20' ) start [2025-04-17 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929314', 'tblTempUsageDetail_20' ) end [2025-04-17 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:55:28] Production.INFO: ==4937== Releasing lock... [2025-04-17 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:55:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:56:05 [end_date_ymd] => 2025-04-17 15:56:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:56:05' and `end` < '2025-04-17 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-17 15:56:19] Production.INFO: count ==5641 [2025-04-17 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:56:05 - End Time 2025-04-17 15:56:05 [2025-04-17 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929319', 'tblTempUsageDetail_20' ) start [2025-04-17 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929319', 'tblTempUsageDetail_20' ) end [2025-04-17 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929319', 'tblTempVendorCDR_20' ) start [2025-04-17 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929319', 'tblTempVendorCDR_20' ) end [2025-04-17 15:56:22] Production.INFO: ProcessCDR(1,14929319,1,1,2) [2025-04-17 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929319', 'tblTempUsageDetail_20' ) start [2025-04-17 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929319', 'tblTempUsageDetail_20' ) end [2025-04-17 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:56:27] Production.INFO: ==5049== Releasing lock... [2025-04-17 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:56:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-17 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:57:05 [end_date_ymd] => 2025-04-17 15:57:05 [RateCDR] => 1 ) [2025-04-17 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:57:05' and `end` < '2025-04-17 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:57:20] Production.INFO: count ==5649 [2025-04-17 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:57:05 - End Time 2025-04-17 15:57:05 [2025-04-17 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929324', 'tblTempUsageDetail_20' ) start [2025-04-17 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929324', 'tblTempUsageDetail_20' ) end [2025-04-17 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929324', 'tblTempVendorCDR_20' ) start [2025-04-17 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929324', 'tblTempVendorCDR_20' ) end [2025-04-17 15:57:23] Production.INFO: ProcessCDR(1,14929324,1,1,2) [2025-04-17 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929324', 'tblTempUsageDetail_20' ) start [2025-04-17 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929324', 'tblTempUsageDetail_20' ) end [2025-04-17 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:57:26] Production.INFO: ==5166== Releasing lock... [2025-04-17 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:57:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:58:05 [end_date_ymd] => 2025-04-17 15:58:05 [RateCDR] => 1 ) [2025-04-17 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 12:58:05' and `end` < '2025-04-17 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 15:58:19] Production.INFO: count ==5653 [2025-04-17 15:58:21] Production.ERROR: pbx CDR StartTime 2025-04-17 12:58:05 - End Time 2025-04-17 15:58:05 [2025-04-17 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929329', 'tblTempUsageDetail_20' ) start [2025-04-17 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929329', 'tblTempUsageDetail_20' ) end [2025-04-17 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929329', 'tblTempVendorCDR_20' ) start [2025-04-17 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929329', 'tblTempVendorCDR_20' ) end [2025-04-17 15:58:22] Production.INFO: ProcessCDR(1,14929329,1,1,2) [2025-04-17 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929329', 'tblTempUsageDetail_20' ) start [2025-04-17 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929329', 'tblTempUsageDetail_20' ) end [2025-04-17 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:58:27] Production.INFO: ==5271== Releasing lock... [2025-04-17 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:58:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 12:59:05 [end_date_ymd] => 2025-04-17 15:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 12:59:05' and `end` < '2025-04-17 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-17 15:59:19] Production.INFO: count ==5670 [2025-04-17 15:59:22] Production.ERROR: pbx CDR StartTime 2025-04-17 12:59:05 - End Time 2025-04-17 15:59:05 [2025-04-17 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929334', 'tblTempUsageDetail_20' ) start [2025-04-17 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929334', 'tblTempUsageDetail_20' ) end [2025-04-17 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929334', 'tblTempVendorCDR_20' ) start [2025-04-17 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929334', 'tblTempVendorCDR_20' ) end [2025-04-17 15:59:22] Production.INFO: ProcessCDR(1,14929334,1,1,2) [2025-04-17 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929334', 'tblTempUsageDetail_20' ) start [2025-04-17 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929334', 'tblTempUsageDetail_20' ) end [2025-04-17 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 15:59:27] Production.INFO: ==5384== Releasing lock... [2025-04-17 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 15:59:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:00:06 [end_date_ymd] => 2025-04-17 16:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:00:06' and `end` < '2025-04-17 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-17 16:00:20] Production.INFO: count ==5657 [2025-04-17 16:00:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:00:06 - End Time 2025-04-17 16:00:06 [2025-04-17 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929339', 'tblTempUsageDetail_20' ) start [2025-04-17 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929339', 'tblTempUsageDetail_20' ) end [2025-04-17 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929339', 'tblTempVendorCDR_20' ) start [2025-04-17 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929339', 'tblTempVendorCDR_20' ) end [2025-04-17 16:00:23] Production.INFO: ProcessCDR(1,14929339,1,1,2) [2025-04-17 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929339', 'tblTempUsageDetail_20' ) start [2025-04-17 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929339', 'tblTempUsageDetail_20' ) end [2025-04-17 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:00:28] Production.INFO: ==5494== Releasing lock... [2025-04-17 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:00:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:01:05 [end_date_ymd] => 2025-04-17 16:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:01:05' and `end` < '2025-04-17 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-17 16:01:19] Production.INFO: count ==5663 [2025-04-17 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:01:05 - End Time 2025-04-17 16:01:05 [2025-04-17 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929345', 'tblTempUsageDetail_20' ) start [2025-04-17 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929345', 'tblTempUsageDetail_20' ) end [2025-04-17 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929345', 'tblTempVendorCDR_20' ) start [2025-04-17 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929345', 'tblTempVendorCDR_20' ) end [2025-04-17 16:01:22] Production.INFO: ProcessCDR(1,14929345,1,1,2) [2025-04-17 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929345', 'tblTempUsageDetail_20' ) start [2025-04-17 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929345', 'tblTempUsageDetail_20' ) end [2025-04-17 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:01:27] Production.INFO: ==5614== Releasing lock... [2025-04-17 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:01:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:02:05 [end_date_ymd] => 2025-04-17 16:02:05 [RateCDR] => 1 ) [2025-04-17 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:02:05' and `end` < '2025-04-17 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:02:19] Production.INFO: count ==5676 [2025-04-17 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:02:05 - End Time 2025-04-17 16:02:05 [2025-04-17 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929350', 'tblTempUsageDetail_20' ) start [2025-04-17 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929350', 'tblTempUsageDetail_20' ) end [2025-04-17 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929350', 'tblTempVendorCDR_20' ) start [2025-04-17 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929350', 'tblTempVendorCDR_20' ) end [2025-04-17 16:02:22] Production.INFO: ProcessCDR(1,14929350,1,1,2) [2025-04-17 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929350', 'tblTempUsageDetail_20' ) start [2025-04-17 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929350', 'tblTempUsageDetail_20' ) end [2025-04-17 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:02:26] Production.INFO: ==5723== Releasing lock... [2025-04-17 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:02:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:03:05 [end_date_ymd] => 2025-04-17 16:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:03:05' and `end` < '2025-04-17 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-17 16:03:19] Production.INFO: count ==5672 [2025-04-17 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:03:05 - End Time 2025-04-17 16:03:05 [2025-04-17 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929355', 'tblTempUsageDetail_20' ) start [2025-04-17 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929355', 'tblTempUsageDetail_20' ) end [2025-04-17 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929355', 'tblTempVendorCDR_20' ) start [2025-04-17 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929355', 'tblTempVendorCDR_20' ) end [2025-04-17 16:03:22] Production.INFO: ProcessCDR(1,14929355,1,1,2) [2025-04-17 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929355', 'tblTempUsageDetail_20' ) start [2025-04-17 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929355', 'tblTempUsageDetail_20' ) end [2025-04-17 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:03:27] Production.INFO: ==5838== Releasing lock... [2025-04-17 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:03:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:04:05 [end_date_ymd] => 2025-04-17 16:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:04:05' and `end` < '2025-04-17 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-17 16:04:19] Production.INFO: count ==5692 [2025-04-17 16:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:04:05 - End Time 2025-04-17 16:04:05 [2025-04-17 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929360', 'tblTempUsageDetail_20' ) start [2025-04-17 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929360', 'tblTempUsageDetail_20' ) end [2025-04-17 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929360', 'tblTempVendorCDR_20' ) start [2025-04-17 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929360', 'tblTempVendorCDR_20' ) end [2025-04-17 16:04:22] Production.INFO: ProcessCDR(1,14929360,1,1,2) [2025-04-17 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929360', 'tblTempUsageDetail_20' ) start [2025-04-17 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929360', 'tblTempUsageDetail_20' ) end [2025-04-17 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:04:27] Production.INFO: ==5949== Releasing lock... [2025-04-17 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:04:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:05:05 [end_date_ymd] => 2025-04-17 16:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:05:05' and `end` < '2025-04-17 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-17 16:05:19] Production.INFO: count ==5728 [2025-04-17 16:05:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:05:05 - End Time 2025-04-17 16:05:05 [2025-04-17 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929365', 'tblTempUsageDetail_20' ) start [2025-04-17 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929365', 'tblTempUsageDetail_20' ) end [2025-04-17 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929365', 'tblTempVendorCDR_20' ) start [2025-04-17 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929365', 'tblTempVendorCDR_20' ) end [2025-04-17 16:05:22] Production.INFO: ProcessCDR(1,14929365,1,1,2) [2025-04-17 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929365', 'tblTempUsageDetail_20' ) start [2025-04-17 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929365', 'tblTempUsageDetail_20' ) end [2025-04-17 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:05:28] Production.INFO: ==6068== Releasing lock... [2025-04-17 16:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:05:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:06:06 [end_date_ymd] => 2025-04-17 16:06:06 [RateCDR] => 1 ) [2025-04-17 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:06:06' and `end` < '2025-04-17 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:06:20] Production.INFO: count ==5720 [2025-04-17 16:06:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:06:06 - End Time 2025-04-17 16:06:06 [2025-04-17 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929370', 'tblTempUsageDetail_20' ) start [2025-04-17 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929370', 'tblTempUsageDetail_20' ) end [2025-04-17 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929370', 'tblTempVendorCDR_20' ) start [2025-04-17 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929370', 'tblTempVendorCDR_20' ) end [2025-04-17 16:06:23] Production.INFO: ProcessCDR(1,14929370,1,1,2) [2025-04-17 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929370', 'tblTempUsageDetail_20' ) start [2025-04-17 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929370', 'tblTempUsageDetail_20' ) end [2025-04-17 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:06:28] Production.INFO: ==6178== Releasing lock... [2025-04-17 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:06:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:07:05 [end_date_ymd] => 2025-04-17 16:07:05 [RateCDR] => 1 ) [2025-04-17 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:07:05' and `end` < '2025-04-17 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:07:20] Production.INFO: count ==5718 [2025-04-17 16:07:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:07:05 - End Time 2025-04-17 16:07:05 [2025-04-17 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929375', 'tblTempUsageDetail_20' ) start [2025-04-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929375', 'tblTempUsageDetail_20' ) end [2025-04-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929375', 'tblTempVendorCDR_20' ) start [2025-04-17 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929375', 'tblTempVendorCDR_20' ) end [2025-04-17 16:07:23] Production.INFO: ProcessCDR(1,14929375,1,1,2) [2025-04-17 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929375', 'tblTempUsageDetail_20' ) start [2025-04-17 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929375', 'tblTempUsageDetail_20' ) end [2025-04-17 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:07:27] Production.INFO: ==6290== Releasing lock... [2025-04-17 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:07:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:08:05 [end_date_ymd] => 2025-04-17 16:08:05 [RateCDR] => 1 ) [2025-04-17 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:08:05' and `end` < '2025-04-17 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:08:20] Production.INFO: count ==5697 [2025-04-17 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:08:05 - End Time 2025-04-17 16:08:05 [2025-04-17 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929380', 'tblTempUsageDetail_20' ) start [2025-04-17 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929380', 'tblTempUsageDetail_20' ) end [2025-04-17 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929380', 'tblTempVendorCDR_20' ) start [2025-04-17 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929380', 'tblTempVendorCDR_20' ) end [2025-04-17 16:08:22] Production.INFO: ProcessCDR(1,14929380,1,1,2) [2025-04-17 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929380', 'tblTempUsageDetail_20' ) start [2025-04-17 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929380', 'tblTempUsageDetail_20' ) end [2025-04-17 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:08:27] Production.INFO: ==6406== Releasing lock... [2025-04-17 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:08:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:09:05 [end_date_ymd] => 2025-04-17 16:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:09:05' and `end` < '2025-04-17 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-17 16:09:19] Production.INFO: count ==5708 [2025-04-17 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:09:05 - End Time 2025-04-17 16:09:05 [2025-04-17 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929385', 'tblTempUsageDetail_20' ) start [2025-04-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929385', 'tblTempUsageDetail_20' ) end [2025-04-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929385', 'tblTempVendorCDR_20' ) start [2025-04-17 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929385', 'tblTempVendorCDR_20' ) end [2025-04-17 16:09:22] Production.INFO: ProcessCDR(1,14929385,1,1,2) [2025-04-17 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929385', 'tblTempUsageDetail_20' ) start [2025-04-17 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929385', 'tblTempUsageDetail_20' ) end [2025-04-17 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:09:26] Production.INFO: ==6485== Releasing lock... [2025-04-17 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:09:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:10:06 [end_date_ymd] => 2025-04-17 16:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:10:06' and `end` < '2025-04-17 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-17 16:10:20] Production.INFO: count ==5718 [2025-04-17 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:10:06 - End Time 2025-04-17 16:10:06 [2025-04-17 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929391', 'tblTempUsageDetail_20' ) start [2025-04-17 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929391', 'tblTempUsageDetail_20' ) end [2025-04-17 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929391', 'tblTempVendorCDR_20' ) start [2025-04-17 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929391', 'tblTempVendorCDR_20' ) end [2025-04-17 16:10:23] Production.INFO: ProcessCDR(1,14929391,1,1,2) [2025-04-17 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929391', 'tblTempUsageDetail_20' ) start [2025-04-17 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929391', 'tblTempUsageDetail_20' ) end [2025-04-17 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:10:28] Production.INFO: ==6568== Releasing lock... [2025-04-17 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:10:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:11:04 [end_date_ymd] => 2025-04-17 16:11:04 [RateCDR] => 1 ) [2025-04-17 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:11:04' and `end` < '2025-04-17 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:11:18] Production.INFO: count ==5707 [2025-04-17 16:11:20] Production.ERROR: pbx CDR StartTime 2025-04-17 13:11:04 - End Time 2025-04-17 16:11:04 [2025-04-17 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929396', 'tblTempUsageDetail_20' ) start [2025-04-17 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929396', 'tblTempUsageDetail_20' ) end [2025-04-17 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929396', 'tblTempVendorCDR_20' ) start [2025-04-17 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929396', 'tblTempVendorCDR_20' ) end [2025-04-17 16:11:21] Production.INFO: ProcessCDR(1,14929396,1,1,2) [2025-04-17 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929396', 'tblTempUsageDetail_20' ) start [2025-04-17 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929396', 'tblTempUsageDetail_20' ) end [2025-04-17 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:11:26] Production.INFO: ==6686== Releasing lock... [2025-04-17 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:11:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:12:05 [end_date_ymd] => 2025-04-17 16:12:05 [RateCDR] => 1 ) [2025-04-17 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:12:05' and `end` < '2025-04-17 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:12:19] Production.INFO: count ==5702 [2025-04-17 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:12:05 - End Time 2025-04-17 16:12:05 [2025-04-17 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929401', 'tblTempUsageDetail_20' ) start [2025-04-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929401', 'tblTempUsageDetail_20' ) end [2025-04-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929401', 'tblTempVendorCDR_20' ) start [2025-04-17 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929401', 'tblTempVendorCDR_20' ) end [2025-04-17 16:12:22] Production.INFO: ProcessCDR(1,14929401,1,1,2) [2025-04-17 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929401', 'tblTempUsageDetail_20' ) start [2025-04-17 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929401', 'tblTempUsageDetail_20' ) end [2025-04-17 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:12:27] Production.INFO: ==6766== Releasing lock... [2025-04-17 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:12:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:13:05 [end_date_ymd] => 2025-04-17 16:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:13:05' and `end` < '2025-04-17 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-17 16:13:20] Production.INFO: count ==5695 [2025-04-17 16:13:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:13:05 - End Time 2025-04-17 16:13:05 [2025-04-17 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929406', 'tblTempUsageDetail_20' ) start [2025-04-17 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929406', 'tblTempUsageDetail_20' ) end [2025-04-17 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929406', 'tblTempVendorCDR_20' ) start [2025-04-17 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929406', 'tblTempVendorCDR_20' ) end [2025-04-17 16:13:22] Production.INFO: ProcessCDR(1,14929406,1,1,2) [2025-04-17 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929406', 'tblTempUsageDetail_20' ) start [2025-04-17 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929406', 'tblTempUsageDetail_20' ) end [2025-04-17 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:13:27] Production.INFO: ==6848== Releasing lock... [2025-04-17 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:13:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:14:05 [end_date_ymd] => 2025-04-17 16:14:05 [RateCDR] => 1 ) [2025-04-17 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:14:05' and `end` < '2025-04-17 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:14:19] Production.INFO: count ==5683 [2025-04-17 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:14:05 - End Time 2025-04-17 16:14:05 [2025-04-17 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929411', 'tblTempUsageDetail_20' ) start [2025-04-17 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929411', 'tblTempUsageDetail_20' ) end [2025-04-17 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929411', 'tblTempVendorCDR_20' ) start [2025-04-17 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929411', 'tblTempVendorCDR_20' ) end [2025-04-17 16:14:22] Production.INFO: ProcessCDR(1,14929411,1,1,2) [2025-04-17 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929411', 'tblTempUsageDetail_20' ) start [2025-04-17 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929411', 'tblTempUsageDetail_20' ) end [2025-04-17 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:14:27] Production.INFO: ==6923== Releasing lock... [2025-04-17 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:14:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:15:05 [end_date_ymd] => 2025-04-17 16:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:15:05' and `end` < '2025-04-17 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-17 16:15:19] Production.INFO: count ==5688 [2025-04-17 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:15:05 - End Time 2025-04-17 16:15:05 [2025-04-17 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929416', 'tblTempUsageDetail_20' ) start [2025-04-17 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929416', 'tblTempUsageDetail_20' ) end [2025-04-17 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929416', 'tblTempVendorCDR_20' ) start [2025-04-17 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929416', 'tblTempVendorCDR_20' ) end [2025-04-17 16:15:22] Production.INFO: ProcessCDR(1,14929416,1,1,2) [2025-04-17 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929416', 'tblTempUsageDetail_20' ) start [2025-04-17 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929416', 'tblTempUsageDetail_20' ) end [2025-04-17 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:15:28] Production.INFO: ==7014== Releasing lock... [2025-04-17 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:15:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:16:05 [end_date_ymd] => 2025-04-17 16:16:05 [RateCDR] => 1 ) [2025-04-17 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:16:05' and `end` < '2025-04-17 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:16:19] Production.INFO: count ==5686 [2025-04-17 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:16:05 - End Time 2025-04-17 16:16:05 [2025-04-17 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929421', 'tblTempUsageDetail_20' ) start [2025-04-17 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929421', 'tblTempUsageDetail_20' ) end [2025-04-17 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929421', 'tblTempVendorCDR_20' ) start [2025-04-17 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929421', 'tblTempVendorCDR_20' ) end [2025-04-17 16:16:22] Production.INFO: ProcessCDR(1,14929421,1,1,2) [2025-04-17 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929421', 'tblTempUsageDetail_20' ) start [2025-04-17 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929421', 'tblTempUsageDetail_20' ) end [2025-04-17 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:16:27] Production.INFO: ==7089== Releasing lock... [2025-04-17 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:16:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:17:05 [end_date_ymd] => 2025-04-17 16:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:17:05' and `end` < '2025-04-17 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-17 16:17:19] Production.INFO: count ==5668 [2025-04-17 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:17:05 - End Time 2025-04-17 16:17:05 [2025-04-17 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929426', 'tblTempUsageDetail_20' ) start [2025-04-17 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929426', 'tblTempUsageDetail_20' ) end [2025-04-17 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929426', 'tblTempVendorCDR_20' ) start [2025-04-17 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929426', 'tblTempVendorCDR_20' ) end [2025-04-17 16:17:22] Production.INFO: ProcessCDR(1,14929426,1,1,2) [2025-04-17 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929426', 'tblTempUsageDetail_20' ) start [2025-04-17 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929426', 'tblTempUsageDetail_20' ) end [2025-04-17 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:17:27] Production.INFO: ==7173== Releasing lock... [2025-04-17 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:17:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:18:05 [end_date_ymd] => 2025-04-17 16:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:18:05' and `end` < '2025-04-17 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-17 16:18:19] Production.INFO: count ==5669 [2025-04-17 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:18:05 - End Time 2025-04-17 16:18:05 [2025-04-17 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929431', 'tblTempUsageDetail_20' ) start [2025-04-17 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929431', 'tblTempUsageDetail_20' ) end [2025-04-17 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929431', 'tblTempVendorCDR_20' ) start [2025-04-17 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929431', 'tblTempVendorCDR_20' ) end [2025-04-17 16:18:22] Production.INFO: ProcessCDR(1,14929431,1,1,2) [2025-04-17 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929431', 'tblTempUsageDetail_20' ) start [2025-04-17 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929431', 'tblTempUsageDetail_20' ) end [2025-04-17 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:18:27] Production.INFO: ==7251== Releasing lock... [2025-04-17 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:18:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:19:05 [end_date_ymd] => 2025-04-17 16:19:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:19:05' and `end` < '2025-04-17 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-17 16:19:19] Production.INFO: count ==5656 [2025-04-17 16:19:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:19:05 - End Time 2025-04-17 16:19:05 [2025-04-17 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929436', 'tblTempUsageDetail_20' ) start [2025-04-17 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929436', 'tblTempUsageDetail_20' ) end [2025-04-17 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929436', 'tblTempVendorCDR_20' ) start [2025-04-17 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929436', 'tblTempVendorCDR_20' ) end [2025-04-17 16:19:22] Production.INFO: ProcessCDR(1,14929436,1,1,2) [2025-04-17 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929436', 'tblTempUsageDetail_20' ) start [2025-04-17 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929436', 'tblTempUsageDetail_20' ) end [2025-04-17 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:19:27] Production.INFO: ==7329== Releasing lock... [2025-04-17 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:19:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:20:06 [end_date_ymd] => 2025-04-17 16:20:06 [RateCDR] => 1 ) [2025-04-17 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:20:06' and `end` < '2025-04-17 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:20:20] Production.INFO: count ==5667 [2025-04-17 16:20:23] Production.ERROR: pbx CDR StartTime 2025-04-17 13:20:06 - End Time 2025-04-17 16:20:06 [2025-04-17 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929441', 'tblTempUsageDetail_20' ) start [2025-04-17 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929441', 'tblTempUsageDetail_20' ) end [2025-04-17 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929441', 'tblTempVendorCDR_20' ) start [2025-04-17 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929441', 'tblTempVendorCDR_20' ) end [2025-04-17 16:20:23] Production.INFO: ProcessCDR(1,14929441,1,1,2) [2025-04-17 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929441', 'tblTempUsageDetail_20' ) start [2025-04-17 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929441', 'tblTempUsageDetail_20' ) end [2025-04-17 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:20:28] Production.INFO: ==7406== Releasing lock... [2025-04-17 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:20:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:21:05 [end_date_ymd] => 2025-04-17 16:21:05 [RateCDR] => 1 ) [2025-04-17 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:21:05' and `end` < '2025-04-17 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:21:19] Production.INFO: count ==5690 [2025-04-17 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:21:05 - End Time 2025-04-17 16:21:05 [2025-04-17 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929447', 'tblTempUsageDetail_20' ) start [2025-04-17 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929447', 'tblTempUsageDetail_20' ) end [2025-04-17 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929447', 'tblTempVendorCDR_20' ) start [2025-04-17 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929447', 'tblTempVendorCDR_20' ) end [2025-04-17 16:21:22] Production.INFO: ProcessCDR(1,14929447,1,1,2) [2025-04-17 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929447', 'tblTempUsageDetail_20' ) start [2025-04-17 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929447', 'tblTempUsageDetail_20' ) end [2025-04-17 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:21:27] Production.INFO: ==7482== Releasing lock... [2025-04-17 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:21:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:22:05 [end_date_ymd] => 2025-04-17 16:22:05 [RateCDR] => 1 ) [2025-04-17 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:22:05' and `end` < '2025-04-17 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:22:19] Production.INFO: count ==5667 [2025-04-17 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:22:05 - End Time 2025-04-17 16:22:05 [2025-04-17 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929452', 'tblTempUsageDetail_20' ) start [2025-04-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929452', 'tblTempUsageDetail_20' ) end [2025-04-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929452', 'tblTempVendorCDR_20' ) start [2025-04-17 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929452', 'tblTempVendorCDR_20' ) end [2025-04-17 16:22:22] Production.INFO: ProcessCDR(1,14929452,1,1,2) [2025-04-17 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929452', 'tblTempUsageDetail_20' ) start [2025-04-17 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929452', 'tblTempUsageDetail_20' ) end [2025-04-17 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:22:27] Production.INFO: ==7563== Releasing lock... [2025-04-17 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:22:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:23:05 [end_date_ymd] => 2025-04-17 16:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:23:05' and `end` < '2025-04-17 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-17 16:23:19] Production.INFO: count ==5679 [2025-04-17 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:23:05 - End Time 2025-04-17 16:23:05 [2025-04-17 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929457', 'tblTempUsageDetail_20' ) start [2025-04-17 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929457', 'tblTempUsageDetail_20' ) end [2025-04-17 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929457', 'tblTempVendorCDR_20' ) start [2025-04-17 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929457', 'tblTempVendorCDR_20' ) end [2025-04-17 16:23:22] Production.INFO: ProcessCDR(1,14929457,1,1,2) [2025-04-17 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929457', 'tblTempUsageDetail_20' ) start [2025-04-17 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929457', 'tblTempUsageDetail_20' ) end [2025-04-17 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:23:27] Production.INFO: ==7644== Releasing lock... [2025-04-17 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:23:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:24:06 [end_date_ymd] => 2025-04-17 16:24:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:24:06' and `end` < '2025-04-17 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-17 16:24:20] Production.INFO: count ==5674 [2025-04-17 16:24:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:24:06 - End Time 2025-04-17 16:24:06 [2025-04-17 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929462', 'tblTempUsageDetail_20' ) start [2025-04-17 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929462', 'tblTempUsageDetail_20' ) end [2025-04-17 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929462', 'tblTempVendorCDR_20' ) start [2025-04-17 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929462', 'tblTempVendorCDR_20' ) end [2025-04-17 16:24:23] Production.INFO: ProcessCDR(1,14929462,1,1,2) [2025-04-17 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929462', 'tblTempUsageDetail_20' ) start [2025-04-17 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929462', 'tblTempUsageDetail_20' ) end [2025-04-17 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:24:28] Production.INFO: ==7719== Releasing lock... [2025-04-17 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:24:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:25:05 [end_date_ymd] => 2025-04-17 16:25:05 [RateCDR] => 1 ) [2025-04-17 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:25:05' and `end` < '2025-04-17 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:25:19] Production.INFO: count ==5675 [2025-04-17 16:25:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:25:05 - End Time 2025-04-17 16:25:05 [2025-04-17 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929467', 'tblTempUsageDetail_20' ) start [2025-04-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929467', 'tblTempUsageDetail_20' ) end [2025-04-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929467', 'tblTempVendorCDR_20' ) start [2025-04-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929467', 'tblTempVendorCDR_20' ) end [2025-04-17 16:25:22] Production.INFO: ProcessCDR(1,14929467,1,1,2) [2025-04-17 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929467', 'tblTempUsageDetail_20' ) start [2025-04-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929467', 'tblTempUsageDetail_20' ) end [2025-04-17 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:25:26] Production.INFO: ==7795== Releasing lock... [2025-04-17 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:25:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:26:06 [end_date_ymd] => 2025-04-17 16:26:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:26:06' and `end` < '2025-04-17 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-17 16:26:20] Production.INFO: count ==5667 [2025-04-17 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:26:06 - End Time 2025-04-17 16:26:06 [2025-04-17 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929472', 'tblTempUsageDetail_20' ) start [2025-04-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929472', 'tblTempUsageDetail_20' ) end [2025-04-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929472', 'tblTempVendorCDR_20' ) start [2025-04-17 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929472', 'tblTempVendorCDR_20' ) end [2025-04-17 16:26:23] Production.INFO: ProcessCDR(1,14929472,1,1,2) [2025-04-17 16:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929472', 'tblTempUsageDetail_20' ) start [2025-04-17 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929472', 'tblTempUsageDetail_20' ) end [2025-04-17 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:26:28] Production.INFO: ==7912== Releasing lock... [2025-04-17 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:26:28] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:27:05 [end_date_ymd] => 2025-04-17 16:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:27:05' and `end` < '2025-04-17 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-17 16:27:19] Production.INFO: count ==5684 [2025-04-17 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:27:05 - End Time 2025-04-17 16:27:05 [2025-04-17 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929477', 'tblTempUsageDetail_20' ) start [2025-04-17 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929477', 'tblTempUsageDetail_20' ) end [2025-04-17 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929477', 'tblTempVendorCDR_20' ) start [2025-04-17 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929477', 'tblTempVendorCDR_20' ) end [2025-04-17 16:27:22] Production.INFO: ProcessCDR(1,14929477,1,1,2) [2025-04-17 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929477', 'tblTempUsageDetail_20' ) start [2025-04-17 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929477', 'tblTempUsageDetail_20' ) end [2025-04-17 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:27:27] Production.INFO: ==7990== Releasing lock... [2025-04-17 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:27:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:28:05 [end_date_ymd] => 2025-04-17 16:28:05 [RateCDR] => 1 ) [2025-04-17 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:28:05' and `end` < '2025-04-17 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:28:19] Production.INFO: count ==5692 [2025-04-17 16:28:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:28:05 - End Time 2025-04-17 16:28:05 [2025-04-17 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929482', 'tblTempUsageDetail_20' ) start [2025-04-17 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929482', 'tblTempUsageDetail_20' ) end [2025-04-17 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929482', 'tblTempVendorCDR_20' ) start [2025-04-17 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929482', 'tblTempVendorCDR_20' ) end [2025-04-17 16:28:22] Production.INFO: ProcessCDR(1,14929482,1,1,2) [2025-04-17 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929482', 'tblTempUsageDetail_20' ) start [2025-04-17 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929482', 'tblTempUsageDetail_20' ) end [2025-04-17 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:28:27] Production.INFO: ==8072== Releasing lock... [2025-04-17 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:28:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:29:06 [end_date_ymd] => 2025-04-17 16:29:06 [RateCDR] => 1 ) [2025-04-17 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:29:06' and `end` < '2025-04-17 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:29:19] Production.INFO: count ==5698 [2025-04-17 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:29:06 - End Time 2025-04-17 16:29:06 [2025-04-17 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929487', 'tblTempUsageDetail_20' ) start [2025-04-17 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929487', 'tblTempUsageDetail_20' ) end [2025-04-17 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929487', 'tblTempVendorCDR_20' ) start [2025-04-17 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929487', 'tblTempVendorCDR_20' ) end [2025-04-17 16:29:22] Production.INFO: ProcessCDR(1,14929487,1,1,2) [2025-04-17 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929487', 'tblTempUsageDetail_20' ) start [2025-04-17 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929487', 'tblTempUsageDetail_20' ) end [2025-04-17 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:29:27] Production.INFO: ==8151== Releasing lock... [2025-04-17 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:29:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:30:06 [end_date_ymd] => 2025-04-17 16:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:30:06' and `end` < '2025-04-17 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-17 16:30:20] Production.INFO: count ==5736 [2025-04-17 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:30:06 - End Time 2025-04-17 16:30:06 [2025-04-17 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929493', 'tblTempUsageDetail_20' ) start [2025-04-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929493', 'tblTempUsageDetail_20' ) end [2025-04-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929493', 'tblTempVendorCDR_20' ) start [2025-04-17 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929493', 'tblTempVendorCDR_20' ) end [2025-04-17 16:30:22] Production.INFO: ProcessCDR(1,14929493,1,1,2) [2025-04-17 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929493', 'tblTempUsageDetail_20' ) start [2025-04-17 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929493', 'tblTempUsageDetail_20' ) end [2025-04-17 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:30:27] Production.INFO: ==8232== Releasing lock... [2025-04-17 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:30:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:31:06 [end_date_ymd] => 2025-04-17 16:31:06 [RateCDR] => 1 ) [2025-04-17 16: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-17 13:31:06' and `end` < '2025-04-17 16: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-17 16:31:19] Production.INFO: count ==5735 [2025-04-17 16:31:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:31:06 - End Time 2025-04-17 16:31:06 [2025-04-17 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929498', 'tblTempUsageDetail_20' ) start [2025-04-17 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929498', 'tblTempUsageDetail_20' ) end [2025-04-17 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929498', 'tblTempVendorCDR_20' ) start [2025-04-17 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929498', 'tblTempVendorCDR_20' ) end [2025-04-17 16:31:22] Production.INFO: ProcessCDR(1,14929498,1,1,2) [2025-04-17 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929498', 'tblTempUsageDetail_20' ) start [2025-04-17 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929498', 'tblTempUsageDetail_20' ) end [2025-04-17 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:31:28] Production.INFO: ==8313== Releasing lock... [2025-04-17 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:31:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:32:05 [end_date_ymd] => 2025-04-17 16:32:05 [RateCDR] => 1 ) [2025-04-17 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:32:05' and `end` < '2025-04-17 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:32:19] Production.INFO: count ==5728 [2025-04-17 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:32:05 - End Time 2025-04-17 16:32:05 [2025-04-17 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929503', 'tblTempUsageDetail_20' ) start [2025-04-17 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929503', 'tblTempUsageDetail_20' ) end [2025-04-17 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929503', 'tblTempVendorCDR_20' ) start [2025-04-17 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929503', 'tblTempVendorCDR_20' ) end [2025-04-17 16:32:22] Production.INFO: ProcessCDR(1,14929503,1,1,2) [2025-04-17 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929503', 'tblTempUsageDetail_20' ) start [2025-04-17 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929503', 'tblTempUsageDetail_20' ) end [2025-04-17 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:32:27] Production.INFO: ==8398== Releasing lock... [2025-04-17 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:32:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:33:05 [end_date_ymd] => 2025-04-17 16:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:33:05' and `end` < '2025-04-17 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-17 16:33:19] Production.INFO: count ==5730 [2025-04-17 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:33:05 - End Time 2025-04-17 16:33:05 [2025-04-17 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929508', 'tblTempUsageDetail_20' ) start [2025-04-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929508', 'tblTempUsageDetail_20' ) end [2025-04-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929508', 'tblTempVendorCDR_20' ) start [2025-04-17 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929508', 'tblTempVendorCDR_20' ) end [2025-04-17 16:33:22] Production.INFO: ProcessCDR(1,14929508,1,1,2) [2025-04-17 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929508', 'tblTempUsageDetail_20' ) start [2025-04-17 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929508', 'tblTempUsageDetail_20' ) end [2025-04-17 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:33:28] Production.INFO: ==8479== Releasing lock... [2025-04-17 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:33:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:34:05 [end_date_ymd] => 2025-04-17 16:34:05 [RateCDR] => 1 ) [2025-04-17 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:34:05' and `end` < '2025-04-17 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:34:19] Production.INFO: count ==5746 [2025-04-17 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:34:05 - End Time 2025-04-17 16:34:05 [2025-04-17 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929513', 'tblTempUsageDetail_20' ) start [2025-04-17 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929513', 'tblTempUsageDetail_20' ) end [2025-04-17 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929513', 'tblTempVendorCDR_20' ) start [2025-04-17 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929513', 'tblTempVendorCDR_20' ) end [2025-04-17 16:34:22] Production.INFO: ProcessCDR(1,14929513,1,1,2) [2025-04-17 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929513', 'tblTempUsageDetail_20' ) start [2025-04-17 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929513', 'tblTempUsageDetail_20' ) end [2025-04-17 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:34:27] Production.INFO: ==8551== Releasing lock... [2025-04-17 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:34:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:35:05 [end_date_ymd] => 2025-04-17 16:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:35:05' and `end` < '2025-04-17 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-17 16:35:19] Production.INFO: count ==5747 [2025-04-17 16:35:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:35:05 - End Time 2025-04-17 16:35:05 [2025-04-17 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929518', 'tblTempUsageDetail_20' ) start [2025-04-17 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929518', 'tblTempUsageDetail_20' ) end [2025-04-17 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929518', 'tblTempVendorCDR_20' ) start [2025-04-17 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929518', 'tblTempVendorCDR_20' ) end [2025-04-17 16:35:22] Production.INFO: ProcessCDR(1,14929518,1,1,2) [2025-04-17 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929518', 'tblTempUsageDetail_20' ) start [2025-04-17 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929518', 'tblTempUsageDetail_20' ) end [2025-04-17 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:35:27] Production.INFO: ==8628== Releasing lock... [2025-04-17 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:35:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:36:06 [end_date_ymd] => 2025-04-17 16:36:06 [RateCDR] => 1 ) [2025-04-17 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:36:06' and `end` < '2025-04-17 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:36:20] Production.INFO: count ==5734 [2025-04-17 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:36:06 - End Time 2025-04-17 16:36:06 [2025-04-17 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929523', 'tblTempUsageDetail_20' ) start [2025-04-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929523', 'tblTempUsageDetail_20' ) end [2025-04-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929523', 'tblTempVendorCDR_20' ) start [2025-04-17 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929523', 'tblTempVendorCDR_20' ) end [2025-04-17 16:36:23] Production.INFO: ProcessCDR(1,14929523,1,1,2) [2025-04-17 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929523', 'tblTempUsageDetail_20' ) start [2025-04-17 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929523', 'tblTempUsageDetail_20' ) end [2025-04-17 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:36:28] Production.INFO: ==8700== Releasing lock... [2025-04-17 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:36:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:37:05 [end_date_ymd] => 2025-04-17 16:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:37:05' and `end` < '2025-04-17 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-17 16:37:19] Production.INFO: count ==5735 [2025-04-17 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:37:05 - End Time 2025-04-17 16:37:05 [2025-04-17 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929528', 'tblTempUsageDetail_20' ) start [2025-04-17 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929528', 'tblTempUsageDetail_20' ) end [2025-04-17 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929528', 'tblTempVendorCDR_20' ) start [2025-04-17 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929528', 'tblTempVendorCDR_20' ) end [2025-04-17 16:37:22] Production.INFO: ProcessCDR(1,14929528,1,1,2) [2025-04-17 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929528', 'tblTempUsageDetail_20' ) start [2025-04-17 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929528', 'tblTempUsageDetail_20' ) end [2025-04-17 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:37:27] Production.INFO: ==8779== Releasing lock... [2025-04-17 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:37:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:38:06 [end_date_ymd] => 2025-04-17 16:38:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:38:06' and `end` < '2025-04-17 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-17 16:38:20] Production.INFO: count ==5722 [2025-04-17 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:38:06 - End Time 2025-04-17 16:38:06 [2025-04-17 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929533', 'tblTempUsageDetail_20' ) start [2025-04-17 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929533', 'tblTempUsageDetail_20' ) end [2025-04-17 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929533', 'tblTempVendorCDR_20' ) start [2025-04-17 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929533', 'tblTempVendorCDR_20' ) end [2025-04-17 16:38:23] Production.INFO: ProcessCDR(1,14929533,1,1,2) [2025-04-17 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929533', 'tblTempUsageDetail_20' ) start [2025-04-17 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929533', 'tblTempUsageDetail_20' ) end [2025-04-17 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:38:28] Production.INFO: ==8855== Releasing lock... [2025-04-17 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:38:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:39:05 [end_date_ymd] => 2025-04-17 16:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:39:05' and `end` < '2025-04-17 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-17 16:39:19] Production.INFO: count ==5732 [2025-04-17 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:39:05 - End Time 2025-04-17 16:39:05 [2025-04-17 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929538', 'tblTempUsageDetail_20' ) start [2025-04-17 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929538', 'tblTempUsageDetail_20' ) end [2025-04-17 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929538', 'tblTempVendorCDR_20' ) start [2025-04-17 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929538', 'tblTempVendorCDR_20' ) end [2025-04-17 16:39:22] Production.INFO: ProcessCDR(1,14929538,1,1,2) [2025-04-17 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929538', 'tblTempUsageDetail_20' ) start [2025-04-17 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929538', 'tblTempUsageDetail_20' ) end [2025-04-17 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:39:27] Production.INFO: ==8939== Releasing lock... [2025-04-17 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:39:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:40:06 [end_date_ymd] => 2025-04-17 16:40:06 [RateCDR] => 1 ) [2025-04-17 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:40:06' and `end` < '2025-04-17 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:40:20] Production.INFO: count ==5716 [2025-04-17 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:40:06 - End Time 2025-04-17 16:40:06 [2025-04-17 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929544', 'tblTempUsageDetail_20' ) start [2025-04-17 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929544', 'tblTempUsageDetail_20' ) end [2025-04-17 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929544', 'tblTempVendorCDR_20' ) start [2025-04-17 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929544', 'tblTempVendorCDR_20' ) end [2025-04-17 16:40:23] Production.INFO: ProcessCDR(1,14929544,1,1,2) [2025-04-17 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929544', 'tblTempUsageDetail_20' ) start [2025-04-17 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929544', 'tblTempUsageDetail_20' ) end [2025-04-17 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:40:28] Production.INFO: ==9014== Releasing lock... [2025-04-17 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:40:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:41:05 [end_date_ymd] => 2025-04-17 16:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:41:05' and `end` < '2025-04-17 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-17 16:41:19] Production.INFO: count ==5741 [2025-04-17 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:41:05 - End Time 2025-04-17 16:41:05 [2025-04-17 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929549', 'tblTempUsageDetail_20' ) start [2025-04-17 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929549', 'tblTempUsageDetail_20' ) end [2025-04-17 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929549', 'tblTempVendorCDR_20' ) start [2025-04-17 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929549', 'tblTempVendorCDR_20' ) end [2025-04-17 16:41:22] Production.INFO: ProcessCDR(1,14929549,1,1,2) [2025-04-17 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929549', 'tblTempUsageDetail_20' ) start [2025-04-17 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929549', 'tblTempUsageDetail_20' ) end [2025-04-17 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:41:27] Production.INFO: ==9094== Releasing lock... [2025-04-17 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:41:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:42:05 [end_date_ymd] => 2025-04-17 16:42:05 [RateCDR] => 1 ) [2025-04-17 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:42:05' and `end` < '2025-04-17 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:42:19] Production.INFO: count ==5755 [2025-04-17 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:42:05 - End Time 2025-04-17 16:42:05 [2025-04-17 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929554', 'tblTempUsageDetail_20' ) start [2025-04-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929554', 'tblTempUsageDetail_20' ) end [2025-04-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929554', 'tblTempVendorCDR_20' ) start [2025-04-17 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929554', 'tblTempVendorCDR_20' ) end [2025-04-17 16:42:22] Production.INFO: ProcessCDR(1,14929554,1,1,2) [2025-04-17 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929554', 'tblTempUsageDetail_20' ) start [2025-04-17 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929554', 'tblTempUsageDetail_20' ) end [2025-04-17 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:42:27] Production.INFO: ==9205== Releasing lock... [2025-04-17 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:42:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:43:04 [end_date_ymd] => 2025-04-17 16:43:04 [RateCDR] => 1 ) [2025-04-17 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:43:04' and `end` < '2025-04-17 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:43:19] Production.INFO: count ==5749 [2025-04-17 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:43:04 - End Time 2025-04-17 16:43:04 [2025-04-17 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929559', 'tblTempUsageDetail_20' ) start [2025-04-17 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929559', 'tblTempUsageDetail_20' ) end [2025-04-17 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929559', 'tblTempVendorCDR_20' ) start [2025-04-17 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929559', 'tblTempVendorCDR_20' ) end [2025-04-17 16:43:22] Production.INFO: ProcessCDR(1,14929559,1,1,2) [2025-04-17 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929559', 'tblTempUsageDetail_20' ) start [2025-04-17 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929559', 'tblTempUsageDetail_20' ) end [2025-04-17 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:43:27] Production.INFO: ==9281== Releasing lock... [2025-04-17 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:43:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:44:05 [end_date_ymd] => 2025-04-17 16:44:05 [RateCDR] => 1 ) [2025-04-17 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:44:05' and `end` < '2025-04-17 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:44:19] Production.INFO: count ==5756 [2025-04-17 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:44:05 - End Time 2025-04-17 16:44:05 [2025-04-17 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929564', 'tblTempUsageDetail_20' ) start [2025-04-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929564', 'tblTempUsageDetail_20' ) end [2025-04-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929564', 'tblTempVendorCDR_20' ) start [2025-04-17 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929564', 'tblTempVendorCDR_20' ) end [2025-04-17 16:44:22] Production.INFO: ProcessCDR(1,14929564,1,1,2) [2025-04-17 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929564', 'tblTempUsageDetail_20' ) start [2025-04-17 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929564', 'tblTempUsageDetail_20' ) end [2025-04-17 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:44:28] Production.INFO: ==9368== Releasing lock... [2025-04-17 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:44:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:45:05 [end_date_ymd] => 2025-04-17 16:45:05 [RateCDR] => 1 ) [2025-04-17 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:45:05' and `end` < '2025-04-17 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:45:19] Production.INFO: count ==5784 [2025-04-17 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:45:05 - End Time 2025-04-17 16:45:05 [2025-04-17 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929569', 'tblTempUsageDetail_20' ) start [2025-04-17 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929569', 'tblTempUsageDetail_20' ) end [2025-04-17 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929569', 'tblTempVendorCDR_20' ) start [2025-04-17 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929569', 'tblTempVendorCDR_20' ) end [2025-04-17 16:45:22] Production.INFO: ProcessCDR(1,14929569,1,1,2) [2025-04-17 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929569', 'tblTempUsageDetail_20' ) start [2025-04-17 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929569', 'tblTempUsageDetail_20' ) end [2025-04-17 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:45:27] Production.INFO: ==9449== Releasing lock... [2025-04-17 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:45:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:46:05 [end_date_ymd] => 2025-04-17 16:46:05 [RateCDR] => 1 ) [2025-04-17 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:46:05' and `end` < '2025-04-17 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:46:19] Production.INFO: count ==5777 [2025-04-17 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:46:05 - End Time 2025-04-17 16:46:05 [2025-04-17 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929574', 'tblTempUsageDetail_20' ) start [2025-04-17 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929574', 'tblTempUsageDetail_20' ) end [2025-04-17 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929574', 'tblTempVendorCDR_20' ) start [2025-04-17 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929574', 'tblTempVendorCDR_20' ) end [2025-04-17 16:46:22] Production.INFO: ProcessCDR(1,14929574,1,1,2) [2025-04-17 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929574', 'tblTempUsageDetail_20' ) start [2025-04-17 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929574', 'tblTempUsageDetail_20' ) end [2025-04-17 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:46:27] Production.INFO: ==9525== Releasing lock... [2025-04-17 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:46:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:47:05 [end_date_ymd] => 2025-04-17 16:47:05 [RateCDR] => 1 ) [2025-04-17 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:47:05' and `end` < '2025-04-17 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:47:19] Production.INFO: count ==5778 [2025-04-17 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:47:05 - End Time 2025-04-17 16:47:05 [2025-04-17 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929579', 'tblTempUsageDetail_20' ) start [2025-04-17 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929579', 'tblTempUsageDetail_20' ) end [2025-04-17 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929579', 'tblTempVendorCDR_20' ) start [2025-04-17 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929579', 'tblTempVendorCDR_20' ) end [2025-04-17 16:47:22] Production.INFO: ProcessCDR(1,14929579,1,1,2) [2025-04-17 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929579', 'tblTempUsageDetail_20' ) start [2025-04-17 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929579', 'tblTempUsageDetail_20' ) end [2025-04-17 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:47:26] Production.INFO: ==9601== Releasing lock... [2025-04-17 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:47:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:48:05 [end_date_ymd] => 2025-04-17 16:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:48:05' and `end` < '2025-04-17 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-17 16:48:20] Production.INFO: count ==5770 [2025-04-17 16:48:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:48:05 - End Time 2025-04-17 16:48:05 [2025-04-17 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929584', 'tblTempUsageDetail_20' ) start [2025-04-17 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929584', 'tblTempUsageDetail_20' ) end [2025-04-17 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929584', 'tblTempVendorCDR_20' ) start [2025-04-17 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929584', 'tblTempVendorCDR_20' ) end [2025-04-17 16:48:23] Production.INFO: ProcessCDR(1,14929584,1,1,2) [2025-04-17 16:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929584', 'tblTempUsageDetail_20' ) start [2025-04-17 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929584', 'tblTempUsageDetail_20' ) end [2025-04-17 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:48:28] Production.INFO: ==9676== Releasing lock... [2025-04-17 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:48:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:49:06 [end_date_ymd] => 2025-04-17 16:49:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:49:06' and `end` < '2025-04-17 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-17 16:49:19] Production.INFO: count ==5769 [2025-04-17 16:49:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:49:06 - End Time 2025-04-17 16:49:06 [2025-04-17 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929589', 'tblTempUsageDetail_20' ) start [2025-04-17 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929589', 'tblTempUsageDetail_20' ) end [2025-04-17 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929589', 'tblTempVendorCDR_20' ) start [2025-04-17 16:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929589', 'tblTempVendorCDR_20' ) end [2025-04-17 16:49:23] Production.INFO: ProcessCDR(1,14929589,1,1,2) [2025-04-17 16:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929589', 'tblTempUsageDetail_20' ) start [2025-04-17 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929589', 'tblTempUsageDetail_20' ) end [2025-04-17 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:49:28] Production.INFO: ==9750== Releasing lock... [2025-04-17 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:49:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:50:06 [end_date_ymd] => 2025-04-17 16:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 13:50:06' and `end` < '2025-04-17 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-17 16:50:20] Production.INFO: count ==5731 [2025-04-17 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:50:06 - End Time 2025-04-17 16:50:06 [2025-04-17 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929595', 'tblTempUsageDetail_20' ) start [2025-04-17 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929595', 'tblTempUsageDetail_20' ) end [2025-04-17 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929595', 'tblTempVendorCDR_20' ) start [2025-04-17 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929595', 'tblTempVendorCDR_20' ) end [2025-04-17 16:50:23] Production.INFO: ProcessCDR(1,14929595,1,1,2) [2025-04-17 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929595', 'tblTempUsageDetail_20' ) start [2025-04-17 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929595', 'tblTempUsageDetail_20' ) end [2025-04-17 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:50:28] Production.INFO: ==9831== Releasing lock... [2025-04-17 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:50:28] Production.INFO: 71 MB #Memory Used# [2025-04-17 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:51:05 [end_date_ymd] => 2025-04-17 16:51:05 [RateCDR] => 1 ) [2025-04-17 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:51:05' and `end` < '2025-04-17 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:51:20] Production.INFO: count ==5744 [2025-04-17 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:51:05 - End Time 2025-04-17 16:51:05 [2025-04-17 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929600', 'tblTempUsageDetail_20' ) start [2025-04-17 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929600', 'tblTempUsageDetail_20' ) end [2025-04-17 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929600', 'tblTempVendorCDR_20' ) start [2025-04-17 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929600', 'tblTempVendorCDR_20' ) end [2025-04-17 16:51:22] Production.INFO: ProcessCDR(1,14929600,1,1,2) [2025-04-17 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929600', 'tblTempUsageDetail_20' ) start [2025-04-17 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929600', 'tblTempUsageDetail_20' ) end [2025-04-17 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:51:27] Production.INFO: ==9907== Releasing lock... [2025-04-17 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:51:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:52:04 [end_date_ymd] => 2025-04-17 16:52:04 [RateCDR] => 1 ) [2025-04-17 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:52:04' and `end` < '2025-04-17 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:52:18] Production.INFO: count ==5765 [2025-04-17 16:52:20] Production.ERROR: pbx CDR StartTime 2025-04-17 13:52:04 - End Time 2025-04-17 16:52:04 [2025-04-17 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929605', 'tblTempUsageDetail_20' ) start [2025-04-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929605', 'tblTempUsageDetail_20' ) end [2025-04-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929605', 'tblTempVendorCDR_20' ) start [2025-04-17 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929605', 'tblTempVendorCDR_20' ) end [2025-04-17 16:52:21] Production.INFO: ProcessCDR(1,14929605,1,1,2) [2025-04-17 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929605', 'tblTempUsageDetail_20' ) start [2025-04-17 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929605', 'tblTempUsageDetail_20' ) end [2025-04-17 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:52:26] Production.INFO: ==9983== Releasing lock... [2025-04-17 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:52:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:53:05 [end_date_ymd] => 2025-04-17 16:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:53:05' and `end` < '2025-04-17 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-17 16:53:19] Production.INFO: count ==5766 [2025-04-17 16:53:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:53:05 - End Time 2025-04-17 16:53:05 [2025-04-17 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929610', 'tblTempUsageDetail_20' ) start [2025-04-17 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929610', 'tblTempUsageDetail_20' ) end [2025-04-17 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929610', 'tblTempVendorCDR_20' ) start [2025-04-17 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929610', 'tblTempVendorCDR_20' ) end [2025-04-17 16:53:22] Production.INFO: ProcessCDR(1,14929610,1,1,2) [2025-04-17 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929610', 'tblTempUsageDetail_20' ) start [2025-04-17 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929610', 'tblTempUsageDetail_20' ) end [2025-04-17 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:53:27] Production.INFO: ==10061== Releasing lock... [2025-04-17 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:53:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:54:05 [end_date_ymd] => 2025-04-17 16:54:05 [RateCDR] => 1 ) [2025-04-17 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:54:05' and `end` < '2025-04-17 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:54:19] Production.INFO: count ==5780 [2025-04-17 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:54:05 - End Time 2025-04-17 16:54:05 [2025-04-17 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929615', 'tblTempUsageDetail_20' ) start [2025-04-17 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929615', 'tblTempUsageDetail_20' ) end [2025-04-17 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929615', 'tblTempVendorCDR_20' ) start [2025-04-17 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929615', 'tblTempVendorCDR_20' ) end [2025-04-17 16:54:22] Production.INFO: ProcessCDR(1,14929615,1,1,2) [2025-04-17 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929615', 'tblTempUsageDetail_20' ) start [2025-04-17 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929615', 'tblTempUsageDetail_20' ) end [2025-04-17 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:54:27] Production.INFO: ==10135== Releasing lock... [2025-04-17 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:54:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:55:05 [end_date_ymd] => 2025-04-17 16:55:05 [RateCDR] => 1 ) [2025-04-17 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:55:05' and `end` < '2025-04-17 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:55:19] Production.INFO: count ==5781 [2025-04-17 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-17 13:55:05 - End Time 2025-04-17 16:55:05 [2025-04-17 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929620', 'tblTempUsageDetail_20' ) start [2025-04-17 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929620', 'tblTempUsageDetail_20' ) end [2025-04-17 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929620', 'tblTempVendorCDR_20' ) start [2025-04-17 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929620', 'tblTempVendorCDR_20' ) end [2025-04-17 16:55:22] Production.INFO: ProcessCDR(1,14929620,1,1,2) [2025-04-17 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929620', 'tblTempUsageDetail_20' ) start [2025-04-17 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929620', 'tblTempUsageDetail_20' ) end [2025-04-17 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:55:28] Production.INFO: ==10207== Releasing lock... [2025-04-17 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:55:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:56:05 [end_date_ymd] => 2025-04-17 16:56:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:56:05' and `end` < '2025-04-17 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-17 16:56:19] Production.INFO: count ==5778 [2025-04-17 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:56:05 - End Time 2025-04-17 16:56:05 [2025-04-17 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929625', 'tblTempUsageDetail_20' ) start [2025-04-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929625', 'tblTempUsageDetail_20' ) end [2025-04-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929625', 'tblTempVendorCDR_20' ) start [2025-04-17 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929625', 'tblTempVendorCDR_20' ) end [2025-04-17 16:56:22] Production.INFO: ProcessCDR(1,14929625,1,1,2) [2025-04-17 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929625', 'tblTempUsageDetail_20' ) start [2025-04-17 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929625', 'tblTempUsageDetail_20' ) end [2025-04-17 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:56:27] Production.INFO: ==10282== Releasing lock... [2025-04-17 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:56:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:57:05 [end_date_ymd] => 2025-04-17 16:57:05 [RateCDR] => 1 ) [2025-04-17 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 13:57:05' and `end` < '2025-04-17 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 16:57:19] Production.INFO: count ==5788 [2025-04-17 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:57:05 - End Time 2025-04-17 16:57:05 [2025-04-17 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929630', 'tblTempUsageDetail_20' ) start [2025-04-17 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929630', 'tblTempUsageDetail_20' ) end [2025-04-17 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929630', 'tblTempVendorCDR_20' ) start [2025-04-17 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929630', 'tblTempVendorCDR_20' ) end [2025-04-17 16:57:22] Production.INFO: ProcessCDR(1,14929630,1,1,2) [2025-04-17 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929630', 'tblTempUsageDetail_20' ) start [2025-04-17 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929630', 'tblTempUsageDetail_20' ) end [2025-04-17 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:57:27] Production.INFO: ==10399== Releasing lock... [2025-04-17 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:57:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:58:05 [end_date_ymd] => 2025-04-17 16:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:58:05' and `end` < '2025-04-17 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-17 16:58:19] Production.INFO: count ==5782 [2025-04-17 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:58:05 - End Time 2025-04-17 16:58:05 [2025-04-17 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929635', 'tblTempUsageDetail_20' ) start [2025-04-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929635', 'tblTempUsageDetail_20' ) end [2025-04-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929635', 'tblTempVendorCDR_20' ) start [2025-04-17 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929635', 'tblTempVendorCDR_20' ) end [2025-04-17 16:58:21] Production.INFO: ProcessCDR(1,14929635,1,1,2) [2025-04-17 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929635', 'tblTempUsageDetail_20' ) start [2025-04-17 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929635', 'tblTempUsageDetail_20' ) end [2025-04-17 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:58:26] Production.INFO: ==10480== Releasing lock... [2025-04-17 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:58:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 13:59:05 [end_date_ymd] => 2025-04-17 16:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 13:59:05' and `end` < '2025-04-17 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-17 16:59:19] Production.INFO: count ==5779 [2025-04-17 16:59:21] Production.ERROR: pbx CDR StartTime 2025-04-17 13:59:05 - End Time 2025-04-17 16:59:05 [2025-04-17 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929640', 'tblTempUsageDetail_20' ) start [2025-04-17 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929640', 'tblTempUsageDetail_20' ) end [2025-04-17 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929640', 'tblTempVendorCDR_20' ) start [2025-04-17 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929640', 'tblTempVendorCDR_20' ) end [2025-04-17 16:59:22] Production.INFO: ProcessCDR(1,14929640,1,1,2) [2025-04-17 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929640', 'tblTempUsageDetail_20' ) start [2025-04-17 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929640', 'tblTempUsageDetail_20' ) end [2025-04-17 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 16:59:26] Production.INFO: ==10552== Releasing lock... [2025-04-17 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 16:59:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-17 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:00:05 [end_date_ymd] => 2025-04-17 17:00:05 [RateCDR] => 1 ) [2025-04-17 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:00:05' and `end` < '2025-04-17 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:00:20] Production.INFO: count ==5753 [2025-04-17 17:00:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:00:05 - End Time 2025-04-17 17:00:05 [2025-04-17 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929646', 'tblTempUsageDetail_20' ) start [2025-04-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929646', 'tblTempUsageDetail_20' ) end [2025-04-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929646', 'tblTempVendorCDR_20' ) start [2025-04-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929646', 'tblTempVendorCDR_20' ) end [2025-04-17 17:00:23] Production.INFO: ProcessCDR(1,14929646,1,1,2) [2025-04-17 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929646', 'tblTempUsageDetail_20' ) start [2025-04-17 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929646', 'tblTempUsageDetail_20' ) end [2025-04-17 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:00:28] Production.INFO: ==10630== Releasing lock... [2025-04-17 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:00:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-17 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:01:05 [end_date_ymd] => 2025-04-17 17:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:01:05' and `end` < '2025-04-17 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-17 17:01:19] Production.INFO: count ==5722 [2025-04-17 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:01:05 - End Time 2025-04-17 17:01:05 [2025-04-17 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929651', 'tblTempUsageDetail_20' ) start [2025-04-17 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929651', 'tblTempUsageDetail_20' ) end [2025-04-17 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929651', 'tblTempVendorCDR_20' ) start [2025-04-17 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929651', 'tblTempVendorCDR_20' ) end [2025-04-17 17:01:22] Production.INFO: ProcessCDR(1,14929651,1,1,2) [2025-04-17 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929651', 'tblTempUsageDetail_20' ) start [2025-04-17 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929651', 'tblTempUsageDetail_20' ) end [2025-04-17 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:01:27] Production.INFO: ==10718== Releasing lock... [2025-04-17 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:01:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:02:05 [end_date_ymd] => 2025-04-17 17:02:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:02:05' and `end` < '2025-04-17 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:02:19] Production.INFO: count ==5714 [2025-04-17 17:02:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:02:05 - End Time 2025-04-17 17:02:05 [2025-04-17 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929656', 'tblTempUsageDetail_20' ) start [2025-04-17 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929656', 'tblTempUsageDetail_20' ) end [2025-04-17 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929656', 'tblTempVendorCDR_20' ) start [2025-04-17 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929656', 'tblTempVendorCDR_20' ) end [2025-04-17 17:02:22] Production.INFO: ProcessCDR(1,14929656,1,1,2) [2025-04-17 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929656', 'tblTempUsageDetail_20' ) start [2025-04-17 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929656', 'tblTempUsageDetail_20' ) end [2025-04-17 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:02:27] Production.INFO: ==10797== Releasing lock... [2025-04-17 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:02:27] Production.INFO: 71 MB #Memory Used# [2025-04-17 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:03:05 [end_date_ymd] => 2025-04-17 17:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:03:05' and `end` < '2025-04-17 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-17 17:03:19] Production.INFO: count ==5673 [2025-04-17 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:03:05 - End Time 2025-04-17 17:03:05 [2025-04-17 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929661', 'tblTempUsageDetail_20' ) start [2025-04-17 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929661', 'tblTempUsageDetail_20' ) end [2025-04-17 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929661', 'tblTempVendorCDR_20' ) start [2025-04-17 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929661', 'tblTempVendorCDR_20' ) end [2025-04-17 17:03:21] Production.INFO: ProcessCDR(1,14929661,1,1,2) [2025-04-17 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929661', 'tblTempUsageDetail_20' ) start [2025-04-17 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929661', 'tblTempUsageDetail_20' ) end [2025-04-17 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:03:24] Production.INFO: ==10874== Releasing lock... [2025-04-17 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:03:24] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:04:05 [end_date_ymd] => 2025-04-17 17:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:04:05' and `end` < '2025-04-17 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-17 17:04:19] Production.INFO: count ==5671 [2025-04-17 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:04:05 - End Time 2025-04-17 17:04:05 [2025-04-17 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929666', 'tblTempUsageDetail_20' ) start [2025-04-17 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929666', 'tblTempUsageDetail_20' ) end [2025-04-17 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929666', 'tblTempVendorCDR_20' ) start [2025-04-17 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929666', 'tblTempVendorCDR_20' ) end [2025-04-17 17:04:22] Production.INFO: ProcessCDR(1,14929666,1,1,2) [2025-04-17 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929666', 'tblTempUsageDetail_20' ) start [2025-04-17 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929666', 'tblTempUsageDetail_20' ) end [2025-04-17 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:04:26] Production.INFO: ==10947== Releasing lock... [2025-04-17 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:04:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:05:05 [end_date_ymd] => 2025-04-17 17:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:05:05' and `end` < '2025-04-17 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-17 17:05:19] Production.INFO: count ==5677 [2025-04-17 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:05:05 - End Time 2025-04-17 17:05:05 [2025-04-17 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929671', 'tblTempUsageDetail_20' ) start [2025-04-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929671', 'tblTempUsageDetail_20' ) end [2025-04-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929671', 'tblTempVendorCDR_20' ) start [2025-04-17 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929671', 'tblTempVendorCDR_20' ) end [2025-04-17 17:05:21] Production.INFO: ProcessCDR(1,14929671,1,1,2) [2025-04-17 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929671', 'tblTempUsageDetail_20' ) start [2025-04-17 17:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929671', 'tblTempUsageDetail_20' ) end [2025-04-17 17:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:05:28] Production.INFO: ==11022== Releasing lock... [2025-04-17 17:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:05:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:06:05 [end_date_ymd] => 2025-04-17 17:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:06:05' and `end` < '2025-04-17 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-17 17:06:19] Production.INFO: count ==5677 [2025-04-17 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:06:05 - End Time 2025-04-17 17:06:05 [2025-04-17 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929676', 'tblTempUsageDetail_20' ) start [2025-04-17 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929676', 'tblTempUsageDetail_20' ) end [2025-04-17 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929676', 'tblTempVendorCDR_20' ) start [2025-04-17 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929676', 'tblTempVendorCDR_20' ) end [2025-04-17 17:06:22] Production.INFO: ProcessCDR(1,14929676,1,1,2) [2025-04-17 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929676', 'tblTempUsageDetail_20' ) start [2025-04-17 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929676', 'tblTempUsageDetail_20' ) end [2025-04-17 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:06:27] Production.INFO: ==11096== Releasing lock... [2025-04-17 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:06:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-17 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:07:05 [end_date_ymd] => 2025-04-17 17:07:05 [RateCDR] => 1 ) [2025-04-17 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:07:05' and `end` < '2025-04-17 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:07:19] Production.INFO: count ==5676 [2025-04-17 17:07:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:07:05 - End Time 2025-04-17 17:07:05 [2025-04-17 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929681', 'tblTempUsageDetail_20' ) start [2025-04-17 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929681', 'tblTempUsageDetail_20' ) end [2025-04-17 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929681', 'tblTempVendorCDR_20' ) start [2025-04-17 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929681', 'tblTempVendorCDR_20' ) end [2025-04-17 17:07:22] Production.INFO: ProcessCDR(1,14929681,1,1,2) [2025-04-17 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929681', 'tblTempUsageDetail_20' ) start [2025-04-17 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929681', 'tblTempUsageDetail_20' ) end [2025-04-17 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:07:27] Production.INFO: ==11166== Releasing lock... [2025-04-17 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:07:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:08:05 [end_date_ymd] => 2025-04-17 17:08:05 [RateCDR] => 1 ) [2025-04-17 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:08:05' and `end` < '2025-04-17 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-17 17:08:19] Production.INFO: count ==5656 [2025-04-17 17:08:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:08:05 - End Time 2025-04-17 17:08:05 [2025-04-17 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929686', 'tblTempUsageDetail_20' ) start [2025-04-17 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929686', 'tblTempUsageDetail_20' ) end [2025-04-17 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929686', 'tblTempVendorCDR_20' ) start [2025-04-17 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929686', 'tblTempVendorCDR_20' ) end [2025-04-17 17:08:22] Production.INFO: ProcessCDR(1,14929686,1,1,2) [2025-04-17 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929686', 'tblTempUsageDetail_20' ) start [2025-04-17 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929686', 'tblTempUsageDetail_20' ) end [2025-04-17 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:08:27] Production.INFO: ==11244== Releasing lock... [2025-04-17 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:08:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:09:05 [end_date_ymd] => 2025-04-17 17:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:09:05' and `end` < '2025-04-17 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-17 17:09:19] Production.INFO: count ==5652 [2025-04-17 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:09:05 - End Time 2025-04-17 17:09:05 [2025-04-17 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929691', 'tblTempUsageDetail_20' ) start [2025-04-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929691', 'tblTempUsageDetail_20' ) end [2025-04-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929691', 'tblTempVendorCDR_20' ) start [2025-04-17 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929691', 'tblTempVendorCDR_20' ) end [2025-04-17 17:09:21] Production.INFO: ProcessCDR(1,14929691,1,1,2) [2025-04-17 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929691', 'tblTempUsageDetail_20' ) start [2025-04-17 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929691', 'tblTempUsageDetail_20' ) end [2025-04-17 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:09:26] Production.INFO: ==11320== Releasing lock... [2025-04-17 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:09:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:10:06 [end_date_ymd] => 2025-04-17 17:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 14:10:06' and `end` < '2025-04-17 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-17 17:10:20] Production.INFO: count ==5652 [2025-04-17 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:10:06 - End Time 2025-04-17 17:10:06 [2025-04-17 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929696', 'tblTempUsageDetail_20' ) start [2025-04-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929696', 'tblTempUsageDetail_20' ) end [2025-04-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929696', 'tblTempVendorCDR_20' ) start [2025-04-17 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929696', 'tblTempVendorCDR_20' ) end [2025-04-17 17:10:22] Production.INFO: ProcessCDR(1,14929696,1,1,2) [2025-04-17 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929696', 'tblTempUsageDetail_20' ) start [2025-04-17 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929696', 'tblTempUsageDetail_20' ) end [2025-04-17 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:10:27] Production.INFO: ==11394== Releasing lock... [2025-04-17 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:10:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-17 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:11:06 [end_date_ymd] => 2025-04-17 17:11:06 [RateCDR] => 1 ) [2025-04-17 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-17 14:11:06' and `end` < '2025-04-17 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-17 17:11:19] Production.INFO: count ==5583 [2025-04-17 17:11:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:11:06 - End Time 2025-04-17 17:11:06 [2025-04-17 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929702', 'tblTempUsageDetail_20' ) start [2025-04-17 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929702', 'tblTempUsageDetail_20' ) end [2025-04-17 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929702', 'tblTempVendorCDR_20' ) start [2025-04-17 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929702', 'tblTempVendorCDR_20' ) end [2025-04-17 17:11:22] Production.INFO: ProcessCDR(1,14929702,1,1,2) [2025-04-17 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929702', 'tblTempUsageDetail_20' ) start [2025-04-17 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929702', 'tblTempUsageDetail_20' ) end [2025-04-17 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:11:27] Production.INFO: ==11477== Releasing lock... [2025-04-17 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:11:27] Production.INFO: 70 MB #Memory Used# [2025-04-17 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:12:05 [end_date_ymd] => 2025-04-17 17:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:12:05' and `end` < '2025-04-17 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-17 17:12:19] Production.INFO: count ==5566 [2025-04-17 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:12:05 - End Time 2025-04-17 17:12:05 [2025-04-17 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929707', 'tblTempUsageDetail_20' ) start [2025-04-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929707', 'tblTempUsageDetail_20' ) end [2025-04-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929707', 'tblTempVendorCDR_20' ) start [2025-04-17 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929707', 'tblTempVendorCDR_20' ) end [2025-04-17 17:12:22] Production.INFO: ProcessCDR(1,14929707,1,1,2) [2025-04-17 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929707', 'tblTempUsageDetail_20' ) start [2025-04-17 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929707', 'tblTempUsageDetail_20' ) end [2025-04-17 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:12:27] Production.INFO: ==11551== Releasing lock... [2025-04-17 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:12:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:13:05 [end_date_ymd] => 2025-04-17 17:13:05 [RateCDR] => 1 ) [2025-04-17 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:13:05' and `end` < '2025-04-17 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:13:19] Production.INFO: count ==5547 [2025-04-17 17:13:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:13:05 - End Time 2025-04-17 17:13:05 [2025-04-17 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929712', 'tblTempUsageDetail_20' ) start [2025-04-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929712', 'tblTempUsageDetail_20' ) end [2025-04-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929712', 'tblTempVendorCDR_20' ) start [2025-04-17 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929712', 'tblTempVendorCDR_20' ) end [2025-04-17 17:13:22] Production.INFO: ProcessCDR(1,14929712,1,1,2) [2025-04-17 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929712', 'tblTempUsageDetail_20' ) start [2025-04-17 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929712', 'tblTempUsageDetail_20' ) end [2025-04-17 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:13:27] Production.INFO: ==11665== Releasing lock... [2025-04-17 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:13:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:14:05 [end_date_ymd] => 2025-04-17 17:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:14:05' and `end` < '2025-04-17 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-17 17:14:19] Production.INFO: count ==5537 [2025-04-17 17:14:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:14:05 - End Time 2025-04-17 17:14:05 [2025-04-17 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929717', 'tblTempUsageDetail_20' ) start [2025-04-17 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929717', 'tblTempUsageDetail_20' ) end [2025-04-17 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929717', 'tblTempVendorCDR_20' ) start [2025-04-17 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929717', 'tblTempVendorCDR_20' ) end [2025-04-17 17:14:22] Production.INFO: ProcessCDR(1,14929717,1,1,2) [2025-04-17 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929717', 'tblTempUsageDetail_20' ) start [2025-04-17 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929717', 'tblTempUsageDetail_20' ) end [2025-04-17 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:14:25] Production.INFO: ==11737== Releasing lock... [2025-04-17 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:14:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:15:05 [end_date_ymd] => 2025-04-17 17:15:05 [RateCDR] => 1 ) [2025-04-17 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:15:05' and `end` < '2025-04-17 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:15:19] Production.INFO: count ==5553 [2025-04-17 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:15:05 - End Time 2025-04-17 17:15:05 [2025-04-17 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929718', 'tblTempUsageDetail_20' ) start [2025-04-17 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929718', 'tblTempUsageDetail_20' ) end [2025-04-17 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929718', 'tblTempVendorCDR_20' ) start [2025-04-17 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929718', 'tblTempVendorCDR_20' ) end [2025-04-17 17:15:22] Production.INFO: ProcessCDR(1,14929718,1,1,2) [2025-04-17 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929718', 'tblTempUsageDetail_20' ) start [2025-04-17 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929718', 'tblTempUsageDetail_20' ) end [2025-04-17 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:15:27] Production.INFO: ==11813== Releasing lock... [2025-04-17 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:15:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:16:05 [end_date_ymd] => 2025-04-17 17:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:16:05' and `end` < '2025-04-17 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-17 17:16:18] Production.INFO: count ==5534 [2025-04-17 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:16:05 - End Time 2025-04-17 17:16:05 [2025-04-17 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929727', 'tblTempUsageDetail_20' ) start [2025-04-17 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929727', 'tblTempUsageDetail_20' ) end [2025-04-17 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929727', 'tblTempVendorCDR_20' ) start [2025-04-17 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929727', 'tblTempVendorCDR_20' ) end [2025-04-17 17:16:21] Production.INFO: ProcessCDR(1,14929727,1,1,2) [2025-04-17 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929727', 'tblTempUsageDetail_20' ) start [2025-04-17 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929727', 'tblTempUsageDetail_20' ) end [2025-04-17 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:16:26] Production.INFO: ==11883== Releasing lock... [2025-04-17 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:16:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:17:05 [end_date_ymd] => 2025-04-17 17:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:17:05' and `end` < '2025-04-17 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-17 17:17:19] Production.INFO: count ==5525 [2025-04-17 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:17:05 - End Time 2025-04-17 17:17:05 [2025-04-17 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929732', 'tblTempUsageDetail_20' ) start [2025-04-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929732', 'tblTempUsageDetail_20' ) end [2025-04-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929732', 'tblTempVendorCDR_20' ) start [2025-04-17 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929732', 'tblTempVendorCDR_20' ) end [2025-04-17 17:17:21] Production.INFO: ProcessCDR(1,14929732,1,1,2) [2025-04-17 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929732', 'tblTempUsageDetail_20' ) start [2025-04-17 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929732', 'tblTempUsageDetail_20' ) end [2025-04-17 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:17:26] Production.INFO: ==11954== Releasing lock... [2025-04-17 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:17:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:18:05 [end_date_ymd] => 2025-04-17 17:18:05 [RateCDR] => 1 ) [2025-04-17 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:18:05' and `end` < '2025-04-17 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:18:18] Production.INFO: count ==5523 [2025-04-17 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:18:05 - End Time 2025-04-17 17:18:05 [2025-04-17 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929737', 'tblTempUsageDetail_20' ) start [2025-04-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929737', 'tblTempUsageDetail_20' ) end [2025-04-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929737', 'tblTempVendorCDR_20' ) start [2025-04-17 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929737', 'tblTempVendorCDR_20' ) end [2025-04-17 17:18:21] Production.INFO: ProcessCDR(1,14929737,1,1,2) [2025-04-17 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929737', 'tblTempUsageDetail_20' ) start [2025-04-17 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929737', 'tblTempUsageDetail_20' ) end [2025-04-17 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:18:26] Production.INFO: ==12039== Releasing lock... [2025-04-17 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:18:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-17 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:19:05 [end_date_ymd] => 2025-04-17 17:19:05 [RateCDR] => 1 ) [2025-04-17 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:19:05' and `end` < '2025-04-17 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:19:19] Production.INFO: count ==5522 [2025-04-17 17:19:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:19:05 - End Time 2025-04-17 17:19:05 [2025-04-17 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929742', 'tblTempUsageDetail_20' ) start [2025-04-17 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929742', 'tblTempUsageDetail_20' ) end [2025-04-17 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929742', 'tblTempVendorCDR_20' ) start [2025-04-17 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929742', 'tblTempVendorCDR_20' ) end [2025-04-17 17:19:23] Production.INFO: ProcessCDR(1,14929742,1,1,2) [2025-04-17 17:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929742', 'tblTempUsageDetail_20' ) start [2025-04-17 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929742', 'tblTempUsageDetail_20' ) end [2025-04-17 17:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:19:28] Production.INFO: ==12115== Releasing lock... [2025-04-17 17:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:19:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:20:06 [end_date_ymd] => 2025-04-17 17:20:06 [RateCDR] => 1 ) [2025-04-17 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:20:06' and `end` < '2025-04-17 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:20:19] Production.INFO: count ==5513 [2025-04-17 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:20:06 - End Time 2025-04-17 17:20:06 [2025-04-17 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929748', 'tblTempUsageDetail_20' ) start [2025-04-17 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929748', 'tblTempUsageDetail_20' ) end [2025-04-17 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929748', 'tblTempVendorCDR_20' ) start [2025-04-17 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929748', 'tblTempVendorCDR_20' ) end [2025-04-17 17:20:22] Production.INFO: ProcessCDR(1,14929748,1,1,2) [2025-04-17 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929748', 'tblTempUsageDetail_20' ) start [2025-04-17 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929748', 'tblTempUsageDetail_20' ) end [2025-04-17 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:20:27] Production.INFO: ==12190== Releasing lock... [2025-04-17 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:20:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:21:05 [end_date_ymd] => 2025-04-17 17:21:05 [RateCDR] => 1 ) [2025-04-17 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:21:05' and `end` < '2025-04-17 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:21:19] Production.INFO: count ==5522 [2025-04-17 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:21:05 - End Time 2025-04-17 17:21:05 [2025-04-17 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929753', 'tblTempUsageDetail_20' ) start [2025-04-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929753', 'tblTempUsageDetail_20' ) end [2025-04-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929753', 'tblTempVendorCDR_20' ) start [2025-04-17 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929753', 'tblTempVendorCDR_20' ) end [2025-04-17 17:21:21] Production.INFO: ProcessCDR(1,14929753,1,1,2) [2025-04-17 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929753', 'tblTempUsageDetail_20' ) start [2025-04-17 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929753', 'tblTempUsageDetail_20' ) end [2025-04-17 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:21:27] Production.INFO: ==12264== Releasing lock... [2025-04-17 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:21:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-17 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:22:05 [end_date_ymd] => 2025-04-17 17:22:05 [RateCDR] => 1 ) [2025-04-17 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:22:05' and `end` < '2025-04-17 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:22:19] Production.INFO: count ==5509 [2025-04-17 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:22:05 - End Time 2025-04-17 17:22:05 [2025-04-17 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929758', 'tblTempUsageDetail_20' ) start [2025-04-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929758', 'tblTempUsageDetail_20' ) end [2025-04-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929758', 'tblTempVendorCDR_20' ) start [2025-04-17 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929758', 'tblTempVendorCDR_20' ) end [2025-04-17 17:22:22] Production.INFO: ProcessCDR(1,14929758,1,1,2) [2025-04-17 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929758', 'tblTempUsageDetail_20' ) start [2025-04-17 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929758', 'tblTempUsageDetail_20' ) end [2025-04-17 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:22:27] Production.INFO: ==12336== Releasing lock... [2025-04-17 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:22:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:23:05 [end_date_ymd] => 2025-04-17 17:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:23:05' and `end` < '2025-04-17 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-17 17:23:19] Production.INFO: count ==5499 [2025-04-17 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:23:05 - End Time 2025-04-17 17:23:05 [2025-04-17 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929763', 'tblTempUsageDetail_20' ) start [2025-04-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929763', 'tblTempUsageDetail_20' ) end [2025-04-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929763', 'tblTempVendorCDR_20' ) start [2025-04-17 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929763', 'tblTempVendorCDR_20' ) end [2025-04-17 17:23:22] Production.INFO: ProcessCDR(1,14929763,1,1,2) [2025-04-17 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929763', 'tblTempUsageDetail_20' ) start [2025-04-17 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929763', 'tblTempUsageDetail_20' ) end [2025-04-17 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:23:27] Production.INFO: ==12408== Releasing lock... [2025-04-17 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:23:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:24:05 [end_date_ymd] => 2025-04-17 17:24:05 [RateCDR] => 1 ) [2025-04-17 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:24:05' and `end` < '2025-04-17 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:24:19] Production.INFO: count ==5492 [2025-04-17 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:24:05 - End Time 2025-04-17 17:24:05 [2025-04-17 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929768', 'tblTempUsageDetail_20' ) start [2025-04-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929768', 'tblTempUsageDetail_20' ) end [2025-04-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929768', 'tblTempVendorCDR_20' ) start [2025-04-17 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929768', 'tblTempVendorCDR_20' ) end [2025-04-17 17:24:21] Production.INFO: ProcessCDR(1,14929768,1,1,2) [2025-04-17 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929768', 'tblTempUsageDetail_20' ) start [2025-04-17 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929768', 'tblTempUsageDetail_20' ) end [2025-04-17 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:24:26] Production.INFO: ==12482== Releasing lock... [2025-04-17 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:24:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:25:05 [end_date_ymd] => 2025-04-17 17:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:25:05' and `end` < '2025-04-17 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-17 17:25:19] Production.INFO: count ==5477 [2025-04-17 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:25:05 - End Time 2025-04-17 17:25:05 [2025-04-17 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929773', 'tblTempUsageDetail_20' ) start [2025-04-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929773', 'tblTempUsageDetail_20' ) end [2025-04-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929773', 'tblTempVendorCDR_20' ) start [2025-04-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929773', 'tblTempVendorCDR_20' ) end [2025-04-17 17:25:21] Production.INFO: ProcessCDR(1,14929773,1,1,2) [2025-04-17 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929773', 'tblTempUsageDetail_20' ) start [2025-04-17 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929773', 'tblTempUsageDetail_20' ) end [2025-04-17 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:25:26] Production.INFO: ==12558== Releasing lock... [2025-04-17 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:25:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:26:05 [end_date_ymd] => 2025-04-17 17:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:26:05' and `end` < '2025-04-17 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-17 17:26:19] Production.INFO: count ==5465 [2025-04-17 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:26:05 - End Time 2025-04-17 17:26:05 [2025-04-17 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929778', 'tblTempUsageDetail_20' ) start [2025-04-17 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929778', 'tblTempUsageDetail_20' ) end [2025-04-17 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929778', 'tblTempVendorCDR_20' ) start [2025-04-17 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929778', 'tblTempVendorCDR_20' ) end [2025-04-17 17:26:21] Production.INFO: ProcessCDR(1,14929778,1,1,2) [2025-04-17 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929778', 'tblTempUsageDetail_20' ) start [2025-04-17 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929778', 'tblTempUsageDetail_20' ) end [2025-04-17 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:26:26] Production.INFO: ==12628== Releasing lock... [2025-04-17 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:26:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:27:05 [end_date_ymd] => 2025-04-17 17:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:27:05' and `end` < '2025-04-17 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-17 17:27:19] Production.INFO: count ==5455 [2025-04-17 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:27:05 - End Time 2025-04-17 17:27:05 [2025-04-17 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929783', 'tblTempUsageDetail_20' ) start [2025-04-17 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929783', 'tblTempUsageDetail_20' ) end [2025-04-17 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929783', 'tblTempVendorCDR_20' ) start [2025-04-17 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929783', 'tblTempVendorCDR_20' ) end [2025-04-17 17:27:21] Production.INFO: ProcessCDR(1,14929783,1,1,2) [2025-04-17 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929783', 'tblTempUsageDetail_20' ) start [2025-04-17 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929783', 'tblTempUsageDetail_20' ) end [2025-04-17 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:27:26] Production.INFO: ==12704== Releasing lock... [2025-04-17 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:27:26] Production.INFO: 69 MB #Memory Used# [2025-04-17 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:28:06 [end_date_ymd] => 2025-04-17 17:28:06 [RateCDR] => 1 ) [2025-04-17 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-17 14:28:06' and `end` < '2025-04-17 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-17 17:28:19] Production.INFO: count ==5456 [2025-04-17 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:28:06 - End Time 2025-04-17 17:28:06 [2025-04-17 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929788', 'tblTempUsageDetail_20' ) start [2025-04-17 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929788', 'tblTempUsageDetail_20' ) end [2025-04-17 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929788', 'tblTempVendorCDR_20' ) start [2025-04-17 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929788', 'tblTempVendorCDR_20' ) end [2025-04-17 17:28:22] Production.INFO: ProcessCDR(1,14929788,1,1,2) [2025-04-17 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929788', 'tblTempUsageDetail_20' ) start [2025-04-17 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929788', 'tblTempUsageDetail_20' ) end [2025-04-17 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:28:25] Production.INFO: ==12814== Releasing lock... [2025-04-17 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:28:25] Production.INFO: 69 MB #Memory Used# [2025-04-17 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:29:05 [end_date_ymd] => 2025-04-17 17:29:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:29:05' and `end` < '2025-04-17 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-17 17:29:19] Production.INFO: count ==5427 [2025-04-17 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:29:05 - End Time 2025-04-17 17:29:05 [2025-04-17 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929793', 'tblTempUsageDetail_20' ) start [2025-04-17 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929793', 'tblTempUsageDetail_20' ) end [2025-04-17 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929793', 'tblTempVendorCDR_20' ) start [2025-04-17 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929793', 'tblTempVendorCDR_20' ) end [2025-04-17 17:29:22] Production.INFO: ProcessCDR(1,14929793,1,1,2) [2025-04-17 17:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929793', 'tblTempUsageDetail_20' ) start [2025-04-17 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929793', 'tblTempUsageDetail_20' ) end [2025-04-17 17:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:29:25] Production.INFO: ==12885== Releasing lock... [2025-04-17 17:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:29:25] Production.INFO: 68.75 MB #Memory Used# [2025-04-17 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:30:05 [end_date_ymd] => 2025-04-17 17:30:05 [RateCDR] => 1 ) [2025-04-17 17:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:30:05' and `end` < '2025-04-17 17:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:30:19] Production.INFO: count ==5408 [2025-04-17 17:30:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:30:05 - End Time 2025-04-17 17:30:05 [2025-04-17 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929799', 'tblTempUsageDetail_20' ) start [2025-04-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929799', 'tblTempUsageDetail_20' ) end [2025-04-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929799', 'tblTempVendorCDR_20' ) start [2025-04-17 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929799', 'tblTempVendorCDR_20' ) end [2025-04-17 17:30:21] Production.INFO: ProcessCDR(1,14929799,1,1,2) [2025-04-17 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929799', 'tblTempUsageDetail_20' ) start [2025-04-17 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929799', 'tblTempUsageDetail_20' ) end [2025-04-17 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:30:27] Production.INFO: ==12963== Releasing lock... [2025-04-17 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:30:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-17 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:31:05 [end_date_ymd] => 2025-04-17 17:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:31:05' and `end` < '2025-04-17 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-17 17:31:19] Production.INFO: count ==5371 [2025-04-17 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:31:05 - End Time 2025-04-17 17:31:05 [2025-04-17 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929804', 'tblTempUsageDetail_20' ) start [2025-04-17 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929804', 'tblTempUsageDetail_20' ) end [2025-04-17 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929804', 'tblTempVendorCDR_20' ) start [2025-04-17 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929804', 'tblTempVendorCDR_20' ) end [2025-04-17 17:31:21] Production.INFO: ProcessCDR(1,14929804,1,1,2) [2025-04-17 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929804', 'tblTempUsageDetail_20' ) start [2025-04-17 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929804', 'tblTempUsageDetail_20' ) end [2025-04-17 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:31:24] Production.INFO: ==13035== Releasing lock... [2025-04-17 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:31:24] Production.INFO: 68.25 MB #Memory Used# [2025-04-17 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:32:05 [end_date_ymd] => 2025-04-17 17:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:32:05' and `end` < '2025-04-17 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-17 17:32:19] Production.INFO: count ==5376 [2025-04-17 17:32:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:32:05 - End Time 2025-04-17 17:32:05 [2025-04-17 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929809', 'tblTempUsageDetail_20' ) start [2025-04-17 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929809', 'tblTempUsageDetail_20' ) end [2025-04-17 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929809', 'tblTempVendorCDR_20' ) start [2025-04-17 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929809', 'tblTempVendorCDR_20' ) end [2025-04-17 17:32:22] Production.INFO: ProcessCDR(1,14929809,1,1,2) [2025-04-17 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929809', 'tblTempUsageDetail_20' ) start [2025-04-17 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929809', 'tblTempUsageDetail_20' ) end [2025-04-17 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:32:27] Production.INFO: ==13107== Releasing lock... [2025-04-17 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:32:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-17 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:33:05 [end_date_ymd] => 2025-04-17 17:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:33:05' and `end` < '2025-04-17 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-17 17:33:19] Production.INFO: count ==5359 [2025-04-17 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:33:05 - End Time 2025-04-17 17:33:05 [2025-04-17 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929814', 'tblTempUsageDetail_20' ) start [2025-04-17 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929814', 'tblTempUsageDetail_20' ) end [2025-04-17 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929814', 'tblTempVendorCDR_20' ) start [2025-04-17 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929814', 'tblTempVendorCDR_20' ) end [2025-04-17 17:33:21] Production.INFO: ProcessCDR(1,14929814,1,1,2) [2025-04-17 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929814', 'tblTempUsageDetail_20' ) start [2025-04-17 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929814', 'tblTempUsageDetail_20' ) end [2025-04-17 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:33:25] Production.INFO: ==13179== Releasing lock... [2025-04-17 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:33:25] Production.INFO: 68.25 MB #Memory Used# [2025-04-17 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:34:06 [end_date_ymd] => 2025-04-17 17:34:06 [RateCDR] => 1 ) [2025-04-17 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-17 14:34:06' and `end` < '2025-04-17 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-17 17:34:19] Production.INFO: count ==5350 [2025-04-17 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:34:06 - End Time 2025-04-17 17:34:06 [2025-04-17 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929819', 'tblTempUsageDetail_20' ) start [2025-04-17 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929819', 'tblTempUsageDetail_20' ) end [2025-04-17 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929819', 'tblTempVendorCDR_20' ) start [2025-04-17 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929819', 'tblTempVendorCDR_20' ) end [2025-04-17 17:34:22] Production.INFO: ProcessCDR(1,14929819,1,1,2) [2025-04-17 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929819', 'tblTempUsageDetail_20' ) start [2025-04-17 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929819', 'tblTempUsageDetail_20' ) end [2025-04-17 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:34:27] Production.INFO: ==13257== Releasing lock... [2025-04-17 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:34:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-17 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:35:05 [end_date_ymd] => 2025-04-17 17:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:35:05' and `end` < '2025-04-17 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-17 17:35:19] Production.INFO: count ==5334 [2025-04-17 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:35:05 - End Time 2025-04-17 17:35:05 [2025-04-17 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929824', 'tblTempUsageDetail_20' ) start [2025-04-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929824', 'tblTempUsageDetail_20' ) end [2025-04-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929824', 'tblTempVendorCDR_20' ) start [2025-04-17 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929824', 'tblTempVendorCDR_20' ) end [2025-04-17 17:35:21] Production.INFO: ProcessCDR(1,14929824,1,1,2) [2025-04-17 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929824', 'tblTempUsageDetail_20' ) start [2025-04-17 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929824', 'tblTempUsageDetail_20' ) end [2025-04-17 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:35:26] Production.INFO: ==13330== Releasing lock... [2025-04-17 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:35:26] Production.INFO: 68 MB #Memory Used# [2025-04-17 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:36:05 [end_date_ymd] => 2025-04-17 17:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:36:05' and `end` < '2025-04-17 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-17 17:36:19] Production.INFO: count ==5330 [2025-04-17 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:36:05 - End Time 2025-04-17 17:36:05 [2025-04-17 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929829', 'tblTempUsageDetail_20' ) start [2025-04-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929829', 'tblTempUsageDetail_20' ) end [2025-04-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929829', 'tblTempVendorCDR_20' ) start [2025-04-17 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929829', 'tblTempVendorCDR_20' ) end [2025-04-17 17:36:21] Production.INFO: ProcessCDR(1,14929829,1,1,2) [2025-04-17 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929829', 'tblTempUsageDetail_20' ) start [2025-04-17 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929829', 'tblTempUsageDetail_20' ) end [2025-04-17 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:36:26] Production.INFO: ==13404== Releasing lock... [2025-04-17 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:36:26] Production.INFO: 68 MB #Memory Used# [2025-04-17 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:37:05 [end_date_ymd] => 2025-04-17 17:37:05 [RateCDR] => 1 ) [2025-04-17 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:37:05' and `end` < '2025-04-17 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:37:18] Production.INFO: count ==5327 [2025-04-17 17:37:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:37:05 - End Time 2025-04-17 17:37:05 [2025-04-17 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929834', 'tblTempUsageDetail_20' ) start [2025-04-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929834', 'tblTempUsageDetail_20' ) end [2025-04-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929834', 'tblTempVendorCDR_20' ) start [2025-04-17 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929834', 'tblTempVendorCDR_20' ) end [2025-04-17 17:37:21] Production.INFO: ProcessCDR(1,14929834,1,1,2) [2025-04-17 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929834', 'tblTempUsageDetail_20' ) start [2025-04-17 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929834', 'tblTempUsageDetail_20' ) end [2025-04-17 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:37:26] Production.INFO: ==13479== Releasing lock... [2025-04-17 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:37:26] Production.INFO: 68 MB #Memory Used# [2025-04-17 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:38:06 [end_date_ymd] => 2025-04-17 17:38:06 [RateCDR] => 1 ) [2025-04-17 17: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-17 14:38:06' and `end` < '2025-04-17 17: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-17 17:38:19] Production.INFO: count ==5340 [2025-04-17 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:38:06 - End Time 2025-04-17 17:38:06 [2025-04-17 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929839', 'tblTempUsageDetail_20' ) start [2025-04-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929839', 'tblTempUsageDetail_20' ) end [2025-04-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929839', 'tblTempVendorCDR_20' ) start [2025-04-17 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929839', 'tblTempVendorCDR_20' ) end [2025-04-17 17:38:22] Production.INFO: ProcessCDR(1,14929839,1,1,2) [2025-04-17 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929839', 'tblTempUsageDetail_20' ) start [2025-04-17 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929839', 'tblTempUsageDetail_20' ) end [2025-04-17 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:38:25] Production.INFO: ==13552== Releasing lock... [2025-04-17 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:38:25] Production.INFO: 68 MB #Memory Used# [2025-04-17 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:39:05 [end_date_ymd] => 2025-04-17 17:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:39:05' and `end` < '2025-04-17 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-17 17:39:19] Production.INFO: count ==5343 [2025-04-17 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:39:05 - End Time 2025-04-17 17:39:05 [2025-04-17 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929844', 'tblTempUsageDetail_20' ) start [2025-04-17 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929844', 'tblTempUsageDetail_20' ) end [2025-04-17 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929844', 'tblTempVendorCDR_20' ) start [2025-04-17 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929844', 'tblTempVendorCDR_20' ) end [2025-04-17 17:39:21] Production.INFO: ProcessCDR(1,14929844,1,1,2) [2025-04-17 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929844', 'tblTempUsageDetail_20' ) start [2025-04-17 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929844', 'tblTempUsageDetail_20' ) end [2025-04-17 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:39:26] Production.INFO: ==13627== Releasing lock... [2025-04-17 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:39:26] Production.INFO: 68 MB #Memory Used# [2025-04-17 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:40:06 [end_date_ymd] => 2025-04-17 17:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 14:40:06' and `end` < '2025-04-17 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-17 17:40:20] Production.INFO: count ==5338 [2025-04-17 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-17 14:40:06 - End Time 2025-04-17 17:40:06 [2025-04-17 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929850', 'tblTempUsageDetail_20' ) start [2025-04-17 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929850', 'tblTempUsageDetail_20' ) end [2025-04-17 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929850', 'tblTempVendorCDR_20' ) start [2025-04-17 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929850', 'tblTempVendorCDR_20' ) end [2025-04-17 17:40:23] Production.INFO: ProcessCDR(1,14929850,1,1,2) [2025-04-17 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929850', 'tblTempUsageDetail_20' ) start [2025-04-17 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929850', 'tblTempUsageDetail_20' ) end [2025-04-17 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:40:26] Production.INFO: ==13714== Releasing lock... [2025-04-17 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:40:26] Production.INFO: 68 MB #Memory Used# [2025-04-17 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:41:05 [end_date_ymd] => 2025-04-17 17:41:05 [RateCDR] => 1 ) [2025-04-17 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:41:05' and `end` < '2025-04-17 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:41:19] Production.INFO: count ==5297 [2025-04-17 17:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:41:05 - End Time 2025-04-17 17:41:05 [2025-04-17 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929855', 'tblTempUsageDetail_20' ) start [2025-04-17 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929855', 'tblTempUsageDetail_20' ) end [2025-04-17 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929855', 'tblTempVendorCDR_20' ) start [2025-04-17 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929855', 'tblTempVendorCDR_20' ) end [2025-04-17 17:41:21] Production.INFO: ProcessCDR(1,14929855,1,1,2) [2025-04-17 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929855', 'tblTempUsageDetail_20' ) start [2025-04-17 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929855', 'tblTempUsageDetail_20' ) end [2025-04-17 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:41:25] Production.INFO: ==13790== Releasing lock... [2025-04-17 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:41:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-17 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:42:06 [end_date_ymd] => 2025-04-17 17:42:06 [RateCDR] => 1 ) [2025-04-17 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-17 14:42:06' and `end` < '2025-04-17 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-17 17:42:19] Production.INFO: count ==5260 [2025-04-17 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:42:06 - End Time 2025-04-17 17:42:06 [2025-04-17 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929860', 'tblTempUsageDetail_20' ) start [2025-04-17 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929860', 'tblTempUsageDetail_20' ) end [2025-04-17 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929860', 'tblTempVendorCDR_20' ) start [2025-04-17 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929860', 'tblTempVendorCDR_20' ) end [2025-04-17 17:42:22] Production.INFO: ProcessCDR(1,14929860,1,1,2) [2025-04-17 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929860', 'tblTempUsageDetail_20' ) start [2025-04-17 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929860', 'tblTempUsageDetail_20' ) end [2025-04-17 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:42:27] Production.INFO: ==13861== Releasing lock... [2025-04-17 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:42:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-17 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:43:04 [end_date_ymd] => 2025-04-17 17:43:04 [RateCDR] => 1 ) [2025-04-17 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:43:04' and `end` < '2025-04-17 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:43:18] Production.INFO: count ==5234 [2025-04-17 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:43:04 - End Time 2025-04-17 17:43:04 [2025-04-17 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929865', 'tblTempUsageDetail_20' ) start [2025-04-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929865', 'tblTempUsageDetail_20' ) end [2025-04-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929865', 'tblTempVendorCDR_20' ) start [2025-04-17 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929865', 'tblTempVendorCDR_20' ) end [2025-04-17 17:43:20] Production.INFO: ProcessCDR(1,14929865,1,1,2) [2025-04-17 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929865', 'tblTempUsageDetail_20' ) start [2025-04-17 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929865', 'tblTempUsageDetail_20' ) end [2025-04-17 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:43:25] Production.INFO: ==13931== Releasing lock... [2025-04-17 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:43:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-17 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:44:05 [end_date_ymd] => 2025-04-17 17:44:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:44:05' and `end` < '2025-04-17 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-17 17:44:19] Production.INFO: count ==5200 [2025-04-17 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:44:05 - End Time 2025-04-17 17:44:05 [2025-04-17 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929870', 'tblTempUsageDetail_20' ) start [2025-04-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929870', 'tblTempUsageDetail_20' ) end [2025-04-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929870', 'tblTempVendorCDR_20' ) start [2025-04-17 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929870', 'tblTempVendorCDR_20' ) end [2025-04-17 17:44:21] Production.INFO: ProcessCDR(1,14929870,1,1,2) [2025-04-17 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929870', 'tblTempUsageDetail_20' ) start [2025-04-17 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929870', 'tblTempUsageDetail_20' ) end [2025-04-17 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:44:26] Production.INFO: ==14042== Releasing lock... [2025-04-17 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:44:26] Production.INFO: 67 MB #Memory Used# [2025-04-17 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:45:05 [end_date_ymd] => 2025-04-17 17:45:05 [RateCDR] => 1 ) [2025-04-17 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:45:05' and `end` < '2025-04-17 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:45:19] Production.INFO: count ==5165 [2025-04-17 17:45:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:45:05 - End Time 2025-04-17 17:45:05 [2025-04-17 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929875', 'tblTempUsageDetail_20' ) start [2025-04-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929875', 'tblTempUsageDetail_20' ) end [2025-04-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929875', 'tblTempVendorCDR_20' ) start [2025-04-17 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929875', 'tblTempVendorCDR_20' ) end [2025-04-17 17:45:21] Production.INFO: ProcessCDR(1,14929875,1,1,2) [2025-04-17 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929875', 'tblTempUsageDetail_20' ) start [2025-04-17 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929875', 'tblTempUsageDetail_20' ) end [2025-04-17 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:45:26] Production.INFO: ==14112== Releasing lock... [2025-04-17 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:45:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-17 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:46:05 [end_date_ymd] => 2025-04-17 17:46:05 [RateCDR] => 1 ) [2025-04-17 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:46:05' and `end` < '2025-04-17 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:46:19] Production.INFO: count ==5155 [2025-04-17 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:46:05 - End Time 2025-04-17 17:46:05 [2025-04-17 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929880', 'tblTempUsageDetail_20' ) start [2025-04-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929880', 'tblTempUsageDetail_20' ) end [2025-04-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929880', 'tblTempVendorCDR_20' ) start [2025-04-17 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929880', 'tblTempVendorCDR_20' ) end [2025-04-17 17:46:21] Production.INFO: ProcessCDR(1,14929880,1,1,2) [2025-04-17 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929880', 'tblTempUsageDetail_20' ) start [2025-04-17 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929880', 'tblTempUsageDetail_20' ) end [2025-04-17 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:46:26] Production.INFO: ==14189== Releasing lock... [2025-04-17 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:46:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-17 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:47:05 [end_date_ymd] => 2025-04-17 17:47:05 [RateCDR] => 1 ) [2025-04-17 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:47:05' and `end` < '2025-04-17 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:47:19] Production.INFO: count ==5151 [2025-04-17 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:47:05 - End Time 2025-04-17 17:47:05 [2025-04-17 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929885', 'tblTempUsageDetail_20' ) start [2025-04-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929885', 'tblTempUsageDetail_20' ) end [2025-04-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929885', 'tblTempVendorCDR_20' ) start [2025-04-17 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929885', 'tblTempVendorCDR_20' ) end [2025-04-17 17:47:21] Production.INFO: ProcessCDR(1,14929885,1,1,2) [2025-04-17 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929885', 'tblTempUsageDetail_20' ) start [2025-04-17 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929885', 'tblTempUsageDetail_20' ) end [2025-04-17 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:47:26] Production.INFO: ==14262== Releasing lock... [2025-04-17 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:47:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-17 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:48:05 [end_date_ymd] => 2025-04-17 17:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:48:05' and `end` < '2025-04-17 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-17 17:48:19] Production.INFO: count ==5122 [2025-04-17 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:48:05 - End Time 2025-04-17 17:48:05 [2025-04-17 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929890', 'tblTempUsageDetail_20' ) start [2025-04-17 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929890', 'tblTempUsageDetail_20' ) end [2025-04-17 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929890', 'tblTempVendorCDR_20' ) start [2025-04-17 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929890', 'tblTempVendorCDR_20' ) end [2025-04-17 17:48:21] Production.INFO: ProcessCDR(1,14929890,1,1,2) [2025-04-17 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929890', 'tblTempUsageDetail_20' ) start [2025-04-17 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929890', 'tblTempUsageDetail_20' ) end [2025-04-17 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:48:26] Production.INFO: ==14335== Releasing lock... [2025-04-17 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:48:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-17 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:49:05 [end_date_ymd] => 2025-04-17 17:49:05 [RateCDR] => 1 ) [2025-04-17 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:49:05' and `end` < '2025-04-17 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:49:19] Production.INFO: count ==5128 [2025-04-17 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:49:05 - End Time 2025-04-17 17:49:05 [2025-04-17 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929895', 'tblTempUsageDetail_20' ) start [2025-04-17 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929895', 'tblTempUsageDetail_20' ) end [2025-04-17 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929895', 'tblTempVendorCDR_20' ) start [2025-04-17 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929895', 'tblTempVendorCDR_20' ) end [2025-04-17 17:49:21] Production.INFO: ProcessCDR(1,14929895,1,1,2) [2025-04-17 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929895', 'tblTempUsageDetail_20' ) start [2025-04-17 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929895', 'tblTempUsageDetail_20' ) end [2025-04-17 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:49:26] Production.INFO: ==14405== Releasing lock... [2025-04-17 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:49:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-17 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:50:05 [end_date_ymd] => 2025-04-17 17:50:05 [RateCDR] => 1 ) [2025-04-17 17: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-17 14:50:05' and `end` < '2025-04-17 17: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-17 17:50:19] Production.INFO: count ==5126 [2025-04-17 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:50:05 - End Time 2025-04-17 17:50:05 [2025-04-17 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929900', 'tblTempUsageDetail_20' ) start [2025-04-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929900', 'tblTempUsageDetail_20' ) end [2025-04-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929900', 'tblTempVendorCDR_20' ) start [2025-04-17 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929900', 'tblTempVendorCDR_20' ) end [2025-04-17 17:50:21] Production.INFO: ProcessCDR(1,14929900,1,1,2) [2025-04-17 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929900', 'tblTempUsageDetail_20' ) start [2025-04-17 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929900', 'tblTempUsageDetail_20' ) end [2025-04-17 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:50:26] Production.INFO: ==14478== Releasing lock... [2025-04-17 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:50:26] Production.INFO: 66.5 MB #Memory Used# [2025-04-17 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:51:05 [end_date_ymd] => 2025-04-17 17:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:51:05' and `end` < '2025-04-17 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-17 17:51:19] Production.INFO: count ==5066 [2025-04-17 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:51:05 - End Time 2025-04-17 17:51:05 [2025-04-17 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929906', 'tblTempUsageDetail_20' ) start [2025-04-17 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929906', 'tblTempUsageDetail_20' ) end [2025-04-17 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929906', 'tblTempVendorCDR_20' ) start [2025-04-17 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929906', 'tblTempVendorCDR_20' ) end [2025-04-17 17:51:21] Production.INFO: ProcessCDR(1,14929906,1,1,2) [2025-04-17 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929906', 'tblTempUsageDetail_20' ) start [2025-04-17 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929906', 'tblTempUsageDetail_20' ) end [2025-04-17 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:51:26] Production.INFO: ==14557== Releasing lock... [2025-04-17 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:51:26] Production.INFO: 66 MB #Memory Used# [2025-04-17 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:52:05 [end_date_ymd] => 2025-04-17 17:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:52:05' and `end` < '2025-04-17 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-17 17:52:18] Production.INFO: count ==5039 [2025-04-17 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:52:05 - End Time 2025-04-17 17:52:05 [2025-04-17 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929911', 'tblTempUsageDetail_20' ) start [2025-04-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929911', 'tblTempUsageDetail_20' ) end [2025-04-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929911', 'tblTempVendorCDR_20' ) start [2025-04-17 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929911', 'tblTempVendorCDR_20' ) end [2025-04-17 17:52:21] Production.INFO: ProcessCDR(1,14929911,1,1,2) [2025-04-17 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929911', 'tblTempUsageDetail_20' ) start [2025-04-17 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929911', 'tblTempUsageDetail_20' ) end [2025-04-17 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:52:25] Production.INFO: ==14635== Releasing lock... [2025-04-17 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:52:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-17 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:53:05 [end_date_ymd] => 2025-04-17 17:53:05 [RateCDR] => 1 ) [2025-04-17 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:53:05' and `end` < '2025-04-17 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:53:19] Production.INFO: count ==5024 [2025-04-17 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:53:05 - End Time 2025-04-17 17:53:05 [2025-04-17 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929916', 'tblTempUsageDetail_20' ) start [2025-04-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929916', 'tblTempUsageDetail_20' ) end [2025-04-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929916', 'tblTempVendorCDR_20' ) start [2025-04-17 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929916', 'tblTempVendorCDR_20' ) end [2025-04-17 17:53:21] Production.INFO: ProcessCDR(1,14929916,1,1,2) [2025-04-17 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929916', 'tblTempUsageDetail_20' ) start [2025-04-17 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929916', 'tblTempUsageDetail_20' ) end [2025-04-17 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:53:26] Production.INFO: ==14709== Releasing lock... [2025-04-17 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:53:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-17 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:54:06 [end_date_ymd] => 2025-04-17 17:54:06 [RateCDR] => 1 ) [2025-04-17 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:54:06' and `end` < '2025-04-17 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:54:19] Production.INFO: count ==5025 [2025-04-17 17:54:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:54:06 - End Time 2025-04-17 17:54:06 [2025-04-17 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929921', 'tblTempUsageDetail_20' ) start [2025-04-17 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929921', 'tblTempUsageDetail_20' ) end [2025-04-17 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929921', 'tblTempVendorCDR_20' ) start [2025-04-17 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929921', 'tblTempVendorCDR_20' ) end [2025-04-17 17:54:21] Production.INFO: ProcessCDR(1,14929921,1,1,2) [2025-04-17 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929921', 'tblTempUsageDetail_20' ) start [2025-04-17 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929921', 'tblTempUsageDetail_20' ) end [2025-04-17 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:54:25] Production.INFO: ==14783== Releasing lock... [2025-04-17 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:54:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-17 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:55:05 [end_date_ymd] => 2025-04-17 17:55:05 [RateCDR] => 1 ) [2025-04-17 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:55:05' and `end` < '2025-04-17 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:55:19] Production.INFO: count ==5008 [2025-04-17 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:55:05 - End Time 2025-04-17 17:55:05 [2025-04-17 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929926', 'tblTempUsageDetail_20' ) start [2025-04-17 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929926', 'tblTempUsageDetail_20' ) end [2025-04-17 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929926', 'tblTempVendorCDR_20' ) start [2025-04-17 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929926', 'tblTempVendorCDR_20' ) end [2025-04-17 17:55:21] Production.INFO: ProcessCDR(1,14929926,1,1,2) [2025-04-17 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929926', 'tblTempUsageDetail_20' ) start [2025-04-17 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929926', 'tblTempUsageDetail_20' ) end [2025-04-17 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:55:26] Production.INFO: ==14851== Releasing lock... [2025-04-17 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:55:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:56:05 [end_date_ymd] => 2025-04-17 17:56:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:56:05' and `end` < '2025-04-17 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-17 17:56:19] Production.INFO: count ==5016 [2025-04-17 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:56:05 - End Time 2025-04-17 17:56:05 [2025-04-17 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929931', 'tblTempUsageDetail_20' ) start [2025-04-17 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929931', 'tblTempUsageDetail_20' ) end [2025-04-17 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929931', 'tblTempVendorCDR_20' ) start [2025-04-17 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929931', 'tblTempVendorCDR_20' ) end [2025-04-17 17:56:21] Production.INFO: ProcessCDR(1,14929931,1,1,2) [2025-04-17 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929931', 'tblTempUsageDetail_20' ) start [2025-04-17 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929931', 'tblTempUsageDetail_20' ) end [2025-04-17 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:56:26] Production.INFO: ==14925== Releasing lock... [2025-04-17 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:56:26] Production.INFO: 65.75 MB #Memory Used# [2025-04-17 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:57:05 [end_date_ymd] => 2025-04-17 17:57:05 [RateCDR] => 1 ) [2025-04-17 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:57:05' and `end` < '2025-04-17 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:57:18] Production.INFO: count ==5016 [2025-04-17 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:57:05 - End Time 2025-04-17 17:57:05 [2025-04-17 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929936', 'tblTempUsageDetail_20' ) start [2025-04-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929936', 'tblTempUsageDetail_20' ) end [2025-04-17 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929936', 'tblTempVendorCDR_20' ) start [2025-04-17 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929936', 'tblTempVendorCDR_20' ) end [2025-04-17 17:57:21] Production.INFO: ProcessCDR(1,14929936,1,1,2) [2025-04-17 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929936', 'tblTempUsageDetail_20' ) start [2025-04-17 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929936', 'tblTempUsageDetail_20' ) end [2025-04-17 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:57:25] Production.INFO: ==14995== Releasing lock... [2025-04-17 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:57:25] Production.INFO: 65.75 MB #Memory Used# [2025-04-17 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:58:05 [end_date_ymd] => 2025-04-17 17:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 14:58:05' and `end` < '2025-04-17 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-17 17:58:19] Production.INFO: count ==5012 [2025-04-17 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-17 14:58:05 - End Time 2025-04-17 17:58:05 [2025-04-17 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929941', 'tblTempUsageDetail_20' ) start [2025-04-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929941', 'tblTempUsageDetail_20' ) end [2025-04-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929941', 'tblTempVendorCDR_20' ) start [2025-04-17 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929941', 'tblTempVendorCDR_20' ) end [2025-04-17 17:58:21] Production.INFO: ProcessCDR(1,14929941,1,1,2) [2025-04-17 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929941', 'tblTempUsageDetail_20' ) start [2025-04-17 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929941', 'tblTempUsageDetail_20' ) end [2025-04-17 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:58:26] Production.INFO: ==15070== Releasing lock... [2025-04-17 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:58:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 14:59:04 [end_date_ymd] => 2025-04-17 17:59:04 [RateCDR] => 1 ) [2025-04-17 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 14:59:04' and `end` < '2025-04-17 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 17:59:18] Production.INFO: count ==4998 [2025-04-17 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-17 14:59:04 - End Time 2025-04-17 17:59:04 [2025-04-17 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929946', 'tblTempUsageDetail_20' ) start [2025-04-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929946', 'tblTempUsageDetail_20' ) end [2025-04-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929946', 'tblTempVendorCDR_20' ) start [2025-04-17 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929946', 'tblTempVendorCDR_20' ) end [2025-04-17 17:59:20] Production.INFO: ProcessCDR(1,14929946,1,1,2) [2025-04-17 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929946', 'tblTempUsageDetail_20' ) start [2025-04-17 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929946', 'tblTempUsageDetail_20' ) end [2025-04-17 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 17:59:25] Production.INFO: ==15181== Releasing lock... [2025-04-17 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 17:59:25] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:00:06 [end_date_ymd] => 2025-04-17 18:00:06 [RateCDR] => 1 ) [2025-04-17 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:00:06' and `end` < '2025-04-17 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:00:20] Production.INFO: count ==4994 [2025-04-17 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-17 15:00:06 - End Time 2025-04-17 18:00:06 [2025-04-17 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929951', 'tblTempUsageDetail_20' ) start [2025-04-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929951', 'tblTempUsageDetail_20' ) end [2025-04-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929951', 'tblTempVendorCDR_20' ) start [2025-04-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929951', 'tblTempVendorCDR_20' ) end [2025-04-17 18:00:22] Production.INFO: ProcessCDR(1,14929951,1,1,2) [2025-04-17 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929951', 'tblTempUsageDetail_20' ) start [2025-04-17 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929951', 'tblTempUsageDetail_20' ) end [2025-04-17 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:00:28] Production.INFO: ==15254== Releasing lock... [2025-04-17 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:00:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:01:05 [end_date_ymd] => 2025-04-17 18:01:05 [RateCDR] => 1 ) [2025-04-17 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:01:05' and `end` < '2025-04-17 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:01:18] Production.INFO: count ==4994 [2025-04-17 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:01:05 - End Time 2025-04-17 18:01:05 [2025-04-17 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929957', 'tblTempUsageDetail_20' ) start [2025-04-17 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929957', 'tblTempUsageDetail_20' ) end [2025-04-17 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929957', 'tblTempVendorCDR_20' ) start [2025-04-17 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929957', 'tblTempVendorCDR_20' ) end [2025-04-17 18:01:21] Production.INFO: ProcessCDR(1,14929957,1,1,2) [2025-04-17 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929957', 'tblTempUsageDetail_20' ) start [2025-04-17 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929957', 'tblTempUsageDetail_20' ) end [2025-04-17 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:01:26] Production.INFO: ==15340== Releasing lock... [2025-04-17 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:01:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:02:06 [end_date_ymd] => 2025-04-17 18:02:06 [RateCDR] => 1 ) [2025-04-17 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-17 15:02:06' and `end` < '2025-04-17 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-17 18:02:20] Production.INFO: count ==5001 [2025-04-17 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:02:06 - End Time 2025-04-17 18:02:06 [2025-04-17 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929962', 'tblTempUsageDetail_20' ) start [2025-04-17 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929962', 'tblTempUsageDetail_20' ) end [2025-04-17 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929962', 'tblTempVendorCDR_20' ) start [2025-04-17 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929962', 'tblTempVendorCDR_20' ) end [2025-04-17 18:02:22] Production.INFO: ProcessCDR(1,14929962,1,1,2) [2025-04-17 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929962', 'tblTempUsageDetail_20' ) start [2025-04-17 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929962', 'tblTempUsageDetail_20' ) end [2025-04-17 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:02:27] Production.INFO: ==15413== Releasing lock... [2025-04-17 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:02:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:03:04 [end_date_ymd] => 2025-04-17 18:03:04 [RateCDR] => 1 ) [2025-04-17 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:03:04' and `end` < '2025-04-17 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:03:18] Production.INFO: count ==4997 [2025-04-17 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:03:04 - End Time 2025-04-17 18:03:04 [2025-04-17 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929967', 'tblTempUsageDetail_20' ) start [2025-04-17 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929967', 'tblTempUsageDetail_20' ) end [2025-04-17 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929967', 'tblTempVendorCDR_20' ) start [2025-04-17 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929967', 'tblTempVendorCDR_20' ) end [2025-04-17 18:03:20] Production.INFO: ProcessCDR(1,14929967,1,1,2) [2025-04-17 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929967', 'tblTempUsageDetail_20' ) start [2025-04-17 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929967', 'tblTempUsageDetail_20' ) end [2025-04-17 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:03:24] Production.INFO: ==15483== Releasing lock... [2025-04-17 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:03:24] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:04:06 [end_date_ymd] => 2025-04-17 18:04:06 [RateCDR] => 1 ) [2025-04-17 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:04:06' and `end` < '2025-04-17 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:04:19] Production.INFO: count ==5002 [2025-04-17 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:04:06 - End Time 2025-04-17 18:04:06 [2025-04-17 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929972', 'tblTempUsageDetail_20' ) start [2025-04-17 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929972', 'tblTempUsageDetail_20' ) end [2025-04-17 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929972', 'tblTempVendorCDR_20' ) start [2025-04-17 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929972', 'tblTempVendorCDR_20' ) end [2025-04-17 18:04:21] Production.INFO: ProcessCDR(1,14929972,1,1,2) [2025-04-17 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929972', 'tblTempUsageDetail_20' ) start [2025-04-17 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929972', 'tblTempUsageDetail_20' ) end [2025-04-17 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:04:26] Production.INFO: ==15558== Releasing lock... [2025-04-17 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:04:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:05:05 [end_date_ymd] => 2025-04-17 18:05:05 [RateCDR] => 1 ) [2025-04-17 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:05:05' and `end` < '2025-04-17 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:05:18] Production.INFO: count ==4992 [2025-04-17 18:05:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:05:05 - End Time 2025-04-17 18:05:05 [2025-04-17 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929977', 'tblTempUsageDetail_20' ) start [2025-04-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929977', 'tblTempUsageDetail_20' ) end [2025-04-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929977', 'tblTempVendorCDR_20' ) start [2025-04-17 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929977', 'tblTempVendorCDR_20' ) end [2025-04-17 18:05:21] Production.INFO: ProcessCDR(1,14929977,1,1,2) [2025-04-17 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929977', 'tblTempUsageDetail_20' ) start [2025-04-17 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929977', 'tblTempUsageDetail_20' ) end [2025-04-17 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:05:26] Production.INFO: ==15629== Releasing lock... [2025-04-17 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:05:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:06:05 [end_date_ymd] => 2025-04-17 18:06:05 [RateCDR] => 1 ) [2025-04-17 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:06:05' and `end` < '2025-04-17 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:06:19] Production.INFO: count ==5009 [2025-04-17 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:06:05 - End Time 2025-04-17 18:06:05 [2025-04-17 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929982', 'tblTempUsageDetail_20' ) start [2025-04-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929982', 'tblTempUsageDetail_20' ) end [2025-04-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929982', 'tblTempVendorCDR_20' ) start [2025-04-17 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929982', 'tblTempVendorCDR_20' ) end [2025-04-17 18:06:21] Production.INFO: ProcessCDR(1,14929982,1,1,2) [2025-04-17 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929982', 'tblTempUsageDetail_20' ) start [2025-04-17 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929982', 'tblTempUsageDetail_20' ) end [2025-04-17 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:06:26] Production.INFO: ==15705== Releasing lock... [2025-04-17 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:06:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:07:05 [end_date_ymd] => 2025-04-17 18:07:05 [RateCDR] => 1 ) [2025-04-17 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:07:05' and `end` < '2025-04-17 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:07:19] Production.INFO: count ==4998 [2025-04-17 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:07:05 - End Time 2025-04-17 18:07:05 [2025-04-17 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929987', 'tblTempUsageDetail_20' ) start [2025-04-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929987', 'tblTempUsageDetail_20' ) end [2025-04-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929987', 'tblTempVendorCDR_20' ) start [2025-04-17 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929987', 'tblTempVendorCDR_20' ) end [2025-04-17 18:07:21] Production.INFO: ProcessCDR(1,14929987,1,1,2) [2025-04-17 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929987', 'tblTempUsageDetail_20' ) start [2025-04-17 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929987', 'tblTempUsageDetail_20' ) end [2025-04-17 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:07:26] Production.INFO: ==15781== Releasing lock... [2025-04-17 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:07:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:08:05 [end_date_ymd] => 2025-04-17 18:08:05 [RateCDR] => 1 ) [2025-04-17 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:08:05' and `end` < '2025-04-17 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:08:18] Production.INFO: count ==4996 [2025-04-17 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:08:05 - End Time 2025-04-17 18:08:05 [2025-04-17 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929992', 'tblTempUsageDetail_20' ) start [2025-04-17 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929992', 'tblTempUsageDetail_20' ) end [2025-04-17 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929992', 'tblTempVendorCDR_20' ) start [2025-04-17 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929992', 'tblTempVendorCDR_20' ) end [2025-04-17 18:08:21] Production.INFO: ProcessCDR(1,14929992,1,1,2) [2025-04-17 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929992', 'tblTempUsageDetail_20' ) start [2025-04-17 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929992', 'tblTempUsageDetail_20' ) end [2025-04-17 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:08:26] Production.INFO: ==15856== Releasing lock... [2025-04-17 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:08:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:09:05 [end_date_ymd] => 2025-04-17 18:09:05 [RateCDR] => 1 ) [2025-04-17 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:09:05' and `end` < '2025-04-17 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:09:19] Production.INFO: count ==4984 [2025-04-17 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:09:05 - End Time 2025-04-17 18:09:05 [2025-04-17 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929997', 'tblTempUsageDetail_20' ) start [2025-04-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14929997', 'tblTempUsageDetail_20' ) end [2025-04-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929997', 'tblTempVendorCDR_20' ) start [2025-04-17 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14929997', 'tblTempVendorCDR_20' ) end [2025-04-17 18:09:21] Production.INFO: ProcessCDR(1,14929997,1,1,2) [2025-04-17 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14929997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14929997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14929997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14929997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929997', 'tblTempUsageDetail_20' ) start [2025-04-17 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14929997', 'tblTempUsageDetail_20' ) end [2025-04-17 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:09:24] Production.INFO: ==15926== Releasing lock... [2025-04-17 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:09:24] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:10:06 [end_date_ymd] => 2025-04-17 18:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 15:10:06' and `end` < '2025-04-17 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-17 18:10:19] Production.INFO: count ==4987 [2025-04-17 18:10:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:10:06 - End Time 2025-04-17 18:10:06 [2025-04-17 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930003', 'tblTempUsageDetail_20' ) start [2025-04-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930003', 'tblTempUsageDetail_20' ) end [2025-04-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930003', 'tblTempVendorCDR_20' ) start [2025-04-17 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930003', 'tblTempVendorCDR_20' ) end [2025-04-17 18:10:21] Production.INFO: ProcessCDR(1,14930003,1,1,2) [2025-04-17 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930003', 'tblTempUsageDetail_20' ) start [2025-04-17 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930003', 'tblTempUsageDetail_20' ) end [2025-04-17 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:10:26] Production.INFO: ==16004== Releasing lock... [2025-04-17 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:10:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:11:05 [end_date_ymd] => 2025-04-17 18:11:05 [RateCDR] => 1 ) [2025-04-17 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:11:05' and `end` < '2025-04-17 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:11:19] Production.INFO: count ==5002 [2025-04-17 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:11:05 - End Time 2025-04-17 18:11:05 [2025-04-17 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930008', 'tblTempUsageDetail_20' ) start [2025-04-17 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930008', 'tblTempUsageDetail_20' ) end [2025-04-17 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930008', 'tblTempVendorCDR_20' ) start [2025-04-17 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930008', 'tblTempVendorCDR_20' ) end [2025-04-17 18:11:21] Production.INFO: ProcessCDR(1,14930008,1,1,2) [2025-04-17 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930008', 'tblTempUsageDetail_20' ) start [2025-04-17 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930008', 'tblTempUsageDetail_20' ) end [2025-04-17 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:11:26] Production.INFO: ==16078== Releasing lock... [2025-04-17 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:11:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:12:05 [end_date_ymd] => 2025-04-17 18:12:05 [RateCDR] => 1 ) [2025-04-17 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:12:05' and `end` < '2025-04-17 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:12:18] Production.INFO: count ==4998 [2025-04-17 18:12:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:12:05 - End Time 2025-04-17 18:12:05 [2025-04-17 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930013', 'tblTempUsageDetail_20' ) start [2025-04-17 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930013', 'tblTempUsageDetail_20' ) end [2025-04-17 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930013', 'tblTempVendorCDR_20' ) start [2025-04-17 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930013', 'tblTempVendorCDR_20' ) end [2025-04-17 18:12:21] Production.INFO: ProcessCDR(1,14930013,1,1,2) [2025-04-17 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930013', 'tblTempUsageDetail_20' ) start [2025-04-17 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930013', 'tblTempUsageDetail_20' ) end [2025-04-17 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:12:26] Production.INFO: ==16150== Releasing lock... [2025-04-17 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:12:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:13:05 [end_date_ymd] => 2025-04-17 18:13:05 [RateCDR] => 1 ) [2025-04-17 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:13:05' and `end` < '2025-04-17 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:13:19] Production.INFO: count ==4995 [2025-04-17 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:13:05 - End Time 2025-04-17 18:13:05 [2025-04-17 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930018', 'tblTempUsageDetail_20' ) start [2025-04-17 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930018', 'tblTempUsageDetail_20' ) end [2025-04-17 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930018', 'tblTempVendorCDR_20' ) start [2025-04-17 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930018', 'tblTempVendorCDR_20' ) end [2025-04-17 18:13:21] Production.INFO: ProcessCDR(1,14930018,1,1,2) [2025-04-17 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930018', 'tblTempUsageDetail_20' ) start [2025-04-17 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930018', 'tblTempUsageDetail_20' ) end [2025-04-17 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:13:26] Production.INFO: ==16222== Releasing lock... [2025-04-17 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:13:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:14:05 [end_date_ymd] => 2025-04-17 18:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:14:05' and `end` < '2025-04-17 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-17 18:14:19] Production.INFO: count ==4991 [2025-04-17 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:14:05 - End Time 2025-04-17 18:14:05 [2025-04-17 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930023', 'tblTempUsageDetail_20' ) start [2025-04-17 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930023', 'tblTempUsageDetail_20' ) end [2025-04-17 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930023', 'tblTempVendorCDR_20' ) start [2025-04-17 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930023', 'tblTempVendorCDR_20' ) end [2025-04-17 18:14:21] Production.INFO: ProcessCDR(1,14930023,1,1,2) [2025-04-17 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930023', 'tblTempUsageDetail_20' ) start [2025-04-17 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930023', 'tblTempUsageDetail_20' ) end [2025-04-17 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:14:26] Production.INFO: ==16294== Releasing lock... [2025-04-17 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:14:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:15:05 [end_date_ymd] => 2025-04-17 18:15:05 [RateCDR] => 1 ) [2025-04-17 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:15:05' and `end` < '2025-04-17 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:15:18] Production.INFO: count ==5005 [2025-04-17 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:15:05 - End Time 2025-04-17 18:15:05 [2025-04-17 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930028', 'tblTempUsageDetail_20' ) start [2025-04-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930028', 'tblTempUsageDetail_20' ) end [2025-04-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930028', 'tblTempVendorCDR_20' ) start [2025-04-17 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930028', 'tblTempVendorCDR_20' ) end [2025-04-17 18:15:20] Production.INFO: ProcessCDR(1,14930028,1,1,2) [2025-04-17 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930028', 'tblTempUsageDetail_20' ) start [2025-04-17 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930028', 'tblTempUsageDetail_20' ) end [2025-04-17 18:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:15:26] Production.INFO: ==16406== Releasing lock... [2025-04-17 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:15:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:16:05 [end_date_ymd] => 2025-04-17 18:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:16:05' and `end` < '2025-04-17 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-17 18:16:19] Production.INFO: count ==4990 [2025-04-17 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:16:05 - End Time 2025-04-17 18:16:05 [2025-04-17 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930033', 'tblTempUsageDetail_20' ) start [2025-04-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930033', 'tblTempUsageDetail_20' ) end [2025-04-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930033', 'tblTempVendorCDR_20' ) start [2025-04-17 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930033', 'tblTempVendorCDR_20' ) end [2025-04-17 18:16:21] Production.INFO: ProcessCDR(1,14930033,1,1,2) [2025-04-17 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930033', 'tblTempUsageDetail_20' ) start [2025-04-17 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930033', 'tblTempUsageDetail_20' ) end [2025-04-17 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:16:26] Production.INFO: ==16477== Releasing lock... [2025-04-17 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:16:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:17:05 [end_date_ymd] => 2025-04-17 18:17:05 [RateCDR] => 1 ) [2025-04-17 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:17:05' and `end` < '2025-04-17 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:17:18] Production.INFO: count ==4980 [2025-04-17 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:17:05 - End Time 2025-04-17 18:17:05 [2025-04-17 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930038', 'tblTempUsageDetail_20' ) start [2025-04-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930038', 'tblTempUsageDetail_20' ) end [2025-04-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930038', 'tblTempVendorCDR_20' ) start [2025-04-17 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930038', 'tblTempVendorCDR_20' ) end [2025-04-17 18:17:20] Production.INFO: ProcessCDR(1,14930038,1,1,2) [2025-04-17 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930038', 'tblTempUsageDetail_20' ) start [2025-04-17 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930038', 'tblTempUsageDetail_20' ) end [2025-04-17 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:17:25] Production.INFO: ==16550== Releasing lock... [2025-04-17 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:17:25] Production.INFO: 65.25 MB #Memory Used# [2025-04-17 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:18:05 [end_date_ymd] => 2025-04-17 18:18:05 [RateCDR] => 1 ) [2025-04-17 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:18:05' and `end` < '2025-04-17 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:18:19] Production.INFO: count ==4968 [2025-04-17 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:18:05 - End Time 2025-04-17 18:18:05 [2025-04-17 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930043', 'tblTempUsageDetail_20' ) start [2025-04-17 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930043', 'tblTempUsageDetail_20' ) end [2025-04-17 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930043', 'tblTempVendorCDR_20' ) start [2025-04-17 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930043', 'tblTempVendorCDR_20' ) end [2025-04-17 18:18:21] Production.INFO: ProcessCDR(1,14930043,1,1,2) [2025-04-17 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930043', 'tblTempUsageDetail_20' ) start [2025-04-17 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930043', 'tblTempUsageDetail_20' ) end [2025-04-17 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:18:26] Production.INFO: ==16623== Releasing lock... [2025-04-17 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:18:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-17 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:19:05 [end_date_ymd] => 2025-04-17 18:19:05 [RateCDR] => 1 ) [2025-04-17 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:19:05' and `end` < '2025-04-17 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:19:18] Production.INFO: count ==4974 [2025-04-17 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:19:05 - End Time 2025-04-17 18:19:05 [2025-04-17 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930048', 'tblTempUsageDetail_20' ) start [2025-04-17 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930048', 'tblTempUsageDetail_20' ) end [2025-04-17 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930048', 'tblTempVendorCDR_20' ) start [2025-04-17 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930048', 'tblTempVendorCDR_20' ) end [2025-04-17 18:19:21] Production.INFO: ProcessCDR(1,14930048,1,1,2) [2025-04-17 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930048', 'tblTempUsageDetail_20' ) start [2025-04-17 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930048', 'tblTempUsageDetail_20' ) end [2025-04-17 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:19:24] Production.INFO: ==16699== Releasing lock... [2025-04-17 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:19:24] Production.INFO: 65.25 MB #Memory Used# [2025-04-17 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:20:06 [end_date_ymd] => 2025-04-17 18:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 15:20:06' and `end` < '2025-04-17 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-17 18:20:19] Production.INFO: count ==4972 [2025-04-17 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:20:06 - End Time 2025-04-17 18:20:06 [2025-04-17 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930053', 'tblTempUsageDetail_20' ) start [2025-04-17 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930053', 'tblTempUsageDetail_20' ) end [2025-04-17 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930053', 'tblTempVendorCDR_20' ) start [2025-04-17 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930053', 'tblTempVendorCDR_20' ) end [2025-04-17 18:20:22] Production.INFO: ProcessCDR(1,14930053,1,1,2) [2025-04-17 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930053', 'tblTempUsageDetail_20' ) start [2025-04-17 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930053', 'tblTempUsageDetail_20' ) end [2025-04-17 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:20:26] Production.INFO: ==16772== Releasing lock... [2025-04-17 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:20:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-17 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:21:05 [end_date_ymd] => 2025-04-17 18:21:05 [RateCDR] => 1 ) [2025-04-17 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:21:05' and `end` < '2025-04-17 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:21:18] Production.INFO: count ==4879 [2025-04-17 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:21:05 - End Time 2025-04-17 18:21:05 [2025-04-17 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930059', 'tblTempUsageDetail_20' ) start [2025-04-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930059', 'tblTempUsageDetail_20' ) end [2025-04-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930059', 'tblTempVendorCDR_20' ) start [2025-04-17 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930059', 'tblTempVendorCDR_20' ) end [2025-04-17 18:21:20] Production.INFO: ProcessCDR(1,14930059,1,1,2) [2025-04-17 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930059', 'tblTempUsageDetail_20' ) start [2025-04-17 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930059', 'tblTempUsageDetail_20' ) end [2025-04-17 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:21:24] Production.INFO: ==16846== Releasing lock... [2025-04-17 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:21:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:22:05 [end_date_ymd] => 2025-04-17 18:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:22:05' and `end` < '2025-04-17 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-17 18:22:19] Production.INFO: count ==4870 [2025-04-17 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:22:05 - End Time 2025-04-17 18:22:05 [2025-04-17 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930064', 'tblTempUsageDetail_20' ) start [2025-04-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930064', 'tblTempUsageDetail_20' ) end [2025-04-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930064', 'tblTempVendorCDR_20' ) start [2025-04-17 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930064', 'tblTempVendorCDR_20' ) end [2025-04-17 18:22:21] Production.INFO: ProcessCDR(1,14930064,1,1,2) [2025-04-17 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930064', 'tblTempUsageDetail_20' ) start [2025-04-17 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930064', 'tblTempUsageDetail_20' ) end [2025-04-17 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:22:24] Production.INFO: ==16920== Releasing lock... [2025-04-17 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:22:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-17 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:23:06 [end_date_ymd] => 2025-04-17 18:23:06 [RateCDR] => 1 ) [2025-04-17 18: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-17 15:23:06' and `end` < '2025-04-17 18: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-17 18:23:19] Production.INFO: count ==4837 [2025-04-17 18:23:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:23:06 - End Time 2025-04-17 18:23:06 [2025-04-17 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930069', 'tblTempUsageDetail_20' ) start [2025-04-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930069', 'tblTempUsageDetail_20' ) end [2025-04-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930069', 'tblTempVendorCDR_20' ) start [2025-04-17 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930069', 'tblTempVendorCDR_20' ) end [2025-04-17 18:23:21] Production.INFO: ProcessCDR(1,14930069,1,1,2) [2025-04-17 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930069', 'tblTempUsageDetail_20' ) start [2025-04-17 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930069', 'tblTempUsageDetail_20' ) end [2025-04-17 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:23:25] Production.INFO: ==16992== Releasing lock... [2025-04-17 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:23:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-17 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:24:05 [end_date_ymd] => 2025-04-17 18:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:24:05' and `end` < '2025-04-17 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-17 18:24:19] Production.INFO: count ==4830 [2025-04-17 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:24:05 - End Time 2025-04-17 18:24:05 [2025-04-17 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930074', 'tblTempUsageDetail_20' ) start [2025-04-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930074', 'tblTempUsageDetail_20' ) end [2025-04-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930074', 'tblTempVendorCDR_20' ) start [2025-04-17 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930074', 'tblTempVendorCDR_20' ) end [2025-04-17 18:24:21] Production.INFO: ProcessCDR(1,14930074,1,1,2) [2025-04-17 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930074', 'tblTempUsageDetail_20' ) start [2025-04-17 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930074', 'tblTempUsageDetail_20' ) end [2025-04-17 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:24:26] Production.INFO: ==17065== Releasing lock... [2025-04-17 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:24:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:25:04 [end_date_ymd] => 2025-04-17 18:25:04 [RateCDR] => 1 ) [2025-04-17 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:25:04' and `end` < '2025-04-17 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:25:18] Production.INFO: count ==4821 [2025-04-17 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:25:04 - End Time 2025-04-17 18:25:04 [2025-04-17 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930079', 'tblTempUsageDetail_20' ) start [2025-04-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930079', 'tblTempUsageDetail_20' ) end [2025-04-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930079', 'tblTempVendorCDR_20' ) start [2025-04-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930079', 'tblTempVendorCDR_20' ) end [2025-04-17 18:25:20] Production.INFO: ProcessCDR(1,14930079,1,1,2) [2025-04-17 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930079', 'tblTempUsageDetail_20' ) start [2025-04-17 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930079', 'tblTempUsageDetail_20' ) end [2025-04-17 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:25:25] Production.INFO: ==17138== Releasing lock... [2025-04-17 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:25:25] Production.INFO: 64.25 MB #Memory Used# [2025-04-17 18:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:26:20 [end_date_ymd] => 2025-04-17 18:26:20 [RateCDR] => 1 ) [2025-04-17 18:26:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:26:20' and `end` < '2025-04-17 18:26:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:26:34] Production.INFO: count ==4810 [2025-04-17 18:27:23] Production.ERROR: pbx CDR StartTime 2025-04-17 15:26:20 - End Time 2025-04-17 18:26:20 [2025-04-17 18:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930084', 'tblTempUsageDetail_20' ) start [2025-04-17 18:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930084', 'tblTempUsageDetail_20' ) end [2025-04-17 18:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930084', 'tblTempVendorCDR_20' ) start [2025-04-17 18:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930084', 'tblTempVendorCDR_20' ) end [2025-04-17 18:27:29] Production.INFO: ProcessCDR(1,14930084,1,1,2) [2025-04-17 18:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:27:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:27:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930084', 'tblTempUsageDetail_20' ) start [2025-04-17 18:27:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930084', 'tblTempUsageDetail_20' ) end [2025-04-17 18:27:59] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:27:59] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:28:04] Production.INFO: ==17213== Releasing lock... [2025-04-17 18:28:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:28:04] Production.INFO: 64 MB #Memory Used# [2025-04-17 18:29:17] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:29:17 [end_date_ymd] => 2025-04-17 18:29:17 [RateCDR] => 1 ) [2025-04-17 18:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:29:17' and `end` < '2025-04-17 18:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:29:30] Production.INFO: count ==4743 [2025-04-17 18:30:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:29:17 - End Time 2025-04-17 18:29:17 [2025-04-17 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930095', 'tblTempUsageDetail_20' ) start [2025-04-17 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930095', 'tblTempUsageDetail_20' ) end [2025-04-17 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930095', 'tblTempVendorCDR_20' ) start [2025-04-17 18:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930095', 'tblTempVendorCDR_20' ) end [2025-04-17 18:30:28] Production.INFO: ProcessCDR(1,14930095,1,1,2) [2025-04-17 18:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930095', 'tblTempUsageDetail_20' ) start [2025-04-17 18:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930095', 'tblTempUsageDetail_20' ) end [2025-04-17 18:31:39] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:31:39] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:31:42] Production.INFO: ==17415== Releasing lock... [2025-04-17 18:31:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:31:42] Production.INFO: 63.5 MB #Memory Used# [2025-04-17 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:32:05 [end_date_ymd] => 2025-04-17 18:32:05 [RateCDR] => 1 ) [2025-04-17 18: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-17 15:32:05' and `end` < '2025-04-17 18: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-17 18:32:18] Production.INFO: count ==4609 [2025-04-17 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:32:05 - End Time 2025-04-17 18:32:05 [2025-04-17 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930108', 'tblTempUsageDetail_20' ) start [2025-04-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930108', 'tblTempUsageDetail_20' ) end [2025-04-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930108', 'tblTempVendorCDR_20' ) start [2025-04-17 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930108', 'tblTempVendorCDR_20' ) end [2025-04-17 18:32:21] Production.INFO: ProcessCDR(1,14930108,1,1,2) [2025-04-17 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930108', 'tblTempUsageDetail_20' ) start [2025-04-17 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930108', 'tblTempUsageDetail_20' ) end [2025-04-17 18:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:32:26] Production.INFO: ==17666== Releasing lock... [2025-04-17 18:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:32:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-17 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:33:05 [end_date_ymd] => 2025-04-17 18:33:05 [RateCDR] => 1 ) [2025-04-17 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:33:05' and `end` < '2025-04-17 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:33:18] Production.INFO: count ==4602 [2025-04-17 18:33:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:33:05 - End Time 2025-04-17 18:33:05 [2025-04-17 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930113', 'tblTempUsageDetail_20' ) start [2025-04-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930113', 'tblTempUsageDetail_20' ) end [2025-04-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930113', 'tblTempVendorCDR_20' ) start [2025-04-17 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930113', 'tblTempVendorCDR_20' ) end [2025-04-17 18:33:20] Production.INFO: ProcessCDR(1,14930113,1,1,2) [2025-04-17 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930113', 'tblTempUsageDetail_20' ) start [2025-04-17 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930113', 'tblTempUsageDetail_20' ) end [2025-04-17 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:33:24] Production.INFO: ==17749== Releasing lock... [2025-04-17 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:33:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-17 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:34:05 [end_date_ymd] => 2025-04-17 18:34:05 [RateCDR] => 1 ) [2025-04-17 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:34:05' and `end` < '2025-04-17 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:34:18] Production.INFO: count ==4596 [2025-04-17 18:34:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:34:05 - End Time 2025-04-17 18:34:05 [2025-04-17 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930118', 'tblTempUsageDetail_20' ) start [2025-04-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930118', 'tblTempUsageDetail_20' ) end [2025-04-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930118', 'tblTempVendorCDR_20' ) start [2025-04-17 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930118', 'tblTempVendorCDR_20' ) end [2025-04-17 18:34:21] Production.INFO: ProcessCDR(1,14930118,1,1,2) [2025-04-17 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930118', 'tblTempUsageDetail_20' ) start [2025-04-17 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930118', 'tblTempUsageDetail_20' ) end [2025-04-17 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:34:25] Production.INFO: ==17821== Releasing lock... [2025-04-17 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:34:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-17 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:35:05 [end_date_ymd] => 2025-04-17 18:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:35:05' and `end` < '2025-04-17 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-17 18:35:19] Production.INFO: count ==4576 [2025-04-17 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:35:05 - End Time 2025-04-17 18:35:05 [2025-04-17 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930123', 'tblTempUsageDetail_20' ) start [2025-04-17 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930123', 'tblTempUsageDetail_20' ) end [2025-04-17 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930123', 'tblTempVendorCDR_20' ) start [2025-04-17 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930123', 'tblTempVendorCDR_20' ) end [2025-04-17 18:35:21] Production.INFO: ProcessCDR(1,14930123,1,1,2) [2025-04-17 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930123', 'tblTempUsageDetail_20' ) start [2025-04-17 18:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930123', 'tblTempUsageDetail_20' ) end [2025-04-17 18:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:35:27] Production.INFO: ==17898== Releasing lock... [2025-04-17 18:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:35:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:36:05 [end_date_ymd] => 2025-04-17 18:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:36:05' and `end` < '2025-04-17 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-17 18:36:19] Production.INFO: count ==4573 [2025-04-17 18:36:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:36:05 - End Time 2025-04-17 18:36:05 [2025-04-17 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930128', 'tblTempUsageDetail_20' ) start [2025-04-17 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930128', 'tblTempUsageDetail_20' ) end [2025-04-17 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930128', 'tblTempVendorCDR_20' ) start [2025-04-17 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930128', 'tblTempVendorCDR_20' ) end [2025-04-17 18:36:21] Production.INFO: ProcessCDR(1,14930128,1,1,2) [2025-04-17 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930128', 'tblTempUsageDetail_20' ) start [2025-04-17 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930128', 'tblTempUsageDetail_20' ) end [2025-04-17 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:36:27] Production.INFO: ==17967== Releasing lock... [2025-04-17 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:36:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-17 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:37:05 [end_date_ymd] => 2025-04-17 18:37:05 [RateCDR] => 1 ) [2025-04-17 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:37:05' and `end` < '2025-04-17 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:37:19] Production.INFO: count ==4544 [2025-04-17 18:37:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:37:05 - End Time 2025-04-17 18:37:05 [2025-04-17 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930133', 'tblTempUsageDetail_20' ) start [2025-04-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930133', 'tblTempUsageDetail_20' ) end [2025-04-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930133', 'tblTempVendorCDR_20' ) start [2025-04-17 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930133', 'tblTempVendorCDR_20' ) end [2025-04-17 18:37:21] Production.INFO: ProcessCDR(1,14930133,1,1,2) [2025-04-17 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930133', 'tblTempUsageDetail_20' ) start [2025-04-17 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930133', 'tblTempUsageDetail_20' ) end [2025-04-17 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:37:24] Production.INFO: ==18040== Releasing lock... [2025-04-17 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:37:24] Production.INFO: 62 MB #Memory Used# [2025-04-17 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:38:05 [end_date_ymd] => 2025-04-17 18:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:38:05' and `end` < '2025-04-17 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-17 18:38:18] Production.INFO: count ==4519 [2025-04-17 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:38:05 - End Time 2025-04-17 18:38:05 [2025-04-17 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930138', 'tblTempUsageDetail_20' ) start [2025-04-17 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930138', 'tblTempUsageDetail_20' ) end [2025-04-17 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930138', 'tblTempVendorCDR_20' ) start [2025-04-17 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930138', 'tblTempVendorCDR_20' ) end [2025-04-17 18:38:21] Production.INFO: ProcessCDR(1,14930138,1,1,2) [2025-04-17 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930138', 'tblTempUsageDetail_20' ) start [2025-04-17 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930138', 'tblTempUsageDetail_20' ) end [2025-04-17 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:38:24] Production.INFO: ==18111== Releasing lock... [2025-04-17 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:38:24] Production.INFO: 62 MB #Memory Used# [2025-04-17 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:39:05 [end_date_ymd] => 2025-04-17 18:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:39:05' and `end` < '2025-04-17 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-17 18:39:19] Production.INFO: count ==4473 [2025-04-17 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:39:05 - End Time 2025-04-17 18:39:05 [2025-04-17 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930143', 'tblTempUsageDetail_20' ) start [2025-04-17 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930143', 'tblTempUsageDetail_20' ) end [2025-04-17 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930143', 'tblTempVendorCDR_20' ) start [2025-04-17 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930143', 'tblTempVendorCDR_20' ) end [2025-04-17 18:39:21] Production.INFO: ProcessCDR(1,14930143,1,1,2) [2025-04-17 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930143', 'tblTempUsageDetail_20' ) start [2025-04-17 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930143', 'tblTempUsageDetail_20' ) end [2025-04-17 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:39:26] Production.INFO: ==18184== Releasing lock... [2025-04-17 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:39:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-17 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:40:06 [end_date_ymd] => 2025-04-17 18:40:06 [RateCDR] => 1 ) [2025-04-17 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:40:06' and `end` < '2025-04-17 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:40:19] Production.INFO: count ==4459 [2025-04-17 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:40:06 - End Time 2025-04-17 18:40:06 [2025-04-17 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930149', 'tblTempUsageDetail_20' ) start [2025-04-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930149', 'tblTempUsageDetail_20' ) end [2025-04-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930149', 'tblTempVendorCDR_20' ) start [2025-04-17 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930149', 'tblTempVendorCDR_20' ) end [2025-04-17 18:40:21] Production.INFO: ProcessCDR(1,14930149,1,1,2) [2025-04-17 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930149', 'tblTempUsageDetail_20' ) start [2025-04-17 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930149', 'tblTempUsageDetail_20' ) end [2025-04-17 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:40:26] Production.INFO: ==18257== Releasing lock... [2025-04-17 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:40:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-17 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:41:05 [end_date_ymd] => 2025-04-17 18:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:41:05' and `end` < '2025-04-17 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-17 18:41:19] Production.INFO: count ==4398 [2025-04-17 18:41:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:41:05 - End Time 2025-04-17 18:41:05 [2025-04-17 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930154', 'tblTempUsageDetail_20' ) start [2025-04-17 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930154', 'tblTempUsageDetail_20' ) end [2025-04-17 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930154', 'tblTempVendorCDR_20' ) start [2025-04-17 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930154', 'tblTempVendorCDR_20' ) end [2025-04-17 18:41:21] Production.INFO: ProcessCDR(1,14930154,1,1,2) [2025-04-17 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930154', 'tblTempUsageDetail_20' ) start [2025-04-17 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930154', 'tblTempUsageDetail_20' ) end [2025-04-17 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:41:26] Production.INFO: ==18339== Releasing lock... [2025-04-17 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:41:26] Production.INFO: 61 MB #Memory Used# [2025-04-17 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:42:05 [end_date_ymd] => 2025-04-17 18:42:05 [RateCDR] => 1 ) [2025-04-17 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:42:05' and `end` < '2025-04-17 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-17 18:42:18] Production.INFO: count ==4395 [2025-04-17 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:42:05 - End Time 2025-04-17 18:42:05 [2025-04-17 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930159', 'tblTempUsageDetail_20' ) start [2025-04-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930159', 'tblTempUsageDetail_20' ) end [2025-04-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930159', 'tblTempVendorCDR_20' ) start [2025-04-17 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930159', 'tblTempVendorCDR_20' ) end [2025-04-17 18:42:20] Production.INFO: ProcessCDR(1,14930159,1,1,2) [2025-04-17 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930159', 'tblTempUsageDetail_20' ) start [2025-04-17 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930159', 'tblTempUsageDetail_20' ) end [2025-04-17 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:42:26] Production.INFO: ==18413== Releasing lock... [2025-04-17 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:42:26] Production.INFO: 61 MB #Memory Used# [2025-04-17 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:43:05 [end_date_ymd] => 2025-04-17 18:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:43:05' and `end` < '2025-04-17 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-17 18:43:18] Production.INFO: count ==4397 [2025-04-17 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:43:05 - End Time 2025-04-17 18:43:05 [2025-04-17 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930164', 'tblTempUsageDetail_20' ) start [2025-04-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930164', 'tblTempUsageDetail_20' ) end [2025-04-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930164', 'tblTempVendorCDR_20' ) start [2025-04-17 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930164', 'tblTempVendorCDR_20' ) end [2025-04-17 18:43:20] Production.INFO: ProcessCDR(1,14930164,1,1,2) [2025-04-17 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930164', 'tblTempUsageDetail_20' ) start [2025-04-17 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930164', 'tblTempUsageDetail_20' ) end [2025-04-17 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:43:26] Production.INFO: ==18484== Releasing lock... [2025-04-17 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:43:26] Production.INFO: 61 MB #Memory Used# [2025-04-17 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:44:05 [end_date_ymd] => 2025-04-17 18:44:05 [RateCDR] => 1 ) [2025-04-17 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:44:05' and `end` < '2025-04-17 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:44:18] Production.INFO: count ==4388 [2025-04-17 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:44:05 - End Time 2025-04-17 18:44:05 [2025-04-17 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930169', 'tblTempUsageDetail_20' ) start [2025-04-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930169', 'tblTempUsageDetail_20' ) end [2025-04-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930169', 'tblTempVendorCDR_20' ) start [2025-04-17 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930169', 'tblTempVendorCDR_20' ) end [2025-04-17 18:44:20] Production.INFO: ProcessCDR(1,14930169,1,1,2) [2025-04-17 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930169', 'tblTempUsageDetail_20' ) start [2025-04-17 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930169', 'tblTempUsageDetail_20' ) end [2025-04-17 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:44:26] Production.INFO: ==18558== Releasing lock... [2025-04-17 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:44:26] Production.INFO: 61 MB #Memory Used# [2025-04-17 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:45:05 [end_date_ymd] => 2025-04-17 18:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:45:05' and `end` < '2025-04-17 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-17 18:45:19] Production.INFO: count ==4352 [2025-04-17 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:45:05 - End Time 2025-04-17 18:45:05 [2025-04-17 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930174', 'tblTempUsageDetail_20' ) start [2025-04-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930174', 'tblTempUsageDetail_20' ) end [2025-04-17 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930174', 'tblTempVendorCDR_20' ) start [2025-04-17 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930174', 'tblTempVendorCDR_20' ) end [2025-04-17 18:45:21] Production.INFO: ProcessCDR(1,14930174,1,1,2) [2025-04-17 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930174', 'tblTempUsageDetail_20' ) start [2025-04-17 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930174', 'tblTempUsageDetail_20' ) end [2025-04-17 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:45:24] Production.INFO: ==18666== Releasing lock... [2025-04-17 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:45:24] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:46:05 [end_date_ymd] => 2025-04-17 18:46:05 [RateCDR] => 1 ) [2025-04-17 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:46:05' and `end` < '2025-04-17 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:46:19] Production.INFO: count ==4357 [2025-04-17 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:46:05 - End Time 2025-04-17 18:46:05 [2025-04-17 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930179', 'tblTempUsageDetail_20' ) start [2025-04-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930179', 'tblTempUsageDetail_20' ) end [2025-04-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930179', 'tblTempVendorCDR_20' ) start [2025-04-17 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930179', 'tblTempVendorCDR_20' ) end [2025-04-17 18:46:21] Production.INFO: ProcessCDR(1,14930179,1,1,2) [2025-04-17 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930179', 'tblTempUsageDetail_20' ) start [2025-04-17 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930179', 'tblTempUsageDetail_20' ) end [2025-04-17 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:46:24] Production.INFO: ==18736== Releasing lock... [2025-04-17 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:46:24] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:47:05 [end_date_ymd] => 2025-04-17 18:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:47:05' and `end` < '2025-04-17 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-17 18:47:19] Production.INFO: count ==4359 [2025-04-17 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:47:05 - End Time 2025-04-17 18:47:05 [2025-04-17 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930184', 'tblTempUsageDetail_20' ) start [2025-04-17 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930184', 'tblTempUsageDetail_20' ) end [2025-04-17 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930184', 'tblTempVendorCDR_20' ) start [2025-04-17 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930184', 'tblTempVendorCDR_20' ) end [2025-04-17 18:47:21] Production.INFO: ProcessCDR(1,14930184,1,1,2) [2025-04-17 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930184', 'tblTempUsageDetail_20' ) start [2025-04-17 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930184', 'tblTempUsageDetail_20' ) end [2025-04-17 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:47:26] Production.INFO: ==18817== Releasing lock... [2025-04-17 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:47:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:48:05 [end_date_ymd] => 2025-04-17 18:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:48:05' and `end` < '2025-04-17 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-17 18:48:18] Production.INFO: count ==4353 [2025-04-17 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:48:05 - End Time 2025-04-17 18:48:05 [2025-04-17 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930189', 'tblTempUsageDetail_20' ) start [2025-04-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930189', 'tblTempUsageDetail_20' ) end [2025-04-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930189', 'tblTempVendorCDR_20' ) start [2025-04-17 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930189', 'tblTempVendorCDR_20' ) end [2025-04-17 18:48:20] Production.INFO: ProcessCDR(1,14930189,1,1,2) [2025-04-17 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930189', 'tblTempUsageDetail_20' ) start [2025-04-17 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930189', 'tblTempUsageDetail_20' ) end [2025-04-17 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:48:25] Production.INFO: ==18890== Releasing lock... [2025-04-17 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:48:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-17 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:49:05 [end_date_ymd] => 2025-04-17 18:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:49:05' and `end` < '2025-04-17 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-17 18:49:18] Production.INFO: count ==4346 [2025-04-17 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:49:05 - End Time 2025-04-17 18:49:05 [2025-04-17 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930194', 'tblTempUsageDetail_20' ) start [2025-04-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930194', 'tblTempUsageDetail_20' ) end [2025-04-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930194', 'tblTempVendorCDR_20' ) start [2025-04-17 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930194', 'tblTempVendorCDR_20' ) end [2025-04-17 18:49:20] Production.INFO: ProcessCDR(1,14930194,1,1,2) [2025-04-17 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930194', 'tblTempUsageDetail_20' ) start [2025-04-17 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930194', 'tblTempUsageDetail_20' ) end [2025-04-17 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:49:24] Production.INFO: ==18967== Releasing lock... [2025-04-17 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:49:24] Production.INFO: 60.5 MB #Memory Used# [2025-04-17 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:50:07 [end_date_ymd] => 2025-04-17 18:50:07 [RateCDR] => 1 ) [2025-04-17 18: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-17 15:50:07' and `end` < '2025-04-17 18: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-17 18:50:20] Production.INFO: count ==4344 [2025-04-17 18:50:22] Production.ERROR: pbx CDR StartTime 2025-04-17 15:50:07 - End Time 2025-04-17 18:50:07 [2025-04-17 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930199', 'tblTempUsageDetail_20' ) start [2025-04-17 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930199', 'tblTempUsageDetail_20' ) end [2025-04-17 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930199', 'tblTempVendorCDR_20' ) start [2025-04-17 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930199', 'tblTempVendorCDR_20' ) end [2025-04-17 18:50:22] Production.INFO: ProcessCDR(1,14930199,1,1,2) [2025-04-17 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930199', 'tblTempUsageDetail_20' ) start [2025-04-17 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930199', 'tblTempUsageDetail_20' ) end [2025-04-17 18:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:50:27] Production.INFO: ==19041== Releasing lock... [2025-04-17 18:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:50:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-17 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:51:05 [end_date_ymd] => 2025-04-17 18:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:51:05' and `end` < '2025-04-17 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-17 18:51:19] Production.INFO: count ==4299 [2025-04-17 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:51:05 - End Time 2025-04-17 18:51:05 [2025-04-17 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930205', 'tblTempUsageDetail_20' ) start [2025-04-17 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930205', 'tblTempUsageDetail_20' ) end [2025-04-17 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930205', 'tblTempVendorCDR_20' ) start [2025-04-17 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930205', 'tblTempVendorCDR_20' ) end [2025-04-17 18:51:21] Production.INFO: ProcessCDR(1,14930205,1,1,2) [2025-04-17 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930205', 'tblTempUsageDetail_20' ) start [2025-04-17 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930205', 'tblTempUsageDetail_20' ) end [2025-04-17 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:51:24] Production.INFO: ==19112== Releasing lock... [2025-04-17 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:51:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-17 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:52:05 [end_date_ymd] => 2025-04-17 18:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:52:05' and `end` < '2025-04-17 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-17 18:52:19] Production.INFO: count ==4281 [2025-04-17 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:52:05 - End Time 2025-04-17 18:52:05 [2025-04-17 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930210', 'tblTempUsageDetail_20' ) start [2025-04-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930210', 'tblTempUsageDetail_20' ) end [2025-04-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930210', 'tblTempVendorCDR_20' ) start [2025-04-17 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930210', 'tblTempVendorCDR_20' ) end [2025-04-17 18:52:20] Production.INFO: ProcessCDR(1,14930210,1,1,2) [2025-04-17 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930210', 'tblTempUsageDetail_20' ) start [2025-04-17 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930210', 'tblTempUsageDetail_20' ) end [2025-04-17 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:52:24] Production.INFO: ==19183== Releasing lock... [2025-04-17 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:52:24] Production.INFO: 60 MB #Memory Used# [2025-04-17 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:53:05 [end_date_ymd] => 2025-04-17 18:53:05 [RateCDR] => 1 ) [2025-04-17 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:53:05' and `end` < '2025-04-17 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:53:18] Production.INFO: count ==4244 [2025-04-17 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:53:05 - End Time 2025-04-17 18:53:05 [2025-04-17 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930215', 'tblTempUsageDetail_20' ) start [2025-04-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930215', 'tblTempUsageDetail_20' ) end [2025-04-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930215', 'tblTempVendorCDR_20' ) start [2025-04-17 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930215', 'tblTempVendorCDR_20' ) end [2025-04-17 18:53:20] Production.INFO: ProcessCDR(1,14930215,1,1,2) [2025-04-17 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930215', 'tblTempUsageDetail_20' ) start [2025-04-17 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930215', 'tblTempUsageDetail_20' ) end [2025-04-17 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:53:23] Production.INFO: ==19255== Releasing lock... [2025-04-17 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:53:23] Production.INFO: 59.75 MB #Memory Used# [2025-04-17 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:54:05 [end_date_ymd] => 2025-04-17 18:54:05 [RateCDR] => 1 ) [2025-04-17 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:54:05' and `end` < '2025-04-17 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:54:18] Production.INFO: count ==4222 [2025-04-17 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:54:05 - End Time 2025-04-17 18:54:05 [2025-04-17 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930220', 'tblTempUsageDetail_20' ) start [2025-04-17 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930220', 'tblTempUsageDetail_20' ) end [2025-04-17 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930220', 'tblTempVendorCDR_20' ) start [2025-04-17 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930220', 'tblTempVendorCDR_20' ) end [2025-04-17 18:54:20] Production.INFO: ProcessCDR(1,14930220,1,1,2) [2025-04-17 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930220', 'tblTempUsageDetail_20' ) start [2025-04-17 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930220', 'tblTempUsageDetail_20' ) end [2025-04-17 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:54:23] Production.INFO: ==19329== Releasing lock... [2025-04-17 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:54:23] Production.INFO: 59.75 MB #Memory Used# [2025-04-17 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:55:06 [end_date_ymd] => 2025-04-17 18:55:06 [RateCDR] => 1 ) [2025-04-17 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-17 15:55:06' and `end` < '2025-04-17 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-17 18:55:19] Production.INFO: count ==4200 [2025-04-17 18:55:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:55:06 - End Time 2025-04-17 18:55:06 [2025-04-17 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930225', 'tblTempUsageDetail_20' ) start [2025-04-17 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930225', 'tblTempUsageDetail_20' ) end [2025-04-17 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930225', 'tblTempVendorCDR_20' ) start [2025-04-17 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930225', 'tblTempVendorCDR_20' ) end [2025-04-17 18:55:21] Production.INFO: ProcessCDR(1,14930225,1,1,2) [2025-04-17 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930225', 'tblTempUsageDetail_20' ) start [2025-04-17 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930225', 'tblTempUsageDetail_20' ) end [2025-04-17 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:55:25] Production.INFO: ==19402== Releasing lock... [2025-04-17 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:55:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-17 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:56:05 [end_date_ymd] => 2025-04-17 18:56:05 [RateCDR] => 1 ) [2025-04-17 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:56:05' and `end` < '2025-04-17 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:56:18] Production.INFO: count ==4181 [2025-04-17 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:56:05 - End Time 2025-04-17 18:56:05 [2025-04-17 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930230', 'tblTempUsageDetail_20' ) start [2025-04-17 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930230', 'tblTempUsageDetail_20' ) end [2025-04-17 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930230', 'tblTempVendorCDR_20' ) start [2025-04-17 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930230', 'tblTempVendorCDR_20' ) end [2025-04-17 18:56:20] Production.INFO: ProcessCDR(1,14930230,1,1,2) [2025-04-17 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930230', 'tblTempUsageDetail_20' ) start [2025-04-17 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930230', 'tblTempUsageDetail_20' ) end [2025-04-17 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:56:23] Production.INFO: ==19471== Releasing lock... [2025-04-17 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:56:23] Production.INFO: 59.25 MB #Memory Used# [2025-04-17 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:57:05 [end_date_ymd] => 2025-04-17 18:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:57:05' and `end` < '2025-04-17 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-17 18:57:19] Production.INFO: count ==4159 [2025-04-17 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:57:05 - End Time 2025-04-17 18:57:05 [2025-04-17 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930235', 'tblTempUsageDetail_20' ) start [2025-04-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930235', 'tblTempUsageDetail_20' ) end [2025-04-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930235', 'tblTempVendorCDR_20' ) start [2025-04-17 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930235', 'tblTempVendorCDR_20' ) end [2025-04-17 18:57:21] Production.INFO: ProcessCDR(1,14930235,1,1,2) [2025-04-17 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930235', 'tblTempUsageDetail_20' ) start [2025-04-17 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930235', 'tblTempUsageDetail_20' ) end [2025-04-17 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:57:24] Production.INFO: ==19544== Releasing lock... [2025-04-17 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:57:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-17 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:58:06 [end_date_ymd] => 2025-04-17 18:58:06 [RateCDR] => 1 ) [2025-04-17 18:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 15:58:06' and `end` < '2025-04-17 18:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 18:58:19] Production.INFO: count ==4155 [2025-04-17 18:58:21] Production.ERROR: pbx CDR StartTime 2025-04-17 15:58:06 - End Time 2025-04-17 18:58:06 [2025-04-17 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930240', 'tblTempUsageDetail_20' ) start [2025-04-17 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930240', 'tblTempUsageDetail_20' ) end [2025-04-17 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930240', 'tblTempVendorCDR_20' ) start [2025-04-17 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930240', 'tblTempVendorCDR_20' ) end [2025-04-17 18:58:21] Production.INFO: ProcessCDR(1,14930240,1,1,2) [2025-04-17 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930240', 'tblTempUsageDetail_20' ) start [2025-04-17 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930240', 'tblTempUsageDetail_20' ) end [2025-04-17 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:58:24] Production.INFO: ==19622== Releasing lock... [2025-04-17 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:58:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-17 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 15:59:05 [end_date_ymd] => 2025-04-17 18:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 15:59:05' and `end` < '2025-04-17 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-17 18:59:18] Production.INFO: count ==4177 [2025-04-17 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-17 15:59:05 - End Time 2025-04-17 18:59:05 [2025-04-17 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930245', 'tblTempUsageDetail_20' ) start [2025-04-17 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930245', 'tblTempUsageDetail_20' ) end [2025-04-17 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930245', 'tblTempVendorCDR_20' ) start [2025-04-17 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930245', 'tblTempVendorCDR_20' ) end [2025-04-17 18:59:20] Production.INFO: ProcessCDR(1,14930245,1,1,2) [2025-04-17 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930245', 'tblTempUsageDetail_20' ) start [2025-04-17 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930245', 'tblTempUsageDetail_20' ) end [2025-04-17 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 18:59:25] Production.INFO: ==19697== Releasing lock... [2025-04-17 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 18:59:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-17 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:00:06 [end_date_ymd] => 2025-04-17 19:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:00:06' and `end` < '2025-04-17 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-17 19:00:20] Production.INFO: count ==4166 [2025-04-17 19:00:21] Production.ERROR: pbx CDR StartTime 2025-04-17 16:00:06 - End Time 2025-04-17 19:00:06 [2025-04-17 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930250', 'tblTempUsageDetail_20' ) start [2025-04-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930250', 'tblTempUsageDetail_20' ) end [2025-04-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930250', 'tblTempVendorCDR_20' ) start [2025-04-17 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930250', 'tblTempVendorCDR_20' ) end [2025-04-17 19:00:22] Production.INFO: ProcessCDR(1,14930250,1,1,2) [2025-04-17 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930250', 'tblTempUsageDetail_20' ) start [2025-04-17 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930250', 'tblTempUsageDetail_20' ) end [2025-04-17 19:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:00:27] Production.INFO: ==19801== Releasing lock... [2025-04-17 19:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:00:27] Production.INFO: 59.5 MB #Memory Used# [2025-04-17 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:01:05 [end_date_ymd] => 2025-04-17 19:01:05 [RateCDR] => 1 ) [2025-04-17 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:01:05' and `end` < '2025-04-17 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:01:19] Production.INFO: count ==4112 [2025-04-17 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:01:05 - End Time 2025-04-17 19:01:05 [2025-04-17 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930256', 'tblTempUsageDetail_20' ) start [2025-04-17 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930256', 'tblTempUsageDetail_20' ) end [2025-04-17 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930256', 'tblTempVendorCDR_20' ) start [2025-04-17 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930256', 'tblTempVendorCDR_20' ) end [2025-04-17 19:01:21] Production.INFO: ProcessCDR(1,14930256,1,1,2) [2025-04-17 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930256', 'tblTempUsageDetail_20' ) start [2025-04-17 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930256', 'tblTempUsageDetail_20' ) end [2025-04-17 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:01:24] Production.INFO: ==20015== Releasing lock... [2025-04-17 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:01:24] Production.INFO: 59 MB #Memory Used# [2025-04-17 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:02:06 [end_date_ymd] => 2025-04-17 19:02:06 [RateCDR] => 1 ) [2025-04-17 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:02:06' and `end` < '2025-04-17 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:02:19] Production.INFO: count ==4091 [2025-04-17 19:02:21] Production.ERROR: pbx CDR StartTime 2025-04-17 16:02:06 - End Time 2025-04-17 19:02:06 [2025-04-17 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930261', 'tblTempUsageDetail_20' ) start [2025-04-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930261', 'tblTempUsageDetail_20' ) end [2025-04-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930261', 'tblTempVendorCDR_20' ) start [2025-04-17 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930261', 'tblTempVendorCDR_20' ) end [2025-04-17 19:02:21] Production.INFO: ProcessCDR(1,14930261,1,1,2) [2025-04-17 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930261', 'tblTempUsageDetail_20' ) start [2025-04-17 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930261', 'tblTempUsageDetail_20' ) end [2025-04-17 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:02:24] Production.INFO: ==20108== Releasing lock... [2025-04-17 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:02:24] Production.INFO: 58.75 MB #Memory Used# [2025-04-17 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:03:05 [end_date_ymd] => 2025-04-17 19:03:05 [RateCDR] => 1 ) [2025-04-17 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:03:05' and `end` < '2025-04-17 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:03:19] Production.INFO: count ==4071 [2025-04-17 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:03:05 - End Time 2025-04-17 19:03:05 [2025-04-17 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930266', 'tblTempUsageDetail_20' ) start [2025-04-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930266', 'tblTempUsageDetail_20' ) end [2025-04-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930266', 'tblTempVendorCDR_20' ) start [2025-04-17 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930266', 'tblTempVendorCDR_20' ) end [2025-04-17 19:03:20] Production.INFO: ProcessCDR(1,14930266,1,1,2) [2025-04-17 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930266', 'tblTempUsageDetail_20' ) start [2025-04-17 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930266', 'tblTempUsageDetail_20' ) end [2025-04-17 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:03:26] Production.INFO: ==20195== Releasing lock... [2025-04-17 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:03:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-17 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:04:06 [end_date_ymd] => 2025-04-17 19:04:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:04:06' and `end` < '2025-04-17 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-17 19:04:19] Production.INFO: count ==4043 [2025-04-17 19:04:21] Production.ERROR: pbx CDR StartTime 2025-04-17 16:04:06 - End Time 2025-04-17 19:04:06 [2025-04-17 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930271', 'tblTempUsageDetail_20' ) start [2025-04-17 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930271', 'tblTempUsageDetail_20' ) end [2025-04-17 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930271', 'tblTempVendorCDR_20' ) start [2025-04-17 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930271', 'tblTempVendorCDR_20' ) end [2025-04-17 19:04:21] Production.INFO: ProcessCDR(1,14930271,1,1,2) [2025-04-17 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930271', 'tblTempUsageDetail_20' ) start [2025-04-17 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930271', 'tblTempUsageDetail_20' ) end [2025-04-17 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:04:24] Production.INFO: ==20280== Releasing lock... [2025-04-17 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:04:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-17 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:05:05 [end_date_ymd] => 2025-04-17 19:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:05:05' and `end` < '2025-04-17 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-17 19:05:18] Production.INFO: count ==4022 [2025-04-17 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:05:05 - End Time 2025-04-17 19:05:05 [2025-04-17 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930276', 'tblTempUsageDetail_20' ) start [2025-04-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930276', 'tblTempUsageDetail_20' ) end [2025-04-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930276', 'tblTempVendorCDR_20' ) start [2025-04-17 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930276', 'tblTempVendorCDR_20' ) end [2025-04-17 19:05:20] Production.INFO: ProcessCDR(1,14930276,1,1,2) [2025-04-17 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930276', 'tblTempUsageDetail_20' ) start [2025-04-17 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930276', 'tblTempUsageDetail_20' ) end [2025-04-17 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:05:25] Production.INFO: ==20434== Releasing lock... [2025-04-17 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:05:25] Production.INFO: 58 MB #Memory Used# [2025-04-17 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:06:06 [end_date_ymd] => 2025-04-17 19:06:06 [RateCDR] => 1 ) [2025-04-17 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:06:06' and `end` < '2025-04-17 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:06:19] Production.INFO: count ==4021 [2025-04-17 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:06:06 - End Time 2025-04-17 19:06:06 [2025-04-17 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930281', 'tblTempUsageDetail_20' ) start [2025-04-17 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930281', 'tblTempUsageDetail_20' ) end [2025-04-17 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930281', 'tblTempVendorCDR_20' ) start [2025-04-17 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930281', 'tblTempVendorCDR_20' ) end [2025-04-17 19:06:21] Production.INFO: ProcessCDR(1,14930281,1,1,2) [2025-04-17 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930281', 'tblTempUsageDetail_20' ) start [2025-04-17 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930281', 'tblTempUsageDetail_20' ) end [2025-04-17 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:06:24] Production.INFO: ==20506== Releasing lock... [2025-04-17 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:06:24] Production.INFO: 58 MB #Memory Used# [2025-04-17 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:07:05 [end_date_ymd] => 2025-04-17 19:07:05 [RateCDR] => 1 ) [2025-04-17 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:07:05' and `end` < '2025-04-17 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:07:19] Production.INFO: count ==4009 [2025-04-17 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:07:05 - End Time 2025-04-17 19:07:05 [2025-04-17 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930286', 'tblTempUsageDetail_20' ) start [2025-04-17 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930286', 'tblTempUsageDetail_20' ) end [2025-04-17 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930286', 'tblTempVendorCDR_20' ) start [2025-04-17 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930286', 'tblTempVendorCDR_20' ) end [2025-04-17 19:07:20] Production.INFO: ProcessCDR(1,14930286,1,1,2) [2025-04-17 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930286', 'tblTempUsageDetail_20' ) start [2025-04-17 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930286', 'tblTempUsageDetail_20' ) end [2025-04-17 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:07:24] Production.INFO: ==20577== Releasing lock... [2025-04-17 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:07:24] Production.INFO: 58 MB #Memory Used# [2025-04-17 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:08:06 [end_date_ymd] => 2025-04-17 19:08:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:08:06' and `end` < '2025-04-17 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-17 19:08:19] Production.INFO: count ==3994 [2025-04-17 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:08:06 - End Time 2025-04-17 19:08:06 [2025-04-17 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930291', 'tblTempUsageDetail_20' ) start [2025-04-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930291', 'tblTempUsageDetail_20' ) end [2025-04-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930291', 'tblTempVendorCDR_20' ) start [2025-04-17 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930291', 'tblTempVendorCDR_20' ) end [2025-04-17 19:08:21] Production.INFO: ProcessCDR(1,14930291,1,1,2) [2025-04-17 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930291', 'tblTempUsageDetail_20' ) start [2025-04-17 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930291', 'tblTempUsageDetail_20' ) end [2025-04-17 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:08:26] Production.INFO: ==20730== Releasing lock... [2025-04-17 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:08:26] Production.INFO: 58 MB #Memory Used# [2025-04-17 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:09:05 [end_date_ymd] => 2025-04-17 19:09:05 [RateCDR] => 1 ) [2025-04-17 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:09:05' and `end` < '2025-04-17 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:09:18] Production.INFO: count ==3979 [2025-04-17 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:09:05 - End Time 2025-04-17 19:09:05 [2025-04-17 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930296', 'tblTempUsageDetail_20' ) start [2025-04-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930296', 'tblTempUsageDetail_20' ) end [2025-04-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930296', 'tblTempVendorCDR_20' ) start [2025-04-17 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930296', 'tblTempVendorCDR_20' ) end [2025-04-17 19:09:19] Production.INFO: ProcessCDR(1,14930296,1,1,2) [2025-04-17 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930296', 'tblTempUsageDetail_20' ) start [2025-04-17 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930296', 'tblTempUsageDetail_20' ) end [2025-04-17 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:09:24] Production.INFO: ==20804== Releasing lock... [2025-04-17 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:09:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-17 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:10:06 [end_date_ymd] => 2025-04-17 19:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:10:06' and `end` < '2025-04-17 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-17 19:10:20] Production.INFO: count ==3965 [2025-04-17 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-17 16:10:06 - End Time 2025-04-17 19:10:06 [2025-04-17 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930302', 'tblTempUsageDetail_20' ) start [2025-04-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930302', 'tblTempUsageDetail_20' ) end [2025-04-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930302', 'tblTempVendorCDR_20' ) start [2025-04-17 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930302', 'tblTempVendorCDR_20' ) end [2025-04-17 19:10:22] Production.INFO: ProcessCDR(1,14930302,1,1,2) [2025-04-17 19:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930302', 'tblTempUsageDetail_20' ) start [2025-04-17 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930302', 'tblTempUsageDetail_20' ) end [2025-04-17 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:10:26] Production.INFO: ==20875== Releasing lock... [2025-04-17 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:10:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-17 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:11:04 [end_date_ymd] => 2025-04-17 19:11:04 [RateCDR] => 1 ) [2025-04-17 19:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:11:04' and `end` < '2025-04-17 19:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:11:18] Production.INFO: count ==3892 [2025-04-17 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:11:04 - End Time 2025-04-17 19:11:04 [2025-04-17 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930307', 'tblTempUsageDetail_20' ) start [2025-04-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930307', 'tblTempUsageDetail_20' ) end [2025-04-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930307', 'tblTempVendorCDR_20' ) start [2025-04-17 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930307', 'tblTempVendorCDR_20' ) end [2025-04-17 19:11:19] Production.INFO: ProcessCDR(1,14930307,1,1,2) [2025-04-17 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930307', 'tblTempUsageDetail_20' ) start [2025-04-17 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930307', 'tblTempUsageDetail_20' ) end [2025-04-17 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:11:24] Production.INFO: ==20949== Releasing lock... [2025-04-17 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:11:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-17 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:12:05 [end_date_ymd] => 2025-04-17 19:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:12:05' and `end` < '2025-04-17 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-17 19:12:18] Production.INFO: count ==3873 [2025-04-17 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:12:05 - End Time 2025-04-17 19:12:05 [2025-04-17 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930312', 'tblTempUsageDetail_20' ) start [2025-04-17 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930312', 'tblTempUsageDetail_20' ) end [2025-04-17 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930312', 'tblTempVendorCDR_20' ) start [2025-04-17 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930312', 'tblTempVendorCDR_20' ) end [2025-04-17 19:12:20] Production.INFO: ProcessCDR(1,14930312,1,1,2) [2025-04-17 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930312', 'tblTempUsageDetail_20' ) start [2025-04-17 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930312', 'tblTempUsageDetail_20' ) end [2025-04-17 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:12:23] Production.INFO: ==21101== Releasing lock... [2025-04-17 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:12:23] Production.INFO: 57 MB #Memory Used# [2025-04-17 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:13:05 [end_date_ymd] => 2025-04-17 19:13:05 [RateCDR] => 1 ) [2025-04-17 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:13:05' and `end` < '2025-04-17 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:13:18] Production.INFO: count ==3865 [2025-04-17 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:13:05 - End Time 2025-04-17 19:13:05 [2025-04-17 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930317', 'tblTempUsageDetail_20' ) start [2025-04-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930317', 'tblTempUsageDetail_20' ) end [2025-04-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930317', 'tblTempVendorCDR_20' ) start [2025-04-17 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930317', 'tblTempVendorCDR_20' ) end [2025-04-17 19:13:20] Production.INFO: ProcessCDR(1,14930317,1,1,2) [2025-04-17 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930317', 'tblTempUsageDetail_20' ) start [2025-04-17 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930317', 'tblTempUsageDetail_20' ) end [2025-04-17 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:13:23] Production.INFO: ==21175== Releasing lock... [2025-04-17 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:13:23] Production.INFO: 57 MB #Memory Used# [2025-04-17 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:14:06 [end_date_ymd] => 2025-04-17 19:14:06 [RateCDR] => 1 ) [2025-04-17 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:14:06' and `end` < '2025-04-17 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:14:19] Production.INFO: count ==3849 [2025-04-17 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:14:06 - End Time 2025-04-17 19:14:06 [2025-04-17 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930322', 'tblTempUsageDetail_20' ) start [2025-04-17 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930322', 'tblTempUsageDetail_20' ) end [2025-04-17 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930322', 'tblTempVendorCDR_20' ) start [2025-04-17 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930322', 'tblTempVendorCDR_20' ) end [2025-04-17 19:14:21] Production.INFO: ProcessCDR(1,14930322,1,1,2) [2025-04-17 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930322', 'tblTempUsageDetail_20' ) start [2025-04-17 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930322', 'tblTempUsageDetail_20' ) end [2025-04-17 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:14:24] Production.INFO: ==21254== Releasing lock... [2025-04-17 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:14:24] Production.INFO: 56.75 MB #Memory Used# [2025-04-17 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:15:04 [end_date_ymd] => 2025-04-17 19:15:04 [RateCDR] => 1 ) [2025-04-17 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:15:04' and `end` < '2025-04-17 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:15:18] Production.INFO: count ==3834 [2025-04-17 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:15:04 - End Time 2025-04-17 19:15:04 [2025-04-17 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930327', 'tblTempUsageDetail_20' ) start [2025-04-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930327', 'tblTempUsageDetail_20' ) end [2025-04-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930327', 'tblTempVendorCDR_20' ) start [2025-04-17 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930327', 'tblTempVendorCDR_20' ) end [2025-04-17 19:15:19] Production.INFO: ProcessCDR(1,14930327,1,1,2) [2025-04-17 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930327', 'tblTempUsageDetail_20' ) start [2025-04-17 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930327', 'tblTempUsageDetail_20' ) end [2025-04-17 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:15:24] Production.INFO: ==21407== Releasing lock... [2025-04-17 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:15:24] Production.INFO: 57 MB #Memory Used# [2025-04-17 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:16:05 [end_date_ymd] => 2025-04-17 19:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:16:05' and `end` < '2025-04-17 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-17 19:16:18] Production.INFO: count ==3826 [2025-04-17 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:16:05 - End Time 2025-04-17 19:16:05 [2025-04-17 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930332', 'tblTempUsageDetail_20' ) start [2025-04-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930332', 'tblTempUsageDetail_20' ) end [2025-04-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930332', 'tblTempVendorCDR_20' ) start [2025-04-17 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930332', 'tblTempVendorCDR_20' ) end [2025-04-17 19:16:20] Production.INFO: ProcessCDR(1,14930332,1,1,2) [2025-04-17 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930332', 'tblTempUsageDetail_20' ) start [2025-04-17 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930332', 'tblTempUsageDetail_20' ) end [2025-04-17 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:16:25] Production.INFO: ==21517== Releasing lock... [2025-04-17 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:16:25] Production.INFO: 57 MB #Memory Used# [2025-04-17 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:17:05 [end_date_ymd] => 2025-04-17 19:17:05 [RateCDR] => 1 ) [2025-04-17 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:17:05' and `end` < '2025-04-17 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:17:19] Production.INFO: count ==3817 [2025-04-17 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:17:05 - End Time 2025-04-17 19:17:05 [2025-04-17 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930337', 'tblTempUsageDetail_20' ) start [2025-04-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930337', 'tblTempUsageDetail_20' ) end [2025-04-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930337', 'tblTempVendorCDR_20' ) start [2025-04-17 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930337', 'tblTempVendorCDR_20' ) end [2025-04-17 19:17:20] Production.INFO: ProcessCDR(1,14930337,1,1,2) [2025-04-17 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930337', 'tblTempUsageDetail_20' ) start [2025-04-17 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930337', 'tblTempUsageDetail_20' ) end [2025-04-17 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:17:25] Production.INFO: ==21590== Releasing lock... [2025-04-17 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:17:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-17 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:18:05 [end_date_ymd] => 2025-04-17 19:18:05 [RateCDR] => 1 ) [2025-04-17 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:18:05' and `end` < '2025-04-17 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:18:18] Production.INFO: count ==3803 [2025-04-17 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:18:05 - End Time 2025-04-17 19:18:05 [2025-04-17 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930342', 'tblTempUsageDetail_20' ) start [2025-04-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930342', 'tblTempUsageDetail_20' ) end [2025-04-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930342', 'tblTempVendorCDR_20' ) start [2025-04-17 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930342', 'tblTempVendorCDR_20' ) end [2025-04-17 19:18:19] Production.INFO: ProcessCDR(1,14930342,1,1,2) [2025-04-17 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930342', 'tblTempUsageDetail_20' ) start [2025-04-17 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930342', 'tblTempUsageDetail_20' ) end [2025-04-17 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:18:24] Production.INFO: ==21663== Releasing lock... [2025-04-17 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:18:24] Production.INFO: 56.75 MB #Memory Used# [2025-04-17 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:19:06 [end_date_ymd] => 2025-04-17 19:19:06 [RateCDR] => 1 ) [2025-04-17 19: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-17 16:19:06' and `end` < '2025-04-17 19: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-17 19:19:19] Production.INFO: count ==3782 [2025-04-17 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:19:06 - End Time 2025-04-17 19:19:06 [2025-04-17 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930347', 'tblTempUsageDetail_20' ) start [2025-04-17 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930347', 'tblTempUsageDetail_20' ) end [2025-04-17 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930347', 'tblTempVendorCDR_20' ) start [2025-04-17 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930347', 'tblTempVendorCDR_20' ) end [2025-04-17 19:19:20] Production.INFO: ProcessCDR(1,14930347,1,1,2) [2025-04-17 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930347', 'tblTempUsageDetail_20' ) start [2025-04-17 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930347', 'tblTempUsageDetail_20' ) end [2025-04-17 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:19:24] Production.INFO: ==21738== Releasing lock... [2025-04-17 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:19:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-17 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:20:05 [end_date_ymd] => 2025-04-17 19:20:05 [RateCDR] => 1 ) [2025-04-17 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:20:05' and `end` < '2025-04-17 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:20:19] Production.INFO: count ==3766 [2025-04-17 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:20:05 - End Time 2025-04-17 19:20:05 [2025-04-17 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930353', 'tblTempUsageDetail_20' ) start [2025-04-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930353', 'tblTempUsageDetail_20' ) end [2025-04-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930353', 'tblTempVendorCDR_20' ) start [2025-04-17 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930353', 'tblTempVendorCDR_20' ) end [2025-04-17 19:20:20] Production.INFO: ProcessCDR(1,14930353,1,1,2) [2025-04-17 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930353', 'tblTempUsageDetail_20' ) start [2025-04-17 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930353', 'tblTempUsageDetail_20' ) end [2025-04-17 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:20:24] Production.INFO: ==21811== Releasing lock... [2025-04-17 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:20:24] Production.INFO: 56.75 MB #Memory Used# [2025-04-17 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:21:05 [end_date_ymd] => 2025-04-17 19:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:21:05' and `end` < '2025-04-17 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-17 19:21:18] Production.INFO: count ==3731 [2025-04-17 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:21:05 - End Time 2025-04-17 19:21:05 [2025-04-17 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930358', 'tblTempUsageDetail_20' ) start [2025-04-17 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930358', 'tblTempUsageDetail_20' ) end [2025-04-17 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930358', 'tblTempVendorCDR_20' ) start [2025-04-17 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930358', 'tblTempVendorCDR_20' ) end [2025-04-17 19:21:20] Production.INFO: ProcessCDR(1,14930358,1,1,2) [2025-04-17 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930358', 'tblTempUsageDetail_20' ) start [2025-04-17 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930358', 'tblTempUsageDetail_20' ) end [2025-04-17 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:21:23] Production.INFO: ==21886== Releasing lock... [2025-04-17 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:21:23] Production.INFO: 56 MB #Memory Used# [2025-04-17 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:22:05 [end_date_ymd] => 2025-04-17 19:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:22:05' and `end` < '2025-04-17 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-17 19:22:18] Production.INFO: count ==3735 [2025-04-17 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:22:05 - End Time 2025-04-17 19:22:05 [2025-04-17 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930363', 'tblTempUsageDetail_20' ) start [2025-04-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930363', 'tblTempUsageDetail_20' ) end [2025-04-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930363', 'tblTempVendorCDR_20' ) start [2025-04-17 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930363', 'tblTempVendorCDR_20' ) end [2025-04-17 19:22:20] Production.INFO: ProcessCDR(1,14930363,1,1,2) [2025-04-17 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930363', 'tblTempUsageDetail_20' ) start [2025-04-17 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930363', 'tblTempUsageDetail_20' ) end [2025-04-17 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:22:25] Production.INFO: ==21959== Releasing lock... [2025-04-17 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:22:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-17 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:23:05 [end_date_ymd] => 2025-04-17 19:23:05 [RateCDR] => 1 ) [2025-04-17 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:23:05' and `end` < '2025-04-17 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:23:18] Production.INFO: count ==3720 [2025-04-17 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:23:05 - End Time 2025-04-17 19:23:05 [2025-04-17 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930368', 'tblTempUsageDetail_20' ) start [2025-04-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930368', 'tblTempUsageDetail_20' ) end [2025-04-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930368', 'tblTempVendorCDR_20' ) start [2025-04-17 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930368', 'tblTempVendorCDR_20' ) end [2025-04-17 19:23:20] Production.INFO: ProcessCDR(1,14930368,1,1,2) [2025-04-17 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930368', 'tblTempUsageDetail_20' ) start [2025-04-17 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930368', 'tblTempUsageDetail_20' ) end [2025-04-17 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:23:25] Production.INFO: ==22029== Releasing lock... [2025-04-17 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:23:25] Production.INFO: 56 MB #Memory Used# [2025-04-17 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:24:06 [end_date_ymd] => 2025-04-17 19:24:06 [RateCDR] => 1 ) [2025-04-17 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:24:06' and `end` < '2025-04-17 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:24:19] Production.INFO: count ==3714 [2025-04-17 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:24:06 - End Time 2025-04-17 19:24:06 [2025-04-17 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930373', 'tblTempUsageDetail_20' ) start [2025-04-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930373', 'tblTempUsageDetail_20' ) end [2025-04-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930373', 'tblTempVendorCDR_20' ) start [2025-04-17 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930373', 'tblTempVendorCDR_20' ) end [2025-04-17 19:24:20] Production.INFO: ProcessCDR(1,14930373,1,1,2) [2025-04-17 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930373', 'tblTempUsageDetail_20' ) start [2025-04-17 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930373', 'tblTempUsageDetail_20' ) end [2025-04-17 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:24:25] Production.INFO: ==22105== Releasing lock... [2025-04-17 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:24:25] Production.INFO: 56 MB #Memory Used# [2025-04-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:25:05 [end_date_ymd] => 2025-04-17 19:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:25:05' and `end` < '2025-04-17 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-17 19:25:19] Production.INFO: count ==3711 [2025-04-17 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:25:05 - End Time 2025-04-17 19:25:05 [2025-04-17 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930378', 'tblTempUsageDetail_20' ) start [2025-04-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930378', 'tblTempUsageDetail_20' ) end [2025-04-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930378', 'tblTempVendorCDR_20' ) start [2025-04-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930378', 'tblTempVendorCDR_20' ) end [2025-04-17 19:25:20] Production.INFO: ProcessCDR(1,14930378,1,1,2) [2025-04-17 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930378', 'tblTempUsageDetail_20' ) start [2025-04-17 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930378', 'tblTempUsageDetail_20' ) end [2025-04-17 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:25:23] Production.INFO: ==22175== Releasing lock... [2025-04-17 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:25:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-17 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:26:05 [end_date_ymd] => 2025-04-17 19:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:26:05' and `end` < '2025-04-17 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-17 19:26:18] Production.INFO: count ==3696 [2025-04-17 19:26:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:26:05 - End Time 2025-04-17 19:26:05 [2025-04-17 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930383', 'tblTempUsageDetail_20' ) start [2025-04-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930383', 'tblTempUsageDetail_20' ) end [2025-04-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930383', 'tblTempVendorCDR_20' ) start [2025-04-17 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930383', 'tblTempVendorCDR_20' ) end [2025-04-17 19:26:20] Production.INFO: ProcessCDR(1,14930383,1,1,2) [2025-04-17 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930383', 'tblTempUsageDetail_20' ) start [2025-04-17 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930383', 'tblTempUsageDetail_20' ) end [2025-04-17 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:26:25] Production.INFO: ==22250== Releasing lock... [2025-04-17 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:26:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-17 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:27:05 [end_date_ymd] => 2025-04-17 19:27:05 [RateCDR] => 1 ) [2025-04-17 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:27:05' and `end` < '2025-04-17 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:27:18] Production.INFO: count ==3671 [2025-04-17 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:27:05 - End Time 2025-04-17 19:27:05 [2025-04-17 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930388', 'tblTempUsageDetail_20' ) start [2025-04-17 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930388', 'tblTempUsageDetail_20' ) end [2025-04-17 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930388', 'tblTempVendorCDR_20' ) start [2025-04-17 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930388', 'tblTempVendorCDR_20' ) end [2025-04-17 19:27:20] Production.INFO: ProcessCDR(1,14930388,1,1,2) [2025-04-17 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930388', 'tblTempUsageDetail_20' ) start [2025-04-17 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930388', 'tblTempUsageDetail_20' ) end [2025-04-17 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:27:23] Production.INFO: ==22341== Releasing lock... [2025-04-17 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:27:23] Production.INFO: 56 MB #Memory Used# [2025-04-17 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:28:06 [end_date_ymd] => 2025-04-17 19:28:06 [RateCDR] => 1 ) [2025-04-17 19:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:28:06' and `end` < '2025-04-17 19:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:28:19] Production.INFO: count ==3655 [2025-04-17 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:28:06 - End Time 2025-04-17 19:28:06 [2025-04-17 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930393', 'tblTempUsageDetail_20' ) start [2025-04-17 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930393', 'tblTempUsageDetail_20' ) end [2025-04-17 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930393', 'tblTempVendorCDR_20' ) start [2025-04-17 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930393', 'tblTempVendorCDR_20' ) end [2025-04-17 19:28:20] Production.INFO: ProcessCDR(1,14930393,1,1,2) [2025-04-17 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930393', 'tblTempUsageDetail_20' ) start [2025-04-17 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930393', 'tblTempUsageDetail_20' ) end [2025-04-17 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:28:24] Production.INFO: ==22418== Releasing lock... [2025-04-17 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:28:24] Production.INFO: 55.5 MB #Memory Used# [2025-04-17 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:29:05 [end_date_ymd] => 2025-04-17 19:29:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:29:05' and `end` < '2025-04-17 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-17 19:29:18] Production.INFO: count ==3615 [2025-04-17 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:29:05 - End Time 2025-04-17 19:29:05 [2025-04-17 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930398', 'tblTempUsageDetail_20' ) start [2025-04-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930398', 'tblTempUsageDetail_20' ) end [2025-04-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930398', 'tblTempVendorCDR_20' ) start [2025-04-17 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930398', 'tblTempVendorCDR_20' ) end [2025-04-17 19:29:20] Production.INFO: ProcessCDR(1,14930398,1,1,2) [2025-04-17 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930398', 'tblTempUsageDetail_20' ) start [2025-04-17 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930398', 'tblTempUsageDetail_20' ) end [2025-04-17 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:29:25] Production.INFO: ==22491== Releasing lock... [2025-04-17 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:29:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-17 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:30:06 [end_date_ymd] => 2025-04-17 19:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:30:06' and `end` < '2025-04-17 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-17 19:30:20] Production.INFO: count ==3612 [2025-04-17 19:30:21] Production.ERROR: pbx CDR StartTime 2025-04-17 16:30:06 - End Time 2025-04-17 19:30:06 [2025-04-17 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930404', 'tblTempUsageDetail_20' ) start [2025-04-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930404', 'tblTempUsageDetail_20' ) end [2025-04-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930404', 'tblTempVendorCDR_20' ) start [2025-04-17 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930404', 'tblTempVendorCDR_20' ) end [2025-04-17 19:30:21] Production.INFO: ProcessCDR(1,14930404,1,1,2) [2025-04-17 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930404', 'tblTempUsageDetail_20' ) start [2025-04-17 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930404', 'tblTempUsageDetail_20' ) end [2025-04-17 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:30:26] Production.INFO: ==22567== Releasing lock... [2025-04-17 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:30:26] Production.INFO: 55 MB #Memory Used# [2025-04-17 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:31:05 [end_date_ymd] => 2025-04-17 19:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:31:05' and `end` < '2025-04-17 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-17 19:31:18] Production.INFO: count ==3579 [2025-04-17 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:31:05 - End Time 2025-04-17 19:31:05 [2025-04-17 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930409', 'tblTempUsageDetail_20' ) start [2025-04-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930409', 'tblTempUsageDetail_20' ) end [2025-04-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930409', 'tblTempVendorCDR_20' ) start [2025-04-17 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930409', 'tblTempVendorCDR_20' ) end [2025-04-17 19:31:19] Production.INFO: ProcessCDR(1,14930409,1,1,2) [2025-04-17 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930409', 'tblTempUsageDetail_20' ) start [2025-04-17 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930409', 'tblTempUsageDetail_20' ) end [2025-04-17 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:31:23] Production.INFO: ==22640== Releasing lock... [2025-04-17 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:31:23] Production.INFO: 54.75 MB #Memory Used# [2025-04-17 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:32:06 [end_date_ymd] => 2025-04-17 19:32:06 [RateCDR] => 1 ) [2025-04-17 19: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-17 16:32:06' and `end` < '2025-04-17 19: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-17 19:32:19] Production.INFO: count ==3570 [2025-04-17 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:32:06 - End Time 2025-04-17 19:32:06 [2025-04-17 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930414', 'tblTempUsageDetail_20' ) start [2025-04-17 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930414', 'tblTempUsageDetail_20' ) end [2025-04-17 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930414', 'tblTempVendorCDR_20' ) start [2025-04-17 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930414', 'tblTempVendorCDR_20' ) end [2025-04-17 19:32:20] Production.INFO: ProcessCDR(1,14930414,1,1,2) [2025-04-17 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930414', 'tblTempUsageDetail_20' ) start [2025-04-17 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930414', 'tblTempUsageDetail_20' ) end [2025-04-17 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:32:25] Production.INFO: ==22754== Releasing lock... [2025-04-17 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:32:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-17 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:33:05 [end_date_ymd] => 2025-04-17 19:33:05 [RateCDR] => 1 ) [2025-04-17 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:33:05' and `end` < '2025-04-17 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:33:18] Production.INFO: count ==3559 [2025-04-17 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:33:05 - End Time 2025-04-17 19:33:05 [2025-04-17 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930419', 'tblTempUsageDetail_20' ) start [2025-04-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930419', 'tblTempUsageDetail_20' ) end [2025-04-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930419', 'tblTempVendorCDR_20' ) start [2025-04-17 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930419', 'tblTempVendorCDR_20' ) end [2025-04-17 19:33:19] Production.INFO: ProcessCDR(1,14930419,1,1,2) [2025-04-17 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930419', 'tblTempUsageDetail_20' ) start [2025-04-17 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930419', 'tblTempUsageDetail_20' ) end [2025-04-17 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:33:24] Production.INFO: ==22824== Releasing lock... [2025-04-17 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:33:24] Production.INFO: 54.75 MB #Memory Used# [2025-04-17 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:34:05 [end_date_ymd] => 2025-04-17 19:34:05 [RateCDR] => 1 ) [2025-04-17 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:34:05' and `end` < '2025-04-17 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:34:18] Production.INFO: count ==3533 [2025-04-17 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:34:05 - End Time 2025-04-17 19:34:05 [2025-04-17 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930424', 'tblTempUsageDetail_20' ) start [2025-04-17 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930424', 'tblTempUsageDetail_20' ) end [2025-04-17 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930424', 'tblTempVendorCDR_20' ) start [2025-04-17 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930424', 'tblTempVendorCDR_20' ) end [2025-04-17 19:34:20] Production.INFO: ProcessCDR(1,14930424,1,1,2) [2025-04-17 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930424', 'tblTempUsageDetail_20' ) start [2025-04-17 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930424', 'tblTempUsageDetail_20' ) end [2025-04-17 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:34:25] Production.INFO: ==22898== Releasing lock... [2025-04-17 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:34:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-17 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:35:05 [end_date_ymd] => 2025-04-17 19:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:35:05' and `end` < '2025-04-17 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-17 19:35:19] Production.INFO: count ==3528 [2025-04-17 19:35:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:35:05 - End Time 2025-04-17 19:35:05 [2025-04-17 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930429', 'tblTempUsageDetail_20' ) start [2025-04-17 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930429', 'tblTempUsageDetail_20' ) end [2025-04-17 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930429', 'tblTempVendorCDR_20' ) start [2025-04-17 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930429', 'tblTempVendorCDR_20' ) end [2025-04-17 19:35:20] Production.INFO: ProcessCDR(1,14930429,1,1,2) [2025-04-17 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930429', 'tblTempUsageDetail_20' ) start [2025-04-17 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930429', 'tblTempUsageDetail_20' ) end [2025-04-17 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:35:23] Production.INFO: ==22973== Releasing lock... [2025-04-17 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:35:23] Production.INFO: 54.5 MB #Memory Used# [2025-04-17 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:36:05 [end_date_ymd] => 2025-04-17 19:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:36:05' and `end` < '2025-04-17 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-17 19:36:18] Production.INFO: count ==3520 [2025-04-17 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:36:05 - End Time 2025-04-17 19:36:05 [2025-04-17 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930434', 'tblTempUsageDetail_20' ) start [2025-04-17 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930434', 'tblTempUsageDetail_20' ) end [2025-04-17 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930434', 'tblTempVendorCDR_20' ) start [2025-04-17 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930434', 'tblTempVendorCDR_20' ) end [2025-04-17 19:36:20] Production.INFO: ProcessCDR(1,14930434,1,1,2) [2025-04-17 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930434', 'tblTempUsageDetail_20' ) start [2025-04-17 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930434', 'tblTempUsageDetail_20' ) end [2025-04-17 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:36:24] Production.INFO: ==23046== Releasing lock... [2025-04-17 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:36:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-17 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:37:06 [end_date_ymd] => 2025-04-17 19:37:06 [RateCDR] => 1 ) [2025-04-17 19: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-17 16:37:06' and `end` < '2025-04-17 19: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-17 19:37:19] Production.INFO: count ==3498 [2025-04-17 19:37:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:37:06 - End Time 2025-04-17 19:37:06 [2025-04-17 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930439', 'tblTempUsageDetail_20' ) start [2025-04-17 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930439', 'tblTempUsageDetail_20' ) end [2025-04-17 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930439', 'tblTempVendorCDR_20' ) start [2025-04-17 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930439', 'tblTempVendorCDR_20' ) end [2025-04-17 19:37:20] Production.INFO: ProcessCDR(1,14930439,1,1,2) [2025-04-17 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930439', 'tblTempUsageDetail_20' ) start [2025-04-17 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930439', 'tblTempUsageDetail_20' ) end [2025-04-17 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:37:24] Production.INFO: ==23122== Releasing lock... [2025-04-17 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:37:24] Production.INFO: 55 MB #Memory Used# [2025-04-17 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:38:05 [end_date_ymd] => 2025-04-17 19:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:38:05' and `end` < '2025-04-17 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-17 19:38:18] Production.INFO: count ==3492 [2025-04-17 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:38:05 - End Time 2025-04-17 19:38:05 [2025-04-17 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930444', 'tblTempUsageDetail_20' ) start [2025-04-17 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930444', 'tblTempUsageDetail_20' ) end [2025-04-17 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930444', 'tblTempVendorCDR_20' ) start [2025-04-17 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930444', 'tblTempVendorCDR_20' ) end [2025-04-17 19:38:20] Production.INFO: ProcessCDR(1,14930444,1,1,2) [2025-04-17 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930444', 'tblTempUsageDetail_20' ) start [2025-04-17 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930444', 'tblTempUsageDetail_20' ) end [2025-04-17 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:38:23] Production.INFO: ==23192== Releasing lock... [2025-04-17 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:38:23] Production.INFO: 54 MB #Memory Used# [2025-04-17 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:39:05 [end_date_ymd] => 2025-04-17 19:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:39:05' and `end` < '2025-04-17 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-17 19:39:19] Production.INFO: count ==3481 [2025-04-17 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:39:05 - End Time 2025-04-17 19:39:05 [2025-04-17 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930449', 'tblTempUsageDetail_20' ) start [2025-04-17 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930449', 'tblTempUsageDetail_20' ) end [2025-04-17 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930449', 'tblTempVendorCDR_20' ) start [2025-04-17 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930449', 'tblTempVendorCDR_20' ) end [2025-04-17 19:39:20] Production.INFO: ProcessCDR(1,14930449,1,1,2) [2025-04-17 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930449', 'tblTempUsageDetail_20' ) start [2025-04-17 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930449', 'tblTempUsageDetail_20' ) end [2025-04-17 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:39:23] Production.INFO: ==23267== Releasing lock... [2025-04-17 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:39:23] Production.INFO: 54 MB #Memory Used# [2025-04-17 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:40:06 [end_date_ymd] => 2025-04-17 19:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:40:06' and `end` < '2025-04-17 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-17 19:40:19] Production.INFO: count ==3457 [2025-04-17 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:40:06 - End Time 2025-04-17 19:40:06 [2025-04-17 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930455', 'tblTempUsageDetail_20' ) start [2025-04-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930455', 'tblTempUsageDetail_20' ) end [2025-04-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930455', 'tblTempVendorCDR_20' ) start [2025-04-17 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930455', 'tblTempVendorCDR_20' ) end [2025-04-17 19:40:20] Production.INFO: ProcessCDR(1,14930455,1,1,2) [2025-04-17 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930455', 'tblTempUsageDetail_20' ) start [2025-04-17 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930455', 'tblTempUsageDetail_20' ) end [2025-04-17 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:40:25] Production.INFO: ==23339== Releasing lock... [2025-04-17 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:40:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-17 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:41:05 [end_date_ymd] => 2025-04-17 19:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:41:05' and `end` < '2025-04-17 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-17 19:41:18] Production.INFO: count ==3388 [2025-04-17 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:41:05 - End Time 2025-04-17 19:41:05 [2025-04-17 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930460', 'tblTempUsageDetail_20' ) start [2025-04-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930460', 'tblTempUsageDetail_20' ) end [2025-04-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930460', 'tblTempVendorCDR_20' ) start [2025-04-17 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930460', 'tblTempVendorCDR_20' ) end [2025-04-17 19:41:20] Production.INFO: ProcessCDR(1,14930460,1,1,2) [2025-04-17 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930460', 'tblTempUsageDetail_20' ) start [2025-04-17 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930460', 'tblTempUsageDetail_20' ) end [2025-04-17 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:41:23] Production.INFO: ==23419== Releasing lock... [2025-04-17 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:41:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-17 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:42:05 [end_date_ymd] => 2025-04-17 19:42:05 [RateCDR] => 1 ) [2025-04-17 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:42:05' and `end` < '2025-04-17 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:42:18] Production.INFO: count ==3356 [2025-04-17 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:42:05 - End Time 2025-04-17 19:42:05 [2025-04-17 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930465', 'tblTempUsageDetail_20' ) start [2025-04-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930465', 'tblTempUsageDetail_20' ) end [2025-04-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930465', 'tblTempVendorCDR_20' ) start [2025-04-17 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930465', 'tblTempVendorCDR_20' ) end [2025-04-17 19:42:19] Production.INFO: ProcessCDR(1,14930465,1,1,2) [2025-04-17 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930465', 'tblTempUsageDetail_20' ) start [2025-04-17 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930465', 'tblTempUsageDetail_20' ) end [2025-04-17 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:42:23] Production.INFO: ==23489== Releasing lock... [2025-04-17 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:42:23] Production.INFO: 53 MB #Memory Used# [2025-04-17 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:43:06 [end_date_ymd] => 2025-04-17 19:43:06 [RateCDR] => 1 ) [2025-04-17 19:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:43:06' and `end` < '2025-04-17 19:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:43:19] Production.INFO: count ==3356 [2025-04-17 19:43:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:43:06 - End Time 2025-04-17 19:43:06 [2025-04-17 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930470', 'tblTempUsageDetail_20' ) start [2025-04-17 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930470', 'tblTempUsageDetail_20' ) end [2025-04-17 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930470', 'tblTempVendorCDR_20' ) start [2025-04-17 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930470', 'tblTempVendorCDR_20' ) end [2025-04-17 19:43:20] Production.INFO: ProcessCDR(1,14930470,1,1,2) [2025-04-17 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930470', 'tblTempUsageDetail_20' ) start [2025-04-17 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930470', 'tblTempUsageDetail_20' ) end [2025-04-17 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:43:24] Production.INFO: ==23562== Releasing lock... [2025-04-17 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:43:24] Production.INFO: 54 MB #Memory Used# [2025-04-17 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:44:05 [end_date_ymd] => 2025-04-17 19:44:05 [RateCDR] => 1 ) [2025-04-17 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:44:05' and `end` < '2025-04-17 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:44:18] Production.INFO: count ==3334 [2025-04-17 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:44:05 - End Time 2025-04-17 19:44:05 [2025-04-17 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930475', 'tblTempUsageDetail_20' ) start [2025-04-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930475', 'tblTempUsageDetail_20' ) end [2025-04-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930475', 'tblTempVendorCDR_20' ) start [2025-04-17 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930475', 'tblTempVendorCDR_20' ) end [2025-04-17 19:44:19] Production.INFO: ProcessCDR(1,14930475,1,1,2) [2025-04-17 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930475', 'tblTempUsageDetail_20' ) start [2025-04-17 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930475', 'tblTempUsageDetail_20' ) end [2025-04-17 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:44:22] Production.INFO: ==23634== Releasing lock... [2025-04-17 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:44:22] Production.INFO: 53 MB #Memory Used# [2025-04-17 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:45:05 [end_date_ymd] => 2025-04-17 19:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:45:05' and `end` < '2025-04-17 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-17 19:45:18] Production.INFO: count ==3316 [2025-04-17 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:45:05 - End Time 2025-04-17 19:45:05 [2025-04-17 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930480', 'tblTempUsageDetail_20' ) start [2025-04-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930480', 'tblTempUsageDetail_20' ) end [2025-04-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930480', 'tblTempVendorCDR_20' ) start [2025-04-17 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930480', 'tblTempVendorCDR_20' ) end [2025-04-17 19:45:19] Production.INFO: ProcessCDR(1,14930480,1,1,2) [2025-04-17 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930480', 'tblTempUsageDetail_20' ) start [2025-04-17 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930480', 'tblTempUsageDetail_20' ) end [2025-04-17 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:45:23] Production.INFO: ==23707== Releasing lock... [2025-04-17 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:45:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-17 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:46:05 [end_date_ymd] => 2025-04-17 19:46:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:46:05' and `end` < '2025-04-17 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-17 19:46:18] Production.INFO: count ==3312 [2025-04-17 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:46:05 - End Time 2025-04-17 19:46:05 [2025-04-17 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930485', 'tblTempUsageDetail_20' ) start [2025-04-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930485', 'tblTempUsageDetail_20' ) end [2025-04-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930485', 'tblTempVendorCDR_20' ) start [2025-04-17 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930485', 'tblTempVendorCDR_20' ) end [2025-04-17 19:46:19] Production.INFO: ProcessCDR(1,14930485,1,1,2) [2025-04-17 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930485', 'tblTempUsageDetail_20' ) start [2025-04-17 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930485', 'tblTempUsageDetail_20' ) end [2025-04-17 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:46:24] Production.INFO: ==23779== Releasing lock... [2025-04-17 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:46:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-17 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:47:05 [end_date_ymd] => 2025-04-17 19:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:47:05' and `end` < '2025-04-17 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-17 19:47:18] Production.INFO: count ==3303 [2025-04-17 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:47:05 - End Time 2025-04-17 19:47:05 [2025-04-17 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930490', 'tblTempUsageDetail_20' ) start [2025-04-17 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930490', 'tblTempUsageDetail_20' ) end [2025-04-17 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930490', 'tblTempVendorCDR_20' ) start [2025-04-17 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930490', 'tblTempVendorCDR_20' ) end [2025-04-17 19:47:19] Production.INFO: ProcessCDR(1,14930490,1,1,2) [2025-04-17 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930490', 'tblTempUsageDetail_20' ) start [2025-04-17 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930490', 'tblTempUsageDetail_20' ) end [2025-04-17 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:47:24] Production.INFO: ==23888== Releasing lock... [2025-04-17 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:47:24] Production.INFO: 52.75 MB #Memory Used# [2025-04-17 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:48:06 [end_date_ymd] => 2025-04-17 19:48:06 [RateCDR] => 1 ) [2025-04-17 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:48:06' and `end` < '2025-04-17 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:48:19] Production.INFO: count ==3279 [2025-04-17 19:48:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:48:06 - End Time 2025-04-17 19:48:06 [2025-04-17 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930495', 'tblTempUsageDetail_20' ) start [2025-04-17 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930495', 'tblTempUsageDetail_20' ) end [2025-04-17 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930495', 'tblTempVendorCDR_20' ) start [2025-04-17 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930495', 'tblTempVendorCDR_20' ) end [2025-04-17 19:48:20] Production.INFO: ProcessCDR(1,14930495,1,1,2) [2025-04-17 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930495', 'tblTempUsageDetail_20' ) start [2025-04-17 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930495', 'tblTempUsageDetail_20' ) end [2025-04-17 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:48:23] Production.INFO: ==23963== Releasing lock... [2025-04-17 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:48:23] Production.INFO: 52.5 MB #Memory Used# [2025-04-17 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:49:05 [end_date_ymd] => 2025-04-17 19:49:05 [RateCDR] => 1 ) [2025-04-17 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:49:05' and `end` < '2025-04-17 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:49:18] Production.INFO: count ==3254 [2025-04-17 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:49:05 - End Time 2025-04-17 19:49:05 [2025-04-17 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930500', 'tblTempUsageDetail_20' ) start [2025-04-17 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930500', 'tblTempUsageDetail_20' ) end [2025-04-17 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930500', 'tblTempVendorCDR_20' ) start [2025-04-17 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930500', 'tblTempVendorCDR_20' ) end [2025-04-17 19:49:19] Production.INFO: ProcessCDR(1,14930500,1,1,2) [2025-04-17 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930500', 'tblTempUsageDetail_20' ) start [2025-04-17 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930500', 'tblTempUsageDetail_20' ) end [2025-04-17 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:49:23] Production.INFO: ==24036== Releasing lock... [2025-04-17 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:49:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-17 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:50:06 [end_date_ymd] => 2025-04-17 19:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 16:50:06' and `end` < '2025-04-17 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-17 19:50:19] Production.INFO: count ==3246 [2025-04-17 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:50:06 - End Time 2025-04-17 19:50:06 [2025-04-17 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930506', 'tblTempUsageDetail_20' ) start [2025-04-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930506', 'tblTempUsageDetail_20' ) end [2025-04-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930506', 'tblTempVendorCDR_20' ) start [2025-04-17 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930506', 'tblTempVendorCDR_20' ) end [2025-04-17 19:50:20] Production.INFO: ProcessCDR(1,14930506,1,1,2) [2025-04-17 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930506', 'tblTempUsageDetail_20' ) start [2025-04-17 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930506', 'tblTempUsageDetail_20' ) end [2025-04-17 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:50:24] Production.INFO: ==24110== Releasing lock... [2025-04-17 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:50:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-17 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:51:05 [end_date_ymd] => 2025-04-17 19:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:51:05' and `end` < '2025-04-17 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-17 19:51:18] Production.INFO: count ==3159 [2025-04-17 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:51:05 - End Time 2025-04-17 19:51:05 [2025-04-17 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930511', 'tblTempUsageDetail_20' ) start [2025-04-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930511', 'tblTempUsageDetail_20' ) end [2025-04-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930511', 'tblTempVendorCDR_20' ) start [2025-04-17 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930511', 'tblTempVendorCDR_20' ) end [2025-04-17 19:51:19] Production.INFO: ProcessCDR(1,14930511,1,1,2) [2025-04-17 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930511', 'tblTempUsageDetail_20' ) start [2025-04-17 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930511', 'tblTempUsageDetail_20' ) end [2025-04-17 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:51:24] Production.INFO: ==24183== Releasing lock... [2025-04-17 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:51:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-17 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:52:05 [end_date_ymd] => 2025-04-17 19:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:52:05' and `end` < '2025-04-17 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-17 19:52:19] Production.INFO: count ==3141 [2025-04-17 19:52:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:52:05 - End Time 2025-04-17 19:52:05 [2025-04-17 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930516', 'tblTempUsageDetail_20' ) start [2025-04-17 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930516', 'tblTempUsageDetail_20' ) end [2025-04-17 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930516', 'tblTempVendorCDR_20' ) start [2025-04-17 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930516', 'tblTempVendorCDR_20' ) end [2025-04-17 19:52:20] Production.INFO: ProcessCDR(1,14930516,1,1,2) [2025-04-17 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930516', 'tblTempUsageDetail_20' ) start [2025-04-17 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930516', 'tblTempUsageDetail_20' ) end [2025-04-17 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:52:23] Production.INFO: ==24255== Releasing lock... [2025-04-17 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:52:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-17 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:53:05 [end_date_ymd] => 2025-04-17 19:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:53:05' and `end` < '2025-04-17 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-17 19:53:18] Production.INFO: count ==3130 [2025-04-17 19:53:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:53:05 - End Time 2025-04-17 19:53:05 [2025-04-17 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930521', 'tblTempUsageDetail_20' ) start [2025-04-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930521', 'tblTempUsageDetail_20' ) end [2025-04-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930521', 'tblTempVendorCDR_20' ) start [2025-04-17 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930521', 'tblTempVendorCDR_20' ) end [2025-04-17 19:53:20] Production.INFO: ProcessCDR(1,14930521,1,1,2) [2025-04-17 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930521', 'tblTempUsageDetail_20' ) start [2025-04-17 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930521', 'tblTempUsageDetail_20' ) end [2025-04-17 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:53:23] Production.INFO: ==24326== Releasing lock... [2025-04-17 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:53:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-17 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:54:04 [end_date_ymd] => 2025-04-17 19:54:04 [RateCDR] => 1 ) [2025-04-17 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-17 16:54:04' and `end` < '2025-04-17 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-17 19:54:17] Production.INFO: count ==3116 [2025-04-17 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 16:54:04 - End Time 2025-04-17 19:54:04 [2025-04-17 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930526', 'tblTempUsageDetail_20' ) start [2025-04-17 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930526', 'tblTempUsageDetail_20' ) end [2025-04-17 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930526', 'tblTempVendorCDR_20' ) start [2025-04-17 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930526', 'tblTempVendorCDR_20' ) end [2025-04-17 19:54:19] Production.INFO: ProcessCDR(1,14930526,1,1,2) [2025-04-17 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930526', 'tblTempUsageDetail_20' ) start [2025-04-17 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930526', 'tblTempUsageDetail_20' ) end [2025-04-17 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:54:22] Production.INFO: ==24399== Releasing lock... [2025-04-17 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:54:22] Production.INFO: 51.25 MB #Memory Used# [2025-04-17 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:55:05 [end_date_ymd] => 2025-04-17 19:55:05 [RateCDR] => 1 ) [2025-04-17 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 16:55:05' and `end` < '2025-04-17 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 19:55:18] Production.INFO: count ==3100 [2025-04-17 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:55:05 - End Time 2025-04-17 19:55:05 [2025-04-17 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930531', 'tblTempUsageDetail_20' ) start [2025-04-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930531', 'tblTempUsageDetail_20' ) end [2025-04-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930531', 'tblTempVendorCDR_20' ) start [2025-04-17 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930531', 'tblTempVendorCDR_20' ) end [2025-04-17 19:55:19] Production.INFO: ProcessCDR(1,14930531,1,1,2) [2025-04-17 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930531', 'tblTempUsageDetail_20' ) start [2025-04-17 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930531', 'tblTempUsageDetail_20' ) end [2025-04-17 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:55:23] Production.INFO: ==24474== Releasing lock... [2025-04-17 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:55:23] Production.INFO: 51.25 MB #Memory Used# [2025-04-17 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:56:05 [end_date_ymd] => 2025-04-17 19:56:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:56:05' and `end` < '2025-04-17 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-17 19:56:18] Production.INFO: count ==3089 [2025-04-17 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:56:05 - End Time 2025-04-17 19:56:05 [2025-04-17 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930536', 'tblTempUsageDetail_20' ) start [2025-04-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930536', 'tblTempUsageDetail_20' ) end [2025-04-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930536', 'tblTempVendorCDR_20' ) start [2025-04-17 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930536', 'tblTempVendorCDR_20' ) end [2025-04-17 19:56:19] Production.INFO: ProcessCDR(1,14930536,1,1,2) [2025-04-17 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930536', 'tblTempUsageDetail_20' ) start [2025-04-17 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930536', 'tblTempUsageDetail_20' ) end [2025-04-17 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:56:22] Production.INFO: ==24547== Releasing lock... [2025-04-17 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:56:22] Production.INFO: 51 MB #Memory Used# [2025-04-17 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:57:05 [end_date_ymd] => 2025-04-17 19:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:57:05' and `end` < '2025-04-17 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-17 19:57:19] Production.INFO: count ==3084 [2025-04-17 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:57:05 - End Time 2025-04-17 19:57:05 [2025-04-17 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930541', 'tblTempUsageDetail_20' ) start [2025-04-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930541', 'tblTempUsageDetail_20' ) end [2025-04-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930541', 'tblTempVendorCDR_20' ) start [2025-04-17 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930541', 'tblTempVendorCDR_20' ) end [2025-04-17 19:57:20] Production.INFO: ProcessCDR(1,14930541,1,1,2) [2025-04-17 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930541', 'tblTempUsageDetail_20' ) start [2025-04-17 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930541', 'tblTempUsageDetail_20' ) end [2025-04-17 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:57:25] Production.INFO: ==24619== Releasing lock... [2025-04-17 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:57:25] Production.INFO: 51 MB #Memory Used# [2025-04-17 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:58:06 [end_date_ymd] => 2025-04-17 19:58:06 [RateCDR] => 1 ) [2025-04-17 19: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-17 16:58:06' and `end` < '2025-04-17 19: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-17 19:58:19] Production.INFO: count ==3082 [2025-04-17 19:58:20] Production.ERROR: pbx CDR StartTime 2025-04-17 16:58:06 - End Time 2025-04-17 19:58:06 [2025-04-17 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930546', 'tblTempUsageDetail_20' ) start [2025-04-17 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930546', 'tblTempUsageDetail_20' ) end [2025-04-17 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930546', 'tblTempVendorCDR_20' ) start [2025-04-17 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930546', 'tblTempVendorCDR_20' ) end [2025-04-17 19:58:20] Production.INFO: ProcessCDR(1,14930546,1,1,2) [2025-04-17 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930546', 'tblTempUsageDetail_20' ) start [2025-04-17 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930546', 'tblTempUsageDetail_20' ) end [2025-04-17 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:58:23] Production.INFO: ==24690== Releasing lock... [2025-04-17 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:58:23] Production.INFO: 51 MB #Memory Used# [2025-04-17 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 16:59:05 [end_date_ymd] => 2025-04-17 19:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 16:59:05' and `end` < '2025-04-17 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-17 19:59:18] Production.INFO: count ==3089 [2025-04-17 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 16:59:05 - End Time 2025-04-17 19:59:05 [2025-04-17 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930551', 'tblTempUsageDetail_20' ) start [2025-04-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930551', 'tblTempUsageDetail_20' ) end [2025-04-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930551', 'tblTempVendorCDR_20' ) start [2025-04-17 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930551', 'tblTempVendorCDR_20' ) end [2025-04-17 19:59:19] Production.INFO: ProcessCDR(1,14930551,1,1,2) [2025-04-17 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930551', 'tblTempUsageDetail_20' ) start [2025-04-17 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930551', 'tblTempUsageDetail_20' ) end [2025-04-17 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 19:59:22] Production.INFO: ==24760== Releasing lock... [2025-04-17 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 19:59:22] Production.INFO: 51 MB #Memory Used# [2025-04-17 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:00:07 [end_date_ymd] => 2025-04-17 20:00:07 [RateCDR] => 1 ) [2025-04-17 20: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-17 17:00:07' and `end` < '2025-04-17 20: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-17 20:00:20] Production.INFO: count ==3086 [2025-04-17 20:00:21] Production.ERROR: pbx CDR StartTime 2025-04-17 17:00:07 - End Time 2025-04-17 20:00:07 [2025-04-17 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930557', 'tblTempUsageDetail_20' ) start [2025-04-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930557', 'tblTempUsageDetail_20' ) end [2025-04-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930557', 'tblTempVendorCDR_20' ) start [2025-04-17 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930557', 'tblTempVendorCDR_20' ) end [2025-04-17 20:00:21] Production.INFO: ProcessCDR(1,14930557,1,1,2) [2025-04-17 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930557', 'tblTempUsageDetail_20' ) start [2025-04-17 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930557', 'tblTempUsageDetail_20' ) end [2025-04-17 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:00:25] Production.INFO: ==24835== Releasing lock... [2025-04-17 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:00:25] Production.INFO: 51 MB #Memory Used# [2025-04-17 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:01:05 [end_date_ymd] => 2025-04-17 20:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:01:05' and `end` < '2025-04-17 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-17 20:01:18] Production.INFO: count ==3070 [2025-04-17 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:01:05 - End Time 2025-04-17 20:01:05 [2025-04-17 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930562', 'tblTempUsageDetail_20' ) start [2025-04-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930562', 'tblTempUsageDetail_20' ) end [2025-04-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930562', 'tblTempVendorCDR_20' ) start [2025-04-17 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930562', 'tblTempVendorCDR_20' ) end [2025-04-17 20:01:19] Production.INFO: ProcessCDR(1,14930562,1,1,2) [2025-04-17 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930562', 'tblTempUsageDetail_20' ) start [2025-04-17 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930562', 'tblTempUsageDetail_20' ) end [2025-04-17 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:01:24] Production.INFO: ==24958== Releasing lock... [2025-04-17 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:01:24] Production.INFO: 51 MB #Memory Used# [2025-04-17 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:02:05 [end_date_ymd] => 2025-04-17 20:02:05 [RateCDR] => 1 ) [2025-04-17 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:02:05' and `end` < '2025-04-17 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:02:19] Production.INFO: count ==3062 [2025-04-17 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:02:05 - End Time 2025-04-17 20:02:05 [2025-04-17 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930567', 'tblTempUsageDetail_20' ) start [2025-04-17 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930567', 'tblTempUsageDetail_20' ) end [2025-04-17 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930567', 'tblTempVendorCDR_20' ) start [2025-04-17 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930567', 'tblTempVendorCDR_20' ) end [2025-04-17 20:02:20] Production.INFO: ProcessCDR(1,14930567,1,1,2) [2025-04-17 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930567', 'tblTempUsageDetail_20' ) start [2025-04-17 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930567', 'tblTempUsageDetail_20' ) end [2025-04-17 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:02:25] Production.INFO: ==25030== Releasing lock... [2025-04-17 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:02:25] Production.INFO: 51 MB #Memory Used# [2025-04-17 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:03:05 [end_date_ymd] => 2025-04-17 20:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:03:05' and `end` < '2025-04-17 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-17 20:03:18] Production.INFO: count ==3062 [2025-04-17 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:03:05 - End Time 2025-04-17 20:03:05 [2025-04-17 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930572', 'tblTempUsageDetail_20' ) start [2025-04-17 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930572', 'tblTempUsageDetail_20' ) end [2025-04-17 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930572', 'tblTempVendorCDR_20' ) start [2025-04-17 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930572', 'tblTempVendorCDR_20' ) end [2025-04-17 20:03:19] Production.INFO: ProcessCDR(1,14930572,1,1,2) [2025-04-17 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930572', 'tblTempUsageDetail_20' ) start [2025-04-17 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930572', 'tblTempUsageDetail_20' ) end [2025-04-17 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:03:24] Production.INFO: ==25140== Releasing lock... [2025-04-17 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:03:24] Production.INFO: 51 MB #Memory Used# [2025-04-17 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:04:05 [end_date_ymd] => 2025-04-17 20:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:04:05' and `end` < '2025-04-17 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-17 20:04:18] Production.INFO: count ==3057 [2025-04-17 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:04:05 - End Time 2025-04-17 20:04:05 [2025-04-17 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930577', 'tblTempUsageDetail_20' ) start [2025-04-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930577', 'tblTempUsageDetail_20' ) end [2025-04-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930577', 'tblTempVendorCDR_20' ) start [2025-04-17 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930577', 'tblTempVendorCDR_20' ) end [2025-04-17 20:04:19] Production.INFO: ProcessCDR(1,14930577,1,1,2) [2025-04-17 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930577', 'tblTempUsageDetail_20' ) start [2025-04-17 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930577', 'tblTempUsageDetail_20' ) end [2025-04-17 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:04:23] Production.INFO: ==25213== Releasing lock... [2025-04-17 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:04:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:05:04 [end_date_ymd] => 2025-04-17 20:05:04 [RateCDR] => 1 ) [2025-04-17 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:05:04' and `end` < '2025-04-17 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:05:17] Production.INFO: count ==3050 [2025-04-17 20:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:05:04 - End Time 2025-04-17 20:05:04 [2025-04-17 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930582', 'tblTempUsageDetail_20' ) start [2025-04-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930582', 'tblTempUsageDetail_20' ) end [2025-04-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930582', 'tblTempVendorCDR_20' ) start [2025-04-17 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930582', 'tblTempVendorCDR_20' ) end [2025-04-17 20:05:19] Production.INFO: ProcessCDR(1,14930582,1,1,2) [2025-04-17 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930582', 'tblTempUsageDetail_20' ) start [2025-04-17 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930582', 'tblTempUsageDetail_20' ) end [2025-04-17 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:05:22] Production.INFO: ==25282== Releasing lock... [2025-04-17 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:05:22] Production.INFO: 51.75 MB #Memory Used# [2025-04-17 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:06:05 [end_date_ymd] => 2025-04-17 20:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:06:05' and `end` < '2025-04-17 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-17 20:06:18] Production.INFO: count ==3038 [2025-04-17 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:06:05 - End Time 2025-04-17 20:06:05 [2025-04-17 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930587', 'tblTempUsageDetail_20' ) start [2025-04-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930587', 'tblTempUsageDetail_20' ) end [2025-04-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930587', 'tblTempVendorCDR_20' ) start [2025-04-17 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930587', 'tblTempVendorCDR_20' ) end [2025-04-17 20:06:19] Production.INFO: ProcessCDR(1,14930587,1,1,2) [2025-04-17 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930587', 'tblTempUsageDetail_20' ) start [2025-04-17 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930587', 'tblTempUsageDetail_20' ) end [2025-04-17 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:06:24] Production.INFO: ==25355== Releasing lock... [2025-04-17 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:06:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:07:05 [end_date_ymd] => 2025-04-17 20:07:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:07:05' and `end` < '2025-04-17 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-17 20:07:18] Production.INFO: count ==3029 [2025-04-17 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:07:05 - End Time 2025-04-17 20:07:05 [2025-04-17 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930592', 'tblTempUsageDetail_20' ) start [2025-04-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930592', 'tblTempUsageDetail_20' ) end [2025-04-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930592', 'tblTempVendorCDR_20' ) start [2025-04-17 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930592', 'tblTempVendorCDR_20' ) end [2025-04-17 20:07:19] Production.INFO: ProcessCDR(1,14930592,1,1,2) [2025-04-17 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930592', 'tblTempUsageDetail_20' ) start [2025-04-17 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930592', 'tblTempUsageDetail_20' ) end [2025-04-17 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:07:24] Production.INFO: ==25425== Releasing lock... [2025-04-17 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:07:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-17 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:08:05 [end_date_ymd] => 2025-04-17 20:08:05 [RateCDR] => 1 ) [2025-04-17 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:08:05' and `end` < '2025-04-17 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:08:18] Production.INFO: count ==3037 [2025-04-17 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:08:05 - End Time 2025-04-17 20:08:05 [2025-04-17 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930597', 'tblTempUsageDetail_20' ) start [2025-04-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930597', 'tblTempUsageDetail_20' ) end [2025-04-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930597', 'tblTempVendorCDR_20' ) start [2025-04-17 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930597', 'tblTempVendorCDR_20' ) end [2025-04-17 20:08:19] Production.INFO: ProcessCDR(1,14930597,1,1,2) [2025-04-17 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930597', 'tblTempUsageDetail_20' ) start [2025-04-17 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930597', 'tblTempUsageDetail_20' ) end [2025-04-17 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:08:24] Production.INFO: ==25501== Releasing lock... [2025-04-17 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:08:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:09:05 [end_date_ymd] => 2025-04-17 20:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:09:05' and `end` < '2025-04-17 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-17 20:09:18] Production.INFO: count ==3035 [2025-04-17 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:09:05 - End Time 2025-04-17 20:09:05 [2025-04-17 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930602', 'tblTempUsageDetail_20' ) start [2025-04-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930602', 'tblTempUsageDetail_20' ) end [2025-04-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930602', 'tblTempVendorCDR_20' ) start [2025-04-17 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930602', 'tblTempVendorCDR_20' ) end [2025-04-17 20:09:19] Production.INFO: ProcessCDR(1,14930602,1,1,2) [2025-04-17 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930602', 'tblTempUsageDetail_20' ) start [2025-04-17 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930602', 'tblTempUsageDetail_20' ) end [2025-04-17 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:09:24] Production.INFO: ==25573== Releasing lock... [2025-04-17 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:09:24] Production.INFO: 51.25 MB #Memory Used# [2025-04-17 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:10:05 [end_date_ymd] => 2025-04-17 20:10:05 [RateCDR] => 1 ) [2025-04-17 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:10:05' and `end` < '2025-04-17 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:10:19] Production.INFO: count ==3031 [2025-04-17 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:10:05 - End Time 2025-04-17 20:10:05 [2025-04-17 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930608', 'tblTempUsageDetail_20' ) start [2025-04-17 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930608', 'tblTempUsageDetail_20' ) end [2025-04-17 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930608', 'tblTempVendorCDR_20' ) start [2025-04-17 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930608', 'tblTempVendorCDR_20' ) end [2025-04-17 20:10:20] Production.INFO: ProcessCDR(1,14930608,1,1,2) [2025-04-17 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930608', 'tblTempUsageDetail_20' ) start [2025-04-17 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930608', 'tblTempUsageDetail_20' ) end [2025-04-17 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:10:24] Production.INFO: ==25646== Releasing lock... [2025-04-17 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:10:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:11:05 [end_date_ymd] => 2025-04-17 20:11:05 [RateCDR] => 1 ) [2025-04-17 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:11:05' and `end` < '2025-04-17 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:11:18] Production.INFO: count ==3046 [2025-04-17 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:11:05 - End Time 2025-04-17 20:11:05 [2025-04-17 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930613', 'tblTempUsageDetail_20' ) start [2025-04-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930613', 'tblTempUsageDetail_20' ) end [2025-04-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930613', 'tblTempVendorCDR_20' ) start [2025-04-17 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930613', 'tblTempVendorCDR_20' ) end [2025-04-17 20:11:19] Production.INFO: ProcessCDR(1,14930613,1,1,2) [2025-04-17 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930613', 'tblTempUsageDetail_20' ) start [2025-04-17 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930613', 'tblTempUsageDetail_20' ) end [2025-04-17 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:11:22] Production.INFO: ==25720== Releasing lock... [2025-04-17 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:11:22] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:12:05 [end_date_ymd] => 2025-04-17 20:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:12:05' and `end` < '2025-04-17 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-17 20:12:18] Production.INFO: count ==3040 [2025-04-17 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:12:05 - End Time 2025-04-17 20:12:05 [2025-04-17 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930618', 'tblTempUsageDetail_20' ) start [2025-04-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930618', 'tblTempUsageDetail_20' ) end [2025-04-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930618', 'tblTempVendorCDR_20' ) start [2025-04-17 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930618', 'tblTempVendorCDR_20' ) end [2025-04-17 20:12:19] Production.INFO: ProcessCDR(1,14930618,1,1,2) [2025-04-17 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930618', 'tblTempUsageDetail_20' ) start [2025-04-17 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930618', 'tblTempUsageDetail_20' ) end [2025-04-17 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:12:24] Production.INFO: ==25790== Releasing lock... [2025-04-17 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:12:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:13:05 [end_date_ymd] => 2025-04-17 20:13:05 [RateCDR] => 1 ) [2025-04-17 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:13:05' and `end` < '2025-04-17 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:13:18] Production.INFO: count ==3028 [2025-04-17 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:13:05 - End Time 2025-04-17 20:13:05 [2025-04-17 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930623', 'tblTempUsageDetail_20' ) start [2025-04-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930623', 'tblTempUsageDetail_20' ) end [2025-04-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930623', 'tblTempVendorCDR_20' ) start [2025-04-17 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930623', 'tblTempVendorCDR_20' ) end [2025-04-17 20:13:19] Production.INFO: ProcessCDR(1,14930623,1,1,2) [2025-04-17 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930623', 'tblTempUsageDetail_20' ) start [2025-04-17 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930623', 'tblTempUsageDetail_20' ) end [2025-04-17 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:13:24] Production.INFO: ==25862== Releasing lock... [2025-04-17 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:13:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-17 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:14:05 [end_date_ymd] => 2025-04-17 20:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:14:05' and `end` < '2025-04-17 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-17 20:14:18] Production.INFO: count ==3022 [2025-04-17 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:14:05 - End Time 2025-04-17 20:14:05 [2025-04-17 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930628', 'tblTempUsageDetail_20' ) start [2025-04-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930628', 'tblTempUsageDetail_20' ) end [2025-04-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930628', 'tblTempVendorCDR_20' ) start [2025-04-17 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930628', 'tblTempVendorCDR_20' ) end [2025-04-17 20:14:19] Production.INFO: ProcessCDR(1,14930628,1,1,2) [2025-04-17 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930628', 'tblTempUsageDetail_20' ) start [2025-04-17 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930628', 'tblTempUsageDetail_20' ) end [2025-04-17 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:14:23] Production.INFO: ==25933== Releasing lock... [2025-04-17 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:14:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-17 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:15:05 [end_date_ymd] => 2025-04-17 20:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:15:05' and `end` < '2025-04-17 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-17 20:15:18] Production.INFO: count ==3000 [2025-04-17 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:15:05 - End Time 2025-04-17 20:15:05 [2025-04-17 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930633', 'tblTempUsageDetail_20' ) start [2025-04-17 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930633', 'tblTempUsageDetail_20' ) end [2025-04-17 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930633', 'tblTempVendorCDR_20' ) start [2025-04-17 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930633', 'tblTempVendorCDR_20' ) end [2025-04-17 20:15:19] Production.INFO: ProcessCDR(1,14930633,1,1,2) [2025-04-17 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930633', 'tblTempUsageDetail_20' ) start [2025-04-17 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930633', 'tblTempUsageDetail_20' ) end [2025-04-17 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:15:25] Production.INFO: ==26005== Releasing lock... [2025-04-17 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:15:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-17 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:16:05 [end_date_ymd] => 2025-04-17 20:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:16:05' and `end` < '2025-04-17 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-17 20:16:18] Production.INFO: count ==2993 [2025-04-17 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:16:05 - End Time 2025-04-17 20:16:05 [2025-04-17 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930638', 'tblTempUsageDetail_20' ) start [2025-04-17 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930638', 'tblTempUsageDetail_20' ) end [2025-04-17 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930638', 'tblTempVendorCDR_20' ) start [2025-04-17 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930638', 'tblTempVendorCDR_20' ) end [2025-04-17 20:16:20] Production.INFO: ProcessCDR(1,14930638,1,1,2) [2025-04-17 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930638', 'tblTempUsageDetail_20' ) start [2025-04-17 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930638', 'tblTempUsageDetail_20' ) end [2025-04-17 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:16:25] Production.INFO: ==26075== Releasing lock... [2025-04-17 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:16:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-17 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:17:05 [end_date_ymd] => 2025-04-17 20:17:05 [RateCDR] => 1 ) [2025-04-17 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:17:05' and `end` < '2025-04-17 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:17:18] Production.INFO: count ==2981 [2025-04-17 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:17:05 - End Time 2025-04-17 20:17:05 [2025-04-17 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930643', 'tblTempUsageDetail_20' ) start [2025-04-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930643', 'tblTempUsageDetail_20' ) end [2025-04-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930643', 'tblTempVendorCDR_20' ) start [2025-04-17 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930643', 'tblTempVendorCDR_20' ) end [2025-04-17 20:17:19] Production.INFO: ProcessCDR(1,14930643,1,1,2) [2025-04-17 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930643', 'tblTempUsageDetail_20' ) start [2025-04-17 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930643', 'tblTempUsageDetail_20' ) end [2025-04-17 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:17:23] Production.INFO: ==26147== Releasing lock... [2025-04-17 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:17:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-17 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:18:06 [end_date_ymd] => 2025-04-17 20:18:06 [RateCDR] => 1 ) [2025-04-17 20:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:18:06' and `end` < '2025-04-17 20:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:18:19] Production.INFO: count ==2984 [2025-04-17 20:18:20] Production.ERROR: pbx CDR StartTime 2025-04-17 17:18:06 - End Time 2025-04-17 20:18:06 [2025-04-17 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930648', 'tblTempUsageDetail_20' ) start [2025-04-17 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930648', 'tblTempUsageDetail_20' ) end [2025-04-17 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930648', 'tblTempVendorCDR_20' ) start [2025-04-17 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930648', 'tblTempVendorCDR_20' ) end [2025-04-17 20:18:20] Production.INFO: ProcessCDR(1,14930648,1,1,2) [2025-04-17 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930648', 'tblTempUsageDetail_20' ) start [2025-04-17 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930648', 'tblTempUsageDetail_20' ) end [2025-04-17 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:18:25] Production.INFO: ==26256== Releasing lock... [2025-04-17 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:18:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-17 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:19:05 [end_date_ymd] => 2025-04-17 20:19:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:19:05' and `end` < '2025-04-17 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-17 20:19:18] Production.INFO: count ==2977 [2025-04-17 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:19:05 - End Time 2025-04-17 20:19:05 [2025-04-17 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930653', 'tblTempUsageDetail_20' ) start [2025-04-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930653', 'tblTempUsageDetail_20' ) end [2025-04-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930653', 'tblTempVendorCDR_20' ) start [2025-04-17 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930653', 'tblTempVendorCDR_20' ) end [2025-04-17 20:19:19] Production.INFO: ProcessCDR(1,14930653,1,1,2) [2025-04-17 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930653', 'tblTempUsageDetail_20' ) start [2025-04-17 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930653', 'tblTempUsageDetail_20' ) end [2025-04-17 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:19:23] Production.INFO: ==26326== Releasing lock... [2025-04-17 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:19:23] Production.INFO: 50 MB #Memory Used# [2025-04-17 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:20:06 [end_date_ymd] => 2025-04-17 20:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 17:20:06' and `end` < '2025-04-17 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-17 20:20:19] Production.INFO: count ==2974 [2025-04-17 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-17 17:20:06 - End Time 2025-04-17 20:20:06 [2025-04-17 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930659', 'tblTempUsageDetail_20' ) start [2025-04-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930659', 'tblTempUsageDetail_20' ) end [2025-04-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930659', 'tblTempVendorCDR_20' ) start [2025-04-17 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930659', 'tblTempVendorCDR_20' ) end [2025-04-17 20:20:20] Production.INFO: ProcessCDR(1,14930659,1,1,2) [2025-04-17 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930659', 'tblTempUsageDetail_20' ) start [2025-04-17 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930659', 'tblTempUsageDetail_20' ) end [2025-04-17 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:20:25] Production.INFO: ==26404== Releasing lock... [2025-04-17 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:20:25] Production.INFO: 50 MB #Memory Used# [2025-04-17 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:21:05 [end_date_ymd] => 2025-04-17 20:21:05 [RateCDR] => 1 ) [2025-04-17 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:21:05' and `end` < '2025-04-17 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:21:18] Production.INFO: count ==2916 [2025-04-17 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:21:05 - End Time 2025-04-17 20:21:05 [2025-04-17 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930664', 'tblTempUsageDetail_20' ) start [2025-04-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930664', 'tblTempUsageDetail_20' ) end [2025-04-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930664', 'tblTempVendorCDR_20' ) start [2025-04-17 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930664', 'tblTempVendorCDR_20' ) end [2025-04-17 20:21:19] Production.INFO: ProcessCDR(1,14930664,1,1,2) [2025-04-17 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930664', 'tblTempUsageDetail_20' ) start [2025-04-17 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930664', 'tblTempUsageDetail_20' ) end [2025-04-17 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:21:24] Production.INFO: ==26484== Releasing lock... [2025-04-17 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:21:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-17 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:22:06 [end_date_ymd] => 2025-04-17 20:22:06 [RateCDR] => 1 ) [2025-04-17 20: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-17 17:22:06' and `end` < '2025-04-17 20: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-17 20:22:19] Production.INFO: count ==2913 [2025-04-17 20:22:20] Production.ERROR: pbx CDR StartTime 2025-04-17 17:22:06 - End Time 2025-04-17 20:22:06 [2025-04-17 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930669', 'tblTempUsageDetail_20' ) start [2025-04-17 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930669', 'tblTempUsageDetail_20' ) end [2025-04-17 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930669', 'tblTempVendorCDR_20' ) start [2025-04-17 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930669', 'tblTempVendorCDR_20' ) end [2025-04-17 20:22:20] Production.INFO: ProcessCDR(1,14930669,1,1,2) [2025-04-17 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930669', 'tblTempUsageDetail_20' ) start [2025-04-17 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930669', 'tblTempUsageDetail_20' ) end [2025-04-17 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:22:25] Production.INFO: ==26560== Releasing lock... [2025-04-17 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:22:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-17 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:23:05 [end_date_ymd] => 2025-04-17 20:23:05 [RateCDR] => 1 ) [2025-04-17 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:23:05' and `end` < '2025-04-17 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:23:18] Production.INFO: count ==2910 [2025-04-17 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:23:05 - End Time 2025-04-17 20:23:05 [2025-04-17 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930674', 'tblTempUsageDetail_20' ) start [2025-04-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930674', 'tblTempUsageDetail_20' ) end [2025-04-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930674', 'tblTempVendorCDR_20' ) start [2025-04-17 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930674', 'tblTempVendorCDR_20' ) end [2025-04-17 20:23:19] Production.INFO: ProcessCDR(1,14930674,1,1,2) [2025-04-17 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930674', 'tblTempUsageDetail_20' ) start [2025-04-17 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930674', 'tblTempUsageDetail_20' ) end [2025-04-17 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:23:24] Production.INFO: ==26639== Releasing lock... [2025-04-17 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:23:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-17 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:24:05 [end_date_ymd] => 2025-04-17 20:24:05 [RateCDR] => 1 ) [2025-04-17 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:24:05' and `end` < '2025-04-17 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:24:18] Production.INFO: count ==2897 [2025-04-17 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:24:05 - End Time 2025-04-17 20:24:05 [2025-04-17 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930679', 'tblTempUsageDetail_20' ) start [2025-04-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930679', 'tblTempUsageDetail_20' ) end [2025-04-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930679', 'tblTempVendorCDR_20' ) start [2025-04-17 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930679', 'tblTempVendorCDR_20' ) end [2025-04-17 20:24:19] Production.INFO: ProcessCDR(1,14930679,1,1,2) [2025-04-17 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930679', 'tblTempUsageDetail_20' ) start [2025-04-17 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930679', 'tblTempUsageDetail_20' ) end [2025-04-17 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:24:22] Production.INFO: ==26713== Releasing lock... [2025-04-17 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:24:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-17 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:25:04 [end_date_ymd] => 2025-04-17 20:25:04 [RateCDR] => 1 ) [2025-04-17 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:25:04' and `end` < '2025-04-17 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:25:17] Production.INFO: count ==2889 [2025-04-17 20:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:25:04 - End Time 2025-04-17 20:25:04 [2025-04-17 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930684', 'tblTempUsageDetail_20' ) start [2025-04-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930684', 'tblTempUsageDetail_20' ) end [2025-04-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930684', 'tblTempVendorCDR_20' ) start [2025-04-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930684', 'tblTempVendorCDR_20' ) end [2025-04-17 20:25:18] Production.INFO: ProcessCDR(1,14930684,1,1,2) [2025-04-17 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930684', 'tblTempUsageDetail_20' ) start [2025-04-17 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930684', 'tblTempUsageDetail_20' ) end [2025-04-17 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:25:23] Production.INFO: ==26784== Releasing lock... [2025-04-17 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:25:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:26:05 [end_date_ymd] => 2025-04-17 20:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:26:05' and `end` < '2025-04-17 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-17 20:26:18] Production.INFO: count ==2881 [2025-04-17 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:26:05 - End Time 2025-04-17 20:26:05 [2025-04-17 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930689', 'tblTempUsageDetail_20' ) start [2025-04-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930689', 'tblTempUsageDetail_20' ) end [2025-04-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930689', 'tblTempVendorCDR_20' ) start [2025-04-17 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930689', 'tblTempVendorCDR_20' ) end [2025-04-17 20:26:19] Production.INFO: ProcessCDR(1,14930689,1,1,2) [2025-04-17 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930689', 'tblTempUsageDetail_20' ) start [2025-04-17 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930689', 'tblTempUsageDetail_20' ) end [2025-04-17 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:26:25] Production.INFO: ==26859== Releasing lock... [2025-04-17 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:26:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:27:04 [end_date_ymd] => 2025-04-17 20:27:04 [RateCDR] => 1 ) [2025-04-17 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:27:04' and `end` < '2025-04-17 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:27:17] Production.INFO: count ==2884 [2025-04-17 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:27:04 - End Time 2025-04-17 20:27:04 [2025-04-17 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930694', 'tblTempUsageDetail_20' ) start [2025-04-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930694', 'tblTempUsageDetail_20' ) end [2025-04-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930694', 'tblTempVendorCDR_20' ) start [2025-04-17 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930694', 'tblTempVendorCDR_20' ) end [2025-04-17 20:27:18] Production.INFO: ProcessCDR(1,14930694,1,1,2) [2025-04-17 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930694', 'tblTempUsageDetail_20' ) start [2025-04-17 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930694', 'tblTempUsageDetail_20' ) end [2025-04-17 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:27:22] Production.INFO: ==26927== Releasing lock... [2025-04-17 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:27:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:28:05 [end_date_ymd] => 2025-04-17 20:28:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:28:05' and `end` < '2025-04-17 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-17 20:28:18] Production.INFO: count ==2882 [2025-04-17 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:28:05 - End Time 2025-04-17 20:28:05 [2025-04-17 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930699', 'tblTempUsageDetail_20' ) start [2025-04-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930699', 'tblTempUsageDetail_20' ) end [2025-04-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930699', 'tblTempVendorCDR_20' ) start [2025-04-17 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930699', 'tblTempVendorCDR_20' ) end [2025-04-17 20:28:19] Production.INFO: ProcessCDR(1,14930699,1,1,2) [2025-04-17 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930699', 'tblTempUsageDetail_20' ) start [2025-04-17 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930699', 'tblTempUsageDetail_20' ) end [2025-04-17 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:28:22] Production.INFO: ==26997== Releasing lock... [2025-04-17 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:28:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:29:06 [end_date_ymd] => 2025-04-17 20:29:06 [RateCDR] => 1 ) [2025-04-17 20: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-17 17:29:06' and `end` < '2025-04-17 20: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-17 20:29:18] Production.INFO: count ==2881 [2025-04-17 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:29:06 - End Time 2025-04-17 20:29:06 [2025-04-17 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930704', 'tblTempUsageDetail_20' ) start [2025-04-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930704', 'tblTempUsageDetail_20' ) end [2025-04-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930704', 'tblTempVendorCDR_20' ) start [2025-04-17 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930704', 'tblTempVendorCDR_20' ) end [2025-04-17 20:29:19] Production.INFO: ProcessCDR(1,14930704,1,1,2) [2025-04-17 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930704', 'tblTempUsageDetail_20' ) start [2025-04-17 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930704', 'tblTempUsageDetail_20' ) end [2025-04-17 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:29:23] Production.INFO: ==27069== Releasing lock... [2025-04-17 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:29:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:30:05 [end_date_ymd] => 2025-04-17 20:30:05 [RateCDR] => 1 ) [2025-04-17 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:30:05' and `end` < '2025-04-17 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:30:18] Production.INFO: count ==2873 [2025-04-17 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:30:05 - End Time 2025-04-17 20:30:05 [2025-04-17 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930710', 'tblTempUsageDetail_20' ) start [2025-04-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930710', 'tblTempUsageDetail_20' ) end [2025-04-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930710', 'tblTempVendorCDR_20' ) start [2025-04-17 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930710', 'tblTempVendorCDR_20' ) end [2025-04-17 20:30:19] Production.INFO: ProcessCDR(1,14930710,1,1,2) [2025-04-17 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930710', 'tblTempUsageDetail_20' ) start [2025-04-17 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930710', 'tblTempUsageDetail_20' ) end [2025-04-17 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:30:23] Production.INFO: ==27142== Releasing lock... [2025-04-17 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:30:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:31:05 [end_date_ymd] => 2025-04-17 20:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:31:05' and `end` < '2025-04-17 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-17 20:31:18] Production.INFO: count ==2788 [2025-04-17 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:31:05 - End Time 2025-04-17 20:31:05 [2025-04-17 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930715', 'tblTempUsageDetail_20' ) start [2025-04-17 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930715', 'tblTempUsageDetail_20' ) end [2025-04-17 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930715', 'tblTempVendorCDR_20' ) start [2025-04-17 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930715', 'tblTempVendorCDR_20' ) end [2025-04-17 20:31:19] Production.INFO: ProcessCDR(1,14930715,1,1,2) [2025-04-17 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930715', 'tblTempUsageDetail_20' ) start [2025-04-17 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930715', 'tblTempUsageDetail_20' ) end [2025-04-17 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:31:24] Production.INFO: ==27215== Releasing lock... [2025-04-17 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:31:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-17 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:32:05 [end_date_ymd] => 2025-04-17 20:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:32:05' and `end` < '2025-04-17 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-17 20:32:18] Production.INFO: count ==2778 [2025-04-17 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:32:05 - End Time 2025-04-17 20:32:05 [2025-04-17 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930720', 'tblTempUsageDetail_20' ) start [2025-04-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930720', 'tblTempUsageDetail_20' ) end [2025-04-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930720', 'tblTempVendorCDR_20' ) start [2025-04-17 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930720', 'tblTempVendorCDR_20' ) end [2025-04-17 20:32:19] Production.INFO: ProcessCDR(1,14930720,1,1,2) [2025-04-17 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930720', 'tblTempUsageDetail_20' ) start [2025-04-17 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930720', 'tblTempUsageDetail_20' ) end [2025-04-17 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:32:22] Production.INFO: ==27286== Releasing lock... [2025-04-17 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:32:22] Production.INFO: 49 MB #Memory Used# [2025-04-17 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:33:05 [end_date_ymd] => 2025-04-17 20:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:33:05' and `end` < '2025-04-17 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-17 20:33:18] Production.INFO: count ==2764 [2025-04-17 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:33:05 - End Time 2025-04-17 20:33:05 [2025-04-17 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930725', 'tblTempUsageDetail_20' ) start [2025-04-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930725', 'tblTempUsageDetail_20' ) end [2025-04-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930725', 'tblTempVendorCDR_20' ) start [2025-04-17 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930725', 'tblTempVendorCDR_20' ) end [2025-04-17 20:33:19] Production.INFO: ProcessCDR(1,14930725,1,1,2) [2025-04-17 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930725', 'tblTempUsageDetail_20' ) start [2025-04-17 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930725', 'tblTempUsageDetail_20' ) end [2025-04-17 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:33:24] Production.INFO: ==27357== Releasing lock... [2025-04-17 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:33:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:34:05 [end_date_ymd] => 2025-04-17 20:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:34:05' and `end` < '2025-04-17 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-17 20:34:18] Production.INFO: count ==2753 [2025-04-17 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:34:05 - End Time 2025-04-17 20:34:05 [2025-04-17 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930730', 'tblTempUsageDetail_20' ) start [2025-04-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930730', 'tblTempUsageDetail_20' ) end [2025-04-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930730', 'tblTempVendorCDR_20' ) start [2025-04-17 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930730', 'tblTempVendorCDR_20' ) end [2025-04-17 20:34:19] Production.INFO: ProcessCDR(1,14930730,1,1,2) [2025-04-17 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930730', 'tblTempUsageDetail_20' ) start [2025-04-17 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930730', 'tblTempUsageDetail_20' ) end [2025-04-17 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:34:22] Production.INFO: ==27467== Releasing lock... [2025-04-17 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:34:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:35:05 [end_date_ymd] => 2025-04-17 20:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:35:05' and `end` < '2025-04-17 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-17 20:35:18] Production.INFO: count ==2746 [2025-04-17 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:35:05 - End Time 2025-04-17 20:35:05 [2025-04-17 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930735', 'tblTempUsageDetail_20' ) start [2025-04-17 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930735', 'tblTempUsageDetail_20' ) end [2025-04-17 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930735', 'tblTempVendorCDR_20' ) start [2025-04-17 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930735', 'tblTempVendorCDR_20' ) end [2025-04-17 20:35:19] Production.INFO: ProcessCDR(1,14930735,1,1,2) [2025-04-17 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930735', 'tblTempUsageDetail_20' ) start [2025-04-17 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930735', 'tblTempUsageDetail_20' ) end [2025-04-17 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:35:24] Production.INFO: ==27538== Releasing lock... [2025-04-17 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:35:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:36:05 [end_date_ymd] => 2025-04-17 20:36:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:36:05' and `end` < '2025-04-17 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-17 20:36:18] Production.INFO: count ==2743 [2025-04-17 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:36:05 - End Time 2025-04-17 20:36:05 [2025-04-17 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930740', 'tblTempUsageDetail_20' ) start [2025-04-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930740', 'tblTempUsageDetail_20' ) end [2025-04-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930740', 'tblTempVendorCDR_20' ) start [2025-04-17 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930740', 'tblTempVendorCDR_20' ) end [2025-04-17 20:36:19] Production.INFO: ProcessCDR(1,14930740,1,1,2) [2025-04-17 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930740', 'tblTempUsageDetail_20' ) start [2025-04-17 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930740', 'tblTempUsageDetail_20' ) end [2025-04-17 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:36:22] Production.INFO: ==27612== Releasing lock... [2025-04-17 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:36:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:37:05 [end_date_ymd] => 2025-04-17 20:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:37:05' and `end` < '2025-04-17 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-17 20:37:18] Production.INFO: count ==2735 [2025-04-17 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:37:05 - End Time 2025-04-17 20:37:05 [2025-04-17 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930745', 'tblTempUsageDetail_20' ) start [2025-04-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930745', 'tblTempUsageDetail_20' ) end [2025-04-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930745', 'tblTempVendorCDR_20' ) start [2025-04-17 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930745', 'tblTempVendorCDR_20' ) end [2025-04-17 20:37:19] Production.INFO: ProcessCDR(1,14930745,1,1,2) [2025-04-17 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930745', 'tblTempUsageDetail_20' ) start [2025-04-17 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930745', 'tblTempUsageDetail_20' ) end [2025-04-17 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:37:24] Production.INFO: ==27684== Releasing lock... [2025-04-17 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:37:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-17 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:38:05 [end_date_ymd] => 2025-04-17 20:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:38:05' and `end` < '2025-04-17 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-17 20:38:18] Production.INFO: count ==2730 [2025-04-17 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:38:05 - End Time 2025-04-17 20:38:05 [2025-04-17 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930750', 'tblTempUsageDetail_20' ) start [2025-04-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930750', 'tblTempUsageDetail_20' ) end [2025-04-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930750', 'tblTempVendorCDR_20' ) start [2025-04-17 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930750', 'tblTempVendorCDR_20' ) end [2025-04-17 20:38:19] Production.INFO: ProcessCDR(1,14930750,1,1,2) [2025-04-17 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930750', 'tblTempUsageDetail_20' ) start [2025-04-17 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930750', 'tblTempUsageDetail_20' ) end [2025-04-17 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:38:23] Production.INFO: ==27756== Releasing lock... [2025-04-17 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:38:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-17 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:39:05 [end_date_ymd] => 2025-04-17 20:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:39:05' and `end` < '2025-04-17 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-17 20:39:18] Production.INFO: count ==2722 [2025-04-17 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:39:05 - End Time 2025-04-17 20:39:05 [2025-04-17 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930755', 'tblTempUsageDetail_20' ) start [2025-04-17 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930755', 'tblTempUsageDetail_20' ) end [2025-04-17 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930755', 'tblTempVendorCDR_20' ) start [2025-04-17 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930755', 'tblTempVendorCDR_20' ) end [2025-04-17 20:39:19] Production.INFO: ProcessCDR(1,14930755,1,1,2) [2025-04-17 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930755', 'tblTempUsageDetail_20' ) start [2025-04-17 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930755', 'tblTempUsageDetail_20' ) end [2025-04-17 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:39:22] Production.INFO: ==27828== Releasing lock... [2025-04-17 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:39:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-17 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:40:06 [end_date_ymd] => 2025-04-17 20:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 17:40:06' and `end` < '2025-04-17 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-17 20:40:19] Production.INFO: count ==2706 [2025-04-17 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-17 17:40:06 - End Time 2025-04-17 20:40:06 [2025-04-17 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930760', 'tblTempUsageDetail_20' ) start [2025-04-17 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930760', 'tblTempUsageDetail_20' ) end [2025-04-17 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930760', 'tblTempVendorCDR_20' ) start [2025-04-17 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930760', 'tblTempVendorCDR_20' ) end [2025-04-17 20:40:20] Production.INFO: ProcessCDR(1,14930760,1,1,2) [2025-04-17 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930760', 'tblTempUsageDetail_20' ) start [2025-04-17 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930760', 'tblTempUsageDetail_20' ) end [2025-04-17 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:40:24] Production.INFO: ==27904== Releasing lock... [2025-04-17 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:40:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-17 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:41:05 [end_date_ymd] => 2025-04-17 20:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:41:05' and `end` < '2025-04-17 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-17 20:41:18] Production.INFO: count ==2633 [2025-04-17 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:41:05 - End Time 2025-04-17 20:41:05 [2025-04-17 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930766', 'tblTempUsageDetail_20' ) start [2025-04-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930766', 'tblTempUsageDetail_20' ) end [2025-04-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930766', 'tblTempVendorCDR_20' ) start [2025-04-17 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930766', 'tblTempVendorCDR_20' ) end [2025-04-17 20:41:19] Production.INFO: ProcessCDR(1,14930766,1,1,2) [2025-04-17 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930766', 'tblTempUsageDetail_20' ) start [2025-04-17 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930766', 'tblTempUsageDetail_20' ) end [2025-04-17 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:41:22] Production.INFO: ==27977== Releasing lock... [2025-04-17 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:41:22] Production.INFO: 48 MB #Memory Used# [2025-04-17 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:42:06 [end_date_ymd] => 2025-04-17 20:42:06 [RateCDR] => 1 ) [2025-04-17 20: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-17 17:42:06' and `end` < '2025-04-17 20: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-17 20:42:19] Production.INFO: count ==2619 [2025-04-17 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:42:06 - End Time 2025-04-17 20:42:06 [2025-04-17 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930771', 'tblTempUsageDetail_20' ) start [2025-04-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930771', 'tblTempUsageDetail_20' ) end [2025-04-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930771', 'tblTempVendorCDR_20' ) start [2025-04-17 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930771', 'tblTempVendorCDR_20' ) end [2025-04-17 20:42:19] Production.INFO: ProcessCDR(1,14930771,1,1,2) [2025-04-17 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930771', 'tblTempUsageDetail_20' ) start [2025-04-17 20:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930771', 'tblTempUsageDetail_20' ) end [2025-04-17 20:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:42:25] Production.INFO: ==28049== Releasing lock... [2025-04-17 20:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:42:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-17 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:43:05 [end_date_ymd] => 2025-04-17 20:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:43:05' and `end` < '2025-04-17 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-17 20:43:18] Production.INFO: count ==2621 [2025-04-17 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:43:05 - End Time 2025-04-17 20:43:05 [2025-04-17 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930776', 'tblTempUsageDetail_20' ) start [2025-04-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930776', 'tblTempUsageDetail_20' ) end [2025-04-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930776', 'tblTempVendorCDR_20' ) start [2025-04-17 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930776', 'tblTempVendorCDR_20' ) end [2025-04-17 20:43:19] Production.INFO: ProcessCDR(1,14930776,1,1,2) [2025-04-17 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930776', 'tblTempUsageDetail_20' ) start [2025-04-17 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930776', 'tblTempUsageDetail_20' ) end [2025-04-17 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:43:22] Production.INFO: ==28121== Releasing lock... [2025-04-17 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:43:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-17 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:44:05 [end_date_ymd] => 2025-04-17 20:44:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:44:05' and `end` < '2025-04-17 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-17 20:44:18] Production.INFO: count ==2617 [2025-04-17 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:44:05 - End Time 2025-04-17 20:44:05 [2025-04-17 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930781', 'tblTempUsageDetail_20' ) start [2025-04-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930781', 'tblTempUsageDetail_20' ) end [2025-04-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930781', 'tblTempVendorCDR_20' ) start [2025-04-17 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930781', 'tblTempVendorCDR_20' ) end [2025-04-17 20:44:19] Production.INFO: ProcessCDR(1,14930781,1,1,2) [2025-04-17 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930781', 'tblTempUsageDetail_20' ) start [2025-04-17 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930781', 'tblTempUsageDetail_20' ) end [2025-04-17 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:44:23] Production.INFO: ==28193== Releasing lock... [2025-04-17 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:44:23] Production.INFO: 47.75 MB #Memory Used# [2025-04-17 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:45:05 [end_date_ymd] => 2025-04-17 20:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:45:05' and `end` < '2025-04-17 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-17 20:45:18] Production.INFO: count ==2600 [2025-04-17 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:45:05 - End Time 2025-04-17 20:45:05 [2025-04-17 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930786', 'tblTempUsageDetail_20' ) start [2025-04-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930786', 'tblTempUsageDetail_20' ) end [2025-04-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930786', 'tblTempVendorCDR_20' ) start [2025-04-17 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930786', 'tblTempVendorCDR_20' ) end [2025-04-17 20:45:19] Production.INFO: ProcessCDR(1,14930786,1,1,2) [2025-04-17 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930786', 'tblTempUsageDetail_20' ) start [2025-04-17 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930786', 'tblTempUsageDetail_20' ) end [2025-04-17 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:45:22] Production.INFO: ==28265== Releasing lock... [2025-04-17 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:45:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-17 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:46:05 [end_date_ymd] => 2025-04-17 20:46:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:46:05' and `end` < '2025-04-17 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-17 20:46:18] Production.INFO: count ==2595 [2025-04-17 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:46:05 - End Time 2025-04-17 20:46:05 [2025-04-17 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930791', 'tblTempUsageDetail_20' ) start [2025-04-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930791', 'tblTempUsageDetail_20' ) end [2025-04-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930791', 'tblTempVendorCDR_20' ) start [2025-04-17 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930791', 'tblTempVendorCDR_20' ) end [2025-04-17 20:46:19] Production.INFO: ProcessCDR(1,14930791,1,1,2) [2025-04-17 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930791', 'tblTempUsageDetail_20' ) start [2025-04-17 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930791', 'tblTempUsageDetail_20' ) end [2025-04-17 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:46:24] Production.INFO: ==28335== Releasing lock... [2025-04-17 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:46:24] Production.INFO: 47.5 MB #Memory Used# [2025-04-17 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:47:06 [end_date_ymd] => 2025-04-17 20:47:06 [RateCDR] => 1 ) [2025-04-17 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:47:06' and `end` < '2025-04-17 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:47:19] Production.INFO: count ==2592 [2025-04-17 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:47:06 - End Time 2025-04-17 20:47:06 [2025-04-17 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930796', 'tblTempUsageDetail_20' ) start [2025-04-17 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930796', 'tblTempUsageDetail_20' ) end [2025-04-17 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930796', 'tblTempVendorCDR_20' ) start [2025-04-17 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930796', 'tblTempVendorCDR_20' ) end [2025-04-17 20:47:19] Production.INFO: ProcessCDR(1,14930796,1,1,2) [2025-04-17 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930796', 'tblTempUsageDetail_20' ) start [2025-04-17 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930796', 'tblTempUsageDetail_20' ) end [2025-04-17 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:47:23] Production.INFO: ==28405== Releasing lock... [2025-04-17 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:47:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-17 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:48:06 [end_date_ymd] => 2025-04-17 20:48:06 [RateCDR] => 1 ) [2025-04-17 20: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-17 17:48:06' and `end` < '2025-04-17 20: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-17 20:48:19] Production.INFO: count ==2586 [2025-04-17 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:48:06 - End Time 2025-04-17 20:48:06 [2025-04-17 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930801', 'tblTempUsageDetail_20' ) start [2025-04-17 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930801', 'tblTempUsageDetail_20' ) end [2025-04-17 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930801', 'tblTempVendorCDR_20' ) start [2025-04-17 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930801', 'tblTempVendorCDR_20' ) end [2025-04-17 20:48:20] Production.INFO: ProcessCDR(1,14930801,1,1,2) [2025-04-17 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930801', 'tblTempUsageDetail_20' ) start [2025-04-17 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930801', 'tblTempUsageDetail_20' ) end [2025-04-17 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:48:23] Production.INFO: ==28476== Releasing lock... [2025-04-17 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:48:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-17 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:49:05 [end_date_ymd] => 2025-04-17 20:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:49:05' and `end` < '2025-04-17 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-17 20:49:17] Production.INFO: count ==2571 [2025-04-17 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:49:05 - End Time 2025-04-17 20:49:05 [2025-04-17 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930806', 'tblTempUsageDetail_20' ) start [2025-04-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930806', 'tblTempUsageDetail_20' ) end [2025-04-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930806', 'tblTempVendorCDR_20' ) start [2025-04-17 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930806', 'tblTempVendorCDR_20' ) end [2025-04-17 20:49:18] Production.INFO: ProcessCDR(1,14930806,1,1,2) [2025-04-17 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930806', 'tblTempUsageDetail_20' ) start [2025-04-17 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930806', 'tblTempUsageDetail_20' ) end [2025-04-17 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:49:22] Production.INFO: ==28591== Releasing lock... [2025-04-17 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:49:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-17 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:50:06 [end_date_ymd] => 2025-04-17 20:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 17:50:06' and `end` < '2025-04-17 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-17 20:50:19] Production.INFO: count ==2567 [2025-04-17 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 17:50:06 - End Time 2025-04-17 20:50:06 [2025-04-17 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930812', 'tblTempUsageDetail_20' ) start [2025-04-17 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930812', 'tblTempUsageDetail_20' ) end [2025-04-17 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930812', 'tblTempVendorCDR_20' ) start [2025-04-17 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930812', 'tblTempVendorCDR_20' ) end [2025-04-17 20:50:20] Production.INFO: ProcessCDR(1,14930812,1,1,2) [2025-04-17 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930812', 'tblTempUsageDetail_20' ) start [2025-04-17 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930812', 'tblTempUsageDetail_20' ) end [2025-04-17 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:50:23] Production.INFO: ==28666== Releasing lock... [2025-04-17 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:50:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-17 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:51:05 [end_date_ymd] => 2025-04-17 20:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:51:05' and `end` < '2025-04-17 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-17 20:51:18] Production.INFO: count ==2557 [2025-04-17 20:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:51:05 - End Time 2025-04-17 20:51:05 [2025-04-17 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930817', 'tblTempUsageDetail_20' ) start [2025-04-17 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930817', 'tblTempUsageDetail_20' ) end [2025-04-17 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930817', 'tblTempVendorCDR_20' ) start [2025-04-17 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930817', 'tblTempVendorCDR_20' ) end [2025-04-17 20:51:18] Production.INFO: ProcessCDR(1,14930817,1,1,2) [2025-04-17 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930817', 'tblTempUsageDetail_20' ) start [2025-04-17 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930817', 'tblTempUsageDetail_20' ) end [2025-04-17 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:51:23] Production.INFO: ==28740== Releasing lock... [2025-04-17 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:51:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-17 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:52:05 [end_date_ymd] => 2025-04-17 20:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:52:05' and `end` < '2025-04-17 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-17 20:52:18] Production.INFO: count ==2563 [2025-04-17 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:52:05 - End Time 2025-04-17 20:52:05 [2025-04-17 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930822', 'tblTempUsageDetail_20' ) start [2025-04-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930822', 'tblTempUsageDetail_20' ) end [2025-04-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930822', 'tblTempVendorCDR_20' ) start [2025-04-17 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930822', 'tblTempVendorCDR_20' ) end [2025-04-17 20:52:19] Production.INFO: ProcessCDR(1,14930822,1,1,2) [2025-04-17 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930822', 'tblTempUsageDetail_20' ) start [2025-04-17 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930822', 'tblTempUsageDetail_20' ) end [2025-04-17 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:52:23] Production.INFO: ==28810== Releasing lock... [2025-04-17 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:52:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-17 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:53:05 [end_date_ymd] => 2025-04-17 20:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:53:05' and `end` < '2025-04-17 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-17 20:53:18] Production.INFO: count ==2552 [2025-04-17 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:53:05 - End Time 2025-04-17 20:53:05 [2025-04-17 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930827', 'tblTempUsageDetail_20' ) start [2025-04-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930827', 'tblTempUsageDetail_20' ) end [2025-04-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930827', 'tblTempVendorCDR_20' ) start [2025-04-17 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930827', 'tblTempVendorCDR_20' ) end [2025-04-17 20:53:18] Production.INFO: ProcessCDR(1,14930827,1,1,2) [2025-04-17 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930827', 'tblTempUsageDetail_20' ) start [2025-04-17 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930827', 'tblTempUsageDetail_20' ) end [2025-04-17 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:53:22] Production.INFO: ==28879== Releasing lock... [2025-04-17 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:53:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-17 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:54:05 [end_date_ymd] => 2025-04-17 20:54:05 [RateCDR] => 1 ) [2025-04-17 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:54:05' and `end` < '2025-04-17 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:54:18] Production.INFO: count ==2538 [2025-04-17 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:54:05 - End Time 2025-04-17 20:54:05 [2025-04-17 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930832', 'tblTempUsageDetail_20' ) start [2025-04-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930832', 'tblTempUsageDetail_20' ) end [2025-04-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930832', 'tblTempVendorCDR_20' ) start [2025-04-17 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930832', 'tblTempVendorCDR_20' ) end [2025-04-17 20:54:19] Production.INFO: ProcessCDR(1,14930832,1,1,2) [2025-04-17 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930832', 'tblTempUsageDetail_20' ) start [2025-04-17 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930832', 'tblTempUsageDetail_20' ) end [2025-04-17 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:54:22] Production.INFO: ==28952== Releasing lock... [2025-04-17 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:54:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-17 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:55:05 [end_date_ymd] => 2025-04-17 20:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:55:05' and `end` < '2025-04-17 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-17 20:55:18] Production.INFO: count ==2535 [2025-04-17 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:55:05 - End Time 2025-04-17 20:55:05 [2025-04-17 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930837', 'tblTempUsageDetail_20' ) start [2025-04-17 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930837', 'tblTempUsageDetail_20' ) end [2025-04-17 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930837', 'tblTempVendorCDR_20' ) start [2025-04-17 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930837', 'tblTempVendorCDR_20' ) end [2025-04-17 20:55:19] Production.INFO: ProcessCDR(1,14930837,1,1,2) [2025-04-17 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930837', 'tblTempUsageDetail_20' ) start [2025-04-17 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930837', 'tblTempUsageDetail_20' ) end [2025-04-17 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:55:22] Production.INFO: ==29022== Releasing lock... [2025-04-17 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:55:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-17 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:56:05 [end_date_ymd] => 2025-04-17 20:56:05 [RateCDR] => 1 ) [2025-04-17 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:56:05' and `end` < '2025-04-17 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:56:18] Production.INFO: count ==2524 [2025-04-17 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:56:05 - End Time 2025-04-17 20:56:05 [2025-04-17 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930842', 'tblTempUsageDetail_20' ) start [2025-04-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930842', 'tblTempUsageDetail_20' ) end [2025-04-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930842', 'tblTempVendorCDR_20' ) start [2025-04-17 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930842', 'tblTempVendorCDR_20' ) end [2025-04-17 20:56:19] Production.INFO: ProcessCDR(1,14930842,1,1,2) [2025-04-17 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930842', 'tblTempUsageDetail_20' ) start [2025-04-17 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930842', 'tblTempUsageDetail_20' ) end [2025-04-17 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:56:22] Production.INFO: ==29092== Releasing lock... [2025-04-17 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:56:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-17 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:57:06 [end_date_ymd] => 2025-04-17 20:57:06 [RateCDR] => 1 ) [2025-04-17 20: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-17 17:57:06' and `end` < '2025-04-17 20: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-17 20:57:19] Production.INFO: count ==2517 [2025-04-17 20:57:20] Production.ERROR: pbx CDR StartTime 2025-04-17 17:57:06 - End Time 2025-04-17 20:57:06 [2025-04-17 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930847', 'tblTempUsageDetail_20' ) start [2025-04-17 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930847', 'tblTempUsageDetail_20' ) end [2025-04-17 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930847', 'tblTempVendorCDR_20' ) start [2025-04-17 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930847', 'tblTempVendorCDR_20' ) end [2025-04-17 20:57:20] Production.INFO: ProcessCDR(1,14930847,1,1,2) [2025-04-17 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930847', 'tblTempUsageDetail_20' ) start [2025-04-17 20:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930847', 'tblTempUsageDetail_20' ) end [2025-04-17 20:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:57:25] Production.INFO: ==29167== Releasing lock... [2025-04-17 20:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:57:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-17 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:58:05 [end_date_ymd] => 2025-04-17 20:58:05 [RateCDR] => 1 ) [2025-04-17 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 17:58:05' and `end` < '2025-04-17 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 20:58:17] Production.INFO: count ==2517 [2025-04-17 20:58:18] Production.ERROR: pbx CDR StartTime 2025-04-17 17:58:05 - End Time 2025-04-17 20:58:05 [2025-04-17 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930852', 'tblTempUsageDetail_20' ) start [2025-04-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930852', 'tblTempUsageDetail_20' ) end [2025-04-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930852', 'tblTempVendorCDR_20' ) start [2025-04-17 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930852', 'tblTempVendorCDR_20' ) end [2025-04-17 20:58:18] Production.INFO: ProcessCDR(1,14930852,1,1,2) [2025-04-17 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930852', 'tblTempUsageDetail_20' ) start [2025-04-17 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930852', 'tblTempUsageDetail_20' ) end [2025-04-17 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:58:23] Production.INFO: ==29237== Releasing lock... [2025-04-17 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:58:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-17 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 17:59:05 [end_date_ymd] => 2025-04-17 20:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 17:59:05' and `end` < '2025-04-17 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-17 20:59:18] Production.INFO: count ==2514 [2025-04-17 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 17:59:05 - End Time 2025-04-17 20:59:05 [2025-04-17 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930857', 'tblTempUsageDetail_20' ) start [2025-04-17 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930857', 'tblTempUsageDetail_20' ) end [2025-04-17 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930857', 'tblTempVendorCDR_20' ) start [2025-04-17 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930857', 'tblTempVendorCDR_20' ) end [2025-04-17 20:59:19] Production.INFO: ProcessCDR(1,14930857,1,1,2) [2025-04-17 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930857', 'tblTempUsageDetail_20' ) start [2025-04-17 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930857', 'tblTempUsageDetail_20' ) end [2025-04-17 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 20:59:24] Production.INFO: ==29310== Releasing lock... [2025-04-17 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 20:59:24] Production.INFO: 47 MB #Memory Used# [2025-04-17 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:00:06 [end_date_ymd] => 2025-04-17 21:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 18:00:06' and `end` < '2025-04-17 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-17 21:00:19] Production.INFO: count ==2512 [2025-04-17 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-17 18:00:06 - End Time 2025-04-17 21:00:06 [2025-04-17 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930863', 'tblTempUsageDetail_20' ) start [2025-04-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930863', 'tblTempUsageDetail_20' ) end [2025-04-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930863', 'tblTempVendorCDR_20' ) start [2025-04-17 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930863', 'tblTempVendorCDR_20' ) end [2025-04-17 21:00:20] Production.INFO: ProcessCDR(1,14930863,1,1,2) [2025-04-17 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930863', 'tblTempUsageDetail_20' ) start [2025-04-17 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930863', 'tblTempUsageDetail_20' ) end [2025-04-17 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:00:24] Production.INFO: ==29383== Releasing lock... [2025-04-17 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:00:24] Production.INFO: 47 MB #Memory Used# [2025-04-17 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:01:05 [end_date_ymd] => 2025-04-17 21:01:05 [RateCDR] => 1 ) [2025-04-17 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:01:05' and `end` < '2025-04-17 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:01:18] Production.INFO: count ==2514 [2025-04-17 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:01:05 - End Time 2025-04-17 21:01:05 [2025-04-17 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930868', 'tblTempUsageDetail_20' ) start [2025-04-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930868', 'tblTempUsageDetail_20' ) end [2025-04-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930868', 'tblTempVendorCDR_20' ) start [2025-04-17 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930868', 'tblTempVendorCDR_20' ) end [2025-04-17 21:01:19] Production.INFO: ProcessCDR(1,14930868,1,1,2) [2025-04-17 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930868', 'tblTempUsageDetail_20' ) start [2025-04-17 21:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930868', 'tblTempUsageDetail_20' ) end [2025-04-17 21:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:01:24] Production.INFO: ==29469== Releasing lock... [2025-04-17 21:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:01:24] Production.INFO: 47 MB #Memory Used# [2025-04-17 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:02:05 [end_date_ymd] => 2025-04-17 21:02:05 [RateCDR] => 1 ) [2025-04-17 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:02:05' and `end` < '2025-04-17 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:02:17] Production.INFO: count ==2488 [2025-04-17 21:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:02:05 - End Time 2025-04-17 21:02:05 [2025-04-17 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930873', 'tblTempUsageDetail_20' ) start [2025-04-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930873', 'tblTempUsageDetail_20' ) end [2025-04-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930873', 'tblTempVendorCDR_20' ) start [2025-04-17 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930873', 'tblTempVendorCDR_20' ) end [2025-04-17 21:02:18] Production.INFO: ProcessCDR(1,14930873,1,1,2) [2025-04-17 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930873', 'tblTempUsageDetail_20' ) start [2025-04-17 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930873', 'tblTempUsageDetail_20' ) end [2025-04-17 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:02:22] Production.INFO: ==29542== Releasing lock... [2025-04-17 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:02:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-17 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:03:05 [end_date_ymd] => 2025-04-17 21:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:03:05' and `end` < '2025-04-17 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-17 21:03:18] Production.INFO: count ==2489 [2025-04-17 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:03:05 - End Time 2025-04-17 21:03:05 [2025-04-17 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930878', 'tblTempUsageDetail_20' ) start [2025-04-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930878', 'tblTempUsageDetail_20' ) end [2025-04-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930878', 'tblTempVendorCDR_20' ) start [2025-04-17 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930878', 'tblTempVendorCDR_20' ) end [2025-04-17 21:03:19] Production.INFO: ProcessCDR(1,14930878,1,1,2) [2025-04-17 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930878', 'tblTempUsageDetail_20' ) start [2025-04-17 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930878', 'tblTempUsageDetail_20' ) end [2025-04-17 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:03:23] Production.INFO: ==29616== Releasing lock... [2025-04-17 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:03:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-17 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:04:05 [end_date_ymd] => 2025-04-17 21:04:05 [RateCDR] => 1 ) [2025-04-17 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:04:05' and `end` < '2025-04-17 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:04:18] Production.INFO: count ==2472 [2025-04-17 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:04:05 - End Time 2025-04-17 21:04:05 [2025-04-17 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930883', 'tblTempUsageDetail_20' ) start [2025-04-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930883', 'tblTempUsageDetail_20' ) end [2025-04-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930883', 'tblTempVendorCDR_20' ) start [2025-04-17 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930883', 'tblTempVendorCDR_20' ) end [2025-04-17 21:04:19] Production.INFO: ProcessCDR(1,14930883,1,1,2) [2025-04-17 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930883', 'tblTempUsageDetail_20' ) start [2025-04-17 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930883', 'tblTempUsageDetail_20' ) end [2025-04-17 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:04:22] Production.INFO: ==29688== Releasing lock... [2025-04-17 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:04:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-17 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:05:05 [end_date_ymd] => 2025-04-17 21:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:05:05' and `end` < '2025-04-17 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-17 21:05:18] Production.INFO: count ==2468 [2025-04-17 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:05:05 - End Time 2025-04-17 21:05:05 [2025-04-17 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930888', 'tblTempUsageDetail_20' ) start [2025-04-17 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930888', 'tblTempUsageDetail_20' ) end [2025-04-17 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930888', 'tblTempVendorCDR_20' ) start [2025-04-17 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930888', 'tblTempVendorCDR_20' ) end [2025-04-17 21:05:19] Production.INFO: ProcessCDR(1,14930888,1,1,2) [2025-04-17 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930888', 'tblTempUsageDetail_20' ) start [2025-04-17 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930888', 'tblTempUsageDetail_20' ) end [2025-04-17 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:05:22] Production.INFO: ==29797== Releasing lock... [2025-04-17 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:05:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-17 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:06:05 [end_date_ymd] => 2025-04-17 21:06:05 [RateCDR] => 1 ) [2025-04-17 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:06:05' and `end` < '2025-04-17 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:06:18] Production.INFO: count ==2457 [2025-04-17 21:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:06:05 - End Time 2025-04-17 21:06:05 [2025-04-17 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930893', 'tblTempUsageDetail_20' ) start [2025-04-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930893', 'tblTempUsageDetail_20' ) end [2025-04-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930893', 'tblTempVendorCDR_20' ) start [2025-04-17 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930893', 'tblTempVendorCDR_20' ) end [2025-04-17 21:06:19] Production.INFO: ProcessCDR(1,14930893,1,1,2) [2025-04-17 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930893', 'tblTempUsageDetail_20' ) start [2025-04-17 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930893', 'tblTempUsageDetail_20' ) end [2025-04-17 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:06:22] Production.INFO: ==29867== Releasing lock... [2025-04-17 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:06:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-17 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:07:05 [end_date_ymd] => 2025-04-17 21:07:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:07:05' and `end` < '2025-04-17 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-17 21:07:18] Production.INFO: count ==2450 [2025-04-17 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:07:05 - End Time 2025-04-17 21:07:05 [2025-04-17 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930898', 'tblTempUsageDetail_20' ) start [2025-04-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930898', 'tblTempUsageDetail_20' ) end [2025-04-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930898', 'tblTempVendorCDR_20' ) start [2025-04-17 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930898', 'tblTempVendorCDR_20' ) end [2025-04-17 21:07:19] Production.INFO: ProcessCDR(1,14930898,1,1,2) [2025-04-17 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930898', 'tblTempUsageDetail_20' ) start [2025-04-17 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930898', 'tblTempUsageDetail_20' ) end [2025-04-17 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:07:22] Production.INFO: ==29941== Releasing lock... [2025-04-17 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:07:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-17 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:08:05 [end_date_ymd] => 2025-04-17 21:08:05 [RateCDR] => 1 ) [2025-04-17 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:08:05' and `end` < '2025-04-17 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:08:18] Production.INFO: count ==2446 [2025-04-17 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:08:05 - End Time 2025-04-17 21:08:05 [2025-04-17 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930903', 'tblTempUsageDetail_20' ) start [2025-04-17 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930903', 'tblTempUsageDetail_20' ) end [2025-04-17 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930903', 'tblTempVendorCDR_20' ) start [2025-04-17 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930903', 'tblTempVendorCDR_20' ) end [2025-04-17 21:08:19] Production.INFO: ProcessCDR(1,14930903,1,1,2) [2025-04-17 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930903', 'tblTempUsageDetail_20' ) start [2025-04-17 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930903', 'tblTempUsageDetail_20' ) end [2025-04-17 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:08:22] Production.INFO: ==30011== Releasing lock... [2025-04-17 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:08:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-17 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:09:05 [end_date_ymd] => 2025-04-17 21:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:09:05' and `end` < '2025-04-17 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-17 21:09:18] Production.INFO: count ==2434 [2025-04-17 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:09:05 - End Time 2025-04-17 21:09:05 [2025-04-17 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930908', 'tblTempUsageDetail_20' ) start [2025-04-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930908', 'tblTempUsageDetail_20' ) end [2025-04-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930908', 'tblTempVendorCDR_20' ) start [2025-04-17 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930908', 'tblTempVendorCDR_20' ) end [2025-04-17 21:09:19] Production.INFO: ProcessCDR(1,14930908,1,1,2) [2025-04-17 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930908', 'tblTempUsageDetail_20' ) start [2025-04-17 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930908', 'tblTempUsageDetail_20' ) end [2025-04-17 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:09:22] Production.INFO: ==30082== Releasing lock... [2025-04-17 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:09:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-17 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:10:07 [end_date_ymd] => 2025-04-17 21:10:07 [RateCDR] => 1 ) [2025-04-17 21: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-17 18:10:07' and `end` < '2025-04-17 21: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-17 21:10:20] Production.INFO: count ==2438 [2025-04-17 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-17 18:10:07 - End Time 2025-04-17 21:10:07 [2025-04-17 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930914', 'tblTempUsageDetail_20' ) start [2025-04-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930914', 'tblTempUsageDetail_20' ) end [2025-04-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930914', 'tblTempVendorCDR_20' ) start [2025-04-17 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930914', 'tblTempVendorCDR_20' ) end [2025-04-17 21:10:20] Production.INFO: ProcessCDR(1,14930914,1,1,2) [2025-04-17 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930914', 'tblTempUsageDetail_20' ) start [2025-04-17 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930914', 'tblTempUsageDetail_20' ) end [2025-04-17 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:10:24] Production.INFO: ==30155== Releasing lock... [2025-04-17 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:10:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-17 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:11:05 [end_date_ymd] => 2025-04-17 21:11:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:11:05' and `end` < '2025-04-17 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-17 21:11:18] Production.INFO: count ==2400 [2025-04-17 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:11:05 - End Time 2025-04-17 21:11:05 [2025-04-17 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930919', 'tblTempUsageDetail_20' ) start [2025-04-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930919', 'tblTempUsageDetail_20' ) end [2025-04-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930919', 'tblTempVendorCDR_20' ) start [2025-04-17 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930919', 'tblTempVendorCDR_20' ) end [2025-04-17 21:11:19] Production.INFO: ProcessCDR(1,14930919,1,1,2) [2025-04-17 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930919', 'tblTempUsageDetail_20' ) start [2025-04-17 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930919', 'tblTempUsageDetail_20' ) end [2025-04-17 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:11:23] Production.INFO: ==30230== Releasing lock... [2025-04-17 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:11:23] Production.INFO: 46 MB #Memory Used# [2025-04-17 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:12:05 [end_date_ymd] => 2025-04-17 21:12:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:12:05' and `end` < '2025-04-17 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-17 21:12:18] Production.INFO: count ==2391 [2025-04-17 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:12:05 - End Time 2025-04-17 21:12:05 [2025-04-17 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930924', 'tblTempUsageDetail_20' ) start [2025-04-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930924', 'tblTempUsageDetail_20' ) end [2025-04-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930924', 'tblTempVendorCDR_20' ) start [2025-04-17 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930924', 'tblTempVendorCDR_20' ) end [2025-04-17 21:12:19] Production.INFO: ProcessCDR(1,14930924,1,1,2) [2025-04-17 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930924', 'tblTempUsageDetail_20' ) start [2025-04-17 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930924', 'tblTempUsageDetail_20' ) end [2025-04-17 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:12:23] Production.INFO: ==30316== Releasing lock... [2025-04-17 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:12:23] Production.INFO: 46 MB #Memory Used# [2025-04-17 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:13:05 [end_date_ymd] => 2025-04-17 21:13:05 [RateCDR] => 1 ) [2025-04-17 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:13:05' and `end` < '2025-04-17 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:13:18] Production.INFO: count ==2381 [2025-04-17 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:13:05 - End Time 2025-04-17 21:13:05 [2025-04-17 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930929', 'tblTempUsageDetail_20' ) start [2025-04-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930929', 'tblTempUsageDetail_20' ) end [2025-04-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930929', 'tblTempVendorCDR_20' ) start [2025-04-17 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930929', 'tblTempVendorCDR_20' ) end [2025-04-17 21:13:19] Production.INFO: ProcessCDR(1,14930929,1,1,2) [2025-04-17 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930929', 'tblTempUsageDetail_20' ) start [2025-04-17 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930929', 'tblTempUsageDetail_20' ) end [2025-04-17 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:13:22] Production.INFO: ==30388== Releasing lock... [2025-04-17 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:13:22] Production.INFO: 46 MB #Memory Used# [2025-04-17 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:14:05 [end_date_ymd] => 2025-04-17 21:14:05 [RateCDR] => 1 ) [2025-04-17 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:14:05' and `end` < '2025-04-17 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:14:18] Production.INFO: count ==2365 [2025-04-17 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:14:05 - End Time 2025-04-17 21:14:05 [2025-04-17 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930934', 'tblTempUsageDetail_20' ) start [2025-04-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930934', 'tblTempUsageDetail_20' ) end [2025-04-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930934', 'tblTempVendorCDR_20' ) start [2025-04-17 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930934', 'tblTempVendorCDR_20' ) end [2025-04-17 21:14:19] Production.INFO: ProcessCDR(1,14930934,1,1,2) [2025-04-17 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930934', 'tblTempUsageDetail_20' ) start [2025-04-17 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930934', 'tblTempUsageDetail_20' ) end [2025-04-17 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:14:23] Production.INFO: ==30465== Releasing lock... [2025-04-17 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:14:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:15:05 [end_date_ymd] => 2025-04-17 21:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:15:05' and `end` < '2025-04-17 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-17 21:15:18] Production.INFO: count ==2365 [2025-04-17 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:15:05 - End Time 2025-04-17 21:15:05 [2025-04-17 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930939', 'tblTempUsageDetail_20' ) start [2025-04-17 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930939', 'tblTempUsageDetail_20' ) end [2025-04-17 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930939', 'tblTempVendorCDR_20' ) start [2025-04-17 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930939', 'tblTempVendorCDR_20' ) end [2025-04-17 21:15:19] Production.INFO: ProcessCDR(1,14930939,1,1,2) [2025-04-17 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930939', 'tblTempUsageDetail_20' ) start [2025-04-17 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930939', 'tblTempUsageDetail_20' ) end [2025-04-17 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:15:22] Production.INFO: ==30536== Releasing lock... [2025-04-17 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:15:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:16:06 [end_date_ymd] => 2025-04-17 21:16:06 [RateCDR] => 1 ) [2025-04-17 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:16:06' and `end` < '2025-04-17 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:16:19] Production.INFO: count ==2369 [2025-04-17 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:16:06 - End Time 2025-04-17 21:16:06 [2025-04-17 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930944', 'tblTempUsageDetail_20' ) start [2025-04-17 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930944', 'tblTempUsageDetail_20' ) end [2025-04-17 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930944', 'tblTempVendorCDR_20' ) start [2025-04-17 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930944', 'tblTempVendorCDR_20' ) end [2025-04-17 21:16:19] Production.INFO: ProcessCDR(1,14930944,1,1,2) [2025-04-17 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930944', 'tblTempUsageDetail_20' ) start [2025-04-17 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930944', 'tblTempUsageDetail_20' ) end [2025-04-17 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:16:23] Production.INFO: ==30612== Releasing lock... [2025-04-17 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:16:23] Production.INFO: 46 MB #Memory Used# [2025-04-17 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:17:05 [end_date_ymd] => 2025-04-17 21:17:05 [RateCDR] => 1 ) [2025-04-17 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:17:05' and `end` < '2025-04-17 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:17:18] Production.INFO: count ==2366 [2025-04-17 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:17:05 - End Time 2025-04-17 21:17:05 [2025-04-17 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930949', 'tblTempUsageDetail_20' ) start [2025-04-17 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930949', 'tblTempUsageDetail_20' ) end [2025-04-17 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930949', 'tblTempVendorCDR_20' ) start [2025-04-17 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930949', 'tblTempVendorCDR_20' ) end [2025-04-17 21:17:19] Production.INFO: ProcessCDR(1,14930949,1,1,2) [2025-04-17 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930949', 'tblTempUsageDetail_20' ) start [2025-04-17 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930949', 'tblTempUsageDetail_20' ) end [2025-04-17 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:17:24] Production.INFO: ==30702== Releasing lock... [2025-04-17 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:17:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:18:06 [end_date_ymd] => 2025-04-17 21:18:06 [RateCDR] => 1 ) [2025-04-17 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:18:06' and `end` < '2025-04-17 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:18:19] Production.INFO: count ==2356 [2025-04-17 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:18:06 - End Time 2025-04-17 21:18:06 [2025-04-17 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930954', 'tblTempUsageDetail_20' ) start [2025-04-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930954', 'tblTempUsageDetail_20' ) end [2025-04-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930954', 'tblTempVendorCDR_20' ) start [2025-04-17 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930954', 'tblTempVendorCDR_20' ) end [2025-04-17 21:18:19] Production.INFO: ProcessCDR(1,14930954,1,1,2) [2025-04-17 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930954', 'tblTempUsageDetail_20' ) start [2025-04-17 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930954', 'tblTempUsageDetail_20' ) end [2025-04-17 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:18:23] Production.INFO: ==30797== Releasing lock... [2025-04-17 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:18:23] Production.INFO: 46 MB #Memory Used# [2025-04-17 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:19:05 [end_date_ymd] => 2025-04-17 21:19:05 [RateCDR] => 1 ) [2025-04-17 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:19:05' and `end` < '2025-04-17 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:19:18] Production.INFO: count ==2355 [2025-04-17 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:19:05 - End Time 2025-04-17 21:19:05 [2025-04-17 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930959', 'tblTempUsageDetail_20' ) start [2025-04-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930959', 'tblTempUsageDetail_20' ) end [2025-04-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930959', 'tblTempVendorCDR_20' ) start [2025-04-17 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930959', 'tblTempVendorCDR_20' ) end [2025-04-17 21:19:18] Production.INFO: ProcessCDR(1,14930959,1,1,2) [2025-04-17 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930959', 'tblTempUsageDetail_20' ) start [2025-04-17 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930959', 'tblTempUsageDetail_20' ) end [2025-04-17 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:19:22] Production.INFO: ==30869== Releasing lock... [2025-04-17 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:19:22] Production.INFO: 46 MB #Memory Used# [2025-04-17 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:20:06 [end_date_ymd] => 2025-04-17 21:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 18:20:06' and `end` < '2025-04-17 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-17 21:20:19] Production.INFO: count ==2350 [2025-04-17 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-17 18:20:06 - End Time 2025-04-17 21:20:06 [2025-04-17 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930965', 'tblTempUsageDetail_20' ) start [2025-04-17 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930965', 'tblTempUsageDetail_20' ) end [2025-04-17 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930965', 'tblTempVendorCDR_20' ) start [2025-04-17 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930965', 'tblTempVendorCDR_20' ) end [2025-04-17 21:20:20] Production.INFO: ProcessCDR(1,14930965,1,1,2) [2025-04-17 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930965', 'tblTempUsageDetail_20' ) start [2025-04-17 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930965', 'tblTempUsageDetail_20' ) end [2025-04-17 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:20:23] Production.INFO: ==30980== Releasing lock... [2025-04-17 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:20:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:21:04 [end_date_ymd] => 2025-04-17 21:21:04 [RateCDR] => 1 ) [2025-04-17 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:21:04' and `end` < '2025-04-17 21:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:21:17] Production.INFO: count ==2346 [2025-04-17 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:21:04 - End Time 2025-04-17 21:21:04 [2025-04-17 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930970', 'tblTempUsageDetail_20' ) start [2025-04-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930970', 'tblTempUsageDetail_20' ) end [2025-04-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930970', 'tblTempVendorCDR_20' ) start [2025-04-17 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930970', 'tblTempVendorCDR_20' ) end [2025-04-17 21:21:18] Production.INFO: ProcessCDR(1,14930970,1,1,2) [2025-04-17 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930970', 'tblTempUsageDetail_20' ) start [2025-04-17 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930970', 'tblTempUsageDetail_20' ) end [2025-04-17 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:21:21] Production.INFO: ==31054== Releasing lock... [2025-04-17 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:21:21] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:22:05 [end_date_ymd] => 2025-04-17 21:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:22:05' and `end` < '2025-04-17 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-17 21:22:18] Production.INFO: count ==2339 [2025-04-17 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:22:05 - End Time 2025-04-17 21:22:05 [2025-04-17 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930975', 'tblTempUsageDetail_20' ) start [2025-04-17 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930975', 'tblTempUsageDetail_20' ) end [2025-04-17 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930975', 'tblTempVendorCDR_20' ) start [2025-04-17 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930975', 'tblTempVendorCDR_20' ) end [2025-04-17 21:22:19] Production.INFO: ProcessCDR(1,14930975,1,1,2) [2025-04-17 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930975', 'tblTempUsageDetail_20' ) start [2025-04-17 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930975', 'tblTempUsageDetail_20' ) end [2025-04-17 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:22:22] Production.INFO: ==31125== Releasing lock... [2025-04-17 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:22:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:23:05 [end_date_ymd] => 2025-04-17 21:23:05 [RateCDR] => 1 ) [2025-04-17 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:23:05' and `end` < '2025-04-17 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:23:18] Production.INFO: count ==2334 [2025-04-17 21:23:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:23:05 - End Time 2025-04-17 21:23:05 [2025-04-17 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930980', 'tblTempUsageDetail_20' ) start [2025-04-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930980', 'tblTempUsageDetail_20' ) end [2025-04-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930980', 'tblTempVendorCDR_20' ) start [2025-04-17 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930980', 'tblTempVendorCDR_20' ) end [2025-04-17 21:23:19] Production.INFO: ProcessCDR(1,14930980,1,1,2) [2025-04-17 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930980', 'tblTempUsageDetail_20' ) start [2025-04-17 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930980', 'tblTempUsageDetail_20' ) end [2025-04-17 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:23:23] Production.INFO: ==31195== Releasing lock... [2025-04-17 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:23:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:24:05 [end_date_ymd] => 2025-04-17 21:24:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:24:05' and `end` < '2025-04-17 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-17 21:24:18] Production.INFO: count ==2326 [2025-04-17 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:24:05 - End Time 2025-04-17 21:24:05 [2025-04-17 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930985', 'tblTempUsageDetail_20' ) start [2025-04-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930985', 'tblTempUsageDetail_20' ) end [2025-04-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930985', 'tblTempVendorCDR_20' ) start [2025-04-17 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930985', 'tblTempVendorCDR_20' ) end [2025-04-17 21:24:19] Production.INFO: ProcessCDR(1,14930985,1,1,2) [2025-04-17 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930985', 'tblTempUsageDetail_20' ) start [2025-04-17 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930985', 'tblTempUsageDetail_20' ) end [2025-04-17 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:24:22] Production.INFO: ==31268== Releasing lock... [2025-04-17 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:24:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:25:06 [end_date_ymd] => 2025-04-17 21:25:06 [RateCDR] => 1 ) [2025-04-17 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:25:06' and `end` < '2025-04-17 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:25:19] Production.INFO: count ==2323 [2025-04-17 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:25:06 - End Time 2025-04-17 21:25:06 [2025-04-17 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930990', 'tblTempUsageDetail_20' ) start [2025-04-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930990', 'tblTempUsageDetail_20' ) end [2025-04-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930990', 'tblTempVendorCDR_20' ) start [2025-04-17 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930990', 'tblTempVendorCDR_20' ) end [2025-04-17 21:25:19] Production.INFO: ProcessCDR(1,14930990,1,1,2) [2025-04-17 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930990', 'tblTempUsageDetail_20' ) start [2025-04-17 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930990', 'tblTempUsageDetail_20' ) end [2025-04-17 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:25:23] Production.INFO: ==31339== Releasing lock... [2025-04-17 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:25:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:26:05 [end_date_ymd] => 2025-04-17 21:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:26:05' and `end` < '2025-04-17 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-17 21:26:18] Production.INFO: count ==2318 [2025-04-17 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:26:05 - End Time 2025-04-17 21:26:05 [2025-04-17 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930995', 'tblTempUsageDetail_20' ) start [2025-04-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14930995', 'tblTempUsageDetail_20' ) end [2025-04-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930995', 'tblTempVendorCDR_20' ) start [2025-04-17 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14930995', 'tblTempVendorCDR_20' ) end [2025-04-17 21:26:18] Production.INFO: ProcessCDR(1,14930995,1,1,2) [2025-04-17 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14930995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14930995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14930995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14930995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930995', 'tblTempUsageDetail_20' ) start [2025-04-17 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14930995', 'tblTempUsageDetail_20' ) end [2025-04-17 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:26:22] Production.INFO: ==31408== Releasing lock... [2025-04-17 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:26:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-17 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:27:05 [end_date_ymd] => 2025-04-17 21:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:27:05' and `end` < '2025-04-17 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-17 21:27:18] Production.INFO: count ==2306 [2025-04-17 21:27:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:27:05 - End Time 2025-04-17 21:27:05 [2025-04-17 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931000', 'tblTempUsageDetail_20' ) start [2025-04-17 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931000', 'tblTempUsageDetail_20' ) end [2025-04-17 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931000', 'tblTempVendorCDR_20' ) start [2025-04-17 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931000', 'tblTempVendorCDR_20' ) end [2025-04-17 21:27:19] Production.INFO: ProcessCDR(1,14931000,1,1,2) [2025-04-17 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931000', 'tblTempUsageDetail_20' ) start [2025-04-17 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931000', 'tblTempUsageDetail_20' ) end [2025-04-17 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:27:22] Production.INFO: ==31484== Releasing lock... [2025-04-17 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:27:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:28:05 [end_date_ymd] => 2025-04-17 21:28:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:28:05' and `end` < '2025-04-17 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-17 21:28:18] Production.INFO: count ==2305 [2025-04-17 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:28:05 - End Time 2025-04-17 21:28:05 [2025-04-17 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931005', 'tblTempUsageDetail_20' ) start [2025-04-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931005', 'tblTempUsageDetail_20' ) end [2025-04-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931005', 'tblTempVendorCDR_20' ) start [2025-04-17 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931005', 'tblTempVendorCDR_20' ) end [2025-04-17 21:28:19] Production.INFO: ProcessCDR(1,14931005,1,1,2) [2025-04-17 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931005', 'tblTempUsageDetail_20' ) start [2025-04-17 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931005', 'tblTempUsageDetail_20' ) end [2025-04-17 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:28:22] Production.INFO: ==31555== Releasing lock... [2025-04-17 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:28:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:29:05 [end_date_ymd] => 2025-04-17 21:29:05 [RateCDR] => 1 ) [2025-04-17 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:29:05' and `end` < '2025-04-17 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:29:18] Production.INFO: count ==2292 [2025-04-17 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:29:05 - End Time 2025-04-17 21:29:05 [2025-04-17 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931010', 'tblTempUsageDetail_20' ) start [2025-04-17 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931010', 'tblTempUsageDetail_20' ) end [2025-04-17 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931010', 'tblTempVendorCDR_20' ) start [2025-04-17 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931010', 'tblTempVendorCDR_20' ) end [2025-04-17 21:29:19] Production.INFO: ProcessCDR(1,14931010,1,1,2) [2025-04-17 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931010', 'tblTempUsageDetail_20' ) start [2025-04-17 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931010', 'tblTempUsageDetail_20' ) end [2025-04-17 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:29:22] Production.INFO: ==31626== Releasing lock... [2025-04-17 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:29:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:30:06 [end_date_ymd] => 2025-04-17 21:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 18:30:06' and `end` < '2025-04-17 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-17 21:30:19] Production.INFO: count ==2289 [2025-04-17 21:30:20] Production.ERROR: pbx CDR StartTime 2025-04-17 18:30:06 - End Time 2025-04-17 21:30:06 [2025-04-17 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931016', 'tblTempUsageDetail_20' ) start [2025-04-17 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931016', 'tblTempUsageDetail_20' ) end [2025-04-17 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931016', 'tblTempVendorCDR_20' ) start [2025-04-17 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931016', 'tblTempVendorCDR_20' ) end [2025-04-17 21:30:20] Production.INFO: ProcessCDR(1,14931016,1,1,2) [2025-04-17 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931016', 'tblTempUsageDetail_20' ) start [2025-04-17 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931016', 'tblTempUsageDetail_20' ) end [2025-04-17 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:30:23] Production.INFO: ==31708== Releasing lock... [2025-04-17 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:30:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:31:05 [end_date_ymd] => 2025-04-17 21:31:05 [RateCDR] => 1 ) [2025-04-17 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:31:05' and `end` < '2025-04-17 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:31:18] Production.INFO: count ==2296 [2025-04-17 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:31:05 - End Time 2025-04-17 21:31:05 [2025-04-17 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931021', 'tblTempUsageDetail_20' ) start [2025-04-17 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931021', 'tblTempUsageDetail_20' ) end [2025-04-17 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931021', 'tblTempVendorCDR_20' ) start [2025-04-17 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931021', 'tblTempVendorCDR_20' ) end [2025-04-17 21:31:19] Production.INFO: ProcessCDR(1,14931021,1,1,2) [2025-04-17 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931021', 'tblTempUsageDetail_20' ) start [2025-04-17 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931021', 'tblTempUsageDetail_20' ) end [2025-04-17 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:31:22] Production.INFO: ==31784== Releasing lock... [2025-04-17 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:31:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:32:05 [end_date_ymd] => 2025-04-17 21:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:32:05' and `end` < '2025-04-17 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-17 21:32:18] Production.INFO: count ==2298 [2025-04-17 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:32:05 - End Time 2025-04-17 21:32:05 [2025-04-17 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931026', 'tblTempUsageDetail_20' ) start [2025-04-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931026', 'tblTempUsageDetail_20' ) end [2025-04-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931026', 'tblTempVendorCDR_20' ) start [2025-04-17 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931026', 'tblTempVendorCDR_20' ) end [2025-04-17 21:32:18] Production.INFO: ProcessCDR(1,14931026,1,1,2) [2025-04-17 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931026', 'tblTempUsageDetail_20' ) start [2025-04-17 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931026', 'tblTempUsageDetail_20' ) end [2025-04-17 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:32:22] Production.INFO: ==31852== Releasing lock... [2025-04-17 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:32:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:33:05 [end_date_ymd] => 2025-04-17 21:33:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:33:05' and `end` < '2025-04-17 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-17 21:33:18] Production.INFO: count ==2289 [2025-04-17 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:33:05 - End Time 2025-04-17 21:33:05 [2025-04-17 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931031', 'tblTempUsageDetail_20' ) start [2025-04-17 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931031', 'tblTempUsageDetail_20' ) end [2025-04-17 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931031', 'tblTempVendorCDR_20' ) start [2025-04-17 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931031', 'tblTempVendorCDR_20' ) end [2025-04-17 21:33:19] Production.INFO: ProcessCDR(1,14931031,1,1,2) [2025-04-17 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931031', 'tblTempUsageDetail_20' ) start [2025-04-17 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931031', 'tblTempUsageDetail_20' ) end [2025-04-17 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:33:23] Production.INFO: ==31922== Releasing lock... [2025-04-17 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:33:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:34:05 [end_date_ymd] => 2025-04-17 21:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:34:05' and `end` < '2025-04-17 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-17 21:34:18] Production.INFO: count ==2290 [2025-04-17 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:34:05 - End Time 2025-04-17 21:34:05 [2025-04-17 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931036', 'tblTempUsageDetail_20' ) start [2025-04-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931036', 'tblTempUsageDetail_20' ) end [2025-04-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931036', 'tblTempVendorCDR_20' ) start [2025-04-17 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931036', 'tblTempVendorCDR_20' ) end [2025-04-17 21:34:19] Production.INFO: ProcessCDR(1,14931036,1,1,2) [2025-04-17 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931036', 'tblTempUsageDetail_20' ) start [2025-04-17 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931036', 'tblTempUsageDetail_20' ) end [2025-04-17 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:34:22] Production.INFO: ==31993== Releasing lock... [2025-04-17 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:34:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:35:05 [end_date_ymd] => 2025-04-17 21:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:35:05' and `end` < '2025-04-17 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-17 21:35:18] Production.INFO: count ==2292 [2025-04-17 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:35:05 - End Time 2025-04-17 21:35:05 [2025-04-17 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931041', 'tblTempUsageDetail_20' ) start [2025-04-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931041', 'tblTempUsageDetail_20' ) end [2025-04-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931041', 'tblTempVendorCDR_20' ) start [2025-04-17 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931041', 'tblTempVendorCDR_20' ) end [2025-04-17 21:35:19] Production.INFO: ProcessCDR(1,14931041,1,1,2) [2025-04-17 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931041', 'tblTempUsageDetail_20' ) start [2025-04-17 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931041', 'tblTempUsageDetail_20' ) end [2025-04-17 21:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:35:24] Production.INFO: ==32105== Releasing lock... [2025-04-17 21:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:35:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:36:06 [end_date_ymd] => 2025-04-17 21:36:06 [RateCDR] => 1 ) [2025-04-17 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:36:06' and `end` < '2025-04-17 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:36:19] Production.INFO: count ==2282 [2025-04-17 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:36:06 - End Time 2025-04-17 21:36:06 [2025-04-17 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931046', 'tblTempUsageDetail_20' ) start [2025-04-17 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931046', 'tblTempUsageDetail_20' ) end [2025-04-17 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931046', 'tblTempVendorCDR_20' ) start [2025-04-17 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931046', 'tblTempVendorCDR_20' ) end [2025-04-17 21:36:19] Production.INFO: ProcessCDR(1,14931046,1,1,2) [2025-04-17 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931046', 'tblTempUsageDetail_20' ) start [2025-04-17 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931046', 'tblTempUsageDetail_20' ) end [2025-04-17 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:36:23] Production.INFO: ==32176== Releasing lock... [2025-04-17 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:36:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:37:05 [end_date_ymd] => 2025-04-17 21:37:05 [RateCDR] => 1 ) [2025-04-17 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:37:05' and `end` < '2025-04-17 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:37:18] Production.INFO: count ==2281 [2025-04-17 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:37:05 - End Time 2025-04-17 21:37:05 [2025-04-17 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931051', 'tblTempUsageDetail_20' ) start [2025-04-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931051', 'tblTempUsageDetail_20' ) end [2025-04-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931051', 'tblTempVendorCDR_20' ) start [2025-04-17 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931051', 'tblTempVendorCDR_20' ) end [2025-04-17 21:37:18] Production.INFO: ProcessCDR(1,14931051,1,1,2) [2025-04-17 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931051', 'tblTempUsageDetail_20' ) start [2025-04-17 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931051', 'tblTempUsageDetail_20' ) end [2025-04-17 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:37:22] Production.INFO: ==32248== Releasing lock... [2025-04-17 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:37:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:38:05 [end_date_ymd] => 2025-04-17 21:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:38:05' and `end` < '2025-04-17 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-17 21:38:18] Production.INFO: count ==2279 [2025-04-17 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:38:05 - End Time 2025-04-17 21:38:05 [2025-04-17 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931056', 'tblTempUsageDetail_20' ) start [2025-04-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931056', 'tblTempUsageDetail_20' ) end [2025-04-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931056', 'tblTempVendorCDR_20' ) start [2025-04-17 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931056', 'tblTempVendorCDR_20' ) end [2025-04-17 21:38:19] Production.INFO: ProcessCDR(1,14931056,1,1,2) [2025-04-17 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931056', 'tblTempUsageDetail_20' ) start [2025-04-17 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931056', 'tblTempUsageDetail_20' ) end [2025-04-17 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:38:22] Production.INFO: ==32320== Releasing lock... [2025-04-17 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:38:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:39:05 [end_date_ymd] => 2025-04-17 21:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:39:05' and `end` < '2025-04-17 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-17 21:39:18] Production.INFO: count ==2278 [2025-04-17 21:39:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:39:05 - End Time 2025-04-17 21:39:05 [2025-04-17 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931061', 'tblTempUsageDetail_20' ) start [2025-04-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931061', 'tblTempUsageDetail_20' ) end [2025-04-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931061', 'tblTempVendorCDR_20' ) start [2025-04-17 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931061', 'tblTempVendorCDR_20' ) end [2025-04-17 21:39:19] Production.INFO: ProcessCDR(1,14931061,1,1,2) [2025-04-17 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931061', 'tblTempUsageDetail_20' ) start [2025-04-17 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931061', 'tblTempUsageDetail_20' ) end [2025-04-17 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:39:22] Production.INFO: ==32392== Releasing lock... [2025-04-17 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:39:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-17 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:40:07 [end_date_ymd] => 2025-04-17 21:40:07 [RateCDR] => 1 ) [2025-04-17 21:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:40:07' and `end` < '2025-04-17 21:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:40:19] Production.INFO: count ==2274 [2025-04-17 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-17 18:40:07 - End Time 2025-04-17 21:40:07 [2025-04-17 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931067', 'tblTempUsageDetail_20' ) start [2025-04-17 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931067', 'tblTempUsageDetail_20' ) end [2025-04-17 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931067', 'tblTempVendorCDR_20' ) start [2025-04-17 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931067', 'tblTempVendorCDR_20' ) end [2025-04-17 21:40:20] Production.INFO: ProcessCDR(1,14931067,1,1,2) [2025-04-17 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931067', 'tblTempUsageDetail_20' ) start [2025-04-17 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931067', 'tblTempUsageDetail_20' ) end [2025-04-17 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:40:25] Production.INFO: ==32466== Releasing lock... [2025-04-17 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:40:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-17 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:41:05 [end_date_ymd] => 2025-04-17 21:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:41:05' and `end` < '2025-04-17 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-17 21:41:18] Production.INFO: count ==2210 [2025-04-17 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:41:05 - End Time 2025-04-17 21:41:05 [2025-04-17 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931072', 'tblTempUsageDetail_20' ) start [2025-04-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931072', 'tblTempUsageDetail_20' ) end [2025-04-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931072', 'tblTempVendorCDR_20' ) start [2025-04-17 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931072', 'tblTempVendorCDR_20' ) end [2025-04-17 21:41:19] Production.INFO: ProcessCDR(1,14931072,1,1,2) [2025-04-17 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931072', 'tblTempUsageDetail_20' ) start [2025-04-17 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931072', 'tblTempUsageDetail_20' ) end [2025-04-17 21:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:41:24] Production.INFO: ==32538== Releasing lock... [2025-04-17 21:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:41:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:42:05 [end_date_ymd] => 2025-04-17 21:42:05 [RateCDR] => 1 ) [2025-04-17 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:42:05' and `end` < '2025-04-17 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:42:18] Production.INFO: count ==2197 [2025-04-17 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:42:05 - End Time 2025-04-17 21:42:05 [2025-04-17 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931077', 'tblTempUsageDetail_20' ) start [2025-04-17 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931077', 'tblTempUsageDetail_20' ) end [2025-04-17 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931077', 'tblTempVendorCDR_20' ) start [2025-04-17 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931077', 'tblTempVendorCDR_20' ) end [2025-04-17 21:42:19] Production.INFO: ProcessCDR(1,14931077,1,1,2) [2025-04-17 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931077', 'tblTempUsageDetail_20' ) start [2025-04-17 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931077', 'tblTempUsageDetail_20' ) end [2025-04-17 21:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:42:24] Production.INFO: ==32610== Releasing lock... [2025-04-17 21:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:42:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:43:05 [end_date_ymd] => 2025-04-17 21:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:43:05' and `end` < '2025-04-17 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-17 21:43:18] Production.INFO: count ==2181 [2025-04-17 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:43:05 - End Time 2025-04-17 21:43:05 [2025-04-17 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931082', 'tblTempUsageDetail_20' ) start [2025-04-17 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931082', 'tblTempUsageDetail_20' ) end [2025-04-17 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931082', 'tblTempVendorCDR_20' ) start [2025-04-17 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931082', 'tblTempVendorCDR_20' ) end [2025-04-17 21:43:19] Production.INFO: ProcessCDR(1,14931082,1,1,2) [2025-04-17 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931082', 'tblTempUsageDetail_20' ) start [2025-04-17 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931082', 'tblTempUsageDetail_20' ) end [2025-04-17 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:43:24] Production.INFO: ==32680== Releasing lock... [2025-04-17 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:43:24] Production.INFO: 45 MB #Memory Used# [2025-04-17 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:44:05 [end_date_ymd] => 2025-04-17 21:44:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:44:05' and `end` < '2025-04-17 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-17 21:44:18] Production.INFO: count ==2190 [2025-04-17 21:44:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:44:05 - End Time 2025-04-17 21:44:05 [2025-04-17 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931087', 'tblTempUsageDetail_20' ) start [2025-04-17 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931087', 'tblTempUsageDetail_20' ) end [2025-04-17 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931087', 'tblTempVendorCDR_20' ) start [2025-04-17 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931087', 'tblTempVendorCDR_20' ) end [2025-04-17 21:44:19] Production.INFO: ProcessCDR(1,14931087,1,1,2) [2025-04-17 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931087', 'tblTempUsageDetail_20' ) start [2025-04-17 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931087', 'tblTempUsageDetail_20' ) end [2025-04-17 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:44:23] Production.INFO: ==32756== Releasing lock... [2025-04-17 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:44:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:45:05 [end_date_ymd] => 2025-04-17 21:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:45:05' and `end` < '2025-04-17 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-17 21:45:18] Production.INFO: count ==2191 [2025-04-17 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:45:05 - End Time 2025-04-17 21:45:05 [2025-04-17 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931092', 'tblTempUsageDetail_20' ) start [2025-04-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931092', 'tblTempUsageDetail_20' ) end [2025-04-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931092', 'tblTempVendorCDR_20' ) start [2025-04-17 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931092', 'tblTempVendorCDR_20' ) end [2025-04-17 21:45:18] Production.INFO: ProcessCDR(1,14931092,1,1,2) [2025-04-17 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931092', 'tblTempUsageDetail_20' ) start [2025-04-17 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931092', 'tblTempUsageDetail_20' ) end [2025-04-17 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:45:22] Production.INFO: ==379== Releasing lock... [2025-04-17 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:45:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:46:05 [end_date_ymd] => 2025-04-17 21:46:05 [RateCDR] => 1 ) [2025-04-17 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:46:05' and `end` < '2025-04-17 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:46:18] Production.INFO: count ==2190 [2025-04-17 21:46:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:46:05 - End Time 2025-04-17 21:46:05 [2025-04-17 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931097', 'tblTempUsageDetail_20' ) start [2025-04-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931097', 'tblTempUsageDetail_20' ) end [2025-04-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931097', 'tblTempVendorCDR_20' ) start [2025-04-17 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931097', 'tblTempVendorCDR_20' ) end [2025-04-17 21:46:19] Production.INFO: ProcessCDR(1,14931097,1,1,2) [2025-04-17 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931097', 'tblTempUsageDetail_20' ) start [2025-04-17 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931097', 'tblTempUsageDetail_20' ) end [2025-04-17 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:46:24] Production.INFO: ==452== Releasing lock... [2025-04-17 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:46:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:47:05 [end_date_ymd] => 2025-04-17 21:47:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:47:05' and `end` < '2025-04-17 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-17 21:47:18] Production.INFO: count ==2183 [2025-04-17 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:47:05 - End Time 2025-04-17 21:47:05 [2025-04-17 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931102', 'tblTempUsageDetail_20' ) start [2025-04-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931102', 'tblTempUsageDetail_20' ) end [2025-04-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931102', 'tblTempVendorCDR_20' ) start [2025-04-17 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931102', 'tblTempVendorCDR_20' ) end [2025-04-17 21:47:19] Production.INFO: ProcessCDR(1,14931102,1,1,2) [2025-04-17 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931102', 'tblTempUsageDetail_20' ) start [2025-04-17 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931102', 'tblTempUsageDetail_20' ) end [2025-04-17 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:47:24] Production.INFO: ==527== Releasing lock... [2025-04-17 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:47:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:48:05 [end_date_ymd] => 2025-04-17 21:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:48:05' and `end` < '2025-04-17 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-17 21:48:18] Production.INFO: count ==2175 [2025-04-17 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:48:05 - End Time 2025-04-17 21:48:05 [2025-04-17 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931107', 'tblTempUsageDetail_20' ) start [2025-04-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931107', 'tblTempUsageDetail_20' ) end [2025-04-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931107', 'tblTempVendorCDR_20' ) start [2025-04-17 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931107', 'tblTempVendorCDR_20' ) end [2025-04-17 21:48:18] Production.INFO: ProcessCDR(1,14931107,1,1,2) [2025-04-17 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931107', 'tblTempUsageDetail_20' ) start [2025-04-17 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931107', 'tblTempUsageDetail_20' ) end [2025-04-17 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:48:22] Production.INFO: ==602== Releasing lock... [2025-04-17 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:48:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:49:05 [end_date_ymd] => 2025-04-17 21:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:49:05' and `end` < '2025-04-17 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-17 21:49:18] Production.INFO: count ==2176 [2025-04-17 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:49:05 - End Time 2025-04-17 21:49:05 [2025-04-17 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931112', 'tblTempUsageDetail_20' ) start [2025-04-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931112', 'tblTempUsageDetail_20' ) end [2025-04-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931112', 'tblTempVendorCDR_20' ) start [2025-04-17 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931112', 'tblTempVendorCDR_20' ) end [2025-04-17 21:49:18] Production.INFO: ProcessCDR(1,14931112,1,1,2) [2025-04-17 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931112', 'tblTempUsageDetail_20' ) start [2025-04-17 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931112', 'tblTempUsageDetail_20' ) end [2025-04-17 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:49:22] Production.INFO: ==697== Releasing lock... [2025-04-17 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:49:22] Production.INFO: 45 MB #Memory Used# [2025-04-17 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:50:06 [end_date_ymd] => 2025-04-17 21:50:06 [RateCDR] => 1 ) [2025-04-17 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-17 18:50:06' and `end` < '2025-04-17 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-17 21:50:19] Production.INFO: count ==2171 [2025-04-17 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:50:06 - End Time 2025-04-17 21:50:06 [2025-04-17 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931118', 'tblTempUsageDetail_20' ) start [2025-04-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931118', 'tblTempUsageDetail_20' ) end [2025-04-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931118', 'tblTempVendorCDR_20' ) start [2025-04-17 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931118', 'tblTempVendorCDR_20' ) end [2025-04-17 21:50:19] Production.INFO: ProcessCDR(1,14931118,1,1,2) [2025-04-17 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931118', 'tblTempUsageDetail_20' ) start [2025-04-17 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931118', 'tblTempUsageDetail_20' ) end [2025-04-17 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:50:23] Production.INFO: ==777== Releasing lock... [2025-04-17 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:50:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:51:05 [end_date_ymd] => 2025-04-17 21:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:51:05' and `end` < '2025-04-17 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-17 21:51:18] Production.INFO: count ==2167 [2025-04-17 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:51:05 - End Time 2025-04-17 21:51:05 [2025-04-17 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931123', 'tblTempUsageDetail_20' ) start [2025-04-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931123', 'tblTempUsageDetail_20' ) end [2025-04-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931123', 'tblTempVendorCDR_20' ) start [2025-04-17 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931123', 'tblTempVendorCDR_20' ) end [2025-04-17 21:51:19] Production.INFO: ProcessCDR(1,14931123,1,1,2) [2025-04-17 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931123', 'tblTempUsageDetail_20' ) start [2025-04-17 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931123', 'tblTempUsageDetail_20' ) end [2025-04-17 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:51:22] Production.INFO: ==890== Releasing lock... [2025-04-17 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:51:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:52:05 [end_date_ymd] => 2025-04-17 21:52:05 [RateCDR] => 1 ) [2025-04-17 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:52:05' and `end` < '2025-04-17 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:52:18] Production.INFO: count ==2173 [2025-04-17 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:52:05 - End Time 2025-04-17 21:52:05 [2025-04-17 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931128', 'tblTempUsageDetail_20' ) start [2025-04-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931128', 'tblTempUsageDetail_20' ) end [2025-04-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931128', 'tblTempVendorCDR_20' ) start [2025-04-17 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931128', 'tblTempVendorCDR_20' ) end [2025-04-17 21:52:19] Production.INFO: ProcessCDR(1,14931128,1,1,2) [2025-04-17 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931128', 'tblTempUsageDetail_20' ) start [2025-04-17 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931128', 'tblTempUsageDetail_20' ) end [2025-04-17 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:52:24] Production.INFO: ==962== Releasing lock... [2025-04-17 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:52:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:53:06 [end_date_ymd] => 2025-04-17 21:53:06 [RateCDR] => 1 ) [2025-04-17 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-17 18:53:06' and `end` < '2025-04-17 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-17 21:53:19] Production.INFO: count ==2172 [2025-04-17 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:53:06 - End Time 2025-04-17 21:53:06 [2025-04-17 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931133', 'tblTempUsageDetail_20' ) start [2025-04-17 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931133', 'tblTempUsageDetail_20' ) end [2025-04-17 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931133', 'tblTempVendorCDR_20' ) start [2025-04-17 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931133', 'tblTempVendorCDR_20' ) end [2025-04-17 21:53:19] Production.INFO: ProcessCDR(1,14931133,1,1,2) [2025-04-17 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931133', 'tblTempUsageDetail_20' ) start [2025-04-17 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931133', 'tblTempUsageDetail_20' ) end [2025-04-17 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:53:23] Production.INFO: ==1034== Releasing lock... [2025-04-17 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:53:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:54:05 [end_date_ymd] => 2025-04-17 21:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:54:05' and `end` < '2025-04-17 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-17 21:54:18] Production.INFO: count ==2179 [2025-04-17 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:54:05 - End Time 2025-04-17 21:54:05 [2025-04-17 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931138', 'tblTempUsageDetail_20' ) start [2025-04-17 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931138', 'tblTempUsageDetail_20' ) end [2025-04-17 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931138', 'tblTempVendorCDR_20' ) start [2025-04-17 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931138', 'tblTempVendorCDR_20' ) end [2025-04-17 21:54:19] Production.INFO: ProcessCDR(1,14931138,1,1,2) [2025-04-17 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931138', 'tblTempUsageDetail_20' ) start [2025-04-17 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931138', 'tblTempUsageDetail_20' ) end [2025-04-17 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:54:22] Production.INFO: ==1105== Releasing lock... [2025-04-17 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:54:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-17 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:55:05 [end_date_ymd] => 2025-04-17 21:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:55:05' and `end` < '2025-04-17 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-17 21:55:18] Production.INFO: count ==2174 [2025-04-17 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:55:05 - End Time 2025-04-17 21:55:05 [2025-04-17 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931143', 'tblTempUsageDetail_20' ) start [2025-04-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931143', 'tblTempUsageDetail_20' ) end [2025-04-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931143', 'tblTempVendorCDR_20' ) start [2025-04-17 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931143', 'tblTempVendorCDR_20' ) end [2025-04-17 21:55:18] Production.INFO: ProcessCDR(1,14931143,1,1,2) [2025-04-17 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931143', 'tblTempUsageDetail_20' ) start [2025-04-17 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931143', 'tblTempUsageDetail_20' ) end [2025-04-17 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:55:22] Production.INFO: ==1184== Releasing lock... [2025-04-17 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:55:22] Production.INFO: 45 MB #Memory Used# [2025-04-17 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:56:05 [end_date_ymd] => 2025-04-17 21:56:05 [RateCDR] => 1 ) [2025-04-17 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 18:56:05' and `end` < '2025-04-17 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 21:56:18] Production.INFO: count ==2163 [2025-04-17 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:56:05 - End Time 2025-04-17 21:56:05 [2025-04-17 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931148', 'tblTempUsageDetail_20' ) start [2025-04-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931148', 'tblTempUsageDetail_20' ) end [2025-04-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931148', 'tblTempVendorCDR_20' ) start [2025-04-17 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931148', 'tblTempVendorCDR_20' ) end [2025-04-17 21:56:19] Production.INFO: ProcessCDR(1,14931148,1,1,2) [2025-04-17 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931148', 'tblTempUsageDetail_20' ) start [2025-04-17 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931148', 'tblTempUsageDetail_20' ) end [2025-04-17 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:56:22] Production.INFO: ==1266== Releasing lock... [2025-04-17 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:56:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:57:05 [end_date_ymd] => 2025-04-17 21:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:57:05' and `end` < '2025-04-17 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-17 21:57:18] Production.INFO: count ==2137 [2025-04-17 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:57:05 - End Time 2025-04-17 21:57:05 [2025-04-17 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931153', 'tblTempUsageDetail_20' ) start [2025-04-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931153', 'tblTempUsageDetail_20' ) end [2025-04-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931153', 'tblTempVendorCDR_20' ) start [2025-04-17 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931153', 'tblTempVendorCDR_20' ) end [2025-04-17 21:57:18] Production.INFO: ProcessCDR(1,14931153,1,1,2) [2025-04-17 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931153', 'tblTempUsageDetail_20' ) start [2025-04-17 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931153', 'tblTempUsageDetail_20' ) end [2025-04-17 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:57:22] Production.INFO: ==1342== Releasing lock... [2025-04-17 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:57:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:58:05 [end_date_ymd] => 2025-04-17 21:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:58:05' and `end` < '2025-04-17 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-17 21:58:18] Production.INFO: count ==2129 [2025-04-17 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-17 18:58:05 - End Time 2025-04-17 21:58:05 [2025-04-17 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931158', 'tblTempUsageDetail_20' ) start [2025-04-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931158', 'tblTempUsageDetail_20' ) end [2025-04-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931158', 'tblTempVendorCDR_20' ) start [2025-04-17 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931158', 'tblTempVendorCDR_20' ) end [2025-04-17 21:58:19] Production.INFO: ProcessCDR(1,14931158,1,1,2) [2025-04-17 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931158', 'tblTempUsageDetail_20' ) start [2025-04-17 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931158', 'tblTempUsageDetail_20' ) end [2025-04-17 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:58:24] Production.INFO: ==1412== Releasing lock... [2025-04-17 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:58:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 18:59:05 [end_date_ymd] => 2025-04-17 21:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 18:59:05' and `end` < '2025-04-17 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-17 21:59:18] Production.INFO: count ==2124 [2025-04-17 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 18:59:05 - End Time 2025-04-17 21:59:05 [2025-04-17 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931163', 'tblTempUsageDetail_20' ) start [2025-04-17 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931163', 'tblTempUsageDetail_20' ) end [2025-04-17 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931163', 'tblTempVendorCDR_20' ) start [2025-04-17 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931163', 'tblTempVendorCDR_20' ) end [2025-04-17 21:59:19] Production.INFO: ProcessCDR(1,14931163,1,1,2) [2025-04-17 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931163', 'tblTempUsageDetail_20' ) start [2025-04-17 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931163', 'tblTempUsageDetail_20' ) end [2025-04-17 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 21:59:22] Production.INFO: ==1486== Releasing lock... [2025-04-17 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 21:59:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:00:06 [end_date_ymd] => 2025-04-17 22:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:00:06' and `end` < '2025-04-17 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-17 22:00:19] Production.INFO: count ==2118 [2025-04-17 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:00:06 - End Time 2025-04-17 22:00:06 [2025-04-17 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931169', 'tblTempUsageDetail_20' ) start [2025-04-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931169', 'tblTempUsageDetail_20' ) end [2025-04-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931169', 'tblTempVendorCDR_20' ) start [2025-04-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931169', 'tblTempVendorCDR_20' ) end [2025-04-17 22:00:19] Production.INFO: ProcessCDR(1,14931169,1,1,2) [2025-04-17 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931169', 'tblTempUsageDetail_20' ) start [2025-04-17 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931169', 'tblTempUsageDetail_20' ) end [2025-04-17 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:00:23] Production.INFO: ==1596== Releasing lock... [2025-04-17 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:00:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:01:05 [end_date_ymd] => 2025-04-17 22:01:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:01:05' and `end` < '2025-04-17 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-17 22:01:18] Production.INFO: count ==2141 [2025-04-17 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:01:05 - End Time 2025-04-17 22:01:05 [2025-04-17 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931174', 'tblTempUsageDetail_20' ) start [2025-04-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931174', 'tblTempUsageDetail_20' ) end [2025-04-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931174', 'tblTempVendorCDR_20' ) start [2025-04-17 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931174', 'tblTempVendorCDR_20' ) end [2025-04-17 22:01:18] Production.INFO: ProcessCDR(1,14931174,1,1,2) [2025-04-17 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931174', 'tblTempUsageDetail_20' ) start [2025-04-17 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931174', 'tblTempUsageDetail_20' ) end [2025-04-17 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:01:23] Production.INFO: ==1682== Releasing lock... [2025-04-17 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:01:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:02:06 [end_date_ymd] => 2025-04-17 22:02:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:02:06' and `end` < '2025-04-17 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-17 22:02:19] Production.INFO: count ==2135 [2025-04-17 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:02:06 - End Time 2025-04-17 22:02:06 [2025-04-17 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931179', 'tblTempUsageDetail_20' ) start [2025-04-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931179', 'tblTempUsageDetail_20' ) end [2025-04-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931179', 'tblTempVendorCDR_20' ) start [2025-04-17 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931179', 'tblTempVendorCDR_20' ) end [2025-04-17 22:02:19] Production.INFO: ProcessCDR(1,14931179,1,1,2) [2025-04-17 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931179', 'tblTempUsageDetail_20' ) start [2025-04-17 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931179', 'tblTempUsageDetail_20' ) end [2025-04-17 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:02:23] Production.INFO: ==1758== Releasing lock... [2025-04-17 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:02:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:03:05 [end_date_ymd] => 2025-04-17 22:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:03:05' and `end` < '2025-04-17 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-17 22:03:18] Production.INFO: count ==2135 [2025-04-17 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:03:05 - End Time 2025-04-17 22:03:05 [2025-04-17 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931184', 'tblTempUsageDetail_20' ) start [2025-04-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931184', 'tblTempUsageDetail_20' ) end [2025-04-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931184', 'tblTempVendorCDR_20' ) start [2025-04-17 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931184', 'tblTempVendorCDR_20' ) end [2025-04-17 22:03:19] Production.INFO: ProcessCDR(1,14931184,1,1,2) [2025-04-17 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931184', 'tblTempUsageDetail_20' ) start [2025-04-17 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931184', 'tblTempUsageDetail_20' ) end [2025-04-17 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:03:22] Production.INFO: ==1842== Releasing lock... [2025-04-17 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:03:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:04:05 [end_date_ymd] => 2025-04-17 22:04:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:04:05' and `end` < '2025-04-17 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-17 22:04:18] Production.INFO: count ==2139 [2025-04-17 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:04:05 - End Time 2025-04-17 22:04:05 [2025-04-17 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931189', 'tblTempUsageDetail_20' ) start [2025-04-17 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931189', 'tblTempUsageDetail_20' ) end [2025-04-17 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931189', 'tblTempVendorCDR_20' ) start [2025-04-17 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931189', 'tblTempVendorCDR_20' ) end [2025-04-17 22:04:19] Production.INFO: ProcessCDR(1,14931189,1,1,2) [2025-04-17 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931189', 'tblTempUsageDetail_20' ) start [2025-04-17 22:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931189', 'tblTempUsageDetail_20' ) end [2025-04-17 22:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:04:24] Production.INFO: ==1914== Releasing lock... [2025-04-17 22:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:04:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:05:05 [end_date_ymd] => 2025-04-17 22:05:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:05:05' and `end` < '2025-04-17 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-17 22:05:18] Production.INFO: count ==2137 [2025-04-17 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:05:05 - End Time 2025-04-17 22:05:05 [2025-04-17 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931194', 'tblTempUsageDetail_20' ) start [2025-04-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931194', 'tblTempUsageDetail_20' ) end [2025-04-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931194', 'tblTempVendorCDR_20' ) start [2025-04-17 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931194', 'tblTempVendorCDR_20' ) end [2025-04-17 22:05:19] Production.INFO: ProcessCDR(1,14931194,1,1,2) [2025-04-17 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931194', 'tblTempUsageDetail_20' ) start [2025-04-17 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931194', 'tblTempUsageDetail_20' ) end [2025-04-17 22:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:05:24] Production.INFO: ==1985== Releasing lock... [2025-04-17 22:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:05:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:06:05 [end_date_ymd] => 2025-04-17 22:06:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:06:05' and `end` < '2025-04-17 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-17 22:06:18] Production.INFO: count ==2137 [2025-04-17 22:06:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:06:05 - End Time 2025-04-17 22:06:05 [2025-04-17 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931199', 'tblTempUsageDetail_20' ) start [2025-04-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931199', 'tblTempUsageDetail_20' ) end [2025-04-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931199', 'tblTempVendorCDR_20' ) start [2025-04-17 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931199', 'tblTempVendorCDR_20' ) end [2025-04-17 22:06:19] Production.INFO: ProcessCDR(1,14931199,1,1,2) [2025-04-17 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931199', 'tblTempUsageDetail_20' ) start [2025-04-17 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931199', 'tblTempUsageDetail_20' ) end [2025-04-17 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:06:22] Production.INFO: ==2097== Releasing lock... [2025-04-17 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:06:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:07:05 [end_date_ymd] => 2025-04-17 22:07:05 [RateCDR] => 1 ) [2025-04-17 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:07:05' and `end` < '2025-04-17 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:07:18] Production.INFO: count ==2142 [2025-04-17 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:07:05 - End Time 2025-04-17 22:07:05 [2025-04-17 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931204', 'tblTempUsageDetail_20' ) start [2025-04-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931204', 'tblTempUsageDetail_20' ) end [2025-04-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931204', 'tblTempVendorCDR_20' ) start [2025-04-17 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931204', 'tblTempVendorCDR_20' ) end [2025-04-17 22:07:19] Production.INFO: ProcessCDR(1,14931204,1,1,2) [2025-04-17 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931204', 'tblTempUsageDetail_20' ) start [2025-04-17 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931204', 'tblTempUsageDetail_20' ) end [2025-04-17 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:07:24] Production.INFO: ==2166== Releasing lock... [2025-04-17 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:07:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:08:06 [end_date_ymd] => 2025-04-17 22:08:06 [RateCDR] => 1 ) [2025-04-17 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:08:06' and `end` < '2025-04-17 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:08:18] Production.INFO: count ==2133 [2025-04-17 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:08:06 - End Time 2025-04-17 22:08:06 [2025-04-17 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931209', 'tblTempUsageDetail_20' ) start [2025-04-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931209', 'tblTempUsageDetail_20' ) end [2025-04-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931209', 'tblTempVendorCDR_20' ) start [2025-04-17 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931209', 'tblTempVendorCDR_20' ) end [2025-04-17 22:08:19] Production.INFO: ProcessCDR(1,14931209,1,1,2) [2025-04-17 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931209', 'tblTempUsageDetail_20' ) start [2025-04-17 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931209', 'tblTempUsageDetail_20' ) end [2025-04-17 22:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:08:24] Production.INFO: ==2238== Releasing lock... [2025-04-17 22:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:08:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:09:05 [end_date_ymd] => 2025-04-17 22:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:09:05' and `end` < '2025-04-17 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-17 22:09:18] Production.INFO: count ==2149 [2025-04-17 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:09:05 - End Time 2025-04-17 22:09:05 [2025-04-17 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931214', 'tblTempUsageDetail_20' ) start [2025-04-17 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931214', 'tblTempUsageDetail_20' ) end [2025-04-17 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931214', 'tblTempVendorCDR_20' ) start [2025-04-17 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931214', 'tblTempVendorCDR_20' ) end [2025-04-17 22:09:19] Production.INFO: ProcessCDR(1,14931214,1,1,2) [2025-04-17 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931214', 'tblTempUsageDetail_20' ) start [2025-04-17 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931214', 'tblTempUsageDetail_20' ) end [2025-04-17 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:09:24] Production.INFO: ==2311== Releasing lock... [2025-04-17 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:09:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:10:06 [end_date_ymd] => 2025-04-17 22:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:10:06' and `end` < '2025-04-17 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-17 22:10:19] Production.INFO: count ==2148 [2025-04-17 22:10:20] Production.ERROR: pbx CDR StartTime 2025-04-17 19:10:06 - End Time 2025-04-17 22:10:06 [2025-04-17 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931220', 'tblTempUsageDetail_20' ) start [2025-04-17 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931220', 'tblTempUsageDetail_20' ) end [2025-04-17 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931220', 'tblTempVendorCDR_20' ) start [2025-04-17 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931220', 'tblTempVendorCDR_20' ) end [2025-04-17 22:10:20] Production.INFO: ProcessCDR(1,14931220,1,1,2) [2025-04-17 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931220', 'tblTempUsageDetail_20' ) start [2025-04-17 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931220', 'tblTempUsageDetail_20' ) end [2025-04-17 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:10:23] Production.INFO: ==2384== Releasing lock... [2025-04-17 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:10:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-17 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:11:05 [end_date_ymd] => 2025-04-17 22:11:05 [RateCDR] => 1 ) [2025-04-17 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:11:05' and `end` < '2025-04-17 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-17 22:11:18] Production.INFO: count ==2133 [2025-04-17 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:11:05 - End Time 2025-04-17 22:11:05 [2025-04-17 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931225', 'tblTempUsageDetail_20' ) start [2025-04-17 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931225', 'tblTempUsageDetail_20' ) end [2025-04-17 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931225', 'tblTempVendorCDR_20' ) start [2025-04-17 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931225', 'tblTempVendorCDR_20' ) end [2025-04-17 22:11:19] Production.INFO: ProcessCDR(1,14931225,1,1,2) [2025-04-17 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931225', 'tblTempUsageDetail_20' ) start [2025-04-17 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931225', 'tblTempUsageDetail_20' ) end [2025-04-17 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:11:22] Production.INFO: ==2462== Releasing lock... [2025-04-17 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:11:22] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:12:06 [end_date_ymd] => 2025-04-17 22:12:06 [RateCDR] => 1 ) [2025-04-17 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:12:06' and `end` < '2025-04-17 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:12:18] Production.INFO: count ==2132 [2025-04-17 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:12:06 - End Time 2025-04-17 22:12:06 [2025-04-17 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931230', 'tblTempUsageDetail_20' ) start [2025-04-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931230', 'tblTempUsageDetail_20' ) end [2025-04-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931230', 'tblTempVendorCDR_20' ) start [2025-04-17 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931230', 'tblTempVendorCDR_20' ) end [2025-04-17 22:12:19] Production.INFO: ProcessCDR(1,14931230,1,1,2) [2025-04-17 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931230', 'tblTempUsageDetail_20' ) start [2025-04-17 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931230', 'tblTempUsageDetail_20' ) end [2025-04-17 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:12:23] Production.INFO: ==2539== Releasing lock... [2025-04-17 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:12:23] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:13:05 [end_date_ymd] => 2025-04-17 22:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:13:05' and `end` < '2025-04-17 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-17 22:13:18] Production.INFO: count ==2126 [2025-04-17 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:13:05 - End Time 2025-04-17 22:13:05 [2025-04-17 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931235', 'tblTempUsageDetail_20' ) start [2025-04-17 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931235', 'tblTempUsageDetail_20' ) end [2025-04-17 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931235', 'tblTempVendorCDR_20' ) start [2025-04-17 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931235', 'tblTempVendorCDR_20' ) end [2025-04-17 22:13:19] Production.INFO: ProcessCDR(1,14931235,1,1,2) [2025-04-17 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931235', 'tblTempUsageDetail_20' ) start [2025-04-17 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931235', 'tblTempUsageDetail_20' ) end [2025-04-17 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:13:22] Production.INFO: ==2614== Releasing lock... [2025-04-17 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:13:22] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:14:05 [end_date_ymd] => 2025-04-17 22:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:14:05' and `end` < '2025-04-17 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-17 22:14:18] Production.INFO: count ==2129 [2025-04-17 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:14:05 - End Time 2025-04-17 22:14:05 [2025-04-17 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931240', 'tblTempUsageDetail_20' ) start [2025-04-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931240', 'tblTempUsageDetail_20' ) end [2025-04-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931240', 'tblTempVendorCDR_20' ) start [2025-04-17 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931240', 'tblTempVendorCDR_20' ) end [2025-04-17 22:14:19] Production.INFO: ProcessCDR(1,14931240,1,1,2) [2025-04-17 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931240', 'tblTempUsageDetail_20' ) start [2025-04-17 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931240', 'tblTempUsageDetail_20' ) end [2025-04-17 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:14:23] Production.INFO: ==2688== Releasing lock... [2025-04-17 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:14:23] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:15:05 [end_date_ymd] => 2025-04-17 22:15:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:15:05' and `end` < '2025-04-17 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-17 22:15:18] Production.INFO: count ==2126 [2025-04-17 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:15:05 - End Time 2025-04-17 22:15:05 [2025-04-17 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931245', 'tblTempUsageDetail_20' ) start [2025-04-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931245', 'tblTempUsageDetail_20' ) end [2025-04-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931245', 'tblTempVendorCDR_20' ) start [2025-04-17 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931245', 'tblTempVendorCDR_20' ) end [2025-04-17 22:15:18] Production.INFO: ProcessCDR(1,14931245,1,1,2) [2025-04-17 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931245', 'tblTempUsageDetail_20' ) start [2025-04-17 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931245', 'tblTempUsageDetail_20' ) end [2025-04-17 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:15:22] Production.INFO: ==2758== Releasing lock... [2025-04-17 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:15:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:16:05 [end_date_ymd] => 2025-04-17 22:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:16:05' and `end` < '2025-04-17 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-17 22:16:18] Production.INFO: count ==2123 [2025-04-17 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:16:05 - End Time 2025-04-17 22:16:05 [2025-04-17 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931250', 'tblTempUsageDetail_20' ) start [2025-04-17 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931250', 'tblTempUsageDetail_20' ) end [2025-04-17 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931250', 'tblTempVendorCDR_20' ) start [2025-04-17 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931250', 'tblTempVendorCDR_20' ) end [2025-04-17 22:16:19] Production.INFO: ProcessCDR(1,14931250,1,1,2) [2025-04-17 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931250', 'tblTempUsageDetail_20' ) start [2025-04-17 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931250', 'tblTempUsageDetail_20' ) end [2025-04-17 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:16:22] Production.INFO: ==2830== Releasing lock... [2025-04-17 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:16:22] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:17:05 [end_date_ymd] => 2025-04-17 22:17:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:17:05' and `end` < '2025-04-17 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-17 22:17:17] Production.INFO: count ==2118 [2025-04-17 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:17:05 - End Time 2025-04-17 22:17:05 [2025-04-17 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931255', 'tblTempUsageDetail_20' ) start [2025-04-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931255', 'tblTempUsageDetail_20' ) end [2025-04-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931255', 'tblTempVendorCDR_20' ) start [2025-04-17 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931255', 'tblTempVendorCDR_20' ) end [2025-04-17 22:17:18] Production.INFO: ProcessCDR(1,14931255,1,1,2) [2025-04-17 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931255', 'tblTempUsageDetail_20' ) start [2025-04-17 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931255', 'tblTempUsageDetail_20' ) end [2025-04-17 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:17:23] Production.INFO: ==2898== Releasing lock... [2025-04-17 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:17:23] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:18:06 [end_date_ymd] => 2025-04-17 22:18:06 [RateCDR] => 1 ) [2025-04-17 22:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:18:06' and `end` < '2025-04-17 22:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:18:18] Production.INFO: count ==2112 [2025-04-17 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:18:06 - End Time 2025-04-17 22:18:06 [2025-04-17 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931260', 'tblTempUsageDetail_20' ) start [2025-04-17 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931260', 'tblTempUsageDetail_20' ) end [2025-04-17 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931260', 'tblTempVendorCDR_20' ) start [2025-04-17 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931260', 'tblTempVendorCDR_20' ) end [2025-04-17 22:18:19] Production.INFO: ProcessCDR(1,14931260,1,1,2) [2025-04-17 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931260', 'tblTempUsageDetail_20' ) start [2025-04-17 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931260', 'tblTempUsageDetail_20' ) end [2025-04-17 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:18:23] Production.INFO: ==2970== Releasing lock... [2025-04-17 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:18:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:19:05 [end_date_ymd] => 2025-04-17 22:19:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:19:05' and `end` < '2025-04-17 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-17 22:19:18] Production.INFO: count ==2110 [2025-04-17 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:19:05 - End Time 2025-04-17 22:19:05 [2025-04-17 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931265', 'tblTempUsageDetail_20' ) start [2025-04-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931265', 'tblTempUsageDetail_20' ) end [2025-04-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931265', 'tblTempVendorCDR_20' ) start [2025-04-17 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931265', 'tblTempVendorCDR_20' ) end [2025-04-17 22:19:18] Production.INFO: ProcessCDR(1,14931265,1,1,2) [2025-04-17 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931265', 'tblTempUsageDetail_20' ) start [2025-04-17 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931265', 'tblTempUsageDetail_20' ) end [2025-04-17 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:19:22] Production.INFO: ==3043== Releasing lock... [2025-04-17 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:19:22] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:20:06 [end_date_ymd] => 2025-04-17 22:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:20:06' and `end` < '2025-04-17 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-17 22:20:19] Production.INFO: count ==2105 [2025-04-17 22:20:20] Production.ERROR: pbx CDR StartTime 2025-04-17 19:20:06 - End Time 2025-04-17 22:20:06 [2025-04-17 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931271', 'tblTempUsageDetail_20' ) start [2025-04-17 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931271', 'tblTempUsageDetail_20' ) end [2025-04-17 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931271', 'tblTempVendorCDR_20' ) start [2025-04-17 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931271', 'tblTempVendorCDR_20' ) end [2025-04-17 22:20:20] Production.INFO: ProcessCDR(1,14931271,1,1,2) [2025-04-17 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931271', 'tblTempUsageDetail_20' ) start [2025-04-17 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931271', 'tblTempUsageDetail_20' ) end [2025-04-17 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:20:23] Production.INFO: ==3121== Releasing lock... [2025-04-17 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:20:23] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:21:05 [end_date_ymd] => 2025-04-17 22:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:21:05' and `end` < '2025-04-17 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-17 22:21:18] Production.INFO: count ==2113 [2025-04-17 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:21:05 - End Time 2025-04-17 22:21:05 [2025-04-17 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931276', 'tblTempUsageDetail_20' ) start [2025-04-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931276', 'tblTempUsageDetail_20' ) end [2025-04-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931276', 'tblTempVendorCDR_20' ) start [2025-04-17 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931276', 'tblTempVendorCDR_20' ) end [2025-04-17 22:21:18] Production.INFO: ProcessCDR(1,14931276,1,1,2) [2025-04-17 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931276', 'tblTempUsageDetail_20' ) start [2025-04-17 22:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931276', 'tblTempUsageDetail_20' ) end [2025-04-17 22:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:21:24] Production.INFO: ==3193== Releasing lock... [2025-04-17 22:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:21:24] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:22:05 [end_date_ymd] => 2025-04-17 22:22:05 [RateCDR] => 1 ) [2025-04-17 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:22:05' and `end` < '2025-04-17 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:22:18] Production.INFO: count ==2109 [2025-04-17 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:22:05 - End Time 2025-04-17 22:22:05 [2025-04-17 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931281', 'tblTempUsageDetail_20' ) start [2025-04-17 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931281', 'tblTempUsageDetail_20' ) end [2025-04-17 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931281', 'tblTempVendorCDR_20' ) start [2025-04-17 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931281', 'tblTempVendorCDR_20' ) end [2025-04-17 22:22:19] Production.INFO: ProcessCDR(1,14931281,1,1,2) [2025-04-17 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931281', 'tblTempUsageDetail_20' ) start [2025-04-17 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931281', 'tblTempUsageDetail_20' ) end [2025-04-17 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:22:24] Production.INFO: ==3305== Releasing lock... [2025-04-17 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:22:24] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:23:05 [end_date_ymd] => 2025-04-17 22:23:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:23:05' and `end` < '2025-04-17 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-17 22:23:18] Production.INFO: count ==2111 [2025-04-17 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:23:05 - End Time 2025-04-17 22:23:05 [2025-04-17 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931286', 'tblTempUsageDetail_20' ) start [2025-04-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931286', 'tblTempUsageDetail_20' ) end [2025-04-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931286', 'tblTempVendorCDR_20' ) start [2025-04-17 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931286', 'tblTempVendorCDR_20' ) end [2025-04-17 22:23:19] Production.INFO: ProcessCDR(1,14931286,1,1,2) [2025-04-17 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931286', 'tblTempUsageDetail_20' ) start [2025-04-17 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931286', 'tblTempUsageDetail_20' ) end [2025-04-17 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:23:24] Production.INFO: ==3376== Releasing lock... [2025-04-17 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:23:24] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:24:06 [end_date_ymd] => 2025-04-17 22:24:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:24:06' and `end` < '2025-04-17 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-17 22:24:19] Production.INFO: count ==2107 [2025-04-17 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:24:06 - End Time 2025-04-17 22:24:06 [2025-04-17 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931291', 'tblTempUsageDetail_20' ) start [2025-04-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931291', 'tblTempUsageDetail_20' ) end [2025-04-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931291', 'tblTempVendorCDR_20' ) start [2025-04-17 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931291', 'tblTempVendorCDR_20' ) end [2025-04-17 22:24:19] Production.INFO: ProcessCDR(1,14931291,1,1,2) [2025-04-17 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931291', 'tblTempUsageDetail_20' ) start [2025-04-17 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931291', 'tblTempUsageDetail_20' ) end [2025-04-17 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:24:23] Production.INFO: ==3454== Releasing lock... [2025-04-17 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:24:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-17 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:25:05 [end_date_ymd] => 2025-04-17 22:25:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:25:05' and `end` < '2025-04-17 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-17 22:25:18] Production.INFO: count ==2105 [2025-04-17 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:25:05 - End Time 2025-04-17 22:25:05 [2025-04-17 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931296', 'tblTempUsageDetail_20' ) start [2025-04-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931296', 'tblTempUsageDetail_20' ) end [2025-04-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931296', 'tblTempVendorCDR_20' ) start [2025-04-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931296', 'tblTempVendorCDR_20' ) end [2025-04-17 22:25:18] Production.INFO: ProcessCDR(1,14931296,1,1,2) [2025-04-17 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931296', 'tblTempUsageDetail_20' ) start [2025-04-17 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931296', 'tblTempUsageDetail_20' ) end [2025-04-17 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:25:24] Production.INFO: ==3525== Releasing lock... [2025-04-17 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:25:24] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:26:05 [end_date_ymd] => 2025-04-17 22:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:26:05' and `end` < '2025-04-17 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-17 22:26:18] Production.INFO: count ==2106 [2025-04-17 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:26:05 - End Time 2025-04-17 22:26:05 [2025-04-17 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931301', 'tblTempUsageDetail_20' ) start [2025-04-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931301', 'tblTempUsageDetail_20' ) end [2025-04-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931301', 'tblTempVendorCDR_20' ) start [2025-04-17 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931301', 'tblTempVendorCDR_20' ) end [2025-04-17 22:26:18] Production.INFO: ProcessCDR(1,14931301,1,1,2) [2025-04-17 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931301', 'tblTempUsageDetail_20' ) start [2025-04-17 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931301', 'tblTempUsageDetail_20' ) end [2025-04-17 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:26:22] Production.INFO: ==3595== Releasing lock... [2025-04-17 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:26:22] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:27:06 [end_date_ymd] => 2025-04-17 22:27:06 [RateCDR] => 1 ) [2025-04-17 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:27:06' and `end` < '2025-04-17 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:27:18] Production.INFO: count ==2098 [2025-04-17 22:27:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:27:06 - End Time 2025-04-17 22:27:06 [2025-04-17 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931306', 'tblTempUsageDetail_20' ) start [2025-04-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931306', 'tblTempUsageDetail_20' ) end [2025-04-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931306', 'tblTempVendorCDR_20' ) start [2025-04-17 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931306', 'tblTempVendorCDR_20' ) end [2025-04-17 22:27:19] Production.INFO: ProcessCDR(1,14931306,1,1,2) [2025-04-17 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931306', 'tblTempUsageDetail_20' ) start [2025-04-17 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931306', 'tblTempUsageDetail_20' ) end [2025-04-17 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:27:22] Production.INFO: ==3666== Releasing lock... [2025-04-17 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:27:22] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:28:05 [end_date_ymd] => 2025-04-17 22:28:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:28:05' and `end` < '2025-04-17 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-17 22:28:18] Production.INFO: count ==2093 [2025-04-17 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:28:05 - End Time 2025-04-17 22:28:05 [2025-04-17 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931311', 'tblTempUsageDetail_20' ) start [2025-04-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931311', 'tblTempUsageDetail_20' ) end [2025-04-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931311', 'tblTempVendorCDR_20' ) start [2025-04-17 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931311', 'tblTempVendorCDR_20' ) end [2025-04-17 22:28:18] Production.INFO: ProcessCDR(1,14931311,1,1,2) [2025-04-17 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931311', 'tblTempUsageDetail_20' ) start [2025-04-17 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931311', 'tblTempUsageDetail_20' ) end [2025-04-17 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:28:23] Production.INFO: ==3736== Releasing lock... [2025-04-17 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:28:23] Production.INFO: 44 MB #Memory Used# [2025-04-17 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:29:06 [end_date_ymd] => 2025-04-17 22:29:06 [RateCDR] => 1 ) [2025-04-17 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:29:06' and `end` < '2025-04-17 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:29:19] Production.INFO: count ==2090 [2025-04-17 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:29:06 - End Time 2025-04-17 22:29:06 [2025-04-17 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931316', 'tblTempUsageDetail_20' ) start [2025-04-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931316', 'tblTempUsageDetail_20' ) end [2025-04-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931316', 'tblTempVendorCDR_20' ) start [2025-04-17 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931316', 'tblTempVendorCDR_20' ) end [2025-04-17 22:29:19] Production.INFO: ProcessCDR(1,14931316,1,1,2) [2025-04-17 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931316', 'tblTempUsageDetail_20' ) start [2025-04-17 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931316', 'tblTempUsageDetail_20' ) end [2025-04-17 22:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:29:24] Production.INFO: ==3809== Releasing lock... [2025-04-17 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:29:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-17 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:30:06 [end_date_ymd] => 2025-04-17 22:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:30:06' and `end` < '2025-04-17 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-17 22:30:19] Production.INFO: count ==2085 [2025-04-17 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:30:06 - End Time 2025-04-17 22:30:06 [2025-04-17 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931322', 'tblTempUsageDetail_20' ) start [2025-04-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931322', 'tblTempUsageDetail_20' ) end [2025-04-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931322', 'tblTempVendorCDR_20' ) start [2025-04-17 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931322', 'tblTempVendorCDR_20' ) end [2025-04-17 22:30:19] Production.INFO: ProcessCDR(1,14931322,1,1,2) [2025-04-17 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931322', 'tblTempUsageDetail_20' ) start [2025-04-17 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931322', 'tblTempUsageDetail_20' ) end [2025-04-17 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:30:23] Production.INFO: ==3879== Releasing lock... [2025-04-17 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:30:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-17 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:31:05 [end_date_ymd] => 2025-04-17 22:31:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:31:05' and `end` < '2025-04-17 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-17 22:31:18] Production.INFO: count ==2039 [2025-04-17 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:31:05 - End Time 2025-04-17 22:31:05 [2025-04-17 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931327', 'tblTempUsageDetail_20' ) start [2025-04-17 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931327', 'tblTempUsageDetail_20' ) end [2025-04-17 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931327', 'tblTempVendorCDR_20' ) start [2025-04-17 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931327', 'tblTempVendorCDR_20' ) end [2025-04-17 22:31:19] Production.INFO: ProcessCDR(1,14931327,1,1,2) [2025-04-17 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931327', 'tblTempUsageDetail_20' ) start [2025-04-17 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931327', 'tblTempUsageDetail_20' ) end [2025-04-17 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:31:23] Production.INFO: ==3952== Releasing lock... [2025-04-17 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:31:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-17 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:32:05 [end_date_ymd] => 2025-04-17 22:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:32:05' and `end` < '2025-04-17 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-17 22:32:18] Production.INFO: count ==2033 [2025-04-17 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:32:05 - End Time 2025-04-17 22:32:05 [2025-04-17 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931332', 'tblTempUsageDetail_20' ) start [2025-04-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931332', 'tblTempUsageDetail_20' ) end [2025-04-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931332', 'tblTempVendorCDR_20' ) start [2025-04-17 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931332', 'tblTempVendorCDR_20' ) end [2025-04-17 22:32:18] Production.INFO: ProcessCDR(1,14931332,1,1,2) [2025-04-17 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931332', 'tblTempUsageDetail_20' ) start [2025-04-17 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931332', 'tblTempUsageDetail_20' ) end [2025-04-17 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:32:22] Production.INFO: ==4024== Releasing lock... [2025-04-17 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:32:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:33:06 [end_date_ymd] => 2025-04-17 22:33:06 [RateCDR] => 1 ) [2025-04-17 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:33:06' and `end` < '2025-04-17 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:33:19] Production.INFO: count ==2029 [2025-04-17 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:33:06 - End Time 2025-04-17 22:33:06 [2025-04-17 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931337', 'tblTempUsageDetail_20' ) start [2025-04-17 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931337', 'tblTempUsageDetail_20' ) end [2025-04-17 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931337', 'tblTempVendorCDR_20' ) start [2025-04-17 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931337', 'tblTempVendorCDR_20' ) end [2025-04-17 22:33:19] Production.INFO: ProcessCDR(1,14931337,1,1,2) [2025-04-17 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931337', 'tblTempUsageDetail_20' ) start [2025-04-17 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931337', 'tblTempUsageDetail_20' ) end [2025-04-17 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:33:23] Production.INFO: ==4095== Releasing lock... [2025-04-17 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:33:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-17 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:34:05 [end_date_ymd] => 2025-04-17 22:34:05 [RateCDR] => 1 ) [2025-04-17 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:34:05' and `end` < '2025-04-17 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:34:18] Production.INFO: count ==2029 [2025-04-17 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:34:05 - End Time 2025-04-17 22:34:05 [2025-04-17 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931342', 'tblTempUsageDetail_20' ) start [2025-04-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931342', 'tblTempUsageDetail_20' ) end [2025-04-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931342', 'tblTempVendorCDR_20' ) start [2025-04-17 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931342', 'tblTempVendorCDR_20' ) end [2025-04-17 22:34:19] Production.INFO: ProcessCDR(1,14931342,1,1,2) [2025-04-17 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931342', 'tblTempUsageDetail_20' ) start [2025-04-17 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931342', 'tblTempUsageDetail_20' ) end [2025-04-17 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:34:22] Production.INFO: ==4167== Releasing lock... [2025-04-17 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:34:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:35:05 [end_date_ymd] => 2025-04-17 22:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:35:05' and `end` < '2025-04-17 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-17 22:35:18] Production.INFO: count ==2026 [2025-04-17 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:35:05 - End Time 2025-04-17 22:35:05 [2025-04-17 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931347', 'tblTempUsageDetail_20' ) start [2025-04-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931347', 'tblTempUsageDetail_20' ) end [2025-04-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931347', 'tblTempVendorCDR_20' ) start [2025-04-17 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931347', 'tblTempVendorCDR_20' ) end [2025-04-17 22:35:19] Production.INFO: ProcessCDR(1,14931347,1,1,2) [2025-04-17 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931347', 'tblTempUsageDetail_20' ) start [2025-04-17 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931347', 'tblTempUsageDetail_20' ) end [2025-04-17 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:35:22] Production.INFO: ==4239== Releasing lock... [2025-04-17 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:35:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-17 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:36:05 [end_date_ymd] => 2025-04-17 22:36:05 [RateCDR] => 1 ) [2025-04-17 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:36:05' and `end` < '2025-04-17 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:36:18] Production.INFO: count ==2022 [2025-04-17 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:36:05 - End Time 2025-04-17 22:36:05 [2025-04-17 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931352', 'tblTempUsageDetail_20' ) start [2025-04-17 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931352', 'tblTempUsageDetail_20' ) end [2025-04-17 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931352', 'tblTempVendorCDR_20' ) start [2025-04-17 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931352', 'tblTempVendorCDR_20' ) end [2025-04-17 22:36:19] Production.INFO: ProcessCDR(1,14931352,1,1,2) [2025-04-17 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931352', 'tblTempUsageDetail_20' ) start [2025-04-17 22:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931352', 'tblTempUsageDetail_20' ) end [2025-04-17 22:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:36:24] Production.INFO: ==4314== Releasing lock... [2025-04-17 22:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:36:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:37:05 [end_date_ymd] => 2025-04-17 22:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:37:05' and `end` < '2025-04-17 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-17 22:37:18] Production.INFO: count ==2019 [2025-04-17 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:37:05 - End Time 2025-04-17 22:37:05 [2025-04-17 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931357', 'tblTempUsageDetail_20' ) start [2025-04-17 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931357', 'tblTempUsageDetail_20' ) end [2025-04-17 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931357', 'tblTempVendorCDR_20' ) start [2025-04-17 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931357', 'tblTempVendorCDR_20' ) end [2025-04-17 22:37:19] Production.INFO: ProcessCDR(1,14931357,1,1,2) [2025-04-17 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931357', 'tblTempUsageDetail_20' ) start [2025-04-17 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931357', 'tblTempUsageDetail_20' ) end [2025-04-17 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:37:22] Production.INFO: ==4426== Releasing lock... [2025-04-17 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:37:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:38:05 [end_date_ymd] => 2025-04-17 22:38:05 [RateCDR] => 1 ) [2025-04-17 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:38:05' and `end` < '2025-04-17 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:38:18] Production.INFO: count ==2012 [2025-04-17 22:38:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:38:05 - End Time 2025-04-17 22:38:05 [2025-04-17 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931362', 'tblTempUsageDetail_20' ) start [2025-04-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931362', 'tblTempUsageDetail_20' ) end [2025-04-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931362', 'tblTempVendorCDR_20' ) start [2025-04-17 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931362', 'tblTempVendorCDR_20' ) end [2025-04-17 22:38:19] Production.INFO: ProcessCDR(1,14931362,1,1,2) [2025-04-17 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931362', 'tblTempUsageDetail_20' ) start [2025-04-17 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931362', 'tblTempUsageDetail_20' ) end [2025-04-17 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:38:22] Production.INFO: ==4501== Releasing lock... [2025-04-17 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:38:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:39:06 [end_date_ymd] => 2025-04-17 22:39:06 [RateCDR] => 1 ) [2025-04-17 22: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-17 19:39:06' and `end` < '2025-04-17 22: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-17 22:39:19] Production.INFO: count ==2008 [2025-04-17 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:39:06 - End Time 2025-04-17 22:39:06 [2025-04-17 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931367', 'tblTempUsageDetail_20' ) start [2025-04-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931367', 'tblTempUsageDetail_20' ) end [2025-04-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931367', 'tblTempVendorCDR_20' ) start [2025-04-17 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931367', 'tblTempVendorCDR_20' ) end [2025-04-17 22:39:19] Production.INFO: ProcessCDR(1,14931367,1,1,2) [2025-04-17 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931367', 'tblTempUsageDetail_20' ) start [2025-04-17 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931367', 'tblTempUsageDetail_20' ) end [2025-04-17 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:39:23] Production.INFO: ==4572== Releasing lock... [2025-04-17 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:39:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:40:06 [end_date_ymd] => 2025-04-17 22:40:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:40:06' and `end` < '2025-04-17 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-17 22:40:18] Production.INFO: count ==2007 [2025-04-17 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:40:06 - End Time 2025-04-17 22:40:06 [2025-04-17 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931372', 'tblTempUsageDetail_20' ) start [2025-04-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931372', 'tblTempUsageDetail_20' ) end [2025-04-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931372', 'tblTempVendorCDR_20' ) start [2025-04-17 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931372', 'tblTempVendorCDR_20' ) end [2025-04-17 22:40:19] Production.INFO: ProcessCDR(1,14931372,1,1,2) [2025-04-17 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931372', 'tblTempUsageDetail_20' ) start [2025-04-17 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931372', 'tblTempUsageDetail_20' ) end [2025-04-17 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:40:23] Production.INFO: ==4656== Releasing lock... [2025-04-17 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:40:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-17 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:41:05 [end_date_ymd] => 2025-04-17 22:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:41:05' and `end` < '2025-04-17 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-17 22:41:18] Production.INFO: count ==1951 [2025-04-17 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:41:05 - End Time 2025-04-17 22:41:05 [2025-04-17 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931378', 'tblTempUsageDetail_20' ) start [2025-04-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931378', 'tblTempUsageDetail_20' ) end [2025-04-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931378', 'tblTempVendorCDR_20' ) start [2025-04-17 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931378', 'tblTempVendorCDR_20' ) end [2025-04-17 22:41:19] Production.INFO: ProcessCDR(1,14931378,1,1,2) [2025-04-17 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931378', 'tblTempUsageDetail_20' ) start [2025-04-17 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931378', 'tblTempUsageDetail_20' ) end [2025-04-17 22:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:41:24] Production.INFO: ==4730== Releasing lock... [2025-04-17 22:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:41:24] Production.INFO: 43 MB #Memory Used# [2025-04-17 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:42:06 [end_date_ymd] => 2025-04-17 22:42:06 [RateCDR] => 1 ) [2025-04-17 22: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-17 19:42:06' and `end` < '2025-04-17 22: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-17 22:42:18] Production.INFO: count ==1945 [2025-04-17 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:42:06 - End Time 2025-04-17 22:42:06 [2025-04-17 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931383', 'tblTempUsageDetail_20' ) start [2025-04-17 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931383', 'tblTempUsageDetail_20' ) end [2025-04-17 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931383', 'tblTempVendorCDR_20' ) start [2025-04-17 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931383', 'tblTempVendorCDR_20' ) end [2025-04-17 22:42:19] Production.INFO: ProcessCDR(1,14931383,1,1,2) [2025-04-17 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931383', 'tblTempUsageDetail_20' ) start [2025-04-17 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931383', 'tblTempUsageDetail_20' ) end [2025-04-17 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:42:23] Production.INFO: ==4799== Releasing lock... [2025-04-17 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:42:23] Production.INFO: 43 MB #Memory Used# [2025-04-17 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:43:05 [end_date_ymd] => 2025-04-17 22:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:43:05' and `end` < '2025-04-17 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-17 22:43:18] Production.INFO: count ==1939 [2025-04-17 22:43:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:43:05 - End Time 2025-04-17 22:43:05 [2025-04-17 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931388', 'tblTempUsageDetail_20' ) start [2025-04-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931388', 'tblTempUsageDetail_20' ) end [2025-04-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931388', 'tblTempVendorCDR_20' ) start [2025-04-17 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931388', 'tblTempVendorCDR_20' ) end [2025-04-17 22:43:19] Production.INFO: ProcessCDR(1,14931388,1,1,2) [2025-04-17 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931388', 'tblTempUsageDetail_20' ) start [2025-04-17 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931388', 'tblTempUsageDetail_20' ) end [2025-04-17 22:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:43:24] Production.INFO: ==4870== Releasing lock... [2025-04-17 22:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:43:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-17 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:44:05 [end_date_ymd] => 2025-04-17 22:44:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:44:05' and `end` < '2025-04-17 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-17 22:44:18] Production.INFO: count ==1941 [2025-04-17 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:44:05 - End Time 2025-04-17 22:44:05 [2025-04-17 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931393', 'tblTempUsageDetail_20' ) start [2025-04-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931393', 'tblTempUsageDetail_20' ) end [2025-04-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931393', 'tblTempVendorCDR_20' ) start [2025-04-17 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931393', 'tblTempVendorCDR_20' ) end [2025-04-17 22:44:18] Production.INFO: ProcessCDR(1,14931393,1,1,2) [2025-04-17 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931393', 'tblTempUsageDetail_20' ) start [2025-04-17 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931393', 'tblTempUsageDetail_20' ) end [2025-04-17 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:44:24] Production.INFO: ==4941== Releasing lock... [2025-04-17 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:44:24] Production.INFO: 43 MB #Memory Used# [2025-04-17 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:45:05 [end_date_ymd] => 2025-04-17 22:45:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:45:05' and `end` < '2025-04-17 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-17 22:45:18] Production.INFO: count ==1936 [2025-04-17 22:45:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:45:05 - End Time 2025-04-17 22:45:05 [2025-04-17 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931398', 'tblTempUsageDetail_20' ) start [2025-04-17 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931398', 'tblTempUsageDetail_20' ) end [2025-04-17 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931398', 'tblTempVendorCDR_20' ) start [2025-04-17 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931398', 'tblTempVendorCDR_20' ) end [2025-04-17 22:45:19] Production.INFO: ProcessCDR(1,14931398,1,1,2) [2025-04-17 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931398', 'tblTempUsageDetail_20' ) start [2025-04-17 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931398', 'tblTempUsageDetail_20' ) end [2025-04-17 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:45:22] Production.INFO: ==5017== Releasing lock... [2025-04-17 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:45:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:46:05 [end_date_ymd] => 2025-04-17 22:46:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:46:05' and `end` < '2025-04-17 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-17 22:46:18] Production.INFO: count ==1934 [2025-04-17 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:46:05 - End Time 2025-04-17 22:46:05 [2025-04-17 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931403', 'tblTempUsageDetail_20' ) start [2025-04-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931403', 'tblTempUsageDetail_20' ) end [2025-04-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931403', 'tblTempVendorCDR_20' ) start [2025-04-17 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931403', 'tblTempVendorCDR_20' ) end [2025-04-17 22:46:18] Production.INFO: ProcessCDR(1,14931403,1,1,2) [2025-04-17 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931403', 'tblTempUsageDetail_20' ) start [2025-04-17 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931403', 'tblTempUsageDetail_20' ) end [2025-04-17 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:46:23] Production.INFO: ==5086== Releasing lock... [2025-04-17 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:46:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:47:05 [end_date_ymd] => 2025-04-17 22:47:05 [RateCDR] => 1 ) [2025-04-17 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:47:05' and `end` < '2025-04-17 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:47:18] Production.INFO: count ==1931 [2025-04-17 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:47:05 - End Time 2025-04-17 22:47:05 [2025-04-17 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931408', 'tblTempUsageDetail_20' ) start [2025-04-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931408', 'tblTempUsageDetail_20' ) end [2025-04-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931408', 'tblTempVendorCDR_20' ) start [2025-04-17 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931408', 'tblTempVendorCDR_20' ) end [2025-04-17 22:47:18] Production.INFO: ProcessCDR(1,14931408,1,1,2) [2025-04-17 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931408', 'tblTempUsageDetail_20' ) start [2025-04-17 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931408', 'tblTempUsageDetail_20' ) end [2025-04-17 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:47:21] Production.INFO: ==5157== Releasing lock... [2025-04-17 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:47:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:48:04 [end_date_ymd] => 2025-04-17 22:48:04 [RateCDR] => 1 ) [2025-04-17 22:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:48:04' and `end` < '2025-04-17 22:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:48:17] Production.INFO: count ==1932 [2025-04-17 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:48:04 - End Time 2025-04-17 22:48:04 [2025-04-17 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931413', 'tblTempUsageDetail_20' ) start [2025-04-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931413', 'tblTempUsageDetail_20' ) end [2025-04-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931413', 'tblTempVendorCDR_20' ) start [2025-04-17 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931413', 'tblTempVendorCDR_20' ) end [2025-04-17 22:48:18] Production.INFO: ProcessCDR(1,14931413,1,1,2) [2025-04-17 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931413', 'tblTempUsageDetail_20' ) start [2025-04-17 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931413', 'tblTempUsageDetail_20' ) end [2025-04-17 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:48:23] Production.INFO: ==5229== Releasing lock... [2025-04-17 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:48:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:49:05 [end_date_ymd] => 2025-04-17 22:49:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:49:05' and `end` < '2025-04-17 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-17 22:49:18] Production.INFO: count ==1929 [2025-04-17 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:49:05 - End Time 2025-04-17 22:49:05 [2025-04-17 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931418', 'tblTempUsageDetail_20' ) start [2025-04-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931418', 'tblTempUsageDetail_20' ) end [2025-04-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931418', 'tblTempVendorCDR_20' ) start [2025-04-17 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931418', 'tblTempVendorCDR_20' ) end [2025-04-17 22:49:18] Production.INFO: ProcessCDR(1,14931418,1,1,2) [2025-04-17 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931418', 'tblTempUsageDetail_20' ) start [2025-04-17 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931418', 'tblTempUsageDetail_20' ) end [2025-04-17 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:49:22] Production.INFO: ==5299== Releasing lock... [2025-04-17 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:49:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:50:06 [end_date_ymd] => 2025-04-17 22:50:06 [RateCDR] => 1 ) [2025-04-17 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:50:06' and `end` < '2025-04-17 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:50:19] Production.INFO: count ==1926 [2025-04-17 22:50:20] Production.ERROR: pbx CDR StartTime 2025-04-17 19:50:06 - End Time 2025-04-17 22:50:06 [2025-04-17 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931423', 'tblTempUsageDetail_20' ) start [2025-04-17 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931423', 'tblTempUsageDetail_20' ) end [2025-04-17 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931423', 'tblTempVendorCDR_20' ) start [2025-04-17 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931423', 'tblTempVendorCDR_20' ) end [2025-04-17 22:50:20] Production.INFO: ProcessCDR(1,14931423,1,1,2) [2025-04-17 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931423', 'tblTempUsageDetail_20' ) start [2025-04-17 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931423', 'tblTempUsageDetail_20' ) end [2025-04-17 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:50:23] Production.INFO: ==5374== Releasing lock... [2025-04-17 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:50:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:51:05 [end_date_ymd] => 2025-04-17 22:51:05 [RateCDR] => 1 ) [2025-04-17 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:51:05' and `end` < '2025-04-17 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:51:18] Production.INFO: count ==1886 [2025-04-17 22:51:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:51:05 - End Time 2025-04-17 22:51:05 [2025-04-17 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931429', 'tblTempUsageDetail_20' ) start [2025-04-17 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931429', 'tblTempUsageDetail_20' ) end [2025-04-17 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931429', 'tblTempVendorCDR_20' ) start [2025-04-17 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931429', 'tblTempVendorCDR_20' ) end [2025-04-17 22:51:19] Production.INFO: ProcessCDR(1,14931429,1,1,2) [2025-04-17 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931429', 'tblTempUsageDetail_20' ) start [2025-04-17 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931429', 'tblTempUsageDetail_20' ) end [2025-04-17 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:51:22] Production.INFO: ==5448== Releasing lock... [2025-04-17 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:51:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:52:06 [end_date_ymd] => 2025-04-17 22:52:06 [RateCDR] => 1 ) [2025-04-17 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-17 19:52:06' and `end` < '2025-04-17 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-17 22:52:19] Production.INFO: count ==1884 [2025-04-17 22:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:52:06 - End Time 2025-04-17 22:52:06 [2025-04-17 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931434', 'tblTempUsageDetail_20' ) start [2025-04-17 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931434', 'tblTempUsageDetail_20' ) end [2025-04-17 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931434', 'tblTempVendorCDR_20' ) start [2025-04-17 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931434', 'tblTempVendorCDR_20' ) end [2025-04-17 22:52:19] Production.INFO: ProcessCDR(1,14931434,1,1,2) [2025-04-17 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931434', 'tblTempUsageDetail_20' ) start [2025-04-17 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931434', 'tblTempUsageDetail_20' ) end [2025-04-17 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:52:23] Production.INFO: ==5530== Releasing lock... [2025-04-17 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:52:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-17 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:53:05 [end_date_ymd] => 2025-04-17 22:53:05 [RateCDR] => 1 ) [2025-04-17 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:53:05' and `end` < '2025-04-17 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:53:18] Production.INFO: count ==1883 [2025-04-17 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:53:05 - End Time 2025-04-17 22:53:05 [2025-04-17 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931439', 'tblTempUsageDetail_20' ) start [2025-04-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931439', 'tblTempUsageDetail_20' ) end [2025-04-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931439', 'tblTempVendorCDR_20' ) start [2025-04-17 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931439', 'tblTempVendorCDR_20' ) end [2025-04-17 22:53:19] Production.INFO: ProcessCDR(1,14931439,1,1,2) [2025-04-17 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931439', 'tblTempUsageDetail_20' ) start [2025-04-17 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931439', 'tblTempUsageDetail_20' ) end [2025-04-17 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:53:22] Production.INFO: ==5648== Releasing lock... [2025-04-17 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:53:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-17 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:54:05 [end_date_ymd] => 2025-04-17 22:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:54:05' and `end` < '2025-04-17 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-17 22:54:18] Production.INFO: count ==1879 [2025-04-17 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:54:05 - End Time 2025-04-17 22:54:05 [2025-04-17 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931444', 'tblTempUsageDetail_20' ) start [2025-04-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931444', 'tblTempUsageDetail_20' ) end [2025-04-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931444', 'tblTempVendorCDR_20' ) start [2025-04-17 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931444', 'tblTempVendorCDR_20' ) end [2025-04-17 22:54:18] Production.INFO: ProcessCDR(1,14931444,1,1,2) [2025-04-17 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931444', 'tblTempUsageDetail_20' ) start [2025-04-17 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931444', 'tblTempUsageDetail_20' ) end [2025-04-17 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:54:22] Production.INFO: ==5718== Releasing lock... [2025-04-17 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:54:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:55:05 [end_date_ymd] => 2025-04-17 22:55:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:55:05' and `end` < '2025-04-17 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-17 22:55:17] Production.INFO: count ==1876 [2025-04-17 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:55:05 - End Time 2025-04-17 22:55:05 [2025-04-17 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931449', 'tblTempUsageDetail_20' ) start [2025-04-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931449', 'tblTempUsageDetail_20' ) end [2025-04-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931449', 'tblTempVendorCDR_20' ) start [2025-04-17 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931449', 'tblTempVendorCDR_20' ) end [2025-04-17 22:55:18] Production.INFO: ProcessCDR(1,14931449,1,1,2) [2025-04-17 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931449', 'tblTempUsageDetail_20' ) start [2025-04-17 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931449', 'tblTempUsageDetail_20' ) end [2025-04-17 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:55:23] Production.INFO: ==5789== Releasing lock... [2025-04-17 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:55:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:56:06 [end_date_ymd] => 2025-04-17 22:56:06 [RateCDR] => 1 ) [2025-04-17 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:56:06' and `end` < '2025-04-17 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:56:19] Production.INFO: count ==1873 [2025-04-17 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:56:06 - End Time 2025-04-17 22:56:06 [2025-04-17 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931454', 'tblTempUsageDetail_20' ) start [2025-04-17 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931454', 'tblTempUsageDetail_20' ) end [2025-04-17 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931454', 'tblTempVendorCDR_20' ) start [2025-04-17 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931454', 'tblTempVendorCDR_20' ) end [2025-04-17 22:56:19] Production.INFO: ProcessCDR(1,14931454,1,1,2) [2025-04-17 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931454', 'tblTempUsageDetail_20' ) start [2025-04-17 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931454', 'tblTempUsageDetail_20' ) end [2025-04-17 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:56:23] Production.INFO: ==5879== Releasing lock... [2025-04-17 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:56:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:57:05 [end_date_ymd] => 2025-04-17 22:57:05 [RateCDR] => 1 ) [2025-04-17 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:57:05' and `end` < '2025-04-17 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:57:18] Production.INFO: count ==1861 [2025-04-17 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 19:57:05 - End Time 2025-04-17 22:57:05 [2025-04-17 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931459', 'tblTempUsageDetail_20' ) start [2025-04-17 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931459', 'tblTempUsageDetail_20' ) end [2025-04-17 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931459', 'tblTempVendorCDR_20' ) start [2025-04-17 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931459', 'tblTempVendorCDR_20' ) end [2025-04-17 22:57:19] Production.INFO: ProcessCDR(1,14931459,1,1,2) [2025-04-17 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931459', 'tblTempUsageDetail_20' ) start [2025-04-17 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931459', 'tblTempUsageDetail_20' ) end [2025-04-17 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:57:22] Production.INFO: ==5949== Releasing lock... [2025-04-17 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:57:22] Production.INFO: 42 MB #Memory Used# [2025-04-17 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:58:05 [end_date_ymd] => 2025-04-17 22:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 19:58:05' and `end` < '2025-04-17 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-17 22:58:18] Production.INFO: count ==1858 [2025-04-17 22:58:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:58:05 - End Time 2025-04-17 22:58:05 [2025-04-17 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931464', 'tblTempUsageDetail_20' ) start [2025-04-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931464', 'tblTempUsageDetail_20' ) end [2025-04-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931464', 'tblTempVendorCDR_20' ) start [2025-04-17 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931464', 'tblTempVendorCDR_20' ) end [2025-04-17 22:58:19] Production.INFO: ProcessCDR(1,14931464,1,1,2) [2025-04-17 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931464', 'tblTempUsageDetail_20' ) start [2025-04-17 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931464', 'tblTempUsageDetail_20' ) end [2025-04-17 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:58:23] Production.INFO: ==6020== Releasing lock... [2025-04-17 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:58:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-17 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 19:59:05 [end_date_ymd] => 2025-04-17 22:59:05 [RateCDR] => 1 ) [2025-04-17 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 19:59:05' and `end` < '2025-04-17 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 22:59:18] Production.INFO: count ==1853 [2025-04-17 22:59:19] Production.ERROR: pbx CDR StartTime 2025-04-17 19:59:05 - End Time 2025-04-17 22:59:05 [2025-04-17 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931469', 'tblTempUsageDetail_20' ) start [2025-04-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931469', 'tblTempUsageDetail_20' ) end [2025-04-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931469', 'tblTempVendorCDR_20' ) start [2025-04-17 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931469', 'tblTempVendorCDR_20' ) end [2025-04-17 22:59:19] Production.INFO: ProcessCDR(1,14931469,1,1,2) [2025-04-17 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931469', 'tblTempUsageDetail_20' ) start [2025-04-17 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931469', 'tblTempUsageDetail_20' ) end [2025-04-17 22:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 22:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 22:59:24] Production.INFO: ==6091== Releasing lock... [2025-04-17 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 22:59:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-17 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:00:06 [end_date_ymd] => 2025-04-17 23:00:06 [RateCDR] => 1 ) [2025-04-17 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-17 20:00:06' and `end` < '2025-04-17 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-17 23:00:19] Production.INFO: count ==1850 [2025-04-17 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:00:06 - End Time 2025-04-17 23:00:06 [2025-04-17 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931475', 'tblTempUsageDetail_20' ) start [2025-04-17 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931475', 'tblTempUsageDetail_20' ) end [2025-04-17 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931475', 'tblTempVendorCDR_20' ) start [2025-04-17 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931475', 'tblTempVendorCDR_20' ) end [2025-04-17 23:00:20] Production.INFO: ProcessCDR(1,14931475,1,1,2) [2025-04-17 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931475', 'tblTempUsageDetail_20' ) start [2025-04-17 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931475', 'tblTempUsageDetail_20' ) end [2025-04-17 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:00:23] Production.INFO: ==6165== Releasing lock... [2025-04-17 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:00:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-17 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:01:06 [end_date_ymd] => 2025-04-17 23:01:06 [RateCDR] => 1 ) [2025-04-17 23:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:01:06' and `end` < '2025-04-17 23:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:01:18] Production.INFO: count ==1807 [2025-04-17 23:01:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:01:06 - End Time 2025-04-17 23:01:06 [2025-04-17 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931480', 'tblTempUsageDetail_20' ) start [2025-04-17 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931480', 'tblTempUsageDetail_20' ) end [2025-04-17 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931480', 'tblTempVendorCDR_20' ) start [2025-04-17 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931480', 'tblTempVendorCDR_20' ) end [2025-04-17 23:01:19] Production.INFO: ProcessCDR(1,14931480,1,1,2) [2025-04-17 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931480', 'tblTempUsageDetail_20' ) start [2025-04-17 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931480', 'tblTempUsageDetail_20' ) end [2025-04-17 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:01:24] Production.INFO: ==6328== Releasing lock... [2025-04-17 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:01:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-17 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:02:05 [end_date_ymd] => 2025-04-17 23:02:05 [RateCDR] => 1 ) [2025-04-17 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:02:05' and `end` < '2025-04-17 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:02:18] Production.INFO: count ==1802 [2025-04-17 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:02:05 - End Time 2025-04-17 23:02:05 [2025-04-17 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931485', 'tblTempUsageDetail_20' ) start [2025-04-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931485', 'tblTempUsageDetail_20' ) end [2025-04-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931485', 'tblTempVendorCDR_20' ) start [2025-04-17 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931485', 'tblTempVendorCDR_20' ) end [2025-04-17 23:02:18] Production.INFO: ProcessCDR(1,14931485,1,1,2) [2025-04-17 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931485', 'tblTempUsageDetail_20' ) start [2025-04-17 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931485', 'tblTempUsageDetail_20' ) end [2025-04-17 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:02:23] Production.INFO: ==6398== Releasing lock... [2025-04-17 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-17 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:03:05 [end_date_ymd] => 2025-04-17 23:03:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:03:05' and `end` < '2025-04-17 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-17 23:03:18] Production.INFO: count ==1794 [2025-04-17 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:03:05 - End Time 2025-04-17 23:03:05 [2025-04-17 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931490', 'tblTempUsageDetail_20' ) start [2025-04-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931490', 'tblTempUsageDetail_20' ) end [2025-04-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931490', 'tblTempVendorCDR_20' ) start [2025-04-17 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931490', 'tblTempVendorCDR_20' ) end [2025-04-17 23:03:18] Production.INFO: ProcessCDR(1,14931490,1,1,2) [2025-04-17 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931490', 'tblTempUsageDetail_20' ) start [2025-04-17 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931490', 'tblTempUsageDetail_20' ) end [2025-04-17 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:03:22] Production.INFO: ==6469== Releasing lock... [2025-04-17 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:03:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-17 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:04:05 [end_date_ymd] => 2025-04-17 23:04:05 [RateCDR] => 1 ) [2025-04-17 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:04:05' and `end` < '2025-04-17 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:04:18] Production.INFO: count ==1790 [2025-04-17 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:04:05 - End Time 2025-04-17 23:04:05 [2025-04-17 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931495', 'tblTempUsageDetail_20' ) start [2025-04-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931495', 'tblTempUsageDetail_20' ) end [2025-04-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931495', 'tblTempVendorCDR_20' ) start [2025-04-17 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931495', 'tblTempVendorCDR_20' ) end [2025-04-17 23:04:18] Production.INFO: ProcessCDR(1,14931495,1,1,2) [2025-04-17 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931495', 'tblTempUsageDetail_20' ) start [2025-04-17 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931495', 'tblTempUsageDetail_20' ) end [2025-04-17 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:04:22] Production.INFO: ==6540== Releasing lock... [2025-04-17 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:04:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-17 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:05:05 [end_date_ymd] => 2025-04-17 23:05:05 [RateCDR] => 1 ) [2025-04-17 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:05:05' and `end` < '2025-04-17 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:05:18] Production.INFO: count ==1780 [2025-04-17 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:05:05 - End Time 2025-04-17 23:05:05 [2025-04-17 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931500', 'tblTempUsageDetail_20' ) start [2025-04-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931500', 'tblTempUsageDetail_20' ) end [2025-04-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931500', 'tblTempVendorCDR_20' ) start [2025-04-17 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931500', 'tblTempVendorCDR_20' ) end [2025-04-17 23:05:18] Production.INFO: ProcessCDR(1,14931500,1,1,2) [2025-04-17 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931500', 'tblTempUsageDetail_20' ) start [2025-04-17 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931500', 'tblTempUsageDetail_20' ) end [2025-04-17 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:05:23] Production.INFO: ==6694== Releasing lock... [2025-04-17 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:05:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-17 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:06:05 [end_date_ymd] => 2025-04-17 23:06:05 [RateCDR] => 1 ) [2025-04-17 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:06:05' and `end` < '2025-04-17 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:06:18] Production.INFO: count ==1777 [2025-04-17 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:06:05 - End Time 2025-04-17 23:06:05 [2025-04-17 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931505', 'tblTempUsageDetail_20' ) start [2025-04-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931505', 'tblTempUsageDetail_20' ) end [2025-04-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931505', 'tblTempVendorCDR_20' ) start [2025-04-17 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931505', 'tblTempVendorCDR_20' ) end [2025-04-17 23:06:18] Production.INFO: ProcessCDR(1,14931505,1,1,2) [2025-04-17 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931505', 'tblTempUsageDetail_20' ) start [2025-04-17 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931505', 'tblTempUsageDetail_20' ) end [2025-04-17 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:06:22] Production.INFO: ==6766== Releasing lock... [2025-04-17 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-17 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:07:06 [end_date_ymd] => 2025-04-17 23:07:06 [RateCDR] => 1 ) [2025-04-17 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-17 20:07:06' and `end` < '2025-04-17 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-17 23:07:18] Production.INFO: count ==1774 [2025-04-17 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:07:06 - End Time 2025-04-17 23:07:06 [2025-04-17 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931510', 'tblTempUsageDetail_20' ) start [2025-04-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931510', 'tblTempUsageDetail_20' ) end [2025-04-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931510', 'tblTempVendorCDR_20' ) start [2025-04-17 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931510', 'tblTempVendorCDR_20' ) end [2025-04-17 23:07:19] Production.INFO: ProcessCDR(1,14931510,1,1,2) [2025-04-17 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931510', 'tblTempUsageDetail_20' ) start [2025-04-17 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931510', 'tblTempUsageDetail_20' ) end [2025-04-17 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:07:22] Production.INFO: ==6841== Releasing lock... [2025-04-17 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:07:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-17 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:08:05 [end_date_ymd] => 2025-04-17 23:08:05 [RateCDR] => 1 ) [2025-04-17 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:08:05' and `end` < '2025-04-17 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:08:18] Production.INFO: count ==1760 [2025-04-17 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:08:05 - End Time 2025-04-17 23:08:05 [2025-04-17 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931515', 'tblTempUsageDetail_20' ) start [2025-04-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931515', 'tblTempUsageDetail_20' ) end [2025-04-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931515', 'tblTempVendorCDR_20' ) start [2025-04-17 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931515', 'tblTempVendorCDR_20' ) end [2025-04-17 23:08:18] Production.INFO: ProcessCDR(1,14931515,1,1,2) [2025-04-17 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931515', 'tblTempUsageDetail_20' ) start [2025-04-17 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931515', 'tblTempUsageDetail_20' ) end [2025-04-17 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:08:22] Production.INFO: ==7035== Releasing lock... [2025-04-17 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:08:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-17 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:09:05 [end_date_ymd] => 2025-04-17 23:09:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:09:05' and `end` < '2025-04-17 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-17 23:09:18] Production.INFO: count ==1758 [2025-04-17 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:09:05 - End Time 2025-04-17 23:09:05 [2025-04-17 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931520', 'tblTempUsageDetail_20' ) start [2025-04-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931520', 'tblTempUsageDetail_20' ) end [2025-04-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931520', 'tblTempVendorCDR_20' ) start [2025-04-17 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931520', 'tblTempVendorCDR_20' ) end [2025-04-17 23:09:18] Production.INFO: ProcessCDR(1,14931520,1,1,2) [2025-04-17 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931520', 'tblTempUsageDetail_20' ) start [2025-04-17 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931520', 'tblTempUsageDetail_20' ) end [2025-04-17 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:09:22] Production.INFO: ==7105== Releasing lock... [2025-04-17 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:09:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-17 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:10:06 [end_date_ymd] => 2025-04-17 23:10:06 [RateCDR] => 1 ) [2025-04-17 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-17 20:10:06' and `end` < '2025-04-17 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-17 23:10:19] Production.INFO: count ==1755 [2025-04-17 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:10:06 - End Time 2025-04-17 23:10:06 [2025-04-17 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931525', 'tblTempUsageDetail_20' ) start [2025-04-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931525', 'tblTempUsageDetail_20' ) end [2025-04-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931525', 'tblTempVendorCDR_20' ) start [2025-04-17 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931525', 'tblTempVendorCDR_20' ) end [2025-04-17 23:10:19] Production.INFO: ProcessCDR(1,14931525,1,1,2) [2025-04-17 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931525', 'tblTempUsageDetail_20' ) start [2025-04-17 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931525', 'tblTempUsageDetail_20' ) end [2025-04-17 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:10:24] Production.INFO: ==7178== Releasing lock... [2025-04-17 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:10:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-17 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:11:04 [end_date_ymd] => 2025-04-17 23:11:04 [RateCDR] => 1 ) [2025-04-17 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:11:04' and `end` < '2025-04-17 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:11:17] Production.INFO: count ==1698 [2025-04-17 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:11:04 - End Time 2025-04-17 23:11:04 [2025-04-17 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931531', 'tblTempUsageDetail_20' ) start [2025-04-17 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931531', 'tblTempUsageDetail_20' ) end [2025-04-17 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931531', 'tblTempVendorCDR_20' ) start [2025-04-17 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931531', 'tblTempVendorCDR_20' ) end [2025-04-17 23:11:18] Production.INFO: ProcessCDR(1,14931531,1,1,2) [2025-04-17 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931531', 'tblTempUsageDetail_20' ) start [2025-04-17 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931531', 'tblTempUsageDetail_20' ) end [2025-04-17 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:11:21] Production.INFO: ==7251== Releasing lock... [2025-04-17 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:11:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:12:05 [end_date_ymd] => 2025-04-17 23:12:05 [RateCDR] => 1 ) [2025-04-17 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:12:05' and `end` < '2025-04-17 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:12:18] Production.INFO: count ==1694 [2025-04-17 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:12:05 - End Time 2025-04-17 23:12:05 [2025-04-17 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931536', 'tblTempUsageDetail_20' ) start [2025-04-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931536', 'tblTempUsageDetail_20' ) end [2025-04-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931536', 'tblTempVendorCDR_20' ) start [2025-04-17 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931536', 'tblTempVendorCDR_20' ) end [2025-04-17 23:12:18] Production.INFO: ProcessCDR(1,14931536,1,1,2) [2025-04-17 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931536', 'tblTempUsageDetail_20' ) start [2025-04-17 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931536', 'tblTempUsageDetail_20' ) end [2025-04-17 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:12:22] Production.INFO: ==7399== Releasing lock... [2025-04-17 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:12:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:13:05 [end_date_ymd] => 2025-04-17 23:13:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:13:05' and `end` < '2025-04-17 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-17 23:13:18] Production.INFO: count ==1693 [2025-04-17 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:13:05 - End Time 2025-04-17 23:13:05 [2025-04-17 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931541', 'tblTempUsageDetail_20' ) start [2025-04-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931541', 'tblTempUsageDetail_20' ) end [2025-04-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931541', 'tblTempVendorCDR_20' ) start [2025-04-17 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931541', 'tblTempVendorCDR_20' ) end [2025-04-17 23:13:18] Production.INFO: ProcessCDR(1,14931541,1,1,2) [2025-04-17 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931541', 'tblTempUsageDetail_20' ) start [2025-04-17 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931541', 'tblTempUsageDetail_20' ) end [2025-04-17 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:13:21] Production.INFO: ==7470== Releasing lock... [2025-04-17 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:13:21] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:14:05 [end_date_ymd] => 2025-04-17 23:14:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:14:05' and `end` < '2025-04-17 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-17 23:14:18] Production.INFO: count ==1692 [2025-04-17 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:14:05 - End Time 2025-04-17 23:14:05 [2025-04-17 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931546', 'tblTempUsageDetail_20' ) start [2025-04-17 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931546', 'tblTempUsageDetail_20' ) end [2025-04-17 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931546', 'tblTempVendorCDR_20' ) start [2025-04-17 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931546', 'tblTempVendorCDR_20' ) end [2025-04-17 23:14:19] Production.INFO: ProcessCDR(1,14931546,1,1,2) [2025-04-17 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931546', 'tblTempUsageDetail_20' ) start [2025-04-17 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931546', 'tblTempUsageDetail_20' ) end [2025-04-17 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:14:22] Production.INFO: ==7542== Releasing lock... [2025-04-17 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:14:22] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:15:04 [end_date_ymd] => 2025-04-17 23:15:04 [RateCDR] => 1 ) [2025-04-17 23:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:15:04' and `end` < '2025-04-17 23:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:15:17] Production.INFO: count ==1693 [2025-04-17 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:15:04 - End Time 2025-04-17 23:15:04 [2025-04-17 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931551', 'tblTempUsageDetail_20' ) start [2025-04-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931551', 'tblTempUsageDetail_20' ) end [2025-04-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931551', 'tblTempVendorCDR_20' ) start [2025-04-17 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931551', 'tblTempVendorCDR_20' ) end [2025-04-17 23:15:18] Production.INFO: ProcessCDR(1,14931551,1,1,2) [2025-04-17 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931551', 'tblTempUsageDetail_20' ) start [2025-04-17 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931551', 'tblTempUsageDetail_20' ) end [2025-04-17 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:15:23] Production.INFO: ==7691== Releasing lock... [2025-04-17 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:15:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:16:05 [end_date_ymd] => 2025-04-17 23:16:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:16:05' and `end` < '2025-04-17 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-17 23:16:18] Production.INFO: count ==1684 [2025-04-17 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:16:05 - End Time 2025-04-17 23:16:05 [2025-04-17 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931556', 'tblTempUsageDetail_20' ) start [2025-04-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931556', 'tblTempUsageDetail_20' ) end [2025-04-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931556', 'tblTempVendorCDR_20' ) start [2025-04-17 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931556', 'tblTempVendorCDR_20' ) end [2025-04-17 23:16:18] Production.INFO: ProcessCDR(1,14931556,1,1,2) [2025-04-17 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931556', 'tblTempUsageDetail_20' ) start [2025-04-17 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931556', 'tblTempUsageDetail_20' ) end [2025-04-17 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:16:22] Production.INFO: ==7761== Releasing lock... [2025-04-17 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:16:22] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:17:06 [end_date_ymd] => 2025-04-17 23:17:06 [RateCDR] => 1 ) [2025-04-17 23:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:17:06' and `end` < '2025-04-17 23:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:17:18] Production.INFO: count ==1684 [2025-04-17 23:17:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:17:06 - End Time 2025-04-17 23:17:06 [2025-04-17 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931561', 'tblTempUsageDetail_20' ) start [2025-04-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931561', 'tblTempUsageDetail_20' ) end [2025-04-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931561', 'tblTempVendorCDR_20' ) start [2025-04-17 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931561', 'tblTempVendorCDR_20' ) end [2025-04-17 23:17:19] Production.INFO: ProcessCDR(1,14931561,1,1,2) [2025-04-17 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931561', 'tblTempUsageDetail_20' ) start [2025-04-17 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931561', 'tblTempUsageDetail_20' ) end [2025-04-17 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:17:22] Production.INFO: ==7832== Releasing lock... [2025-04-17 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:18:05 [end_date_ymd] => 2025-04-17 23:18:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:18:05' and `end` < '2025-04-17 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-17 23:18:18] Production.INFO: count ==1689 [2025-04-17 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:18:05 - End Time 2025-04-17 23:18:05 [2025-04-17 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931566', 'tblTempUsageDetail_20' ) start [2025-04-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931566', 'tblTempUsageDetail_20' ) end [2025-04-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931566', 'tblTempVendorCDR_20' ) start [2025-04-17 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931566', 'tblTempVendorCDR_20' ) end [2025-04-17 23:18:18] Production.INFO: ProcessCDR(1,14931566,1,1,2) [2025-04-17 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931566', 'tblTempUsageDetail_20' ) start [2025-04-17 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931566', 'tblTempUsageDetail_20' ) end [2025-04-17 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:18:21] Production.INFO: ==7904== Releasing lock... [2025-04-17 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:18:21] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:19:05 [end_date_ymd] => 2025-04-17 23:19:05 [RateCDR] => 1 ) [2025-04-17 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:19:05' and `end` < '2025-04-17 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:19:18] Production.INFO: count ==1691 [2025-04-17 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:19:05 - End Time 2025-04-17 23:19:05 [2025-04-17 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931571', 'tblTempUsageDetail_20' ) start [2025-04-17 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931571', 'tblTempUsageDetail_20' ) end [2025-04-17 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931571', 'tblTempVendorCDR_20' ) start [2025-04-17 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931571', 'tblTempVendorCDR_20' ) end [2025-04-17 23:19:19] Production.INFO: ProcessCDR(1,14931571,1,1,2) [2025-04-17 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931571', 'tblTempUsageDetail_20' ) start [2025-04-17 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931571', 'tblTempUsageDetail_20' ) end [2025-04-17 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:19:22] Production.INFO: ==7979== Releasing lock... [2025-04-17 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:19:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:20:06 [end_date_ymd] => 2025-04-17 23:20:06 [RateCDR] => 1 ) [2025-04-17 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-17 20:20:06' and `end` < '2025-04-17 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-17 23:20:19] Production.INFO: count ==1688 [2025-04-17 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:20:06 - End Time 2025-04-17 23:20:06 [2025-04-17 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931577', 'tblTempUsageDetail_20' ) start [2025-04-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931577', 'tblTempUsageDetail_20' ) end [2025-04-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931577', 'tblTempVendorCDR_20' ) start [2025-04-17 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931577', 'tblTempVendorCDR_20' ) end [2025-04-17 23:20:19] Production.INFO: ProcessCDR(1,14931577,1,1,2) [2025-04-17 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931577', 'tblTempUsageDetail_20' ) start [2025-04-17 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931577', 'tblTempUsageDetail_20' ) end [2025-04-17 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:20:24] Production.INFO: ==8054== Releasing lock... [2025-04-17 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:20:24] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:21:05 [end_date_ymd] => 2025-04-17 23:21:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:21:05' and `end` < '2025-04-17 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-17 23:21:18] Production.INFO: count ==1679 [2025-04-17 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:21:05 - End Time 2025-04-17 23:21:05 [2025-04-17 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931582', 'tblTempUsageDetail_20' ) start [2025-04-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931582', 'tblTempUsageDetail_20' ) end [2025-04-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931582', 'tblTempVendorCDR_20' ) start [2025-04-17 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931582', 'tblTempVendorCDR_20' ) end [2025-04-17 23:21:18] Production.INFO: ProcessCDR(1,14931582,1,1,2) [2025-04-17 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931582', 'tblTempUsageDetail_20' ) start [2025-04-17 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931582', 'tblTempUsageDetail_20' ) end [2025-04-17 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:21:23] Production.INFO: ==8127== Releasing lock... [2025-04-17 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:21:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:22:05 [end_date_ymd] => 2025-04-17 23:22:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:22:05' and `end` < '2025-04-17 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-17 23:22:18] Production.INFO: count ==1677 [2025-04-17 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:22:05 - End Time 2025-04-17 23:22:05 [2025-04-17 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931587', 'tblTempUsageDetail_20' ) start [2025-04-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931587', 'tblTempUsageDetail_20' ) end [2025-04-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931587', 'tblTempVendorCDR_20' ) start [2025-04-17 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931587', 'tblTempVendorCDR_20' ) end [2025-04-17 23:22:18] Production.INFO: ProcessCDR(1,14931587,1,1,2) [2025-04-17 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931587', 'tblTempUsageDetail_20' ) start [2025-04-17 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931587', 'tblTempUsageDetail_20' ) end [2025-04-17 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:22:23] Production.INFO: ==8197== Releasing lock... [2025-04-17 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:22:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:23:05 [end_date_ymd] => 2025-04-17 23:23:05 [RateCDR] => 1 ) [2025-04-17 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:23:05' and `end` < '2025-04-17 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:23:18] Production.INFO: count ==1682 [2025-04-17 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:23:05 - End Time 2025-04-17 23:23:05 [2025-04-17 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931592', 'tblTempUsageDetail_20' ) start [2025-04-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931592', 'tblTempUsageDetail_20' ) end [2025-04-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931592', 'tblTempVendorCDR_20' ) start [2025-04-17 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931592', 'tblTempVendorCDR_20' ) end [2025-04-17 23:23:18] Production.INFO: ProcessCDR(1,14931592,1,1,2) [2025-04-17 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931592', 'tblTempUsageDetail_20' ) start [2025-04-17 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931592', 'tblTempUsageDetail_20' ) end [2025-04-17 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:23:23] Production.INFO: ==8268== Releasing lock... [2025-04-17 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:23:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-17 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:24:04 [end_date_ymd] => 2025-04-17 23:24:04 [RateCDR] => 1 ) [2025-04-17 23:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:24:04' and `end` < '2025-04-17 23:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:24:17] Production.INFO: count ==1683 [2025-04-17 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:24:04 - End Time 2025-04-17 23:24:04 [2025-04-17 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931597', 'tblTempUsageDetail_20' ) start [2025-04-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931597', 'tblTempUsageDetail_20' ) end [2025-04-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931597', 'tblTempVendorCDR_20' ) start [2025-04-17 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931597', 'tblTempVendorCDR_20' ) end [2025-04-17 23:24:18] Production.INFO: ProcessCDR(1,14931597,1,1,2) [2025-04-17 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931597', 'tblTempUsageDetail_20' ) start [2025-04-17 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931597', 'tblTempUsageDetail_20' ) end [2025-04-17 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:24:21] Production.INFO: ==8396== Releasing lock... [2025-04-17 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:24:21] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:25:05 [end_date_ymd] => 2025-04-17 23:25:05 [RateCDR] => 1 ) [2025-04-17 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:25:05' and `end` < '2025-04-17 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:25:18] Production.INFO: count ==1683 [2025-04-17 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:25:05 - End Time 2025-04-17 23:25:05 [2025-04-17 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931602', 'tblTempUsageDetail_20' ) start [2025-04-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931602', 'tblTempUsageDetail_20' ) end [2025-04-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931602', 'tblTempVendorCDR_20' ) start [2025-04-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931602', 'tblTempVendorCDR_20' ) end [2025-04-17 23:25:18] Production.INFO: ProcessCDR(1,14931602,1,1,2) [2025-04-17 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931602', 'tblTempUsageDetail_20' ) start [2025-04-17 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931602', 'tblTempUsageDetail_20' ) end [2025-04-17 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:25:22] Production.INFO: ==8470== Releasing lock... [2025-04-17 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:26:05 [end_date_ymd] => 2025-04-17 23:26:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:26:05' and `end` < '2025-04-17 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-17 23:26:18] Production.INFO: count ==1681 [2025-04-17 23:26:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:26:05 - End Time 2025-04-17 23:26:05 [2025-04-17 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931607', 'tblTempUsageDetail_20' ) start [2025-04-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931607', 'tblTempUsageDetail_20' ) end [2025-04-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931607', 'tblTempVendorCDR_20' ) start [2025-04-17 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931607', 'tblTempVendorCDR_20' ) end [2025-04-17 23:26:19] Production.INFO: ProcessCDR(1,14931607,1,1,2) [2025-04-17 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931607', 'tblTempUsageDetail_20' ) start [2025-04-17 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931607', 'tblTempUsageDetail_20' ) end [2025-04-17 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:26:22] Production.INFO: ==8542== Releasing lock... [2025-04-17 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:26:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:27:05 [end_date_ymd] => 2025-04-17 23:27:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:27:05' and `end` < '2025-04-17 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-17 23:27:17] Production.INFO: count ==1689 [2025-04-17 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:27:05 - End Time 2025-04-17 23:27:05 [2025-04-17 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931612', 'tblTempUsageDetail_20' ) start [2025-04-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931612', 'tblTempUsageDetail_20' ) end [2025-04-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931612', 'tblTempVendorCDR_20' ) start [2025-04-17 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931612', 'tblTempVendorCDR_20' ) end [2025-04-17 23:27:18] Production.INFO: ProcessCDR(1,14931612,1,1,2) [2025-04-17 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931612', 'tblTempUsageDetail_20' ) start [2025-04-17 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931612', 'tblTempUsageDetail_20' ) end [2025-04-17 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:27:21] Production.INFO: ==8613== Releasing lock... [2025-04-17 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:27:21] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:28:06 [end_date_ymd] => 2025-04-17 23:28:06 [RateCDR] => 1 ) [2025-04-17 23: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-17 20:28:06' and `end` < '2025-04-17 23: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-17 23:28:19] Production.INFO: count ==1689 [2025-04-17 23:28:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:28:06 - End Time 2025-04-17 23:28:06 [2025-04-17 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931617', 'tblTempUsageDetail_20' ) start [2025-04-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931617', 'tblTempUsageDetail_20' ) end [2025-04-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931617', 'tblTempVendorCDR_20' ) start [2025-04-17 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931617', 'tblTempVendorCDR_20' ) end [2025-04-17 23:28:19] Production.INFO: ProcessCDR(1,14931617,1,1,2) [2025-04-17 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931617', 'tblTempUsageDetail_20' ) start [2025-04-17 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931617', 'tblTempUsageDetail_20' ) end [2025-04-17 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:28:23] Production.INFO: ==8683== Releasing lock... [2025-04-17 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:29:05 [end_date_ymd] => 2025-04-17 23:29:05 [RateCDR] => 1 ) [2025-04-17 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:29:05' and `end` < '2025-04-17 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:29:18] Production.INFO: count ==1689 [2025-04-17 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:29:05 - End Time 2025-04-17 23:29:05 [2025-04-17 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931622', 'tblTempUsageDetail_20' ) start [2025-04-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931622', 'tblTempUsageDetail_20' ) end [2025-04-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931622', 'tblTempVendorCDR_20' ) start [2025-04-17 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931622', 'tblTempVendorCDR_20' ) end [2025-04-17 23:29:18] Production.INFO: ProcessCDR(1,14931622,1,1,2) [2025-04-17 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931622', 'tblTempUsageDetail_20' ) start [2025-04-17 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931622', 'tblTempUsageDetail_20' ) end [2025-04-17 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:29:23] Production.INFO: ==8753== Releasing lock... [2025-04-17 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:29:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:30:06 [end_date_ymd] => 2025-04-17 23:30:06 [RateCDR] => 1 ) [2025-04-17 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-17 20:30:06' and `end` < '2025-04-17 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-17 23:30:19] Production.INFO: count ==1685 [2025-04-17 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:30:06 - End Time 2025-04-17 23:30:06 [2025-04-17 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931628', 'tblTempUsageDetail_20' ) start [2025-04-17 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931628', 'tblTempUsageDetail_20' ) end [2025-04-17 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931628', 'tblTempVendorCDR_20' ) start [2025-04-17 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931628', 'tblTempVendorCDR_20' ) end [2025-04-17 23:30:19] Production.INFO: ProcessCDR(1,14931628,1,1,2) [2025-04-17 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931628', 'tblTempUsageDetail_20' ) start [2025-04-17 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931628', 'tblTempUsageDetail_20' ) end [2025-04-17 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:30:23] Production.INFO: ==8835== Releasing lock... [2025-04-17 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:30:23] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:31:05 [end_date_ymd] => 2025-04-17 23:31:05 [RateCDR] => 1 ) [2025-04-17 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:31:05' and `end` < '2025-04-17 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:31:18] Production.INFO: count ==1681 [2025-04-17 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:31:05 - End Time 2025-04-17 23:31:05 [2025-04-17 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931633', 'tblTempUsageDetail_20' ) start [2025-04-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931633', 'tblTempUsageDetail_20' ) end [2025-04-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931633', 'tblTempVendorCDR_20' ) start [2025-04-17 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931633', 'tblTempVendorCDR_20' ) end [2025-04-17 23:31:18] Production.INFO: ProcessCDR(1,14931633,1,1,2) [2025-04-17 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931633', 'tblTempUsageDetail_20' ) start [2025-04-17 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931633', 'tblTempUsageDetail_20' ) end [2025-04-17 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:31:21] Production.INFO: ==8919== Releasing lock... [2025-04-17 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:31:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:32:05 [end_date_ymd] => 2025-04-17 23:32:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:32:05' and `end` < '2025-04-17 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-17 23:32:18] Production.INFO: count ==1678 [2025-04-17 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:32:05 - End Time 2025-04-17 23:32:05 [2025-04-17 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931638', 'tblTempUsageDetail_20' ) start [2025-04-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931638', 'tblTempUsageDetail_20' ) end [2025-04-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931638', 'tblTempVendorCDR_20' ) start [2025-04-17 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931638', 'tblTempVendorCDR_20' ) end [2025-04-17 23:32:18] Production.INFO: ProcessCDR(1,14931638,1,1,2) [2025-04-17 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931638', 'tblTempUsageDetail_20' ) start [2025-04-17 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931638', 'tblTempUsageDetail_20' ) end [2025-04-17 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:32:21] Production.INFO: ==8990== Releasing lock... [2025-04-17 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:32:21] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:33:05 [end_date_ymd] => 2025-04-17 23:33:05 [RateCDR] => 1 ) [2025-04-17 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:33:05' and `end` < '2025-04-17 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:33:18] Production.INFO: count ==1676 [2025-04-17 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:33:05 - End Time 2025-04-17 23:33:05 [2025-04-17 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931643', 'tblTempUsageDetail_20' ) start [2025-04-17 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931643', 'tblTempUsageDetail_20' ) end [2025-04-17 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931643', 'tblTempVendorCDR_20' ) start [2025-04-17 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931643', 'tblTempVendorCDR_20' ) end [2025-04-17 23:33:19] Production.INFO: ProcessCDR(1,14931643,1,1,2) [2025-04-17 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931643', 'tblTempUsageDetail_20' ) start [2025-04-17 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931643', 'tblTempUsageDetail_20' ) end [2025-04-17 23:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:33:24] Production.INFO: ==9065== Releasing lock... [2025-04-17 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:33:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:34:05 [end_date_ymd] => 2025-04-17 23:34:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:34:05' and `end` < '2025-04-17 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-17 23:34:17] Production.INFO: count ==1674 [2025-04-17 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:34:05 - End Time 2025-04-17 23:34:05 [2025-04-17 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931648', 'tblTempUsageDetail_20' ) start [2025-04-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931648', 'tblTempUsageDetail_20' ) end [2025-04-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931648', 'tblTempVendorCDR_20' ) start [2025-04-17 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931648', 'tblTempVendorCDR_20' ) end [2025-04-17 23:34:18] Production.INFO: ProcessCDR(1,14931648,1,1,2) [2025-04-17 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931648', 'tblTempUsageDetail_20' ) start [2025-04-17 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931648', 'tblTempUsageDetail_20' ) end [2025-04-17 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:34:21] Production.INFO: ==9135== Releasing lock... [2025-04-17 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:34:21] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:35:05 [end_date_ymd] => 2025-04-17 23:35:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:35:05' and `end` < '2025-04-17 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-17 23:35:18] Production.INFO: count ==1671 [2025-04-17 23:35:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:35:05 - End Time 2025-04-17 23:35:05 [2025-04-17 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931653', 'tblTempUsageDetail_20' ) start [2025-04-17 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931653', 'tblTempUsageDetail_20' ) end [2025-04-17 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931653', 'tblTempVendorCDR_20' ) start [2025-04-17 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931653', 'tblTempVendorCDR_20' ) end [2025-04-17 23:35:19] Production.INFO: ProcessCDR(1,14931653,1,1,2) [2025-04-17 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931653', 'tblTempUsageDetail_20' ) start [2025-04-17 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931653', 'tblTempUsageDetail_20' ) end [2025-04-17 23:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:35:23] Production.INFO: ==9208== Releasing lock... [2025-04-17 23:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:35:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:36:05 [end_date_ymd] => 2025-04-17 23:36:05 [RateCDR] => 1 ) [2025-04-17 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:36:05' and `end` < '2025-04-17 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:36:18] Production.INFO: count ==1666 [2025-04-17 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:36:05 - End Time 2025-04-17 23:36:05 [2025-04-17 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931658', 'tblTempUsageDetail_20' ) start [2025-04-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931658', 'tblTempUsageDetail_20' ) end [2025-04-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931658', 'tblTempVendorCDR_20' ) start [2025-04-17 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931658', 'tblTempVendorCDR_20' ) end [2025-04-17 23:36:18] Production.INFO: ProcessCDR(1,14931658,1,1,2) [2025-04-17 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931658', 'tblTempUsageDetail_20' ) start [2025-04-17 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931658', 'tblTempUsageDetail_20' ) end [2025-04-17 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:36:22] Production.INFO: ==9277== Releasing lock... [2025-04-17 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:37:05 [end_date_ymd] => 2025-04-17 23:37:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:37:05' and `end` < '2025-04-17 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-17 23:37:18] Production.INFO: count ==1662 [2025-04-17 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:37:05 - End Time 2025-04-17 23:37:05 [2025-04-17 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931663', 'tblTempUsageDetail_20' ) start [2025-04-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931663', 'tblTempUsageDetail_20' ) end [2025-04-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931663', 'tblTempVendorCDR_20' ) start [2025-04-17 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931663', 'tblTempVendorCDR_20' ) end [2025-04-17 23:37:18] Production.INFO: ProcessCDR(1,14931663,1,1,2) [2025-04-17 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931663', 'tblTempUsageDetail_20' ) start [2025-04-17 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931663', 'tblTempUsageDetail_20' ) end [2025-04-17 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:37:21] Production.INFO: ==9366== Releasing lock... [2025-04-17 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:37:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:38:05 [end_date_ymd] => 2025-04-17 23:38:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:38:05' and `end` < '2025-04-17 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-17 23:38:18] Production.INFO: count ==1658 [2025-04-17 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:38:05 - End Time 2025-04-17 23:38:05 [2025-04-17 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931668', 'tblTempUsageDetail_20' ) start [2025-04-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931668', 'tblTempUsageDetail_20' ) end [2025-04-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931668', 'tblTempVendorCDR_20' ) start [2025-04-17 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931668', 'tblTempVendorCDR_20' ) end [2025-04-17 23:38:18] Production.INFO: ProcessCDR(1,14931668,1,1,2) [2025-04-17 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931668', 'tblTempUsageDetail_20' ) start [2025-04-17 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931668', 'tblTempUsageDetail_20' ) end [2025-04-17 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:38:22] Production.INFO: ==9440== Releasing lock... [2025-04-17 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:38:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:39:05 [end_date_ymd] => 2025-04-17 23:39:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:39:05' and `end` < '2025-04-17 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-17 23:39:18] Production.INFO: count ==1663 [2025-04-17 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:39:05 - End Time 2025-04-17 23:39:05 [2025-04-17 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931673', 'tblTempUsageDetail_20' ) start [2025-04-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931673', 'tblTempUsageDetail_20' ) end [2025-04-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931673', 'tblTempVendorCDR_20' ) start [2025-04-17 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931673', 'tblTempVendorCDR_20' ) end [2025-04-17 23:39:18] Production.INFO: ProcessCDR(1,14931673,1,1,2) [2025-04-17 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931673', 'tblTempUsageDetail_20' ) start [2025-04-17 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931673', 'tblTempUsageDetail_20' ) end [2025-04-17 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:39:22] Production.INFO: ==9550== Releasing lock... [2025-04-17 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:39:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:40:06 [end_date_ymd] => 2025-04-17 23:40:06 [RateCDR] => 1 ) [2025-04-17 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:40:06' and `end` < '2025-04-17 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:40:19] Production.INFO: count ==1659 [2025-04-17 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:40:06 - End Time 2025-04-17 23:40:06 [2025-04-17 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931679', 'tblTempUsageDetail_20' ) start [2025-04-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931679', 'tblTempUsageDetail_20' ) end [2025-04-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931679', 'tblTempVendorCDR_20' ) start [2025-04-17 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931679', 'tblTempVendorCDR_20' ) end [2025-04-17 23:40:19] Production.INFO: ProcessCDR(1,14931679,1,1,2) [2025-04-17 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931679', 'tblTempUsageDetail_20' ) start [2025-04-17 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931679', 'tblTempUsageDetail_20' ) end [2025-04-17 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:40:23] Production.INFO: ==9626== Releasing lock... [2025-04-17 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:40:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:41:05 [end_date_ymd] => 2025-04-17 23:41:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:41:05' and `end` < '2025-04-17 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-17 23:41:18] Production.INFO: count ==1674 [2025-04-17 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:41:05 - End Time 2025-04-17 23:41:05 [2025-04-17 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931684', 'tblTempUsageDetail_20' ) start [2025-04-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931684', 'tblTempUsageDetail_20' ) end [2025-04-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931684', 'tblTempVendorCDR_20' ) start [2025-04-17 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931684', 'tblTempVendorCDR_20' ) end [2025-04-17 23:41:18] Production.INFO: ProcessCDR(1,14931684,1,1,2) [2025-04-17 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931684', 'tblTempUsageDetail_20' ) start [2025-04-17 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931684', 'tblTempUsageDetail_20' ) end [2025-04-17 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:41:22] Production.INFO: ==9703== Releasing lock... [2025-04-17 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:42:05 [end_date_ymd] => 2025-04-17 23:42:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:42:05' and `end` < '2025-04-17 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:42:18] Production.INFO: count ==1674 [2025-04-17 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:42:05 - End Time 2025-04-17 23:42:05 [2025-04-17 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931689', 'tblTempUsageDetail_20' ) start [2025-04-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931689', 'tblTempUsageDetail_20' ) end [2025-04-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931689', 'tblTempVendorCDR_20' ) start [2025-04-17 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931689', 'tblTempVendorCDR_20' ) end [2025-04-17 23:42:19] Production.INFO: ProcessCDR(1,14931689,1,1,2) [2025-04-17 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931689', 'tblTempUsageDetail_20' ) start [2025-04-17 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931689', 'tblTempUsageDetail_20' ) end [2025-04-17 23:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:42:24] Production.INFO: ==9783== Releasing lock... [2025-04-17 23:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:42:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:43:05 [end_date_ymd] => 2025-04-17 23:43:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:43:05' and `end` < '2025-04-17 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-17 23:43:17] Production.INFO: count ==1673 [2025-04-17 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:43:05 - End Time 2025-04-17 23:43:05 [2025-04-17 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931694', 'tblTempUsageDetail_20' ) start [2025-04-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931694', 'tblTempUsageDetail_20' ) end [2025-04-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931694', 'tblTempVendorCDR_20' ) start [2025-04-17 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931694', 'tblTempVendorCDR_20' ) end [2025-04-17 23:43:18] Production.INFO: ProcessCDR(1,14931694,1,1,2) [2025-04-17 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931694', 'tblTempUsageDetail_20' ) start [2025-04-17 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931694', 'tblTempUsageDetail_20' ) end [2025-04-17 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:43:23] Production.INFO: ==9866== Releasing lock... [2025-04-17 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:43:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:44:05 [end_date_ymd] => 2025-04-17 23:44:05 [RateCDR] => 1 ) [2025-04-17 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:44:05' and `end` < '2025-04-17 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:44:18] Production.INFO: count ==1674 [2025-04-17 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:44:05 - End Time 2025-04-17 23:44:05 [2025-04-17 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931699', 'tblTempUsageDetail_20' ) start [2025-04-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931699', 'tblTempUsageDetail_20' ) end [2025-04-17 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931699', 'tblTempVendorCDR_20' ) start [2025-04-17 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931699', 'tblTempVendorCDR_20' ) end [2025-04-17 23:44:19] Production.INFO: ProcessCDR(1,14931699,1,1,2) [2025-04-17 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931699', 'tblTempUsageDetail_20' ) start [2025-04-17 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931699', 'tblTempUsageDetail_20' ) end [2025-04-17 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:44:22] Production.INFO: ==9972== Releasing lock... [2025-04-17 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:44:22] Production.INFO: 41 MB #Memory Used# [2025-04-17 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:45:04 [end_date_ymd] => 2025-04-17 23:45:04 [RateCDR] => 1 ) [2025-04-17 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:45:04' and `end` < '2025-04-17 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:45:17] Production.INFO: count ==1677 [2025-04-17 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:45:04 - End Time 2025-04-17 23:45:04 [2025-04-17 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931704', 'tblTempUsageDetail_20' ) start [2025-04-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931704', 'tblTempUsageDetail_20' ) end [2025-04-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931704', 'tblTempVendorCDR_20' ) start [2025-04-17 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931704', 'tblTempVendorCDR_20' ) end [2025-04-17 23:45:18] Production.INFO: ProcessCDR(1,14931704,1,1,2) [2025-04-17 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931704', 'tblTempUsageDetail_20' ) start [2025-04-17 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931704', 'tblTempUsageDetail_20' ) end [2025-04-17 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:45:21] Production.INFO: ==10074== Releasing lock... [2025-04-17 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:45:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:46:05 [end_date_ymd] => 2025-04-17 23:46:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:46:05' and `end` < '2025-04-17 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-17 23:46:17] Production.INFO: count ==1678 [2025-04-17 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:46:05 - End Time 2025-04-17 23:46:05 [2025-04-17 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931709', 'tblTempUsageDetail_20' ) start [2025-04-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931709', 'tblTempUsageDetail_20' ) end [2025-04-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931709', 'tblTempVendorCDR_20' ) start [2025-04-17 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931709', 'tblTempVendorCDR_20' ) end [2025-04-17 23:46:18] Production.INFO: ProcessCDR(1,14931709,1,1,2) [2025-04-17 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931709', 'tblTempUsageDetail_20' ) start [2025-04-17 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931709', 'tblTempUsageDetail_20' ) end [2025-04-17 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:46:22] Production.INFO: ==10186== Releasing lock... [2025-04-17 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:46:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:47:06 [end_date_ymd] => 2025-04-17 23:47:06 [RateCDR] => 1 ) [2025-04-17 23:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:47:06' and `end` < '2025-04-17 23:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:47:19] Production.INFO: count ==1673 [2025-04-17 23:47:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:47:06 - End Time 2025-04-17 23:47:06 [2025-04-17 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931714', 'tblTempUsageDetail_20' ) start [2025-04-17 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931714', 'tblTempUsageDetail_20' ) end [2025-04-17 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931714', 'tblTempVendorCDR_20' ) start [2025-04-17 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931714', 'tblTempVendorCDR_20' ) end [2025-04-17 23:47:19] Production.INFO: ProcessCDR(1,14931714,1,1,2) [2025-04-17 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931714', 'tblTempUsageDetail_20' ) start [2025-04-17 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931714', 'tblTempUsageDetail_20' ) end [2025-04-17 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:47:22] Production.INFO: ==10287== Releasing lock... [2025-04-17 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:48:05 [end_date_ymd] => 2025-04-17 23:48:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:48:05' and `end` < '2025-04-17 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-17 23:48:17] Production.INFO: count ==1676 [2025-04-17 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:48:05 - End Time 2025-04-17 23:48:05 [2025-04-17 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931719', 'tblTempUsageDetail_20' ) start [2025-04-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931719', 'tblTempUsageDetail_20' ) end [2025-04-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931719', 'tblTempVendorCDR_20' ) start [2025-04-17 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931719', 'tblTempVendorCDR_20' ) end [2025-04-17 23:48:18] Production.INFO: ProcessCDR(1,14931719,1,1,2) [2025-04-17 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931719', 'tblTempUsageDetail_20' ) start [2025-04-17 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931719', 'tblTempUsageDetail_20' ) end [2025-04-17 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:48:21] Production.INFO: ==10389== Releasing lock... [2025-04-17 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:48:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:49:05 [end_date_ymd] => 2025-04-17 23:49:05 [RateCDR] => 1 ) [2025-04-17 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:49:05' and `end` < '2025-04-17 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:49:18] Production.INFO: count ==1684 [2025-04-17 23:49:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:49:05 - End Time 2025-04-17 23:49:05 [2025-04-17 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931724', 'tblTempUsageDetail_20' ) start [2025-04-17 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931724', 'tblTempUsageDetail_20' ) end [2025-04-17 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931724', 'tblTempVendorCDR_20' ) start [2025-04-17 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931724', 'tblTempVendorCDR_20' ) end [2025-04-17 23:49:19] Production.INFO: ProcessCDR(1,14931724,1,1,2) [2025-04-17 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931724', 'tblTempUsageDetail_20' ) start [2025-04-17 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931724', 'tblTempUsageDetail_20' ) end [2025-04-17 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:49:22] Production.INFO: ==10489== Releasing lock... [2025-04-17 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:49:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:50:05 [end_date_ymd] => 2025-04-17 23:50:05 [RateCDR] => 1 ) [2025-04-17 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:50:05' and `end` < '2025-04-17 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:50:18] Production.INFO: count ==1680 [2025-04-17 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:50:05 - End Time 2025-04-17 23:50:05 [2025-04-17 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931730', 'tblTempUsageDetail_20' ) start [2025-04-17 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931730', 'tblTempUsageDetail_20' ) end [2025-04-17 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931730', 'tblTempVendorCDR_20' ) start [2025-04-17 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931730', 'tblTempVendorCDR_20' ) end [2025-04-17 23:50:19] Production.INFO: ProcessCDR(1,14931730,1,1,2) [2025-04-17 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931730', 'tblTempUsageDetail_20' ) start [2025-04-17 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931730', 'tblTempUsageDetail_20' ) end [2025-04-17 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:50:23] Production.INFO: ==10593== Releasing lock... [2025-04-17 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:51:05 [end_date_ymd] => 2025-04-17 23:51:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:51:05' and `end` < '2025-04-17 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-17 23:51:17] Production.INFO: count ==1658 [2025-04-17 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:51:05 - End Time 2025-04-17 23:51:05 [2025-04-17 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931735', 'tblTempUsageDetail_20' ) start [2025-04-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931735', 'tblTempUsageDetail_20' ) end [2025-04-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931735', 'tblTempVendorCDR_20' ) start [2025-04-17 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931735', 'tblTempVendorCDR_20' ) end [2025-04-17 23:51:18] Production.INFO: ProcessCDR(1,14931735,1,1,2) [2025-04-17 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931735', 'tblTempUsageDetail_20' ) start [2025-04-17 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931735', 'tblTempUsageDetail_20' ) end [2025-04-17 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:51:21] Production.INFO: ==10698== Releasing lock... [2025-04-17 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:51:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-17 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:52:05 [end_date_ymd] => 2025-04-17 23:52:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:52:05' and `end` < '2025-04-17 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-17 23:52:18] Production.INFO: count ==1649 [2025-04-17 23:52:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:52:05 - End Time 2025-04-17 23:52:05 [2025-04-17 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931740', 'tblTempUsageDetail_20' ) start [2025-04-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931740', 'tblTempUsageDetail_20' ) end [2025-04-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931740', 'tblTempVendorCDR_20' ) start [2025-04-17 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931740', 'tblTempVendorCDR_20' ) end [2025-04-17 23:52:19] Production.INFO: ProcessCDR(1,14931740,1,1,2) [2025-04-17 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931740', 'tblTempUsageDetail_20' ) start [2025-04-17 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931740', 'tblTempUsageDetail_20' ) end [2025-04-17 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:52:22] Production.INFO: ==10804== Releasing lock... [2025-04-17 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:52:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:53:05 [end_date_ymd] => 2025-04-17 23:53:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:53:05' and `end` < '2025-04-17 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-17 23:53:18] Production.INFO: count ==1649 [2025-04-17 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:53:05 - End Time 2025-04-17 23:53:05 [2025-04-17 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931745', 'tblTempUsageDetail_20' ) start [2025-04-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931745', 'tblTempUsageDetail_20' ) end [2025-04-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931745', 'tblTempVendorCDR_20' ) start [2025-04-17 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931745', 'tblTempVendorCDR_20' ) end [2025-04-17 23:53:18] Production.INFO: ProcessCDR(1,14931745,1,1,2) [2025-04-17 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931745', 'tblTempUsageDetail_20' ) start [2025-04-17 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931745', 'tblTempUsageDetail_20' ) end [2025-04-17 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:53:22] Production.INFO: ==10904== Releasing lock... [2025-04-17 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:53:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:54:05 [end_date_ymd] => 2025-04-17 23:54:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:54:05' and `end` < '2025-04-17 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-17 23:54:18] Production.INFO: count ==1647 [2025-04-17 23:54:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:54:05 - End Time 2025-04-17 23:54:05 [2025-04-17 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931750', 'tblTempUsageDetail_20' ) start [2025-04-17 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931750', 'tblTempUsageDetail_20' ) end [2025-04-17 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931750', 'tblTempVendorCDR_20' ) start [2025-04-17 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931750', 'tblTempVendorCDR_20' ) end [2025-04-17 23:54:19] Production.INFO: ProcessCDR(1,14931750,1,1,2) [2025-04-17 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931750', 'tblTempUsageDetail_20' ) start [2025-04-17 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931750', 'tblTempUsageDetail_20' ) end [2025-04-17 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:54:22] Production.INFO: ==11006== Releasing lock... [2025-04-17 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:54:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-17 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:55:05 [end_date_ymd] => 2025-04-17 23:55:05 [RateCDR] => 1 ) [2025-04-17 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:55:05' and `end` < '2025-04-17 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:55:18] Production.INFO: count ==1645 [2025-04-17 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:55:05 - End Time 2025-04-17 23:55:05 [2025-04-17 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931755', 'tblTempUsageDetail_20' ) start [2025-04-17 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931755', 'tblTempUsageDetail_20' ) end [2025-04-17 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931755', 'tblTempVendorCDR_20' ) start [2025-04-17 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931755', 'tblTempVendorCDR_20' ) end [2025-04-17 23:55:18] Production.INFO: ProcessCDR(1,14931755,1,1,2) [2025-04-17 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931755', 'tblTempUsageDetail_20' ) start [2025-04-17 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931755', 'tblTempUsageDetail_20' ) end [2025-04-17 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:55:22] Production.INFO: ==11146== Releasing lock... [2025-04-17 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:56:05 [end_date_ymd] => 2025-04-17 23:56:05 [RateCDR] => 1 ) [2025-04-17 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-17 20:56:05' and `end` < '2025-04-17 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-17 23:56:18] Production.INFO: count ==1640 [2025-04-17 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:56:05 - End Time 2025-04-17 23:56:05 [2025-04-17 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931760', 'tblTempUsageDetail_20' ) start [2025-04-17 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931760', 'tblTempUsageDetail_20' ) end [2025-04-17 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931760', 'tblTempVendorCDR_20' ) start [2025-04-17 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931760', 'tblTempVendorCDR_20' ) end [2025-04-17 23:56:18] Production.INFO: ProcessCDR(1,14931760,1,1,2) [2025-04-17 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931760', 'tblTempUsageDetail_20' ) start [2025-04-17 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931760', 'tblTempUsageDetail_20' ) end [2025-04-17 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:56:22] Production.INFO: ==11248== Releasing lock... [2025-04-17 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:57:05 [end_date_ymd] => 2025-04-17 23:57:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:57:05' and `end` < '2025-04-17 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-17 23:57:18] Production.INFO: count ==1644 [2025-04-17 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:57:05 - End Time 2025-04-17 23:57:05 [2025-04-17 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931765', 'tblTempUsageDetail_20' ) start [2025-04-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931765', 'tblTempUsageDetail_20' ) end [2025-04-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931765', 'tblTempVendorCDR_20' ) start [2025-04-17 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931765', 'tblTempVendorCDR_20' ) end [2025-04-17 23:57:18] Production.INFO: ProcessCDR(1,14931765,1,1,2) [2025-04-17 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931765', 'tblTempUsageDetail_20' ) start [2025-04-17 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931765', 'tblTempUsageDetail_20' ) end [2025-04-17 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:57:22] Production.INFO: ==11354== Releasing lock... [2025-04-17 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:57:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:58:05 [end_date_ymd] => 2025-04-17 23:58:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:58:05' and `end` < '2025-04-17 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-17 23:58:18] Production.INFO: count ==1640 [2025-04-17 23:58:19] Production.ERROR: pbx CDR StartTime 2025-04-17 20:58:05 - End Time 2025-04-17 23:58:05 [2025-04-17 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931770', 'tblTempUsageDetail_20' ) start [2025-04-17 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931770', 'tblTempUsageDetail_20' ) end [2025-04-17 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931770', 'tblTempVendorCDR_20' ) start [2025-04-17 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931770', 'tblTempVendorCDR_20' ) end [2025-04-17 23:58:19] Production.INFO: ProcessCDR(1,14931770,1,1,2) [2025-04-17 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931770', 'tblTempUsageDetail_20' ) start [2025-04-17 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931770', 'tblTempUsageDetail_20' ) end [2025-04-17 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:58:22] Production.INFO: ==11459== Releasing lock... [2025-04-17 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:58:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-17 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-17 20:59:05 [end_date_ymd] => 2025-04-17 23:59:05 [RateCDR] => 1 ) [2025-04-17 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-17 20:59:05' and `end` < '2025-04-17 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-17 23:59:17] Production.INFO: count ==1607 [2025-04-17 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-17 20:59:05 - End Time 2025-04-17 23:59:05 [2025-04-17 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931775', 'tblTempUsageDetail_20' ) start [2025-04-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14931775', 'tblTempUsageDetail_20' ) end [2025-04-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931775', 'tblTempVendorCDR_20' ) start [2025-04-17 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14931775', 'tblTempVendorCDR_20' ) end [2025-04-17 23:59:18] Production.INFO: ProcessCDR(1,14931775,1,1,2) [2025-04-17 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14931775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14931775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-17 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14931775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14931775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-17 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931775', 'tblTempUsageDetail_20' ) start [2025-04-17 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14931775', 'tblTempUsageDetail_20' ) end [2025-04-17 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-17 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-17 23:59:21] Production.INFO: ==11560== Releasing lock... [2025-04-17 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-17 23:59:21] Production.INFO: 40.25 MB #Memory Used#