Page 1 of 1

Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 10:06 am
by Thiago
Hello to the whole community,
Please excuse my English, I'm a French speaker.
I have a problem with the new REALTIME LATENCY function, in the REALTIME Reports, it doesn't display any data in the column LATENCY just

Code: Select all
 STATION      USER  SHOW ID  INFO       SESSIONID     STATUS         PAUSE    MM:SS     CAMPAIGN       CALLS     LATENCY     HOLD     IN-GROUP
SIP/5019   Fouad +                8600057     READY             0:00                         CAMP_RT      307        ms
SIP/4001   4001 +                8600070     DIAL      M       3:07                         CA_JOEL      55         ms
SIP/4003   4003 +                8600067     DIAL           M       2:18                     CA_JOEL      21         ms
SIP/3002   3002 +                8600075     DIAL           M       1:59                      CA_NYFRA      57       ms


I've already checked AST_latency_gaps.pl, it runs fine when I do :
Code: Select all
/usr/share/astguiclient/AST_latency_gaps.pl --container=AGENT_LATENCY_LOGGING --recent
Analyzing user activity:  () starting at  (epoch: )
Ping count for user :

----- SETTINGS CONTAINER: AGENT_LATENCY_LOGGING -----

----- RECENT CHECK -----

TEST

NOW DATETIME:         2024-06-28 14:50:34
ANALYSIS DATE RANGE:  2024-06-28 14:49:34 - 2024-06-28 13:47:34

DONE. Gaps found: 22   Script execution time in seconds: 2
Script exiting...

Here are the contents of my container: AGENT_LATENCY_LOGGING
Code: Select all
minimum_gap => 10
email_sender => admin@apisnix.com
email_list => send@apisnix.com
email_subject => Agent Network Alert

Thank you in advance for your feedback.
My installation: ViciBox v.9.0.3 200630-2117
openSUSE Leap 15.2
Asterisk 16.30.1-vici
VERSION: 2.14-919a
BUILD: 240617-0833
Version: 2.14b0.5
SVN Version: 3839
DB Schema Version: 1714

Re: Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 10:12 am
by mflorell
The "AST_latency_gaps.pl" does not affect the Real-Time Report data at all, it is a separate and optional script.

Not sure why it wouldn't be working on the Real-Time Report, are there any errors in your apache error_log file related to this?

Is this a multi-server system?

Would there be any old agent screen installs anywhere that your agents might be using?

