Browse code

new UAs introduced: print "grandstream: " ua_gs print "vegastream: " ua_vega print "Ahead SIPPS: " ua_sipps print "IBM user agent: " ua_ibm

Jiri Kuthan authored on 03/07/2003 13:22:53
Showing 1 changed files
... ...
@@ -24,7 +24,7 @@
24 24
 #
25 25
 
26 26
 
27
-LOGDIR=/var/log
27
+LOGDIR=/var/log/sip
28 28
 
29 29
 #####################
30 30
 
... ...
@@ -48,7 +48,7 @@ BEGIN {
48 48
     rpl300=0; rpl302=0; rpl3xx=0;
49 49
     rpl400=0; rpl401=0; rpl403=0; rpl404=0; rpl405=0;
50 50
         rpl406=0;rpl407=0;rpl408=0;rpl410=0; rpl415=0;
51
-        rpl476=0;rpl480=0;rpl481=0;rpl483=0;rpl486=0;rpl478=0;rpl487=0;
51
+        rpl476=0;rpl477=0;rpl480=0;rpl481=0;rpl483=0;rpl486=0;rpl478=0;rpl487=0;
52 52
 		rpl488=0;rpl489=0;
53 53
         rpl4xx=0;
54 54
 	rpl479=0;
... ...
@@ -117,6 +117,9 @@ BEGIN {
117 117
 	ua_gphone=0;
118 118
 	ua_xlite=0;
119 119
 	ua_edial=0;
120
+	ua_gs=0;
121
+	ua_sipps=0;
122
+	ua_ibm=0;
120 123
 	ua_xx=0;
121 124
 
122 125
 	server_cisco=0
... ...
@@ -137,6 +140,8 @@ BEGIN {
137 140
 	server_starsip=0;
138 141
 	server_ipdialog=0;
139 142
 	server_edial=0;
143
+	server_ma=0;
144
+	server_fwd=0;
140 145
 	server_xx=0
141 146
 
142 147
 }
... ...
@@ -331,6 +336,22 @@ ua==0 && /User-Agent:.*eDial/ {
331 336
 	ua_edial++
332 337
 	ua=1
333 338
 }
339
+ua==0 && /User-Agent:.*Grandstream/ {
340
+	ua_gs++
341
+	ua=1
342
+}
343
+ua==0 && /User-Agent:.*Ahead SIPPS/ {
344
+	ua_sipps++
345
+	ua=1
346
+}
347
+ua==0 && /User-Agent:.*IBM user agent/ {
348
+	ua_ibm++
349
+	ua=1
350
+}
351
+ua==0 && /User-Agent:.*Vega/ {
352
+	ua_vega++
353
+	ua=1
354
+}
334 355
 ua==0 && /User-Agent:.*X-Lite/ {
335 356
 	ua_xlite++
336 357
 	ua=1
... ...
@@ -425,6 +446,14 @@ server==0 && /Server:.*eDial/ {
425 446
 	server_edial++
426 447
 	server=1
427 448
 }
449
+server==0 && /Server:.*MA/ {
450
+	server_ma++
451
+	server=1
452
+}
453
+server==0 && /Server:.*Free World/ {
454
+	server_fwd++
455
+	server=1
456
+}
428 457
 server==0 && /Server:/ {
429 458
 	server_xx++
430 459
 	print
... ...
@@ -568,8 +597,8 @@ reply==0 && request=0 {
568 597
     rpl476++
569 598
     next
570 599
 }
571
-/SIP\/2\.0 480/ {
572
-    rpl480++
600
+/SIP\/2\.0 477/ {
601
+    rpl477++
573 602
     next
574 603
 }
575 604
 /SIP\/2\.0 481/ {
... ...
@@ -704,6 +733,7 @@ END {
704 733
 	print "410 (Gone): " rpl410
705 734
 	print "415 (Unsupported Media): " rpl415
706 735
 	print "476 (no recursive registrations): " rpl476 
736
+	print "477 (next hop error): " rpl477
707 737
 	print "478 (Unresolveable): " rpl478 
708 738
 	print "479 (private IP): " rpl479 
709 739
 	print "480 (Unavailable): " rpl480 
... ...
@@ -762,6 +792,10 @@ END {
762 792
 	print "D-link: " ua_dlink
763 793
 	print "gphone: " ua_gphone
764 794
 	print "X-lite: " ua_xlite
795
+	print "grandstream: " ua_gs
796
+	print "vegastream: " ua_vega
797
+	print "Ahead SIPPS: " ua_sipps
798
+	print "IBM user agent: " ua_ibm
765 799
 	print "UFO: " ua_xx
766 800
 
767 801
 	print "## Servers"
... ...
@@ -778,6 +812,8 @@ END {
778 812
 	print "StarSIP: " server_starsip
779 813
 	print "ipDialog: " server_ipdialog
780 814
 	print "eDial: " server_edial
815
+	print "FWD: " server_fwd
816
+	print "MA: " server_ma
781 817
 	print "UFO: " server_xx
782 818
 }
783 819
 '