I am currently testing a B2B SIP servlet and having some issue with SipUnit closing down the dialog. Following an example in another post I created a BYE by hand and waited for the response:
Which works and my application gets the BYE request. The problem is when the servlet responds with a 200 OK it complains because the dialog is terminated, which I can see from the output:
INFO - SipB2BCallSteps - SipB2BCallSteps.java 168 TEST: Confirmed Dialog
INFO - SipB2BCallSteps - SipB2BCallSteps.java 186 TEST: Not yet determined
INFO - SipB2BCallSteps - SipB2BCallSteps.java 190 TEST: Terminated Dialog
...
Should SipUnit be closing the dialog in this scenario? If so how can I otherwise test for the response.
Cheers
H
Last edit: Hojo 2014-03-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FYI, the SipUnit project has moved to this URL: https://code.google.com/p/commtesting/
Questions/issues should be posted over there.
Have fun.
Kind regards,
Becky
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am currently testing a B2B SIP servlet and having some issue with SipUnit closing down the dialog. Following an example in another post I created a BYE by hand and waited for the response:
...
LOGGER.info("TEST: {}", sipCallB.getDialog().getState());
...
Which works and my application gets the BYE request. The problem is when the servlet responds with a 200 OK it complains because the dialog is terminated, which I can see from the output:
INFO - SipB2BCallSteps - SipB2BCallSteps.java 168 TEST: Confirmed Dialog
INFO - SipB2BCallSteps - SipB2BCallSteps.java 186 TEST: Not yet determined
INFO - SipB2BCallSteps - SipB2BCallSteps.java 190 TEST: Terminated Dialog
...
Should SipUnit be closing the dialog in this scenario? If so how can I otherwise test for the response.
Cheers
H
Last edit: Hojo 2014-03-17
I just found this function:
sipCallB.getDialog().terminateOnBye(false);
Seems to have changed the outcome of the dialog closure. Need to test further tomorrow.
H
Hi Hojo,
Yes, SipUnit sits on top of JUnit and JAIN-SIP 1.2. There is alot you can do with the JAIN-SIP classes. The javadocs are here:
https://developer.opencloud.com/devportal/devportal/apis/jainsip/1.2/docs/index.html
FYI, the SipUnit project has moved to this URL:
https://code.google.com/p/commtesting/
Questions/issues should be posted over there.
Have fun.
Kind regards,
Becky