FYI Weird Incredible PBX Stats

Spike

New Member
Joined
Aug 20, 2015
Messages
9
Reaction score
0
Hi,
I just installed incrediblePBX with Asterisk 11 on Ubuntu 14.04 and just added an ip phone to it (ext 999), nothing else (so there's now two extensions, that and the stock 701 one).

When I load the web interface and I get into freepbx web frontend on the right hand side it shows the IncrediblePBX statistics widget. In there it says I have "4 online trunks" and "1 offline user". Can somebody shed some light on how to interpret that?

I've looked at the trunks (Connectivity -> trunks) and there's 18 of them, none of which however seems to be in use based on the output of "sip show registry" or "iax2 show registry" (this is what Google suggested to see current active trunks). Why do the statistics show 4 online?

Also given that extensions 701 and 999 (my ip phone) are registered as friends and therefore there are users associated (that's how I've understood "friend"), why is it saying there's only 1 user? and given I just placed a call from 999 and sip show peers shows that as connected, why is it saying it's offline?

thanks in advance,

Spike
 
IncredibleFax installed? Sounds like it, those are your fax modems.
 
Nope, I did not install IncredibleFax and I don't think it's installed by default, afaics you have to run the the script (which btw I did not find in /root after following http://nerdvittles.com/?p=13762, but that's another thread).
Also I don't get why the one offline user, as I said there should be 2 and 1 active.
thanks,
Spike
 
That said, I just hit Reports - > Asterisk Info and saw this:
Sip Peers:
Online: 1
Online-Unmonitored: 0
Offline: 1
Offline-Unmonitored: 0 IAX2 Peers:
Online: 0
Offline: 4
Unmonitored: 0

then in the iax2 info tab
iax-fax0 127.0.0.1 (S) 255.255.255.255 4570 UNREACHABLE
iax-fax1 127.0.0.1 (S) 255.255.255.255 4571 UNREACHABLE
iax-fax2 127.0.0.1 (S) 255.255.255.255 4572 UNREACHABLE
iax-fax3 127.0.0.1 (S) 255.255.255.255 4573 UNREACHABLE

so you might have been right. That said, if those are the mysterious 4, why would it say "4 trunks online" in the statistics when in the info panel they are marked as offline? Also I can't find them configured anywhere in the gui, any pointer?

As to the users, I noticed in the report it marked the 701 as unknown, so thought that may be excluded from the count or something so I tried to delete it to see what would happen and lo and behold, the graph now shows one user online. I guess because there were 2, one online and one offline, it drew the lines on top of each other, the light green one for offline users hiding the darker green one of the online user. There's still a problem however: I completely unplugged the phone which means the peer is now offline as reported by sip show peers:
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
999/999 10.11.6.4 D Yes Yes A 5060 UNREACHABLE
1 sip peers [Monitored: 0 online, 1 offline Unmonitored: 0 online, 0 offline]

that being the case the statistics are still wrong since they report a user to be online. Is there possible a bug somewhere?

thanks,

Spike
 
Extension 701 is installed by default, and you can either use it "as-is", or as an example as to how to configure your own, as you have already done with ext 999.

However, unless you actually connect a physical device (an IP phone or ATA), or a softphone, you will see the "offline" status for this non-existent device. You didn't say in your original post whether you actually have two phones, of just the one. Perhaps you could clarify that first?
 
thanks, I was about to post some results from further experiments. I have only one phone, ext 701 is unused, so it made sense for it to be reported offline. As per my prior post the confusion stemmed from the online 999 extension behind hidden underneath. It's not a biggie but I guess the chart should in the tooltip mention that there's another data point on that same line.

Also I realized the user presence has its own timeout separated from peer timeout, so it didn't really matter if the unplugged the phone and sip showed the connection as offline. The user now correctly reported offline (as an aside I've done some reading but I'm still confused about best practices around friend/peer etc and using macaddressess instead of extension numbers in sip.conf). I also found iax2_custom.conf containing the 4 fax definitions. Moving that out of the way as a test correctly reported 0 online trunks.

so I think I'm good now, thanks for the ongoing support.

Spike
 
Is there possible a bug somewhere?

Yes, quite possible, and it possibly lives between the keyboard and the chair. I sense you may be new to all this, so don't be too quick to shoot from the hip. Also, try to ensure your descriptions are complete, otherwise we have to read between the lines, and may come to the wrong conclusion.

For instance:
that being the case the statistics are still wrong since they report a user to be online.

Does your Status page really show "Users" online? Try refreshing your browser, for fun. "IP Phones Online" normally are pretty quick to respond.
 
Yes, quite possible, and it possibly lives between the keyboard and the chair. I sense you may be new to all this, so don't be too quick to shoot from the hip.
I am indeed and absolutely, pebkac is often the case, I was simply wondering since I've built monitoring dashboards in the past and overlapping lines is a classic problem. Again the data at this point matches, there were indeed one offline extension (701) and an online one (999), so there were two straight lines drawn on top of each other and the tooltip/js lib only reported the topmost (which happened to be the offline one).
That said I appreciate the reminder and I certainly want to be respectful of this community and of all the work done, didn't meant to cry out bugs.
For instance:
Does your Status page really show "Users" online? Try refreshing your browser, for fun. "IP Phones Online" normally are pretty quick to respond.
8oCluZi


It did, I had refreshed and per other post when I went to actually look at the console I realized about the timeout. I even issued a sip unregister 999 and the graph still showed the user online because I'm guessing under the hood users and peers are effectively different even tho "friend" hides that. It's probably I'm still misunderstanding something about this, but things started to match, now the graphs says what I'd expect it to and my initial puzzle is solved.

thanks,
 
IAX Fax stubs are installed as part of the initial build whether you install Incredible Fax or not. That's the only way to assure that they'll work in the GUI. Sorry, but it's not our design. :001 9898:
 
IAX Fax stubs are installed as part of the initial build whether you install Incredible Fax or not. That's the only way to assure that they'll work in the GUI. Sorry, but it's not our design. :001 9898:
Sorry to reopen a very old thread, but is this comment still valid?
My Oracle Cloud pbx (Ubuntu) has this behaviour (post #4) but not my Pi 4 (Raspbian buster).
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top