what are the names of your trunks. if I recall correctly we tried to limit it to ‘numbered’ sip and iax channels but that means that numbered trunks would get counted. It’s a lot more load to confirm each channel as an extension but it is a valid point…
I have an IAX trunk to VoipStreet named IAX2/voipstreet. It’s just setup as one trunk with an incoming and outgoing settings. It is counting these as 2 phones. And I have 2 SIP trunks for Vitelity; SIP/Vitel-inbound & SIP/Vitel-outbound. It is counting both of these as a phone. Total of 4 Connections that are being included in the count.
I also have 2 SIP phones connected that are counted.
Or just “Device Connections” or something like that. Named phones makes me think of phones connected to the system. Devices makes me think that there are actually hardware devices connected to the system.
The reason that I brought it up is because this morning I was looking at it and scratching my head… “Why are there 6 phones connected to my system!!! Is there someone else attached to my test server?” That’s why I brought it up. Alarmed me for a sec until I had my coffee and realized what it was.
I’ll have to have a closer look - the intent was to try to count phones and not trunks which usually don’t have numeric names. Apparently that is not the case. Please go and file a bug against this so we can review. thanks.
do a ‘sip show peers’ and ‘iax show peers’ - that is what is used to check the phones online (which should be IP Phones Online. And more important is which version of Asterisk.
Hi,
sip show peers gives (SIP Trunk usernames etc. trimmed)
[code:1]
Name/username Host Dyn Nat ACL Port Status
(name) (ip) N 5060 Unmonitored
(name) (ip) N 5060 OK (133 ms)
(name) (ip) N 5060 OK (58 ms)
(name) (ip) N 5060 OK (57 ms)
(name) (ip) N 5060 OK (58 ms)
(name) (ip) N 5060 OK (58 ms)
pstn-1/spa3000 192.168.0.54 5061 OK (16 ms)
(name) (ip) N 5060 OK (39 ms)
202/202 192.168.0.116 D N 5060 OK (218 ms)
201/201 192.168.0.54 D N 5060 OK (16 ms)
200/200 192.168.0.100 D N 5060 OK (39 ms)
11 sip peers [Monitored: 10 online, 0 offline Unmonitored: 1 online, 0 offline]
[/code:1]
I don’t have any IAX trunks or devices, ‘iax show peers’ says no such command…
Asterisk version is 1.4.7.1
I looked at ‘System Summary’ while looking for the Asterisk version, this gives slightly more sensible figures:
[code:1]System uptime: 3 weeks, 2 days, 7 hours, 18 minutes, 1 second
Last reload: 10 hours, 15 minutes, 9 seconds
At this, ‘System Status’ is still showing 1 phone online, but there are actually three SIP extensions 200-202, as can be seen above.
The sip trunk ‘usernames’ are either alpha only or alphanumeric starting with a letter, the related usernames are mostly numeric with a couple of alpha-only ones.
thanks - I need you to not ‘trim’ the output though. Can you paste it as is. If there is a number or something you don’t want displayed, then edit if and change it to another number but otherwise leave it as is. The exact display may matter since the code that checks/reports this parses that output through a regex. (And I know there was a patch for asteriskinfo - we may also need to do something for this. (The development was done on 1.2 so it is reports on 1.4 that we need to clear things up if need be.)
OK, still masked but character-by character.
a = letter, 1 = number in original.
[code:1]Name/username Host Dyn Nat ACL Port Status
aaaaaaaaa/aaa-aa 111.111.1.111 N 5060 Unmonitored
aaaaaaaaaa/11111111 111.111.111.11 N 5060 OK (133 ms)
aaaaaaa-aa/1111111 111.11.11.11 N 5060 OK (57 ms)
aaaaaaa-aaa/1111111 111.11.11.11 N 5060 OK (58 ms)
aaaaaaa-aaa/1111111 111.11.11.11 N 5060 OK (58 ms)
aaaaaaa-aaa/1111111 111.11.11.11 N 5060 OK (57 ms)
pstn-1/spa3000 192.168.0.54 5061 OK (8 ms)
aaaaaaa-a/111111 84.92.5.189 N 5060 OK (39 ms)
202/202 192.168.0.116 D N 5060 OK (313 ms)
201/201 192.168.0.54 D N 5060 OK (9 ms)
200/200 192.168.0.100 D N 5060 OK (35 ms)
11 sip peers [Monitored: 10 online, 0 offline Unmonitored: 1 online, 0 offline]
[/code:1]
thanks all - there is a new dashboard but it requires a change to core which I will be getting out momentarily and then we need you guys to test for us.
Did this come out already? Sorry, not sure how the timing works here…
I see a change log for dashboard in my modules:
[code:1]System Dashboard tool 0.3 Enabled and up to date
Change Log for version 0.3
0.3.1: Fix issue with miscounting total registrations, minor styling details
0.3: Show IP phones and trunks separately (#2209)[/code:1]
But my version is at 0.3 not 0.3.1 - does it always show the online version and changelog? Is it not updateable because it is still pending core? (just for my future reference).
all that means is that we have not yet published 0.3.1. What you see in the changelog comes from the server xml file that is loaded. That same files tells you what is available. We sometimes checking changes including the changelog info without yet publishing. This means that you don’t have what is listed in that change log yet (unless you were to pull it direct from svn). There is no harm or issue. When it gets published you will be able to get to it.
Can you annotate the “sip show peers” output, and show me which ones are trunks, and which are peers? It’s hard to say what is going on without seeing that.
The way it counts is fairly simple - if the name matches the name of a trunk, it counts it as a trunk, otherwise it’s an IP phone. If there is an IP listed, it is ‘online’.
[quote=“gregmac”]Can you annotate the “sip show peers” output, and show me which ones are trunks, and which are peers? It’s hard to say what is going on without seeing that.
The way it counts is fairly simple - if the name matches the name of a trunk, it counts it as a trunk, otherwise it’s an IP phone. If there is an IP listed, it is ‘online’.[/quote]
Hi Greg,
I guess all those with a 192.168.x.x IP address are peers. The exception is my SPA3102 shown in the output as 719999/719999 [192.168.1.94] which is defined as a trunk for PSTN calls.
It’s entirely possible that I have the definition of said trunk a little screwed up - it works just fine but technically may not have the ideal definition.
The trunk name is actually: 01296719999 and here is the definition
If you don’t set it up from the “trunks” GUI, then it won’t detect it as a trunk. Like i said, it matches the trunk name (that you see in freepbx trunk listings) against the asterisk peer list.
So for now, yeah, I guess you’ll have to live with it the way it is.
In the future when we implement abstracted ‘devices’, we’ll probably have to handle that sort of thing explicitly, so when you add a “Sipura 3102” to freepbx, it knows it has one fxs (user) and one fxo (trunk) and can just automatically take care of it.