CHECK
1.59 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
To launch the complete test suite, try this:
$> make check
The above command test all SIP messages from the "res/torture_msgs"
file and all SDP messages from the "res/torture_sdps" file.
Available test programs are:
* ./test/torture_test: test the SIP parser.
* ./test/torture_sdp : test the SDP parser, its accessor API and the
framework for negotiation.
* ./test/turl : test the sip-urls parser.
* ./test/tto : test some 'to' fields
* ./test/tfrom : test some 'from' fields
* ./test/tcontact : test some 'contact' fields
* ./test/tvia : test some 'via' fields
* ./test/tcallid : test some 'call-id' fields
* ./test/tcontentt : test some 'content-type' fields
How to use the test programs:
--> the SIP parser test messages found in a file.
Some SIP Message samples are provided in res/torture_msgs
res/torture_msgs2
./test/torture_test res/torture_msgs 0
./test/torture_test res/torture_msgs 1 -v
./test/torture_test res/torture_msgs 3 -v -c
available options:
-v : print more info about messages.
-c : test the "osip_message_clone" method.
--> the SIP url parser:
./test/turl res/urls.txt
--> the SIP headers parser:
./test/tcallid conf/callids.txt
./test/tfrom conf/froms.txt
./test/tto conf/tos.txt
./test/tvia conf/vias.txt
./test/tcontact conf/contacts.txt
--> the SDP parser:
Some SDP Message samples are provided in res/torture_sdps
./test/torture_sdp res/torture_sdps 3
./test/torture_sdp res/torture_sdps 3 -v