0

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?

JJ Ab
  • 492
  • 4
  • 15

2 Answers2

0

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

nc -l

sapna
  • 161
  • 1
  • 4
0

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

Vladimir Ralev
  • 1,371
  • 9
  • 18