[ASTPPCOM-891] Different timezone CDR recording Created: 11/May/22  Updated: 10/Jul/23

Status: Reopened
Project: ASTPP Community
Component/s: None
Affects Version/s: v5.0
Fix Version/s: v5.0

Type: Bug Priority: High
Reporter: Danilo Borges Assignee: Alpesh Kaklottar
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 21h 10m
Original Estimate: Not Specified
Environment:

astpp v5
Friends, I noticed that in the Dashboard the values in the "Today" column and in the "This Month" column were not correct and not appearing in the daily report, I found that the problem is in the recording of the CDR, the Admin timezone is at -3 and the cdr is recording in the -5 timezone, I accessed the mysql table and confirmed the error, it is probably a bug, as I already configured the correct timezone in the admin, user, provider, settings, profiles etc.

thanks, regards


Attachments: File 2022-06-22-21-39-58.mp4     PNG File admin.png     PNG File cdr2.png     PNG File cdr3.png     PNG File cdr.png     File chrome_Q2qh3KkE4S.mp4     File chrome_r1yasoMLdH.mp4     PNG File customer.png     PNG File dashboard.png     PNG File image-2022-07-21-12-12-55-685.png     PNG File sql.png    
Issue Links:
Relates
relates to ASTPPCOM-1343 Error showing CDR after 9PM in Americ... Reopened
relates to ASTPPCOM-893 Dashboard Stats | Wrong Values Closed
Reproducibility: always
Category: Database
Edition: Community

 Description   

astpp v5
Friends, I noticed that in the Dashboard the values in the "Today" column and in the "This Month" column were not correct and not appearing in the daily report, I found that the problem is in the recording of the CDR, the Admin timezone is at -3 and the cdr is recording in the -5 timezone, I accessed the mysql table and confirmed the error, it is probably a bug, as I already configured the correct timezone in the admin, user, provider, settings, profiles etc.

thanks, regards



 Comments   
Comment by Neetu Nogia [ 11/May/22 ]

Hello Danilo Borges

Good day,

Can you please elaborate more on where you can get this issue? so we can check accordingly 

Please share with us a screenshot.

Thank You

Comment by Danilo Borges [ 12/May/22 ]

Hello Neetu Nogia.

Debian, admin, client, provider, all are with Timezone America/Sao Paulo, in the astpp graphical interface it shows the correct time on the cdr as per the attached image.

 

But in the mysql table it records with 3 hours of difference according to the attached image.

All calls made after 21:00 will appear on the next day because of the difference of 3 hours that is being recorded in mysql, thus making the summary of calls in the Dashboard and also in the cdr reports completely wrong.

 

See below the Dashboard screen that after 21:00 already shows only two calls, because for mysql it already recorded these calls on the 12th.

 

See below that if you only choose to consult the cdrs it only shows the calls that were made after 21h.

 

See below if to show all calls from the 11th I have to filter the period from the 10th to the 11th.

 

A person who has little knowledge will think that astpp disappeared with the calls, but from what I debugged the problem is in the sql timezone, or there is another detail that is making the calls record 3 hours apart.

 

Thansk, Regards

Comment by Neetu Nogia [ 13/May/22 ]

Hello Danilo Borges

Good day,

We are checking your concern with our developer team once will get the root cause we will update you asap.

 Thank You

Comment by Neetu Nogia [ 27/May/22 ]

Hello Danilo Borges

Good day,

Hope you are doing well.

Can you please let us know some queries?

System time and your time are the same or not?

System time and your time are the same or not? If not the same please share his timezone.-- you belong to Daylight saving mode or not?

Thank You

Comment by Danilo Borges [ 27/May/22 ]

On debian and elsewhere in ASTPP my time is Brazil São Paulo Timezone -03:00 and we don't have daylight saving time. Only the cdr is being burned in another timezone! And a few days ago someone else detected the same problem on the forum, ASTPPCOM 893.

Thanks e Regards

Comment by Danilo Borges [ 07/Jun/22 ]

Friends, will this problem have a solution? It is difficult to evaluate the free version, because the links are only shown in the reports the other day, it is complicated, customers will really complain! I'm waiting to buy the enterprise. Thanks

