0
votes

I am using Jain SIP to send a register request to a server using SipProvider.sendRequest(request).

How can I listen for the 200 OK response from the server?

2

2 Answers

0
votes

You must create a listener and then add the litener to the sip provider

sipProvider.addSipListener(listener);

Here is a full example https://svn.java.net/svn/jsip~svn/trunk/src/examples/simplecallsetup/Shootist.java

0
votes

You can use the netcat command and listen on the port (and ip-address) where the client is listening. Syntax

nc -l