Browse code

new UA and reply code introduced

Jiri Kuthan authored on 31/05/2003 18:26:35
Showing 1 changed files
... ...
@@ -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;rpl481=0;rpl483=0;rpl486=0;rpl478=0;rpl487=0;
51
+        rpl476=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;
... ...
@@ -114,6 +114,7 @@ BEGIN {
114 114
 	ua_fxsgw=0;
115 115
 	ua_sxdesign=0;
116 116
 	ua_dlink=0;
117
+	ua_gphone=0;
117 118
 	ua_xx=0;
118 119
 
119 120
 	server_cisco=0
... ...
@@ -320,6 +321,10 @@ ua==0 && /User-Agent:.*D-Link/ {
320 321
 	ua_dlink++
321 322
 	ua=1
322 323
 }
324
+ua==0 && /User-Agent:.*Gphone/ {
325
+	ua_gphone++
326
+	ua=1
327
+}
323 328
 
324 329
 
325 330
  { comment="hack to deal with old version of ngrep (breaking in columns)"
... ...
@@ -553,6 +558,10 @@ reply==0 && request=0 {
553 558
     rpl476++
554 559
     next
555 560
 }
561
+/SIP\/2\.0 480/ {
562
+    rpl480++
563
+    next
564
+}
556 565
 /SIP\/2\.0 481/ {
557 566
     rpl481++
558 567
     next
... ...
@@ -687,6 +696,7 @@ END {
687 696
 	print "476 (no recursive registrations): " rpl476 
688 697
 	print "478 (Unresolveable): " rpl478 
689 698
 	print "479 (private IP): " rpl479 
699
+	print "480 (Unavailable): " rpl480 
690 700
 	print "481 (Call/Transaction does not exist): " rpl481 
691 701
 	print "483 (Too Many Hops): " rpl483 
692 702
 	print "486 (Busy Here): " rpl486 
... ...
@@ -740,6 +750,7 @@ END {
740 750
 	print "FXSGW: " ua_fxsgw
741 751
 	print "SXDesing: " ua_sxdesign
742 752
 	print "D-link: " ua_dlink
753
+	print "gphone: " ua_gphone
743 754
 	print "UFO: " ua_xx
744 755
 
745 756
 	print "## Servers"