Comment by Neetu Nogia [ 17/Jun/22 ]

Hello Danilo Borges

Good day,

Do you want to buy our Enterprise version? if you are interesting please let us know so we can discuss with our sales team and let you know.

Thank You

Comment by Neetu Nogia [ 22/Jun/22 ]

Hello Danilo Borges

Good day,

We have checked in the local system it is working fine, we can not find any issue in the local system.

Can you please check once with your server timezone?

Thank You

Comment by Danilo Borges [ 23/Jun/22 ]

Hello Neetu Nogia, see in the MP4 video that I just attached all the configuration, I start by showing that debian and mysql are in the correct time zone of Brazil (São Paulo). Soon after I show the Dashboard where it informs in the right panel 0 calls in the daily column (current day 22).
Soon after I show the Customer CDRs Report that does not show any calls, but if I filter by the date of the next day (the 23rd) then yes it shows the call from the 22nd, now do you understand the problem? Remembering that the customer is also in the Brazil São Paulo time zone, and that this problem occurs with calls after 9PM.

Thanks and Regards

Comment by Neetu Nogia [ 30/Jun/22 ]

Hello Danilo Borges

Good day,

We are escalating your concern to our developer team please allow us some time ill update you asap.

Thank You

Comment by Neetu Nogia [ 05/Jul/22 ]

Hello Danilo Borges

Good day,

We have checked in my local system we are not able to reproduce this scenario from my end, 

we are requesting to you can you please with us your server creds? so we can check accordingly.

Thank You

Comment by Danilo Borges [ 05/Jul/22 ]

Hello, you already did the test, creating a clean vm with debian 10 setting the time to America/Sao_Paulo? After that make a call before 9pm time, and another call after 9pm, and you will be able to see the error, the last call will only appear in the reports for the next day!
Thanks and regards

Comment by Danilo Borges [ 06/Jul/22 ]

Olá, I just tested on a server with a new installation, the time was America/SaoPaulo and the problem continued or the same, today on the 5th at 8:59PM there were several calls and they all appeared in our reports. After 9:00 PM there were two calls, and now they told us all the other calls they did not run from the day sumiram, now on the date of today on the 5th at 10:46 PM they only had two calls, but it is because he has had no day 6 Please inform me your ip that you will release the firewall for you to access the server. Only if your billing occurs this problem, I use fusionpbx, a2billing, ivozprovider and they all work normally, I am sure that I will create a new installation with the same time settings that or I will be able to reproduce the problem! I was just about to buy its enterprise version, but I believe that this problem must affect the enterprise as well.

Comment by Neetu Nogia [ 11/Jul/22 ]

Hello Danilo Borges

Good day,

can you please share with us your server cred? so we can check accordingly.

Thank You

Comment by Danilo Borges [ 12/Jul/22 ]

Hi Neetu Nogia,

Yes, but I need you to tell me your ip to release it on the firewall, my firewall only accepts ips from Brazil, tell me your ip or range of ips that I'm going to release and I'll inform you of my server's access data. Thanks

Comment by Neetu Nogia [ 18/Jul/22 ]

Hello Danilo Borges

Good day,

our static IP (103.240.35.46). 

IPs are: 103.240.35.46 150.129.107.251 3.125.194.107 Please allow all our three IPs for any technical support related to ASTPP server/setup. Please feel free to let us know in case of any queries.

Thank You

Comment by Danilo Borges [ 19/Jul/22 ]

Hello Neetu Nogia, please tell me your email to send the server access data. Awaiting.

Thanks

Comment by Danilo Borges [ 21/Jul/22 ]

Hello, please let me know which email address I can provide the server access data, I just made a test on a new installation, and the problem continues.

Comment by Neetu Nogia [ 25/Jul/22 ]

Hello Danilo Borges

Good day,

Please note : My email address is neetu.nogia@inextrix.com

Thank You

Comment by Danilo Borges [ 26/Jul/22 ]

Hi, email sent!!!

Thanks

Comment by Neetu Nogia [ 12/Aug/22 ]

Hello Danilo Borges

