Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 22 by [email protected]: SipUnit 2.0.0 refer call generates
NOTIFY which isn't handled correctly
http://code.google.com/p/commtesting/issues/detail?id=22
What steps will reproduce the problem?
SipPhone initiator =
aSipUnitSipPhone(onNetStack).withUri("sip:[email protected]:10024").build();
SipURI sipUriB = (SipURI)
onNetStack.getAddressFactory().createURI("sip:[email protected]:10025");
ReferSubscriber rs =
initiator.refer("sip:[email protected]:10025", sipUriB, null, 0,
null);
assertResponseReceived(Status.ACCEPTED.getStatusCode(), rs);
rs.waitNotify(TEN_SECOND_TIMEOUT);
Response notifyResponse =
rs.processNotify(rs.getLastReceivedRequest().getRequestEvent());
rs.replyToNotify(rs.getLastReceivedRequest().getRequestEvent(),
notifyResponse);
What is the expected output? What do you see instead?
The call to initiator.refer creates a SIP REFER request to generate a call
between two end-points. There is a NOTIFY request which is sent
immediately by the SIP server. This NOTIFY is immediately responded with a
481 Subscription Does Not Exist and as such does not reach SipUnit and
therefore fails the assertResponseReceived test. If the NOTIFY is sent 1
second later the same message is accepted and a 200 OK response is sent,
this then passes the test. It appears that the implicit subscription
created by the REFER is not being processed before the NOTIFY arrives
resulting in the 481 behaviour. This behaviour can be changed by setting
the NIST SIP stack property gov.nist.javax.sip.DELIVER_UNSOLICITED_NOTIFY
to true which does pass through unsolicited notifies. This however results
in a different failure in SipUnit where it is unable to map the NOTIFY to a
subscription at the SipUnit level.
What version of the product are you using? On what operating system?
Oracle Java Development Kit 6u45 with SipUnit 2.0 on Oracle Enterprise
Linux 5.6
Please provide any additional information below.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.