summaryrefslogtreecommitdiff
path: root/tests/mgcp_client/mgcp_client_test.ok
blob: 454ee3d085e4f6c65d385d715a14c99750012845 (plain)
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
===== test_crcx =====
composed:
-----
CRCX 1 17@mgw MGCP 1.0
C: 2a
L: p:20, a:AMR, nt:IN
M: loopback

-----
composed response:
-----
200 1 OK
I: 1

v=0
o=- 1 23 IN IP4 10.9.1.120
s=-
c=IN IP4 10.9.1.120
t=0 0
m=audio 16002 RTP/AVP 110 96
a=rtpmap:110 AMR/8000
a=rtpmap:96 GSM-EFR/8000
a=ptime:20

-----
response cb received:
  head.response_code = 200
  head.trans_id = 1
  head.comment = OK
  audio_port = 16002
  audio_ip = 10.9.1.120
  ptime = 20
  codecs_len = 2
  codecs[0] = 112
  codecs[1] = 110
  ptmap_len = 2
  ptmap[0].codec = 112
  ptmap[0].pt = 110
  ptmap[1].codec = 110
  ptmap[1].pt = 96

Generated CRCX message:
CRCX 1 23@mgw MGCP 1.0
C: 2f
I: 11
L: p:20, a:GSM, nt:IN
M: sendrecv

Generated CRCX message (two codecs):
CRCX 2 23@mgw MGCP 1.0
C: 2f
I: 11
L: p:20, a:GSM;AMR, nt:IN
M: sendrecv

Generated CRCX message (three codecs, one with custom pt):
CRCX 3 23@mgw MGCP 1.0
C: 2f
I: 11
L: p:20, a:GSM;AMR;GSM-EFR, nt:IN
M: sendrecv

Generated MDCX message:
MDCX 4 23@mgw MGCP 1.0
C: 2f
I: 11
M: sendrecv

v=0
o=- 2f 23 IN IP4 127.0.0.1
s=-
c=IN IP4 192.168.100.23
t=0 0
m=audio 1234 RTP/AVP 3
a=ptime:20

Generated MDCX message (two codecs):
MDCX 5 23@mgw MGCP 1.0
C: 2f
I: 11
M: sendrecv

v=0
o=- 2f 23 IN IP4 127.0.0.1
s=-
c=IN IP4 192.168.100.23
t=0 0
m=audio 1234 RTP/AVP 3 112
a=rtpmap:112 AMR/8000/1
a=ptime:20

Generated MDCX message (three codecs, one with custom pt):
MDCX 6 23@mgw MGCP 1.0
C: 2f
I: 11
M: sendrecv

v=0
o=- 2f 23 IN IP4 127.0.0.1
s=-
c=IN IP4 192.168.100.23
t=0 0
m=audio 1234 RTP/AVP 3 112 96
a=rtpmap:112 AMR/8000/1
a=rtpmap:96 GSM-EFR/8000/1
a=ptime:20

Generated DLCX message:
DLCX 7 23@mgw MGCP 1.0
C: 2f
I: 11

Generated AUEP message:
AUEP 8 23@mgw MGCP 1.0

Generated RSIP message:
RSIP 9 23@mgw MGCP 1.0

Overfolow test:


test_mgcp_client_cancel():
composed:
-----
CRCX 1 23@mgw MGCP 1.0
C: 2f
I: 11
L: p:20, a:AMR, nt:IN
M: sendrecv

-----
composed response:
-----
200 1 OK
I: 1

v=0

-----

test_sdp_section_start() test [0]:

test_sdp_section_start() test [1]:

test_sdp_section_start() test [2]:

test_sdp_section_start() test [3]:

test_sdp_section_start() test [4]:

test_sdp_section_start() test [5]:

test_sdp_section_start() test [6]:

test_sdp_section_start() test [7]:

test_sdp_section_start() test [8]:

test_sdp_section_start() test [9]:
 110 => 96
 111 => 97
 112 => 98
 113 => 99
 96 <= 110
 97 <= 111
 98 <= 112
 99 <= 113

 0 => 0
 3 => 3
 8 => 8
 18 => 18
 0 <= 0
 3 <= 3
 8 <= 8
 18 <= 18

 110 => 96
 111 => 97
 112 => 98
 113 => 113
 0 => 0
 96 <= 110
 97 <= 111
 98 <= 112
 2 <= 2
 100 <= 100

Done