Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-SipUnit

New issue 25 by [email protected]: sendRequestWithTransaction() causes subsequent waitForDisconnect() to timeout.
http://code.google.com/p/commtesting/issues/detail?id=25

I am using sipunit to test a B2BUA, so I have a class with a pair of SipPhone/SipCall objects representing each leg of the call, A and B. I use SipCall methods to establish and terminate the call through the B2BUA.

One of the tests I would like to perform is to send an UPDATE request through the B2BUA from A to B and an UPDATE response back from B to A. Since SipCall does not provide methods to do this I have had to use the SipPhone parent to send the request:

Dialog dialog = holder.getDialog();
Request update = dialog.createRequest(Request.UPDATE);
ContentTypeHeader contentTypeHeader = holder.getHeaderFactory()
              .createContentTypeHeader("application", "sdp");
update.setContent(sdpContent, contentTypeHeader);
callA.getParent().sendRequestWithTransaction(update, false, dialog);

and similar code to receive the request at B and send the UPDATE response back. This all seems to work fine, but it appears that as soon as the sendRequestWithTransaction() method is invoked on phoneA this causes callA.waitForDisconnect() to never see the BYE sent to it by the B2BUA when the call terminates - it always returns a timeout error. I can see the BYE message arrive using wireshark, but callA seems not to be in a state to receive it. I've commented out various parts of the code and I'm fairly confident that the sendRequestWithTransaction() method is causing the issue.

So does anyone have any ideas why sendRequestWithTransaction() seems to cause this unwanted side effect? Is there a better way to create and send an UPDATE request that won't hit this problem?

Many thanks
David Elliston.



--
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/d/optout.

Reply via email to