If not, then what is the easiest way to send a REGISTER to the sip server and see the answer? What is the easiest way to do this from the console?
1 answer
You can, for example, using netcat (nc): request from the sip.reg file to a locally running server:
cat reg.sip | nc -u localhost 5060 If the server is able to work with SIP via tcp, then it is possible using telnet.
But in response, it will most likely come 401, and it’s quite difficult to create a second request with your hands. The advanced scripting tool for the SIP protocol is the sipp utility, it allows you to implement more complex scripts, mainly for load testing. Finally, you can find a SIP client (LinPhone, for example), which can write to the log exchange with the server.
|