/[resiprocate]/branches/b-directory-reorg/resip/sip/test/testTFSM-servernoninvite
ViewVC logotype

Contents of /branches/b-directory-reorg/resip/sip/test/testTFSM-servernoninvite

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5274 - (show annotations) (download)
Thu Aug 18 23:53:59 2005 UTC (14 years, 5 months ago) by jason
File size: 1650 byte(s)
initial reorg - more to come
1 # Non-Invite from the transport
2 inject_wire
3 {
4 REGISTER sip:127.0.0.1 SIP/2.0
5 Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
6 Max-Forwards: 70
7 From: sip:A@inside.com;tag=12345
8 To: sip:A@inside.com
9 Call-ID: 0123456789@pc.inside.com
10 CSeq: 1 REGISTER
11 Contact: <sip:A@pc.inside.com>
12 Content-Length: 0
13
14 }
15
16 # See the REGISTER be passed up to the TU
17 expect_tu
18 {
19 method=REGISTER
20 timeout=1000
21 }
22
23 # Wait for the above to expire
24 delay
25 {
26 timeout=2000
27 }
28
29 # Inject a provisional response from the TU
30 inject_tu
31 {
32 SIP/2.0 100 Trying
33 Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
34 From: sip:A@inside.com;tag=12345
35 To: sip:A@inside.com
36 Call-ID: 0123456789@pc.inside.com
37 CSeq: 1 REGISTER
38 Content-Length: 0
39
40 }
41
42 # See the 100 Trying provisional response passed by the stack
43 expect_wire
44 {
45 status=100
46 timeout=1000
47 }
48
49 # Wait for the above to expire
50 delay
51 {
52 timeout=2000
53 }
54
55 # Retransmission of the REGISTER from the transport
56 inject_wire
57 {
58 REGISTER sip:127.0.0.1 SIP/2.0
59 Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
60 Max-Forwards: 70
61 From: sip:A@inside.com;tag=12345
62 To: sip:A@inside.com
63 Call-ID: 0123456789@pc.inside.com
64 CSeq: 1 REGISTER
65 Contact: <sip:A@pc.inside.com>
66 Content-Length: 0
67
68 }
69
70 # See the 100 Trying provisional response passed (cached by the stack)
71 expect_wire
72 {
73 status=100
74 timeout=1000
75 }
76
77 # Wait for the above to expire
78 delay
79 {
80 timeout=2000
81 }
82
83 inject_tu
84 {
85 SIP/2.0 200 OK
86 Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
87 From: sip:A@inside.com;tag=12345
88 To: sip:A@inside.com
89 Call-ID: 0123456789@pc.inside.com
90 CSeq: 1 REGISTER
91 Content-Length: 0
92
93 }
94
95 expect_wire
96 {
97 status=200
98 timeout=1000
99 }
100
101 delay
102 {
103 timeout=2000
104 }

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27