javasipjain-sip

How can I read SIP server response


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?


Solution

  • 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