Number of websockets connected to Asterisk


#1

Hi all,

I am using Asterisk 15.4 version with PJSIP. I am using sipML5 as soft phone. When I shifted wifi after connecting to asterisk, sipML5 is getting disconnected. But the web socket connection on asterisk is not getting closed.

My http.conf variables session_inactivity=30000, session_keep_alive=15000 are default values.

Also, How to find number of http sessions/web sockets connected from asterisk cli. (is there any cli command similar to ‘pjsip show contacts’ to check http sessions).


#2

Does it get closed eventually? How long did you wait? TCP connections can hang around for quite awhile unless traffic is actually attempted over them.


#3

Hi jcolp,

web socket connection is taking too much time. I am not able to trace particular connection since we have many users connecting. But I will try to reproduce websocket close time and will let you know.

I want ask you how we can find number of web sockets connections connected to asterisk at one point of time. (Is there any cli command similar to ‘pjsip show contacts’ to check http sessions).


#4

I can’t find any HCI for websockets in the obvious source code files, although the OS level netstat or lsof commands should give you information on the current numbers.


#5

I don’t believe we have any CLI commands to see the open connections within Asterisk.