sip-alg-detector
sip-alg-detector copied to clipboard
Server doesn't stay running
trafficstars
I'm dealing with an issue trying to determine if the ISP's modem/gateway is running SIP ALG.
In trying to run this ruby program. It executes the script but seems to not keep the server running and just exits back to the command prompt as I'm showing here:
Command:
demon@Bionic18:~/dev/SIP-ALG_detector/server$ ruby sip-alg-detector-daemon.rb -i xx.xx.xx.161 (ip omitted)
Result:
Fri Oct 23 07:12:31 2020 INFO: Starting SIP ALG Detector daemon...
Fri Oct 23 07:12:31 2020 INFO: Use '-i IP' to set the listening IP
Fri Oct 23 07:12:31 2020 INFO: Use '-p PORT' to set the listening port
Fri Oct 23 07:12:31 2020 INFO: Bind address: [xx.xx.xx.161]:5060 (omitted IP)
demon@Bionic18:~/dev/SIP-ALG_detector/server$
Operating System:
Ubuntu 18.04
Ruby version:
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
Gem version:
2.7.6
From what I've tested it seems it's not able to bind to the WAN address when setting the server ip. Rather I had to set it to the local LAN ip of the system, and this allowed the program to open the port necessary for testing SIP ALG.
However, I'll leave this issue open if someone has further insight into this.