Applies to VoipNow 3 and higher!

VoipNow uses Kamailio for the extension registration process. However, you can also use the sip show peers Asterisk command to check your IP, as well as the port of your extensions. If an extension is listed, then it is either registered or set up with a static IP port.  This article describes how you can check the extensions registered in the system.

Before you start, make sure that the following requirements are met:

Step-by-step guide

Please note that the Asterisk sip show registry command will not provide any information on registered extensions!

Kamailio stores the information about the registered extensions in Hubring. To find out the extensions currently registered, please do as follows:

STEP 1: Using your favorite SSH console (e.g.: Putty), connect to Hubring:

 hr-cli -dp `cat /etc/voipnow/main.conf | grep DIS | awk -F':' '{print $3}'` -n 10 -h `cat /etc/voipnow/disdbase.conf | grep DIS | awk -F':' '{print $4}'`

STEP 2: Once you are connected to the Hubring server (you will get the Hubring prompt: hubring <HubringHost>:11211[10]>,), you can use the following commands to see the registered extensions:

keys rtl:sipses:ext:*:*

This command will print the Hubring key for all the registered extensions. You will see something like this:

hubring 10.150.12.43:11211[10]> keys rtl:sipses:ext:*:*
1) "rtl:sipses:ext:0003*001:r1RZH9CI/E+lda1Bu+cYRXqexgE="
2) "rtl:sipses:ext:0003*008:eGH3b5ygmnh3Y+xcAlNSQ7p6fWE="
3) "rtl:sipses:ext:0003*004:GmadgY7HmzHJQxjxHKTmbWT0XiU="
4) "rtl:sipses:ext:0003*001:bjLE1jDmQ5bwsb+6wMTl6xjBCrU="

If you like to see find out all the SIP session information for a certain extension you can run.

hubring 10.150.12.43:11211[10]> hgetall rtl:sipses:ext:0003*001:r1RZH9CI/E+lda1Bu+cYRXqexgE=
 1) "u"
 2) "0003*001"
 3) "contact"
 4) "sip:0003*001@10.150.12.52:5061;transport=TLS"
 5) "expires"
 6) "2017-05-03 14:44:47"
 7) "q"
 8) "-1.00     "
 9) "callid"
10) "41e6455a3882f898047e5c91409848e2@10.150.12.52"
11) "cseq"
12) "461"
13) "flags"
14) "0"
15) "cflags"
16) "64"
17) "ua"
18) "AsteriskVanillaPBX"
19) "rec"
20) "sip:10.150.12.52:59008;transport=TLS"
21) "ph"
22) ""
23) "sk"
24) "tls:10.150.12.43:5061"
25) "mh"
26) ""
27) "lm"
28) "2017-05-03 14:42:47"
29) "exp"
30) ""
31) "rch"
32) "yes"
33) "sipnod"
34) "9e665384cb"
35) "ruid"
36) "uloc-5909934b-1c70-1"
37) "inst"
38) ""
39) "rid"
40) "0"
41) "devid"
42) ""


The registered extensions can be checked from the VoipNow interface as well. Depending on your account, you have access to the following information:

Related articles