forked from RestComm/sipunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
36 lines (27 loc) · 1.63 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SipUnit README
-----------------------
For documentation, visit
http://www.cafesip.org/projects/sipunit/
For license information: Open the file
docs/license/index.html using a web browser.
For the SipUnit API class javadocs: open the file
docs/api/index.html using a web browser.
For tutorial-type examples, see the SipUnit user guide at
http://www.cafesip.org/projects/sipunit/
For example real test classes that use SipUnit, see the SipUnit unit test java files in the binary
distribution and in the source code project. You can run the noproxy/TestNoProxy
test right away, see next item.
For running some of the other test classes, a proxy or stun server is required. For setup info,
see the header comments in each test java file and also visit the section on proxy
considerations in the user guide at
http://www.cafesip.org/projects/sipunit/
TO RUN AN EXAMPLE TEST: see how in the installation test section of the SipUnit user guide at
http://www.cafesip.org/projects/sipunit/
To debug what's happening during a SipUnit test, turn on the SipUnit trace by adding
this line of code to your test class setUp() method after creating the SipStack:
SipStack.setTraceEnabled(true);
You can also set the trace level to 32 instead of the default 16 to get even more output. Do it by setting the
following property in the properties provided to SipStack creation:
properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32");
Also you can use the NIST-SIP visual trace tool. See how, and get it, here:
http://java.net/projects/jsip/sources/svn/show/tags/JAIN-SIP-1-2-165/src/tools/tracesviewer