- utils keeps only the applications related to kamailio c code
- the other are now in misc/tools
- utils/misc/vim moved to misc/extra/
- obsolete and scripts folders moved to misc/
1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,922 +0,0 @@ |
1 |
-#!/bin/sh |
|
2 |
-# |
|
3 |
-# $Id$ |
|
4 |
-# |
|
5 |
-# tool for post-processesing captured SIP messages |
|
6 |
-# |
|
7 |
-# call it without parameters to harvest the youngest |
|
8 |
-# log file or with "all" parameter to harvest all |
|
9 |
-# |
|
10 |
-# you need to capture SIP messages first; you |
|
11 |
-# may for example run an init.d job such as |
|
12 |
-# ngrep -t port 5060 2>&1 | rotatelogs /var/log/sip 86400& |
|
13 |
-# caution: if you do that you best set up a crond daemon |
|
14 |
-# which deletes the files too -- they become huge |
|
15 |
-# very quickly |
|
16 |
-# |
|
17 |
-# note that the tool has no notion of messages and transactions |
|
18 |
-# yet; a consuquence of the former is that number of clients |
|
19 |
-# which do not identify themselves using User-Agent HF is |
|
20 |
-# unknown (only lines which include it are processed); |
|
21 |
-# a consequence is also that relayed messages are |
|
22 |
-# counted twice (incoming, outgoing), and INVITEs are not |
|
23 |
-# correlated with BYEs |
|
24 |
-# |
|
25 |
- |
|
26 |
- |
|
27 |
-LOGDIR=/var/log/sip |
|
28 |
- |
|
29 |
-##################### |
|
30 |
- |
|
31 |
-if [ "$1" = "all" ] ; then |
|
32 |
- CURRENT=`ls -t $LOGDIR/sip.*` |
|
33 |
-else |
|
34 |
- CURRENT=`ls -t $LOGDIR/sip.* | head -1` |
|
35 |
-fi |
|
36 |
-echo "Log: `ls -l $CURRENT`" |
|
37 |
-echo "Date: `date`" |
|
38 |
- |
|
39 |
-#cat $CURRENT | ./ser_harvest.awk |
|
40 |
- |
|
41 |
-AWK_PG=' |
|
42 |
-BEGIN { |
|
43 |
- |
|
44 |
- IGNORECASE=1; |
|
45 |
- |
|
46 |
- rpl100=0; rpl180=0; rpl183=0; rpl1xx=0; |
|
47 |
- rpl200=0; rpl202=0; rpl2xx=0; |
|
48 |
- rpl300=0; rpl302=0; rpl3xx=0; |
|
49 |
- rpl400=0; rpl401=0; rpl403=0; rpl404=0; rpl405=0; |
|
50 |
- rpl406=0;rpl407=0;rpl408=0;rpl410=0; rpl415=0; |
|
51 |
- rpl476=0;rpl477=0;rpl480=0;rpl481=0;rpl482=0;rpl483=0;rpl486=0;rpl478=0;rpl487=0; |
|
52 |
- rpl488=0;rpl489=0; |
|
53 |
- rpl4xx=0; |
|
54 |
- rpl479=0; |
|
55 |
- rpl500=0;rpl501=0;rpl502=0;rpl503=0;rpl5xx=0; |
|
56 |
- rpl603=0;rpl6xx=0; |
|
57 |
- |
|
58 |
- hint_imgw=0; |
|
59 |
- hint_voicemail=0; |
|
60 |
- hint_battest=0; |
|
61 |
- hint_usrloc=0; |
|
62 |
- hint_outbound=0; |
|
63 |
- hint_sms=0; |
|
64 |
- hint_gw=0; |
|
65 |
- hint_off_voicemail=0; |
|
66 |
- |
|
67 |
- |
|
68 |
- cancel=0;invite=0;ack=0; info=0;register=0;bye=0; |
|
69 |
- options=0; |
|
70 |
- message=0; subscribe=0; notify=0; |
|
71 |
- |
|
72 |
- ua_snom=0; |
|
73 |
- ua_msn=0; |
|
74 |
- ua_mitel=0; |
|
75 |
- ua_pingtel=0; |
|
76 |
- ua_ser=0; |
|
77 |
- ua_osip=0; |
|
78 |
- ua_linphone=0; |
|
79 |
- ua_kphone=0; |
|
80 |
- ua_sjphone=0; |
|
81 |
- ua_ubiquity=0; |
|
82 |
- ua_3com=0; |
|
83 |
- ua_ipdialog=0; |
|
84 |
- ua_epygi=0; |
|
85 |
- ua_jasomi=0; |
|
86 |
- ua_cisco=0; |
|
87 |
- ua_insipid=0; |
|
88 |
- ua_hotsip=0; |
|
89 |
- ua_mxsf=0; |
|
90 |
- ua_grandstream=0; |
|
91 |
- ua_tellme=0; |
|
92 |
- ua_pocketsipm=0; |
|
93 |
- ua_estara=0; |
|
94 |
- ua_vovida=0; |
|
95 |
- ua_jsip=0; |
|
96 |
- ua_nortel=0; |
|
97 |
- ua_polycom=0; |
|
98 |
- ua_csco=0; |
|
99 |
- ua_leader=0; |
|
100 |
- ua_nebula=0; |
|
101 |
- ua_yamaha=0; |
|
102 |
- ua_magicppc=0; |
|
103 |
- ua_scs=0; |
|
104 |
- ua_edgeaccess=0; |
|
105 |
- ua_tkc=0; |
|
106 |
- ua_hp300=0; |
|
107 |
- ua_eyep=0; |
|
108 |
- ua_sipimp=0; |
|
109 |
- ua_sjphone=0; |
|
110 |
- ua_lgelite=0; |
|
111 |
- ua_asterisk=0; |
|
112 |
- ua_commworks=0; |
|
113 |
- ua_sipsak=0; |
|
114 |
- ua_fxsgw=0; |
|
115 |
- ua_sxdesign=0; |
|
116 |
- ua_dlink=0; |
|
117 |
- ua_gphone=0; |
|
118 |
- ua_xlite=0; |
|
119 |
- ua_edial=0; |
|
120 |
- ua_gs=0; |
|
121 |
- ua_sipps=0; |
|
122 |
- ua_i3micro=0; |
|
123 |
- ua_act=0; |
|
124 |
- ua_ibm=0; |
|
125 |
- ua_xpro=0; |
|
126 |
- ua_hearme=0; |
|
127 |
- ua_draytek=0; |
|
128 |
- ua_st280; |
|
129 |
- ua_dta=0; |
|
130 |
- ua_fci=0; |
|
131 |
- ua_xx=0; |
|
132 |
- |
|
133 |
- server_cisco=0 |
|
134 |
- server_ser=0 |
|
135 |
- server_intertex=0 |
|
136 |
- server_hotsip=0 |
|
137 |
- server_3com=0 |
|
138 |
- server_epygi=0; |
|
139 |
- server_leader=0; |
|
140 |
- server_ims=0; |
|
141 |
- server_csco=0; |
|
142 |
- server_sapphire=0; |
|
143 |
- server_lucent=0; |
|
144 |
- server_snom=0; |
|
145 |
- server_edgeaccess=0; |
|
146 |
- server_mcet=0; |
|
147 |
- server_sjphone=0; |
|
148 |
- server_starsip=0; |
|
149 |
- server_ipdialog=0; |
|
150 |
- server_edial=0; |
|
151 |
- server_ma=0; |
|
152 |
- server_fwd=0; |
|
153 |
- server_columbia=0; |
|
154 |
- server_partysip=0; |
|
155 |
- server_xx=0 |
|
156 |
- |
|
157 |
-} |
|
158 |
- |
|
159 |
-{ua=0; request=0;reply=0;server=0} |
|
160 |
- |
|
161 |
-ua==0 && /User-Agent:.*RTC\// { |
|
162 |
- ua_msn++ |
|
163 |
- ua=1 |
|
164 |
-} |
|
165 |
-ua==0 && /User-Agent:.*Sip EXpress/ { |
|
166 |
- ua_ser++ |
|
167 |
- ua=1 |
|
168 |
-} |
|
169 |
-ua==0 && /User-Agent:.*Pingtel/ { |
|
170 |
- ua_pingtel++ |
|
171 |
- ua=1 |
|
172 |
-} |
|
173 |
-ua==0 && /User-Agent:.*Cisco/ { |
|
174 |
- ua_cisco++ |
|
175 |
- ua=1 |
|
176 |
-} |
|
177 |
-ua==0 && /User-Agent:.*snom/ { |
|
178 |
- ua_snom++ |
|
179 |
- ua=1 |
|
180 |
-} |
|
181 |
-ua==0 && /User-Agent:.*tkcPhone/ { |
|
182 |
- ua_tkc++ |
|
183 |
- ua=1 |
|
184 |
-} |
|
185 |
-ua==0 && /User-Agent:.*Mitel/ { |
|
186 |
- ua_mitel++ |
|
187 |
- ua=1 |
|
188 |
-} |
|
189 |
-ua==0 && /User-Agent:.*oSIP-ua/ { |
|
190 |
- ua_osip++ |
|
191 |
- ua=1 |
|
192 |
-} |
|
193 |
-ua==0 && /User-Agent:.*oSIP\/Linphone/ { |
|
194 |
- ua_linphone++ |
|
195 |
- ua=1 |
|
196 |
-} |
|
197 |
-ua==0 && /User-Agent:.*3Com/ { |
|
198 |
- ua_3com++ |
|
199 |
- ua=1 |
|
200 |
-} |
|
201 |
-ua==0 && /User-Agent:.*ipDialog/ { |
|
202 |
- ua_ipdialog++ |
|
203 |
- ua=1 |
|
204 |
-} |
|
205 |
-ua==0 && /User-Agent:.*UbiquityUserAgent/ { |
|
206 |
- ua_ubiquity++ |
|
207 |
- ua=1 |
|
208 |
-} |
|
209 |
-ua==0 && /User-Agent:.*EPYGI/ { |
|
210 |
- ua_epygi++ |
|
211 |
- ua=1 |
|
212 |
-} |
|
213 |
-ua==0 && /User-Agent:.*Jasomi/ { |
|
214 |
- ua_jasomi++ |
|
215 |
- ua=1 |
|
216 |
-} |
|
217 |
-ua==0 && /User-Agent:.*Insipid/ { |
|
218 |
- ua_insipid++ |
|
219 |
- ua=1 |
|
220 |
-} |
|
221 |
-ua==0 && /User-Agent:.*mxsf/ { |
|
222 |
- ua_mxsf++ |
|
223 |
- ua=1 |
|
224 |
-} |
|
225 |
-ua==0 && /User-Agent:.*Hotsip/ { |
|
226 |
- ua_hotsip++ |
|
227 |
- ua=1 |
|
228 |
-} |
|
229 |
-ua==0 && /User-Agent:.*GrandStream/ { |
|
230 |
- ua_grandstream++ |
|
231 |
- ua=1 |
|
232 |
-} |
|
233 |
-ua==0 && /User-Agent:.*Tellme/ { |
|
234 |
- ua_tellme++ |
|
235 |
- ua=1 |
|
236 |
-} |
|
237 |
-ua==0 && /User-Agent:.*PocketSipM/ { |
|
238 |
- ua_pocketsipm++ |
|
239 |
- ua=1 |
|
240 |
-} |
|
241 |
-ua==0 && /User-Agent:.*eStara/ { |
|
242 |
- ua_estara++ |
|
243 |
- ua=1 |
|
244 |
-} |
|
245 |
-ua==0 && /User-Agent:.*vovida/ { |
|
246 |
- ua_vovida++ |
|
247 |
- ua=1 |
|
248 |
-} |
|
249 |
-ua==0 && /User-Agent:.*jSIP/ { |
|
250 |
- ua_jsip++ |
|
251 |
- ua=1 |
|
252 |
-} |
|
253 |
-ua==0 && /User-Agent:.*Nortel/ { |
|
254 |
- ua_nortel++ |
|
255 |
- ua=1 |
|
256 |
-} |
|
257 |
-ua==0 && /User-Agent:.*Polycom/ { |
|
258 |
- ua_polycom++ |
|
259 |
- ua=1 |
|
260 |
-} |
|
261 |
-ua==0 && /User-Agent:.*CSCO/ { |
|
262 |
- ua_csco++ |
|
263 |
- ua=1 |
|
264 |
-} |
|
265 |
-ua==0 && /User-Agent:.*LeaderSIP/ { |
|
266 |
- ua_leader++ |
|
267 |
- ua=1 |
|
268 |
-} |
|
269 |
-ua==0 && /User-Agent:.*Nebula/ { |
|
270 |
- ua_nebula++ |
|
271 |
- ua=1 |
|
272 |
-} |
|
273 |
-ua==0 && /User-Agent:.*YAMAHA/ { |
|
274 |
- ua_yamaha++ |
|
275 |
- ua=1 |
|
276 |
-} |
|
277 |
-ua==0 && /User-Agent:.*MagicPPC/ { |
|
278 |
- ua_magicppc++ |
|
279 |
- ua=1 |
|
280 |
-} |
|
281 |
-ua==0 && /User-Agent:.*SJPhone/ { |
|
282 |
- ua_sjphone++ |
|
283 |
- ua=1 |
|
284 |
-} |
|
285 |
-ua==0 && /User-Agent:.*KPhone/ { |
|
286 |
- ua_kphone++ |
|
287 |
- ua=1 |
|
288 |
-} |
|
289 |
-ua==0 && /User-Agent:.*SCS/ { |
|
290 |
- ua_scs++ |
|
291 |
- ua=1 |
|
292 |
-} |
|
293 |
-ua==0 && /User-Agent:.*HP300/ { |
|
294 |
- ua_hp300++ |
|
295 |
- ua=1 |
|
296 |
-} |
|
297 |
-ua==0 && /User-Agent:.*SIP EyeP Phone/ { |
|
298 |
- ua_eyep++ |
|
299 |
- ua=1 |
|
300 |
-} |
|
301 |
-ua==0 && /User-Agent:.*EdgEAccEss/ { |
|
302 |
- ua_edgeaccess++ |
|
303 |
- ua=1 |
|
304 |
-} |
|
305 |
-ua==0 && /User-Agent:.*SJLabs-SJPhone/ { |
|
306 |
- ua_sjphone++ |
|
307 |
- ua=1 |
|
308 |
-} |
|
309 |
-ua==0 && /User-Agent:.*LG-Elite/ { |
|
310 |
- ua_lgelite++ |
|
311 |
- ua=1 |
|
312 |
-} |
|
313 |
-ua==0 && /User-Agent:.*Asterisk/ { |
|
314 |
- ua_asterisk++ |
|
315 |
- ua=1 |
|
316 |
-} |
|
317 |
-ua==0 && /User-Agent:.*CommWorks/ { |
|
318 |
- ua_commworks++ |
|
319 |
- ua=1 |
|
320 |
-} |
|
321 |
-ua==0 && /User-Agent:.*sipsak/ { |
|
322 |
- ua_sipsak++ |
|
323 |
- ua=1 |
|
324 |
-} |
|
325 |
-ua==0 && /User-Agent:.*FXS_GW/ { |
|
326 |
- ua_fxsgw++ |
|
327 |
- ua=1 |
|
328 |
-} |
|
329 |
-ua==0 && /User-Agent:.*SX Des/ { |
|
330 |
- ua_sxdesign++ |
|
331 |
- ua=1 |
|
332 |
-} |
|
333 |
-ua==0 && /User-Agent:.*SIPimp\.org/ { |
|
334 |
- ua_sipimp++ |
|
335 |
- ua=1 |
|
336 |
-} |
|
337 |
-ua==0 && /User-Agent:.*D-Link/ { |
|
338 |
- ua_dlink++ |
|
339 |
- ua=1 |
|
340 |
-} |
|
341 |
-ua==0 && /User-Agent:.*Gphone/ { |
|
342 |
- ua_gphone++ |
|
343 |
- ua=1 |
|
344 |
-} |
|
345 |
-ua==0 && /User-Agent:.*eDial/ { |
|
346 |
- ua_edial++ |
|
347 |
- ua=1 |
|
348 |
-} |
|
349 |
-ua==0 && /User-Agent:.*Grandstream/ { |
|
350 |
- ua_gs++ |
|
351 |
- ua=1 |
|
352 |
-} |
|
353 |
-ua==0 && /User-Agent:.*Ahead SIPPS/ { |
|
354 |
- ua_sipps++ |
|
355 |
- ua=1 |
|
356 |
-} |
|
357 |
-ua==0 && /User-Agent:.*IBM user agent/ { |
|
358 |
- ua_ibm++ |
|
359 |
- ua=1 |
|
360 |
-} |
|
361 |
-ua==0 && /User-Agent:.*Vega/ { |
|
362 |
- ua_vega++ |
|
363 |
- ua=1 |
|
364 |
-} |
|
365 |
-ua==0 && /User-Agent:.*i3micro/ { |
|
366 |
- ua_i3micro++ |
|
367 |
- ua=1 |
|
368 |
-} |
|
369 |
-ua==0 && /User-Agent:.*ACT/ { |
|
370 |
- ua_act++ |
|
371 |
- ua=1 |
|
372 |
-} |
|
373 |
-ua==0 && /User-Agent:.*X-Pro/ { |
|
374 |
- ua_xpro++ |
|
375 |
- ua=1 |
|
376 |
-} |
|
377 |
-ua==0 && /User-Agent:.*HearMe/ { |
|
378 |
- ua_hearme++ |
|
379 |
- ua=1 |
|
380 |
-} |
|
381 |
-ua==0 && /User-Agent:.*DrayTek/ { |
|
382 |
- ua_draytek++ |
|
383 |
- ua=1 |
|
384 |
-} |
|
385 |
-ua==0 && /User-Agent:.*X-Lite/ { |
|
386 |
- ua_xlite++ |
|
387 |
- ua=1 |
|
388 |
-} |
|
389 |
-ua==0 && /User-Agent:.*DTA/ { |
|
390 |
- ua_dta++ |
|
391 |
- ua=1 |
|
392 |
-} |
|
393 |
-ua==0 && /User-Agent:.*FCI/ { |
|
394 |
- ua_fci++ |
|
395 |
- ua=1 |
|
396 |
-} |
|
397 |
-ua==0 && /User-Agent:.*ST280/ { |
|
398 |
- ua_st++ |
|
399 |
- ua=1 |
|
400 |
-} |
|
401 |
- |
|
402 |
- |
|
403 |
- { comment="hack to deal with old version of ngrep (breaking in columns)" |
|
404 |
- c="skip lines which words which frequently appeared on broken " |
|
405 |
- c="columns. should not affect non-broken logs" |
|
406 |
- } |
|
407 |
- |
|
408 |
- |
|
409 |
-ua==0 && /(CANCEL|REGISTER|SUBSCRIBE|ACK|BYE|INVITE|REFER|OPTIONS|NOTIFY|sip-cc).*User-Agent:/ { |
|
410 |
- ua=1 |
|
411 |
-} |
|
412 |
- |
|
413 |
-ua==0 && /User-Agent:/ { |
|
414 |
- ua_xx++ |
|
415 |
|
|
416 |
-} |
|
417 |
- |
|
418 |
- |
|
419 |
-server==0 && /Server:.*Cisco/ { |
|
420 |
- server_cisco++ |
|
421 |
- server=1 |
|
422 |
-} |
|
423 |
-server==0 && /Server:.*Sip EXpress/ { |
|
424 |
- server_ser++ |
|
425 |
- server=1 |
|
426 |
-} |
|
427 |
-server==0 && /Server:.*Intertex/ { |
|
428 |
- server_intertex++ |
|
429 |
- server=1 |
|
430 |
-} |
|
431 |
-server==0 && /Server:.*HotSip/ { |
|
432 |
- server_hotsip++ |
|
433 |
- server=1 |
|
434 |
-} |
|
435 |
-server==0 && /Server:.*3Com/ { |
|
436 |
- server_3com++ |
|
437 |
- server=1 |
|
438 |
-} |
|
439 |
-server==0 && /Server:.*EPYGI/ { |
|
440 |
- server_epygi++ |
|
441 |
- server=1 |
|
442 |
-} |
|
443 |
-server==0 && /Server:.*LeaderSIP_UA/ { |
|
444 |
- server_leader++ |
|
445 |
- server=1 |
|
446 |
-} |
|
447 |
-server==0 && /Server:.*IMS/ { |
|
448 |
- server_ims++ |
|
449 |
- server=1 |
|
450 |
-} |
|
451 |
-server==0 && /Server:.*CSCO/ { |
|
452 |
- server_csco++ |
|
453 |
- server=1 |
|
454 |
-} |
|
455 |
-server==0 && /Server:.*sapphire/ { |
|
456 |
- server_sapphire++ |
|
457 |
- server=1 |
|
458 |
-} |
|
459 |
-server==0 && /Server:.*snom/ { |
|
460 |
- server_snom++ |
|
461 |
- server=1 |
|
462 |
-} |
|
463 |
-server==0 && /Server:.*Lucent/ { |
|
464 |
- server_lucent++ |
|
465 |
- server=1 |
|
466 |
-} |
|
467 |
-server==0 && /Server:.*EdgEAccEss/ { |
|
468 |
- server_edgeaccess++ |
|
469 |
- server=1 |
|
470 |
-} |
|
471 |
-server==0 && /Server:.*MCET/ { |
|
472 |
- server_mcet++ |
|
473 |
- server=1 |
|
474 |
-} |
|
475 |
-server==0 && /Server:.*SJLabs-SJPhone/ { |
|
476 |
- server_sjphone++ |
|
477 |
- server=1 |
|
478 |
-} |
|
479 |
-server==0 && /Server:.*StarSIP/ { |
|
480 |
- server_starsip++ |
|
481 |
- server=1 |
|
482 |
-} |
|
483 |
-server==0 && /Server:.*ipDialog/ { |
|
484 |
- server_ipdialog++ |
|
485 |
- server=1 |
|
486 |
-} |
|
487 |
-server==0 && /Server:.*eDial/ { |
|
488 |
- server_edial++ |
|
489 |
- server=1 |
|
490 |
-} |
|
491 |
-server==0 && /Server:.*MA/ { |
|
492 |
- server_ma++ |
|
493 |
- server=1 |
|
494 |
-} |
|
495 |
-server==0 && /Server:.*Free World/ { |
|
496 |
- server_fwd++ |
|
497 |
- server=1 |
|
498 |
-} |
|
499 |
-server==0 && /Server:.*SIPUA-Columbia-University/ { |
|
500 |
- server_columbia++ |
|
501 |
- server=1 |
|
502 |
-} |
|
503 |
-server==0 && /Server:.*partysip/ { |
|
504 |
- server_partysip++ |
|
505 |
- server=1 |
|
506 |
-} |
|
507 |
- |
|
508 |
-server==0 && /Server:/ { |
|
509 |
- server_xx++ |
|
510 |
|
|
511 |
-} |
|
512 |
- |
|
513 |
- |
|
514 |
- |
|
515 |
-/P-hint: IMGW/ { |
|
516 |
- hint_imgw++ |
|
517 |
-} |
|
518 |
-/P-hint: VOICEMAIL/ { |
|
519 |
- hint_voicemail++ |
|
520 |
-} |
|
521 |
-/P-hint: BATTEST/ { |
|
522 |
- hint_battest++ |
|
523 |
-} |
|
524 |
-/P-hint: USRLOC/ { |
|
525 |
- hint_usrloc++ |
|
526 |
-} |
|
527 |
-/P-hint: OUTBOUND/ { |
|
528 |
- hint_outbound++ |
|
529 |
-} |
|
530 |
-/P-hint: SMS/ { |
|
531 |
- hint_sms++ |
|
532 |
-} |
|
533 |
-/P-hint: GATEWAY/ { |
|
534 |
- hint_gw++ |
|
535 |
-} |
|
536 |
-/P-hint: OFFLINE-VOICEMAIL/ { |
|
537 |
- hint_off_voicemail++ |
|
538 |
-} |
|
539 |
- |
|
540 |
- |
|
541 |
- |
|
542 |
-/SIP\/2\.0 [0-9][0-9][0-9]/ { |
|
543 |
- reply=1 |
|
544 |
-} |
|
545 |
- |
|
546 |
-/[A-Z]* sip.* SIP\/2\.0/ { |
|
547 |
- request=1 |
|
548 |
-} |
|
549 |
- |
|
550 |
-reply==0 && request=0 { |
|
551 |
- comment="optimization--skip now" |
|
552 |
- next |
|
553 |
-} |
|
554 |
- |
|
555 |
- |
|
556 |
-/SIP\/2\.0 100/ { |
|
557 |
- rpl100++ |
|
558 |
- next |
|
559 |
-} |
|
560 |
-/SIP\/2\.0 180/ { |
|
561 |
- rpl180++ |
|
562 |
- next |
|
563 |
-} |
|
564 |
-/SIP\/2\.0 183/ { |
|
565 |
- rpl183++ |
|
566 |
- next |
|
567 |
-} |
|
568 |
-/SIP\/2\.0 1[0-9][0-9]/ { |
|
569 |
|
|
570 |
- rpl1xx=0 |
|
571 |
- next |
|
572 |
-} |
|
573 |
- |
|
574 |
- |
|
575 |
-/SIP\/2\.0 200/ { |
|
576 |
- rpl200++ |
|
577 |
- next |
|
578 |
-} |
|
579 |
-/SIP\/2\.0 202/ { |
|
580 |
- rpl202++ |
|
581 |
- next |
|
582 |
-} |
|
583 |
-/SIP\/2\.0 2[0-9][0-9]/ { |
|
584 |
|
|
585 |
- rpl2xx++ |
|
586 |
- next |
|
587 |
-} |
|
588 |
- |
|
589 |
-/SIP\/2\.0 300/ { |
|
590 |
- rpl300++ |
|
591 |
- next |
|
592 |
-} |
|
593 |
-/SIP\/2\.0 302/ { |
|
594 |
- rpl302++ |
|
595 |
- next |
|
596 |
-} |
|
597 |
-/SIP\/2\.0 3[0-9][0-9]/ { |
|
598 |
|
|
599 |
- rpl3xx++ |
|
600 |
- next |
|
601 |
-} |
|
602 |
- |
|
603 |
-/SIP\/2\.0 400/ { |
|
604 |
- rpl400++ |
|
605 |
- next |
|
606 |
-} |
|
607 |
-/SIP\/2\.0 401/ { |
|
608 |
- rpl401++ |
|
609 |
- next |
|
610 |
-} |
|
611 |
-/SIP\/2\.0 403/ { |
|
612 |
- rpl403++ |
|
613 |
- next |
|
614 |
-} |
|
615 |
-/SIP\/2\.0 404/ { |
|
616 |
- rpl404++ |
|
617 |
- next |
|
618 |
-} |
|
619 |
-/SIP\/2\.0 405/ { |
|
620 |
- rpl405++ |
|
621 |
- next |
|
622 |
-} |
|
623 |
-/SIP\/2\.0 406/ { |
|
624 |
- rpl406++ |
|
625 |
- next |
|
626 |
-} |
|
627 |
-/SIP\/2\.0 407/ { |
|
628 |
- rpl407++ |
|
629 |
- next |
|
630 |
-} |
|
631 |
-/SIP\/2\.0 408/ { |
|
632 |
- rpl408++ |
|
633 |
- next |
|
634 |
-} |
|
635 |
-/SIP\/2\.0 410/ { |
|
636 |
- rpl410++ |
|
637 |
- next |
|
638 |
-} |
|
639 |
-/SIP\/2\.0 415/ { |
|
640 |
- rpl415++ |
|
641 |
- next |
|
642 |
-} |
|
643 |
-/SIP\/2\.0 478/ { |
|
644 |
- rpl478++ |
|
645 |
- next |
|
646 |
-} |
|
647 |
-/SIP\/2\.0 476/ { |
|
648 |
- rpl476++ |
|
649 |
- next |
|
650 |
-} |
|
651 |
-/SIP\/2\.0 477/ { |
|
652 |
- rpl477++ |
|
653 |
- next |
|
654 |
-} |
|
655 |
-/SIP\/2\.0 480/ { |
|
656 |
- rpl480++ |
|
657 |
- next |
|
658 |
-} |
|
659 |
-/SIP\/2\.0 481/ { |
|
660 |
- rpl481++ |
|
661 |
- next |
|
662 |
-} |
|
663 |
-/SIP\/2\.0 482/ { |
|
664 |
- rpl482++ |
|
665 |
- next |
|
666 |
-} |
|
667 |
-/SIP\/2\.0 483/ { |
|
668 |
- rpl483++ |
|
669 |
- next |
|
670 |
-} |
|
671 |
-/SIP\/2\.0 486/ { |
|
672 |
- rpl486++ |
|
673 |
- next |
|
674 |
-} |
|
675 |
-/SIP\/2\.0 487/ { |
|
676 |
- rpl487++ |
|
677 |
- next |
|
678 |
-} |
|
679 |
-/SIP\/2\.0 488/ { |
|
680 |
- rpl488++ |
|
681 |
- next |
|
682 |
-} |
|
683 |
-/SIP\/2\.0 489/ { |
|
684 |
- rpl489++ |
|
685 |
- next |
|
686 |
-} |
|
687 |
-/SIP\/2\.0 479/ { |
|
688 |
- rpl479++ |
|
689 |
- next |
|
690 |
-} |
|
691 |
-/SIP\/2\.0 4[0-9][0-9]/ { |
|
692 |
|
|
693 |
- rpl4xx++ |
|
694 |
- next |
|
695 |
-} |
|
696 |
- |
|
697 |
- |
|
698 |
-/SIP\/2\.0 500/ { |
|
699 |
- rpl500++ |
|
700 |
- next |
|
701 |
-} |
|
702 |
-/SIP\/2\.0 501/ { |
|
703 |
- rpl501++ |
|
704 |
- next |
|
705 |
-} |
|
706 |
-/SIP\/2\.0 502/ { |
|
707 |
- rpl502++ |
|
708 |
- next |
|
709 |
-} |
|
710 |
-/SIP\/2\.0 503/ { |
|
711 |
- rpl503++ |
|
712 |
- next |
|
713 |
-} |
|
714 |
-/SIP\/2\.0 5[0-9][0-9]/ { |
|
715 |
|
|
716 |
- rpl5xx++ |
|
717 |
- next |
|
718 |
-} |
|
719 |
- |
|
720 |
-/SIP\/2\.0 603/{ |
|
721 |
- rpl603++ |
|
722 |
- next |
|
723 |
-} |
|
724 |
-/SIP\/2\.0 6[0=9][0-9]/ { |
|
725 |
|
|
726 |
- rpl6xx++ |
|
727 |
- next |
|
728 |
-} |
|
729 |
- |
|
730 |
- |
|
731 |
-/CANCEL sip/ { |
|
732 |
- cancel++ |
|
733 |
- next |
|
734 |
-} |
|
735 |
-/INVITE sip/ { |
|
736 |
- invite++ |
|
737 |
- next |
|
738 |
-} |
|
739 |
-/ACK sip/ { |
|
740 |
- ack++ |
|
741 |
- next |
|
742 |
-} |
|
743 |
-/BYE sip/ { |
|
744 |
- bye++ |
|
745 |
- next |
|
746 |
-} |
|
747 |
-/OPTIONS sip/ { |
|
748 |
- options++ |
|
749 |
- next |
|
750 |
-} |
|
751 |
-/INFO sip/ { |
|
752 |
- info++ |
|
753 |
- next |
|
754 |
-} |
|
755 |
-/MESSAGE sip/ { |
|
756 |
- message++ |
|
757 |
- next |
|
758 |
-} |
|
759 |
-/SUBSCRIBE sip/ { |
|
760 |
- subscribe++ |
|
761 |
- next |
|
762 |
-} |
|
763 |
-/NOTIFY sip/ { |
|
764 |
- notify++ |
|
765 |
- next |
|
766 |
-} |
|
767 |
-/REGISTER sip/ { |
|
768 |
- register++ |
|
769 |
- next |
|
770 |
-} |
|
771 |
- |
|
772 |
-END { |
|
773 |
- print "## Reply Codes" |
|
774 |
- print "100 (trying): " rpl100 |
|
775 |
- print "180 (ringing): " rpl180 |
|
776 |
- print "183: (early media)" rpl183 |
|
777 |
- print "1xx: " rpl1xx |
|
778 |
- print "200 (ok): " rpl200 |
|
779 |
- print "202 (accepted): " rpl202 |
|
780 |
- print "2xx: " rpl2xx |
|
781 |
- print "300 (Multiple Choices): " rpl300 |
|
782 |
- print "302 (Moved Temporarily): " rpl302 |
|
783 |
- print "3xx: " rpl3xx |
|
784 |
- print "400 (Bad Request): " rpl400 |
|
785 |
- print "401 (Unauthorized): " rpl401 |
|
786 |
- print "403 (Forbidden): " rpl403 |
|
787 |
- print "404 (Not Found):" rpl404 |
|
788 |
- print "405 (Method not allowed): " rpl405 |
|
789 |
- print "406 (Not Acceptable): " rpl406 |
|
790 |
- print "407 (Proxy Authentication Required):" rpl407 |
|
791 |
- print "408 (Request Timeout): " rpl408 |
|
792 |
- print "410 (Gone): " rpl410 |
|
793 |
- print "415 (Unsupported Media): " rpl415 |
|
794 |
- print "476 (no recursive registrations): " rpl476 |
|
795 |
- print "477 (next hop error): " rpl477 |
|
796 |
- print "478 (Unresolveable): " rpl478 |
|
797 |
- print "479 (private IP): " rpl479 |
|
798 |
- print "480 (Unavailable): " rpl480 |
|
799 |
- print "481 (Call/Transaction does not exist): " rpl481 |
|
800 |
- print "482 (Loop Detected): " rpl482 |
|
801 |
- print "483 (Too Many Hops): " rpl483 |
|
802 |
- print "486 (Busy Here): " rpl486 |
|
803 |
- print "487 (Request Terminated): " rpl487 |
|
804 |
- print "488 (Not Acceptable): " rpl488 |
|
805 |
- print "489 (Bad Event): " rpl489 |
|
806 |
- print "4xx: " rpl4xx |
|
807 |
- print "500 (Server Internal Error): " rpl500 |
|
808 |
- print "501 (Not Implemented): " rpl501 |
|
809 |
- print "502 (Bad Gateway): " rpl502 |
|
810 |
- print "503 (Service Unavailabl): " rpl503 |
|
811 |
- print "5xx: " rpl5xx |
|
812 |
- print "603 (Decline): " rpl603 |
|
813 |
- print "6xx: " rpl6xx |
|
814 |
- |
|
815 |
- print "## Request Methods" |
|
816 |
- print "INVITE: " invite |
|
817 |
- print "CANCEL: " cancel |
|
818 |
- print "ACK: " ack |
|
819 |
- print "REGISTER: " register |
|
820 |
- print "BYE: " bye |
|
821 |
- print "OPTIONS: " options |
|
822 |
- print "INFO: " info |
|
823 |
- print "MESSAGE: " message |
|
824 |
- print "SUBSCRIBE: " subscribe |
|
825 |
- print "NOTIFY: " notify |
|
826 |
- |
|
827 |
- print "## Outbound Routes" |
|
828 |
- print "To imgw: " hint_imgw |
|
829 |
- print "To voicemail: " hint_voicemail |
|
830 |
- print "To bat: " hint_battest |
|
831 |
- print "To UsrLoc: " hint_usrloc |
|
832 |
- print "Outbound: " hint_outbound |
|
833 |
- print "To SMS: " hint_sms |
|
834 |
- print "To PSTN: " hint_gw |
|
835 |
- print "To: VM on off-line" hint_off_voicemail |
|
836 |
- |
|
837 |
- print "## User Agents" |
|
838 |
- print "Snom: " ua_snom |
|
839 |
- print "MSN: " ua_msn |
|
840 |
- print "Mitel: " ua_mitel |
|
841 |
- print "Pingtel: " ua_pingtel |
|
842 |
- print "SER: " ua_ser |
|
843 |
- print "osip: " ua_osip |
|
844 |
- print "linphone: " ua_linphone |
|
845 |
- print "ubiquity: " ua_ubiquity |
|
846 |
- print "3com: " ua_3com |
|
847 |
- print "IPDialog: " ua_ipdialog |
|
848 |
- print "Epygi: " ua_epygi |
|
849 |
- print "Jasomi: " ua_jasomi |
|
850 |
- print "Cisco: " ua_cisco |
|
851 |
- print "insipid: " ua_insipid |
|
852 |
- print "Hotsip: " ua_hotsip |
|
853 |
- print "mxsf: " ua_mxsf |
|
854 |
- print "GrandStream: " ua_grandstream |
|
855 |
- print "Tellme: "ua_tellme |
|
856 |
- print "PocketSipM: " ua_pocketsipm |
|
857 |
- print "eStara: " ua_estara |
|
858 |
- print "Vovida: " ua_vovida |
|
859 |
- print "jSIP: " ua_jsip |
|
860 |
- print "Nortel: " ua_nortel |
|
861 |
- print "Polycom: " ua_polycom |
|
862 |
- print "Leader: " ua_leader |
|
863 |
- print "csco: " ua_csco |
|
864 |
- print "Nebula: " ua_nebula |
|
865 |
- print "MagicPPC: " ua_magicppc |
|
866 |
- print "SCS: " ua_scs |
|
867 |
- print "SJPhone: " ua_sjphone |
|
868 |
- print "KPhone: " ua_kphone |
|
869 |
- print "Yamaha: " ua_yamaha |
|
870 |
- print "tkcPhone: " ua_tkc |
|
871 |
- print "EdgeAccess: " ua_edgeaccess |
|
872 |
- print "HP300: " ua_hp300 |
|
873 |
- print "EyeP: " ua_eyep |
|
874 |
- print "SIPimp: " ua_sipimp |
|
875 |
- print "SJPhone: " ua_sjphone |
|
876 |
- print "LG-Elite: " ua_lgelite |
|
877 |
- print "Asterisk: " ua_asterisk |
|
878 |
- print "CommWorks: " ua_commworks |
|
879 |
- print "sipsak: " ua_sipsak |
|
880 |
- print "FXSGW: " ua_fxsgw |
|
881 |
- print "SXDesing: " ua_sxdesign |
|
882 |
- print "D-link: " ua_dlink |
|
883 |
- print "gphone: " ua_gphone |
|
884 |
- print "X-lite: " ua_xlite |
|
885 |
- print "grandstream: " ua_gs |
|
886 |
- print "vegastream: " ua_vega |
|
887 |
- print "Ahead SIPPS: " ua_sipps |
|
888 |
- print "IBM user agent: " ua_ibm |
|
889 |
- print "i3micro: " ua_i3micro |
|
890 |
- print "ACT: " ua_act |
|
891 |
- print "X-pro: " ua_xpro |
|
892 |
- print "Hearme: " ua_hearme |
|
893 |
- print "DrayTek: " ua_draytek |
|
894 |
- print "ST: " ua_st |
|
895 |
- print "DTA: " ua_dta |
|
896 |
- print "FCI IPRanger: " ua_fci |
|
897 |
- print "UFO: " ua_xx |
|
898 |
- |
|
899 |
- print "## Servers" |
|
900 |
- print "Cisco: " server_cisco " ser: " server_ser |
|
901 |
- print "Intertex: " server_intertex " Hotsip: " server_hotsip |
|
902 |
- print "3com: " server_3com " EPYGI: " server_epygi " Leader: " server_leader |
|
903 |
- print "IMS (Nortel): " server_ims " CSCO: " server_csco |
|
904 |
- print "sapphire: " server_sapphire |
|
905 |
- print "snom: " server_snom |
|
906 |
- print "lucent: " server_lucent |
|
907 |
- print "edgeAccess: " server_edgeaccess |
|
908 |
- print "mcet: " server_mcet |
|
909 |
- print "sjphone: " server_sjphone |
|
910 |
- print "StarSIP: " server_starsip |
|
911 |
- print "ipDialog: " server_ipdialog |
|
912 |