Sip show peers does not show devices
From Kolmisoft Wiki
Jump to navigationJump to search
MOR uses Asterisk Realtime, so sip show peers behaves slightly different compared to config-files Asterisk usage.
sip show peers command shows devices only AFTER they are registered into Asterisk.
main*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline] main*CLI> main*CLI> -- Registered SIP '101' at 213.16.10.78 port 64209 expires 1800 -- Saved useragent "X-PRO build 1082" for peer 101 [Oct 2 18:48:06] NOTICE[2130]: chan_sip.c:12532 handle_response_peerpoke: Peer '101' is now Reachable. (98ms / 2000ms) main*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime 101/101 213.16.10.78 D N A 64209 OK (98 ms) 1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
In this example sip show peers command was executed when device is not registered:
main*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime 0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]
After that device is registered:
-- Registered SIP '101' at 213.16.10.78 port 64209 expires 1800 -- Saved useragent "X-PRO build 1082" for peer 101 [Oct 2 18:48:06] NOTICE[2130]: chan_sip.c:12532 handle_response_peerpoke: Peer '101' is now Reachable. (98ms / 2000ms)
Executing sip show peers shows registered device:
main*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status Realtime 101/101 213.16.10.78 D N A 64209 OK (98 ms) 1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]