Good day,
date-time related information in UTC(GMT 00:00) timezone, in your case your server timezone is GMT -03:00 format so due to this reason, you are getting 3 hours timezone difference in GUI.
 
Possible solution:
You need to set your server timezone UTC(GMT +00:00) so you are not facing this issue.
We already identified the issue in our Community version and we will fix it in the upcoming new release meanwhile you can change your server timezone UTC to solve this issue.
Thank You

Comment by Danilo Borges [ 06/Sep/22 ]

Sorry for the delay, but the problem is not solved by changing the time zone to GMT +00:00 after 9 PM calls are not shown, unless you have to filter by date! Too bad this problem has no solution on the part of development!

Comment by Neetu Nogia [ 08/Sep/22 ]

Hello Danilo Borges

Good day,

Can you please let us where are you coming from? We have fixed this issue in live calls for now. You can check by upgrading to the new build. Right now our dev team is debugging the dashboard and CDRS, we will inform you as it goes well.

If anything else please let me know.

Thank You

Comment by Danilo Borges [ 08/Sep/22 ]

Hi Neetu Nogia,

I live in Brazil! Okay, I'll wait for the rest of the fix.
Thanks and Regards

Comment by Danilo Borges [ 05/Oct/22 ]

Hello friends, any news here? Will version 6 resolve this issue? Will ASTPP 6 have a community version?
Thanks

Comment by Danilo Borges [ 19/Oct/22 ]

Hi Neetu Nogia,
I installed version 6 of astpp and nothing has changed in relation to this error, I tested it with the server in the standard time of UTC and also in my time zone, and only the calls that were made after 9 PM appear in the report, the ones that were made before simply disappears.

Comment by Prashant Kumar [ 22/Dec/22 ]

Verified in latest source community v6.0 and confirmed as per verification :- 

I found below error :- 

1. In sao paulo timezone, In cdrs grid before 9:00 PM cdrs not displayed automatically into grid. it only displayed recent call record which are make after 9:00 PM.

2. In Todays or Todays Total call option under dashboard page, total Todays call count didin't considered which calls are already make before 9:00 PM at same day.

See Latest attached videos :- 

Comment by Ashish Gohil [ 02/Jan/23 ]

This issue is resolved, changes done as per comment.

PR

https://github.com/iNextrix/ASTPP/pull/681

Comment by Danilo Borges [ 03/Jan/23 ]

Hello,
After updating the 8 modified files at https://github.com/iNextrix/ASTPP/pull/681 I got the following analysis:
Test basis: 6 calls were made before 9PM and 2 calls after 9PM.

Admin Area:

  • Regardless of the time, the Dashboard in the graphics part is reset throughout the day, without any movement.
  • In the table on the side where the Daily and Monthly column is shown with the ASR, ACD, MCD, Total Calls, Debit, Cost, Profit data, it can be noted that before 9PM the Today column has all the data with the value 0 , and the This Month column shows inconsistent values.
  • In the box in red Total Calls the top line Today is always 0 regardless of the time and in the total calls it only shows the calls made until 9PM.
  • In the black Refills box, the top line Today is always 0 regardless of the time and in total it only shows refills made after 9PM.
  • In the Trunk Statistics box until 9PM it shows the names of the trunks with all the correct data, but after 9PM it has no data, not even the names of the trunks are shown.
  • In Billing>>Refill Report: it does not show any refills made in the system, not even filtering by other previous and subsequent dates.
  • In Reports>>Call Detail Reports>>Customer: now it shows the 8 calls made throughout the day, congratulations.
  • In Reports>>Call Summary Reports>>Customer Summary and also in Reports>>Call Summary Reports>>Provider: the error continues, it does not show any data, after clicking on the search magnifying glass then yes it shows the data only the 6 calls until 9PM, to show the report with the other two calls made after 9PM we must select until the next day for them to be shown.

Customer Area:

  • In the red box Todays Calls the value is always 0 at any time!
  • In Reports>>CDRs: the problem was solved, now it shows the 8 calls made during the day, congratulations.

Attached are customer.png and admin.png images showing the affected fields.

Comment by Prashant Kumar [ 02/Feb/23 ]

as per verification still not working, faced same issue.

Generated at Sat Feb 10 07:21:12 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.