I'm using SipUnit to test my sip application which just forward the request. In my simple test case, user1(simulated with SipPhone) send Subscribe request and my application forward the request to user2(simulated with SipPhone) and then user2 send reply by using JAIN ServerTransaction.sendResponse() method. Then user2 send Notify to user1 using JAIN SipDialog.sendRequest(). And from the wireshark there is a problem in this Notify request: the CSeq is "1 Notify", but it should be "2 Notify" as it is in the same dialog as the Subscribe so the sequence number should be increased by 1.
Any idea?