Re: Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 10:33 am
by Thiago
here are some of Apache's errors
Code: Select all
[Fri Jun 28 14:00:53.045378 2024] [php7:warn] [pid 31543] [client 138.199.47.210:41627] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 14:00:53.045427 2024] [php7:warn] [pid 31543] [client 138.199.47.210:41627] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or >
[Fri Jun 28 14:01:37.361006 2024] [cgi:error] [pid 31826] [client 185.191.127.212:33384] AH02811: script not found or unable to stat: /srv/www/cgi-bin/luci, referer: http://151.236.39.57:8>
[Fri Jun 28 14:01:56.984672 2024] [php7:warn] [pid 31877] [client 138.199.47.210:31007] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 14:01:56.984718 2024] [php7:warn] [pid 31877] [client 138.199.47.210:31007] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or >
[Fri Jun 28 14:07:11.151760 2024] [php7:warn] [pid 31837] [client 154.72.168.156:1117] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 14:07:11.151807 2024] [php7:warn] [pid 31837] [client 154.72.168.156:1117] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 14:11:05.279043 2024] [php7:warn] [pid 31909] [client 154.72.168.156:2813] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 14:11:05.279088 2024] [php7:warn] [pid 31909] [client 154.72.168.156:2813] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 14:19:11.976651 2024] [php7:warn] [pid 31794] [client 154.72.168.156:1520] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 14:19:11.976696 2024] [php7:warn] [pid 31794] [client 154.72.168.156:1520] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 14:21:42.874014 2024] [php7:warn] [pid 31731] [client 129.0.205.93:64699] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.php>
[Fri Jun 28 14:21:42.874066 2024] [php7:warn] [pid 31731] [client 129.0.205.93:64699] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or di>
[Fri Jun 28 14:28:49.616088 2024] [php7:warn] [pid 31712] [client 154.72.168.156:1156] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 14:28:49.616162 2024] [php7:warn] [pid 31712] [client 154.72.168.156:1156] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 14:31:48.226919 2024] [ssl:error] [pid 31590] [client 44.220.185.30:34944] AH02042: rejecting client initiated renegotiation
[Fri Jun 28 14:32:02.832036 2024] [php7:warn] [pid 31822] [client 154.72.168.156:3044] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 14:32:02.832107 2024] [php7:warn] [pid 31822] [client 154.72.168.156:3044] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 14:38:11.480861 2024] [php7:warn] [pid 31763] [client 185.189.113.53:27743] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 14:38:11.480913 2024] [php7:warn] [pid 31763] [client 185.189.113.53:27743] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or >
[Fri Jun 28 14:41:09.673126 2024] [php7:warn] [pid 31920] [client 154.72.161.117:9976] PHP Warning:  mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in /srv/www/ht>
[Fri Jun 28 14:44:25.868440 2024] [php7:warn] [pid 31628] [client 154.72.168.156:2117] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 14:44:25.868499 2024] [php7:warn] [pid 31628] [client 154.72.168.156:2117] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 14:45:37.981680 2024] [php7:warn] [pid 31548] [client 185.189.113.53:36231] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 14:45:37.981740 2024] [php7:warn] [pid 31548] [client 185.189.113.53:36231] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or >
[Fri Jun 28 14:49:31.893147 2024] [php7:warn] [pid 31770] [client 160.178.4.49:58040] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.php>
[Fri Jun 28 14:49:31.893197 2024] [php7:warn] [pid 31770] [client 160.178.4.49:58040] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or di>
[Fri Jun 28 14:49:50.470619 2024] [php7:error] [pid 31559] [client 159.203.65.26:61064] script '/srv/www/htdocs/xmlrpc.php' not found or unable to stat
[Fri Jun 28 14:50:40.809602 2024] [php7:warn] [pid 31555] [client 138.199.47.205:24053] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 14:50:40.809663 2024] [php7:warn] [pid 31555] [client 138.199.47.205:24053] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or >
[Fri Jun 28 14:59:41.497455 2024] [cgi:error] [pid 31726] [client 141.98.83.197:38788] AH02811: script not found or unable to stat: /srv/www/cgi-bin/luci, referer: http://151.236.39.57:80/>
[Fri Jun 28 14:59:41.678163 2024] [cgi:error] [pid 31812] [client 141.98.83.197:38800] AH02811: script not found or unable to stat: /srv/www/cgi-bin/luci, referer: http://151.236.39.57:80/>
[Fri Jun 28 15:07:45.110714 2024] [cgi:error] [pid 31562] [client 185.191.127.212:37770] AH02811: script not found or unable to stat: /srv/www/cgi-bin/luci, referer: http://151.236.39.57:8>
[Fri Jun 28 15:12:10.958905 2024] [php7:warn] [pid 31702] [client 102.78.107.79:24142] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.ph>
[Fri Jun 28 15:12:10.958979 2024] [php7:warn] [pid 31702] [client 102.78.107.79:24142] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or d>
[Fri Jun 28 15:13:04.827204 2024] [php7:warn] [pid 31853] [client 154.72.160.163:10674] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 15:13:04.827271 2024] [php7:warn] [pid 31853] [client 154.72.160.163:10674] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or >
[Fri Jun 28 15:13:40.570924 2024] [php7:warn] [pid 31616] [client 129.0.205.93:7176] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.php >
[Fri Jun 28 15:13:40.570996 2024] [php7:warn] [pid 31616] [client 129.0.205.93:7176] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or dir>
[Fri Jun 28 15:15:30.570446 2024] [php7:warn] [pid 31694] [client 129.0.205.93:7628] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.php >
[Fri Jun 28 15:15:30.570489 2024] [php7:warn] [pid 31694] [client 129.0.205.93:7628] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or dir>
[Fri Jun 28 15:18:28.977984 2024] [php7:warn] [pid 31909] [client 154.72.167.223:34609] PHP Warning:  get_browser(): browscap ini directive not set in /srv/www/htdocs/ApisPhone/apisphone.p>
[Fri Jun 28 15:18:28.978024 2024] [php7:warn] [pid 31909] [client 154.72.167.223:34609] PHP Warning:  file_put_contents(debug/viciphone_access.log): failed to open stream: No such file or

No, it's not a cluster or multiserver installation

No, it uses the classic agent screen, not the old

