File size: 4,878 Bytes
c3edc81
 
 
e9a08d0
c3edc81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
  "states": ["Init", "Ready", "Play"],
  "initial_state": "Init",
  "final_states": ["Init"],
  "transitions": [
    {
      "from": "Init",
      "event": "cond default",
      "action": "send SETUP; reply NRM=1, RP=0.0",
      "to": "Ready"
    },
    {
      "from": "Init",
      "event": "cond Needs Redirect",
      "action": "send SETUP; reply 3rr Redirect",
      "to": "Init"
    },
    {
      "from": "Init",
      "event": "cond No Session hdr",
      "action": "send S -> C: REDIRECT; reply Terminate all SES",
      "to": "Init"
    },
    {
      "from": "Ready",
      "event": "cond New URI",
      "action": "send SETUP; reply NRM +=1",
      "to": "Ready"
    },
    {
      "from": "Ready",
      "event": "cond URI Setup prior",
      "action": "send SETUP; reply Change transport param",
      "to": "Ready"
    },
    {
      "from": "Ready",
      "event": "cond Prs URI",
      "action": "send TEARDOWN; reply No session hdr, NRM = 0",
      "to": "Init"
    },
    {
      "from": "Ready",
      "event": "cond md URI,NRM=1",
      "action": "send TEARDOWN; reply No Session hdr, NRM = 0",
      "to": "Init"
    },
    {
      "from": "Ready",
      "event": "cond md URI,NRM>1",
      "action": "send TEARDOWN; reply Session hdr, NRM -= 1",
      "to": "Ready"
    },
    {
      "from": "Ready",
      "event": "cond Prs URI, No range",
      "action": "send PLAY; reply Play from RP",
      "to": "Play"
    },
    {
      "from": "Ready",
      "event": "cond Prs URI, Range",
      "action": "send PLAY; reply According to range",
      "to": "Play"
    },
    {
      "from": "Ready",
      "event": "cond md URI, NRM=1, Range",
      "action": "send PLAY; reply According to range",
      "to": "Play"
    },
    {
      "from": "Ready",
      "event": "cond md URI, NRM=1",
      "action": "send PLAY; reply Play from RP",
      "to": "Play"
    },
    {
      "from": "Ready",
      "event": "cond Prs URI",
      "action": "send PAUSE; reply Return PP",
      "to": "Ready"
    },
    {
      "from": "Ready",
      "event": "cond Terminate-Reason",
      "action": "send SC:REDIRECT; reply Set RedP",
      "to": "Ready"
    },
    {
      "from": "Ready",
      "event": "cond No Terminate-Reason time parameter",
      "action": "send SC:REDIRECT; reply Session is removed",
      "to": "Init"
    },
    {
      "from": "Ready",
      "event": "cond default",
      "action": "timeout",
      "to": "Init"
    },
    {
      "from": "Ready",
      "event": "cond default",
      "action": "cond RedP reached; reply TEARDOWN of session",
      "to": "Init"
    },
    {
      "from": "Play",
      "event": "cond Prs URI",
      "action": "send PAUSE; reply Set RP to present point",
      "to": "Ready"
    },
    {
      "from": "Play",
      "event": "cond All media",
      "action": "set Set RP = End of media",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond default",
      "action": "set Set RP = End of range",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond Prs URI, No range",
      "action": "send PLAY; reply Play from present point",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond Prs URI, Range",
      "action": "send PLAY; reply According to range",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond default",
      "action": "send SC:PLAY_NOTIFY; reply 200",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond New URI",
      "action": "send SETUP; reply 455",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond md URI",
      "action": "send SETUP; reply 455",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond md URI, IFI",
      "action": "send SETUP; reply Change transport param.",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond Prs URI",
      "action": "send TEARDOWN; reply No session hdr",
      "to": "Init"
    },
    {
      "from": "Play",
      "event": "cond md URI,NRM=1",
      "action": "send TEARDOWN; reply No Session hdr, NRM=0",
      "to": "Init"
    },
    {
      "from": "Play",
      "event": "cond md URI",
      "action": "send TEARDOWN; reply 455",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond Terminate Reason with Time parameter",
      "action": "send SC:REDIRECT; reply Set RedP",
      "to": "Play"
    },
    {
      "from": "Play",
      "event": "cond default",
      "action": "send SC:REDIRECT; reply Session is removed",
      "to": "Init"
    },
    {
      "from": "Play",
      "event": "cond default",
      "action": "cond RedP reached; reply TEARDOWN of session",
      "to": "Init"
    },
    {
      "from": "Play",
      "event": "cond default",
      "action": "timeout; reply Stop Media playout",
      "to": "Init"
    }
  ]
}