[Asterisk-Dev] Re: sip show peers doesn't work?
Tony Mountifield
tony at softins.clara.co.uk
Wed Nov 9 02:14:44 MST 2005
In article <4371BAD0.8010708 at citron.com.tw>,
Chih-Wei Huang <cwhuang at citron.com.tw> wrote:
> Test version: 1.2.0-rc1 (the same as 1.2-beta1, 1.2-beta2)
>
> ippbx*CLI> sip show peers
> Name/username Host Dyn Nat ACL Port Status
> 400/400 10.0.0.240 D 5060 Unmonitored
> 401 (Unspecified) D 0 Unmonitored
> 402 (Unspecified) D 0 Unmonitored
> 403 (Unspecified) D 0 Unmonitored
> 408 (Unspecified) D 0 Unmonitored
> 407/407 10.0.0.190 D 5060 Unmonitored
> 404 (Unspecified) D 0 Unmonitored
> 409/409 10.0.0.124 D 5060 Unmonitored
> 405 (Unspecified) D 0 Unmonitored
> 406 (Unspecified) D 0 Unmonitored
> 10 sip peers [10 online , 0 offline]
>
> It said 10 online, but in fact I have only 3 endpoints registered.
> A bug? or the stats way is changed?
> Then how can I get the number of SIP endpoints?
I think if the peer is "unmonitored", it will be assumed online.
If you add "qualify=yes" to the peer, then it will monitor the peer
and can then tell whether it is offline or online.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-dev
mailing list