Re: Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 3:58 pm
by williamconley
Are you experiencing symptoms outside the report that caused you to go looking at that report?

https://stackoverflow.com/questions/203 ... ve-not-set

Re: Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 6:52 pm
by Thiago
I think I've found the problem, but it's changed again. When I got onto the PHP track, I realized that I'd changed the agent screen page a long time ago.
So when I put vicidial.php back, it worked, I could see the Latency of this agent, the colors are sky blue and then I go and look in System settings and I see that it's vicidial.php that's there in Agent Screen Script: .
Just to check, I compare the content of my home_agent.php with vicidial.php, I see that vicidial has more lines and that there's LATENCY in its code. I do what I'd done before, I copy the content of vicidial into home_agent.php and I test, it doesn't work anymore, I say to myself bof no problem, I'll leave it like that, now even vicidial.php, doesn't give me the Latency anymore, I've already done everything, reboot 3 times but nothing changes.

I notice that in private browsing, the colors are light blue for home_page.php and vicidial.php, but in simple browsing for the both, it's purple like before. But in both cases, I no longer have latency anymore

Re: Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 8:53 pm
by williamconley
That was a bit unclear. You had a custom page, but now you copied "the contents" of the stock file into your custom file and in one sentence you get no latency but in others you're perplexed.

Is there a problem with just using vicidial.php, stock?

Re: Latency Realtime don't work

PostPosted: Fri Jun 28, 2024 10:52 pm
by Thiago
williamconley wrote:That was a bit unclear. You had a custom page, but now you copied "the contents" of the stock file into your custom file and in one sentence you get no latency but in others you're perplexed.

Is there a problem with just using vicidial.php, stock?


Yes Mr William
I tried the file vicidial.php, it worked, I copied the content in the custom page, it didn't work, When I try vicidial again, even it no longer gives latency. (I reassure you, I find it illogical myself, but that's what I see)                                                                                                                            

Re: Latency Realtime don't work

PostPosted: Sat Jun 29, 2024 12:21 am
by Thiago
UPDATE !!!!!!!!!!!!!!
I see where the problem is coming from, but it's so crazy and a bit unclear.
Randomly trying another agent ID, it works, I see LATENCY, I try again the ones I'm using, it doesn't work.
So I start trying different IDs, looking for common points, and I notice that the campaigns in Dial Method: MANUAL are the ones impacted (they're disturbing).
But all other dial method statuses work normally, I see LATENCY, so I know it's a new feature that's bound to improve, so I'm making my modest contribution to the community, however small. In the meantime, I'm using INBOUND_MAN, and is good.

Re: Latency Realtime don't work

PostPosted: Sat Jun 29, 2024 1:29 pm
by williamconley
Thiago wrote:
williamconley wrote:That was a bit unclear. You had a custom page, but now you copied "the contents" of the stock file into your custom file and in one sentence you get no latency but in others you're perplexed.

Is there a problem with just using vicidial.php, stock?


Yes Mr William
I tried the file vicidial.php, it worked, I copied the content in the custom page, it didn't work, When I try vicidial again, even it no longer gives latency. (I reassure you, I find it illogical myself, but that's what I see)                                                                                                                            


LOL: Perhaps I didn't state the question clearly: WHY are you not using vicidial.php?

Re: Latency Realtime don't work

PostPosted: Sat Jun 29, 2024 5:26 pm
by Thiago
Oh okay, I'm French speaking, so sometimes I don't understand and even the translator misleads me
Nothing special, at the time while tinkering with the design, I had broken the vicidial code but I had copied it in a new file home_agent file, I just repointed the pages on it and I haven't touched it since

Re: Latency Realtime don't work

PostPosted: Sat Jul 06, 2024 5:16 pm
by williamconley
Understoood.

So if the page you are using stops working, test with the original unaltered file. If the original unaltered file works, you'll need to find the difference. Often the agent's Web Javascript Console can be very useful in troubleshooting on the agent web page.

Re: Latency Realtime don't work

PostPosted: Sun Jul 07, 2024 10:52 am
by egorky
Hi, It doesn't work for me neither
Image
All my campaigns are INBOUND_MAN and my users are not numeric as you can see.
But the Agent Latency Report shows some values:
Image
The other lagged reports are mostly empty.

VERSION: 2.14-919a
BUILD: 240617-0833
Rocky Linux 9.4 in AWS
Asterisk 18.18.1