$ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo $h; ssh sona@$h.youroute.net "grep ^alias /var/sipenv-*/etc/ser/ser.cfg"; done 2> /dev/null fr1 alias="portasip.foo.com" fr2 alias="sip6.youroute.net" fr3 alias="portasip.foo.com" fr4 alias="portasip.foo.com" fr5 alias="portasip.foo.com" dk1 alias="portasip.foo.com" us1 /var/sipenv-66.234.138.73/etc/ser/ser.cfg:alias="Sip.faxthe.net" /var/sipenv-66.234.138.73/etc/ser/ser.cfg:alias="sip2.switzernet.com" /var/sipenv-66.234.138.74/etc/ser/ser.cfg:alias="Sip.faxthe.net" /var/sipenv-66.234.138.74/etc/ser/ser.cfg:alias="cf_CANONIC_NAME2" $ tail -600000 /var/sipenv-91.121.19.149/log/sip.log.3 | awk '/^SIP\/2.0/{bad=0} /^SIP\/2.0 483/{bad=1} /^CSeq:/ && bad==1 {print $3}' | sort | uniq -c 1 BYE 1 CANCEL 52 INVITE 5881 NOTIFY 12 OPTIONS 114 REGISTER $ $ date Sun Apr 12 00:32:26 CEST 2009 $ date $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo -e "\n[$h]"; ssh sona@$h.youroute.net "cat \`ls /var/sipenv-*/log/sip.log.2 | head -1\` | awk '/^SIP\\/2.0/{bad=0} /^SIP\\/2.0 483/{bad=1} /^CSeq:/ && bad==1 {print \$3}' | sort | uniq -c"; done 2> /dev/null [fr1] 382 ACK 186 BYE 68 CANCEL 31 INFO 2091 INVITE 1229807 NOTIFY 3786 OPTIONS 73 PUBLISH 14720 REGISTER 423 SUBSCRIBE [fr2] 736 ACK 208 BYE 48 CANCEL 36 INFO 3013 INVITE 411064 NOTIFY 710 OPTIONS 7512 REGISTER 1012 SUBSCRIBE [fr3] 1565 ACK 478 BYE 123 CANCEL 49 INFO 5590 INVITE 819347 NOTIFY 1663 OPTIONS 6 PUBLISH 13149 REGISTER 2318 SUBSCRIBE [fr4] 1 ACK 4 BYE 32 INVITE 3 OPTIONS 86 REGISTER 3739 SUBSCRIBE [fr5] 890 ACK 340 BYE 108 CANCEL 32 INFO 5868 INVITE 1184536 NOTIFY 1303 OPTIONS 16816 REGISTER 5941 SUBSCRIBE [dk1] 212 ACK 128 BYE 42 CANCEL 51 INFO 1475 INVITE 183348 NOTIFY 376 OPTIONS 352 PING 6885 REGISTER 54958 SUBSCRIBE [us1] 78 ACK 39 BYE 79 INVITE $ tail -200000 /var/sipenv-91.121.19.149/log/sip.log | awk '/^SIP\/2.0 483/{i++} /^SIP\/2.0/{n++} END{printf "%10.3f %10d %10d\n",i/n*100,i,n}' 30.635 1510 4929 $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo $h; ssh sona@$h.youroute.net "tail -400000 \`ls /var/sipenv-*/log/sip.log | head -1\` | awk '/^SIP\/2.0 483/{i++} /^SIP\/2.0/{n++} END{printf \"%10.4f %10d %10d\n\n\",i/n*100,i,n}'"; done 2> /dev/null fr1 60.8848 5918 9720 fr2 27.4874 2666 9699 fr3 41.1126 3865 9401 fr4 0.3541 35 9883 fr5 71.3987 6830 9566 dk1 21.8199 2031 9308 us1 0.0000 0 11611 $ locate *.so | while read s; do strings $s | grep subst_hostport_by_maddr && echo $s; done subst_hostport_by_maddr /usr/home/porta-one/PortaSIP/ser/work/ser-0.9.6/modules/textops/textops.so subst_hostport_by_maddr /usr/local/lib/ser/modules/textops.so $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo $h; ssh sona@$h.youroute.net "ls /usr/home/porta-one/PortaSIP/ser/work/"; echo; done 2> /dev/null fr1 ser-0.9.6 fr2 ser-0.9.6 fr3 ser-0.9.6 fr4 fr5 ser-0.9.6 dk1 us1 $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo $h; ssh sona@$h.youroute.net "tail -3000000 \`ls /var/sipenv-*/log/sip.log | head -1\` | awk '/^(NOTIFY|BYE|INVITE|CANCEL|ACK|REGISTER) /{print \$1}' | sort | uniq -c"; echo; done 2>/dev/null fr1 6664 ACK 469 BYE 128 CANCEL 6836 INVITE 43108 NOTIFY 14228 REGISTER fr2 15575 ACK 966 BYE 324 CANCEL 15246 INVITE 22170 NOTIFY 19782 REGISTER fr3 12663 ACK 739 BYE 270 CANCEL 13609 INVITE 32495 NOTIFY 12555 REGISTER fr4 21711 ACK 1455 BYE 675 CANCEL 22399 INVITE 29333 REGISTER fr5 6149 ACK 299 BYE 149 CANCEL 6026 INVITE 52079 NOTIFY 8041 REGISTER dk1 15421 ACK 878 BYE 303 CANCEL 15727 INVITE 15910 NOTIFY 23242 REGISTER us1 22069 ACK 4735 BYE 1164 CANCEL 22186 INVITE 8248 REGISTER $ $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo $h; ssh sona@$h.youroute.net "cat /var/sipenv-*/log/sip.log | awk '/^(NOTIFY|BYE|INVITE|CANCEL|ACK|REGISTER) /{print \$1}' | sort | uniq -c"; echo; done 2>/dev/null fr1 73953 ACK 7508 BYE 2865 CANCEL 75450 INVITE 944501 NOTIFY 286653 REGISTER fr2 147505 ACK 12095 BYE 4406 CANCEL 146513 INVITE 379796 NOTIFY 281536 REGISTER fr3 134391 ACK 10694 BYE 4430 CANCEL 136242 INVITE 723958 NOTIFY 255306 REGISTER fr4 114862 ACK 10442 BYE 4263 CANCEL 117681 INVITE 286289 REGISTER fr5 75220 ACK 5156 BYE 1853 CANCEL 74342 INVITE 957799 NOTIFY 146908 REGISTER dk1 114154 ACK 8666 BYE 3809 CANCEL 115599 INVITE 229823 NOTIFY 336274 REGISTER us1 26005 ACK 5525 BYE 1385 CANCEL 26303 INVITE 11410 REGISTER $ $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo -e "\n$h"; ssh sona@$h.youroute.net "cat /var/sipenv-*/log/sip.log.0 | awk '/: (SENDING|RECEIVED) message (from|to) /{t=\$0;i=NR} NR==i+1 && /483 Too Many/ {gsub(\"^.*: \",\"\",t); print t}' | sort | uniq -c"; done 2>/dev/null fr1 484355 RECEIVED message from 91.121.66.202:5060: 11498 SENDING message to 217.162.53.151:5060: 3457 SENDING message to 77.58.247.34:60001: 8019 SENDING message to 77.58.247.34:60002: 484355 SENDING message to 91.121.66.202:5060: 5913 SENDING message to 92.104.5.95:64172: fr2 193603 RECEIVED message from 91.121.19.149:5060: 5736 SENDING message to 84.72.172.220:60007: 31 SENDING message to 85.4.73.249:5060: 24 SENDING message to 90.185.178.208:11034: 5858 SENDING message to 90.185.178.208:18221: 193603 SENDING message to 91.121.19.149:5060: fr3 365033 RECEIVED message from 91.121.101.126:5060: 47 SENDING message to 189.143.39.156:5060: 2 SENDING message to 194.178.110.131:21229: 8 SENDING message to 201.102.34.121:5060: 5763 SENDING message to 217.162.106.142:5060: 1 SENDING message to 62.152.197.241:39579: 2 SENDING message to 62.152.197.241:46763: 4329 SENDING message to 84.74.174.104:60001: 5745 SENDING message to 84.75.112.2:5061: 5761 SENDING message to 85.218.21.62:5060: 21 SENDING message to 85.218.41.129:5060: 365033 SENDING message to 91.121.101.126:5060: fr4 1815 RECEIVED message from 91.121.75.124:5060: 53 SENDING message to 84.72.77.125:5060: 53 SENDING message to 84.73.84.240:62051: 1815 SENDING message to 91.121.75.124:5060: fr5 489095 RECEIVED message from 91.121.167.75:5060: 5751 SENDING message to 144.85.164.27:10005: 28 SENDING message to 62.203.176.54:5060: 27 SENDING message to 62.203.76.51:5060: 6 SENDING message to 81.62.111.243:5060: 55 SENDING message to 81.62.25.114:5060: 53 SENDING message to 81.62.30.94:5060: 5735 SENDING message to 83.219.110.204:5060: 4094 SENDING message to 83.76.209.9:55212: 1639 SENDING message to 83.78.32.28:55283: 5730 SENDING message to 84.74.91.143:5060: 5 SENDING message to 85.1.23.138:5060: 5728 SENDING message to 85.5.122.4:49155: 489095 SENDING message to 91.121.167.75:5060: dk1 114155 RECEIVED message from 82.103.128.3:5060: 114155 SENDING message to 82.103.128.3:5060: 5718 SENDING message to 85.4.19.156:49160: 1 SENDING message to 85.5.235.37:5060: 1476 SENDING message to 92.105.152.68:5060: 53 SENDING message to 92.105.165.111:5060: us1 54 RECEIVED message from 66.234.138.73:5060: 2 RECEIVED message from 66.234.138.73:5061: 1 SENDING message to 212.249.15.9:5060: 53 SENDING message to 66.234.138.73:5060: 3 SENDING message to 66.234.138.73:5061: 1 SENDING message to 82.103.128.3:5061: $ date Fri Apr 10 00:58:43 WEST 2009 $ cat 483-*.txt | while read h; do echo -e "\n[$h]"; read ip; echo $ip; ssh sona@$h.youroute.net "cat /var/sipenv-*/log/sip.log.0 | awk -v i=-100 '/: RECEIVED message from $ip/{i=NR;} NR>=i && NR/dev/null =j&&NR<=j+25&&go{gsub("^.*: .*message ","",t); print t " " $0} /^[ \r\n]*$/{go=0}' from 144.85.164.27:10005: NOTIFY sip:sip11.youroute.net SIP/2.0 from 144.85.164.27:10005: Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK-d8f57e0e from 144.85.164.27:10005: From: 41215502482 ;tag=4480be708ede0800o0 from 144.85.164.27:10005: To: from 144.85.164.27:10005: Call-ID: 4775cc30-57d65540@192.168.1.2 from 144.85.164.27:10005: CSeq: 69818 NOTIFY from 144.85.164.27:10005: Max-Forwards: 70 from 144.85.164.27:10005: Event: keep-alive from 144.85.164.27:10005: User-Agent: Linksys/PAP2T-3.1.15(LS) from 144.85.164.27:10005: Content-Length: 0 from 144.85.164.27:10005: from 83.219.110.204:5060: NOTIFY sip:sip9.youroute.net SIP/2.0 from 83.219.110.204:5060: Via: SIP/2.0/UDP 83.219.110.204:5060;branch=z9hG4bK-50981c2e;rport from 83.219.110.204:5060: From: 41215501514 ;tag=a9c7e3d0bf92223co0 from 83.219.110.204:5060: To: from 83.219.110.204:5060: Call-ID: 3384a120-35d4052c@10.6.7.4 from 83.219.110.204:5060: CSeq: 285149 NOTIFY from 83.219.110.204:5060: Max-Forwards: 70 from 83.219.110.204:5060: Event: keep-alive from 83.219.110.204:5060: User-Agent: Linksys/SPA1001-3.1.19(SE) from 83.219.110.204:5060: Content-Length: 0 from 83.219.110.204:5060: sona@fr5$ sona@fr3$ tail -5000 /var/sipenv-*/log/sip.log.0 | awk '/: (SENDING|RECEIVED) message (from|to) /{i=NR;t=$0} NR==i+1 && /^NOTIFY/ && t~/RECEIVED/ && t!~/'`ifconfig | grep inet | head -1 | cut -d\ -f2`'/{j=NR; go=1; print ""} NR>=j&&NR<=j+25&&go{gsub("^.*: .*message ","",t); print t " " $0} /^[ \r\n]*$/{go=0}' from 213.213.170.93:5061: NOTIFY sip:91.121.101.126 SIP/2.0 from 213.213.170.93:5061: Via: SIP/2.0/UDP 213.213.170.93:5061;branch=z9hG4bK-7dd17521 from 213.213.170.93:5061: From: 410225502864 ;tag=3d032280625873e2o1 from 213.213.170.93:5061: To: from 213.213.170.93:5061: Call-ID: 2f0cfd90-7599d412@213.213.170.93 from 213.213.170.93:5061: CSeq: 69327 NOTIFY from 213.213.170.93:5061: Max-Forwards: 70 from 213.213.170.93:5061: Event: keep-alive from 213.213.170.93:5061: User-Agent: Linksys/SPA2102-5.2.5 from 213.213.170.93:5061: Content-Length: 0 from 213.213.170.93:5061: from 84.74.174.104:60001: NOTIFY sip:sip12.youroute.net SIP/2.0 from 84.74.174.104:60001: Via: SIP/2.0/UDP 84.74.174.104:60001;branch=z9hG4bK-14cfa2e4;rport from 84.74.174.104:60001: From: 41215501489 ;tag=ad0fe45439647bc1o0 from 84.74.174.104:60001: To: from 84.74.174.104:60001: Call-ID: bb0502e0-19990ea5@192.168.0.10 from 84.74.174.104:60001: CSeq: 30421 NOTIFY from 84.74.174.104:60001: Max-Forwards: 70 from 84.74.174.104:60001: Event: keep-alive from 84.74.174.104:60001: User-Agent: Linksys/PAP2T-5.1.1(LS) from 84.74.174.104:60001: Content-Length: 0 from 84.74.174.104:60001: sona@fr3$ root@fr2# tail -5000 /var/sipenv-*/log/sip.log.0 | awk '/: (SENDING|RECEIVED) message (from|to) /{i=NR;t=$0} NR==i+1 && /^NOTIFY/ && t~/RECEIVED/ && t!~/'`ifconfig | grep inet | head -1 | cut -d\ -f2`'/{j=NR; go=1; print ""} NR>=j&&NR<=j+25&&go{gsub("^.*: .*message ","",t); print t " " $0} /^[ \r\n]*$/{go=0}' from 90.185.178.208:18221: NOTIFY sip:sip10.youroute.net SIP/2.0 from 90.185.178.208:18221: Via: SIP/2.0/UDP 192.168.100.12:5070;branch=z9hG4bK-6c1770d1 from 90.185.178.208:18221: From: "41225502447" ;tag=a94cca2f2d0fd8c3o0 from 90.185.178.208:18221: To: from 90.185.178.208:18221: Call-ID: a348121f-8b53b193@192.168.100.12 from 90.185.178.208:18221: CSeq: 93162 NOTIFY from 90.185.178.208:18221: Max-Forwards: 70 from 90.185.178.208:18221: Event: keep-alive from 90.185.178.208:18221: User-Agent: Linksys/SPA941-5.1.8 from 90.185.178.208:18221: Content-Length: 0 from 90.185.178.208:18221: from 84.72.172.220:60007: NOTIFY sip:sip10.youroute.net SIP/2.0 from 84.72.172.220:60007: Via: SIP/2.0/UDP 192.168.0.100:5060;branch=z9hG4bK-c16f3ebd from 84.72.172.220:60007: From: "Switzernet" ;tag=cb15cd08c17ea872o0 from 84.72.172.220:60007: To: from 84.72.172.220:60007: Call-ID: 6e0e0848-31d1a632@192.168.0.100 from 84.72.172.220:60007: CSeq: 105840 NOTIFY from 84.72.172.220:60007: Max-Forwards: 70 from 84.72.172.220:60007: Event: keep-alive from 84.72.172.220:60007: User-Agent: Sipura/SPA941-4.1.8 from 84.72.172.220:60007: Content-Length: 0 from 84.72.172.220:60007: root@fr2# root@fr4# locate *.cfg | while read f; do grep -q "if (loose_route()" $f && echo $f; done /root/PortaSIP/etc/ser.cfg /root/PortaSIP/porta-sip/etc/ser.cfg /usr/home/porta-one/PortaSIP/etc/ser.cfg /usr/home/porta-one/PortaSIP/porta-sip/etc/ser.cfg /usr/home/porta-sip/etc/ser.cfg /usr/local/etc/ser/ser.cfg /var/sipenv-91.121.75.124/etc/ser/ser.cfg root@fr4# root@fr4# diff /usr/home/porta-one/PortaSIP/etc/ser.cfg /usr/home/porta-one/PortaSIP/porta-sip/etc/ser.cfg root@fr4# diff /usr/home/porta-one/PortaSIP/etc/ser.cfg /usr/home/porta-sip/etc/ser.cfg 153c153 < replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); --- > ##replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); 242c242 < replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); --- > ##replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); root@fr4# fr2# fr2# diff /usr/home/porta-one/PortaSIP/etc/ser.cfg /usr/home/porta-sip/etc/ser.cfg 129a130,134 > if (method == "NOTIFY") { > sl_send_reply("480", "Stay Alive"); > break; > } > 153c158 < replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); --- > ##replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); 242c247 < replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); --- > ##replace("^a=ptime:20\r\n", "a=abcde:20\r\n"); fr2# fr2# fr2# #see how the output changes due to the modification root@fr2# tail -f /var/sipenv-*/log/sip.log | awk '/: (SENDING|RECEIVED) message (from|to) /{i=NR;t=$0} NR==i+1 && /^NOTIFY/ {j=NR; go=1; print ""} NR>=j&&NR<=j+25&&go{gsub("^.*: .*message ","",t); print t " " $0} /^[ \r\n]*$/{go=0}' from 91.121.19.149:5060: NOTIFY sip:sip10.youroute.net SIP/2.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.0ed7b41ed05e2fa89921ed45e6aea7f3.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.264c6f38cf20fb7eb538d25b93c37d9d.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.dec15ddf39348c2024560e349f429768.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4f864d151df21076cb07bfe47dab9608.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.cfd8bac4b2ab8590465dbff56652ef7f.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.749e533af518ec48aaa669a1372d8ce9.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.0e9e816af794dc684208e0148be8d537.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.3dc8d0b2f016a66d59e8a9716ca92bc8.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.a6b239c7b16b5583158be3d1d05d6748.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4c5c41fbaf0d60a9f7826e039898fc07.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.23f2de26d56af29422c5fd061655d441.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.e602d5aa0d53aa4c67933ee0fc988f58.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.1092f6a9d9ca181c57c4b656f150d85a.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.d35ed166a5f8381661e8dcad29e3dea1.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.c604262c1960cb407c98fca695d4e22c.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.6e6539e9973ab4a74543526730f2d967.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 192.168.0.100:5060;rport=60007;received=84.72.172.220;branch=z9hG4bK-d1dd877c from 91.121.19.149:5060: From: "Switzernet" ;tag=cb15cd08c17ea872o0 from 91.121.19.149:5060: To: from 91.121.19.149:5060: Call-ID: 6e0e0848-31d1a632@192.168.0.100 from 91.121.19.149:5060: CSeq: 106862 NOTIFY from 91.121.19.149:5060: Max-Forwards: 1 from 91.121.19.149:5060: Event: keep-alive from 91.121.19.149:5060: User-Agent: Sipura/SPA941-4.1.8 from 91.121.19.149:5060: Content-Length: 0 to 91.121.19.149:5060: NOTIFY sip:sip10.youroute.net SIP/2.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4f2189e19e27074fe6f83a5261394bec.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.0ed7b41ed05e2fa89921ed45e6aea7f3.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.264c6f38cf20fb7eb538d25b93c37d9d.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.dec15ddf39348c2024560e349f429768.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4f864d151df21076cb07bfe47dab9608.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.cfd8bac4b2ab8590465dbff56652ef7f.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.749e533af518ec48aaa669a1372d8ce9.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.0e9e816af794dc684208e0148be8d537.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.3dc8d0b2f016a66d59e8a9716ca92bc8.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.a6b239c7b16b5583158be3d1d05d6748.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4c5c41fbaf0d60a9f7826e039898fc07.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.23f2de26d56af29422c5fd061655d441.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.e602d5aa0d53aa4c67933ee0fc988f58.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.1092f6a9d9ca181c57c4b656f150d85a.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.d35ed166a5f8381661e8dcad29e3dea1.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.c604262c1960cb407c98fca695d4e22c.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.6e6539e9973ab4a74543526730f2d967.0 to 91.121.19.149:5060: Via: SIP/2.0/UDP 192.168.0.100:5060;rport=60007;received=84.72.172.220;branch=z9hG4bK-d1dd877c to 91.121.19.149:5060: From: "Switzernet" ;tag=cb15cd08c17ea872o0 to 91.121.19.149:5060: To: to 91.121.19.149:5060: Call-ID: 6e0e0848-31d1a632@192.168.0.100 to 91.121.19.149:5060: CSeq: 106862 NOTIFY to 91.121.19.149:5060: Max-Forwards: 0 to 91.121.19.149:5060: Event: keep-alive to 91.121.19.149:5060: User-Agent: Sipura/SPA941-4.1.8 from 91.121.19.149:5060: NOTIFY sip:sip10.youroute.net SIP/2.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4f2189e19e27074fe6f83a5261394bec.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.0ed7b41ed05e2fa89921ed45e6aea7f3.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.264c6f38cf20fb7eb538d25b93c37d9d.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.dec15ddf39348c2024560e349f429768.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4f864d151df21076cb07bfe47dab9608.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.cfd8bac4b2ab8590465dbff56652ef7f.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.749e533af518ec48aaa669a1372d8ce9.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.0e9e816af794dc684208e0148be8d537.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.3dc8d0b2f016a66d59e8a9716ca92bc8.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.a6b239c7b16b5583158be3d1d05d6748.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.4c5c41fbaf0d60a9f7826e039898fc07.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.23f2de26d56af29422c5fd061655d441.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.e602d5aa0d53aa4c67933ee0fc988f58.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.1092f6a9d9ca181c57c4b656f150d85a.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.d35ed166a5f8381661e8dcad29e3dea1.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.c604262c1960cb407c98fca695d4e22c.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK114b.6e6539e9973ab4a74543526730f2d967.0 from 91.121.19.149:5060: Via: SIP/2.0/UDP 192.168.0.100:5060;rport=60007;received=84.72.172.220;branch=z9hG4bK-d1dd877c from 91.121.19.149:5060: From: "Switzernet" ;tag=cb15cd08c17ea872o0 from 91.121.19.149:5060: To: from 91.121.19.149:5060: Call-ID: 6e0e0848-31d1a632@192.168.0.100 from 91.121.19.149:5060: CSeq: 106862 NOTIFY from 91.121.19.149:5060: Max-Forwards: 0 from 91.121.19.149:5060: Event: keep-alive from 91.121.19.149:5060: User-Agent: Sipura/SPA941-4.1.8 from 84.72.172.220:60007: NOTIFY sip:sip10.youroute.net SIP/2.0 from 84.72.172.220:60007: Via: SIP/2.0/UDP 192.168.0.100:5060;branch=z9hG4bK-f1890904 from 84.72.172.220:60007: From: "Switzernet" ;tag=cb15cd08c17ea872o0 from 84.72.172.220:60007: To: from 84.72.172.220:60007: Call-ID: 6e0e0848-31d1a632@192.168.0.100 from 84.72.172.220:60007: CSeq: 106863 NOTIFY from 84.72.172.220:60007: Max-Forwards: 70 from 84.72.172.220:60007: Event: keep-alive from 84.72.172.220:60007: User-Agent: Sipura/SPA941-4.1.8 from 84.72.172.220:60007: Content-Length: 0 from 84.72.172.220:60007: from 90.185.178.208:18221: NOTIFY sip:sip10.youroute.net SIP/2.0 from 90.185.178.208:18221: Via: SIP/2.0/UDP 192.168.100.12:5070;branch=z9hG4bK-6412ed1d from 90.185.178.208:18221: From: "41225502447" ;tag=a94cca2f2d0fd8c3o0 from 90.185.178.208:18221: To: from 90.185.178.208:18221: Call-ID: a348121f-8b53b193@192.168.100.12 from 90.185.178.208:18221: CSeq: 94176 NOTIFY from 90.185.178.208:18221: Max-Forwards: 70 from 90.185.178.208:18221: Event: keep-alive from 90.185.178.208:18221: User-Agent: Linksys/SPA941-5.1.8 from 90.185.178.208:18221: Content-Length: 0 from 90.185.178.208:18221: from 84.72.172.220:60007: NOTIFY sip:sip10.youroute.net SIP/2.0 from 84.72.172.220:60007: Via: SIP/2.0/UDP 192.168.0.100:5060;branch=z9hG4bK-48943dea from 84.72.172.220:60007: From: "Switzernet" ;tag=cb15cd08c17ea872o0 from 84.72.172.220:60007: To: from 84.72.172.220:60007: Call-ID: 6e0e0848-31d1a632@192.168.0.100 from 84.72.172.220:60007: CSeq: 106864 NOTIFY from 84.72.172.220:60007: Max-Forwards: 70 from 84.72.172.220:60007: Event: keep-alive from 84.72.172.220:60007: User-Agent: Sipura/SPA941-4.1.8 from 84.72.172.220:60007: Content-Length: 0 from 84.72.172.220:60007: from 90.185.178.208:18221: NOTIFY sip:sip10.youroute.net SIP/2.0 from 90.185.178.208:18221: Via: SIP/2.0/UDP 192.168.100.12:5070;branch=z9hG4bK-4e9cc36 from 90.185.178.208:18221: From: "41225502447" ;tag=a94cca2f2d0fd8c3o0 from 90.185.178.208:18221: To: from 90.185.178.208:18221: Call-ID: a348121f-8b53b193@192.168.100.12 from 90.185.178.208:18221: CSeq: 94177 NOTIFY from 90.185.178.208:18221: Max-Forwards: 70 from 90.185.178.208:18221: Event: keep-alive from 90.185.178.208:18221: User-Agent: Linksys/SPA941-5.1.8 from 90.185.178.208:18221: Content-Length: 0 from 90.185.178.208:18221: root@fr2# tail -f /var/sipenv-*/log/sip.log | awk '/: (SENDING|RECEIVED) message (from|to) /{i=NR;t=$0} NR==i+1 && /(^NOTIFY|Stay Alive)/ {j=NR; go=1; print ""} NR>=j&&NR<=j+25&&go{gsub("^.*: .*message ","",t); print t " " $0} /^[ \r\n]*$/{go=0}' from 90.185.178.208:18221: NOTIFY sip:sip10.youroute.net SIP/2.0 from 90.185.178.208:18221: Via: SIP/2.0/UDP 192.168.100.12:5070;branch=z9hG4bK-4c27d815 from 90.185.178.208:18221: From: "41225502447" ;tag=a94cca2f2d0fd8c3o0 from 90.185.178.208:18221: To: from 90.185.178.208:18221: Call-ID: a348121f-8b53b193@192.168.100.12 from 90.185.178.208:18221: CSeq: 94210 NOTIFY from 90.185.178.208:18221: Max-Forwards: 70 from 90.185.178.208:18221: Event: keep-alive from 90.185.178.208:18221: User-Agent: Linksys/SPA941-5.1.8 from 90.185.178.208:18221: Content-Length: 0 from 90.185.178.208:18221: to 90.185.178.208:18221: SIP/2.0 480 Stay Alive to 90.185.178.208:18221: Via: SIP/2.0/UDP 192.168.100.12:5070;branch=z9hG4bK-4c27d815;rport=18221;received=90.185.178.208 to 90.185.178.208:18221: From: "41225502447" ;tag=a94cca2f2d0fd8c3o0 to 90.185.178.208:18221: To: ;tag=a256e4214b6852b727cb31bbd4dd23e7.82b4 to 90.185.178.208:18221: Call-ID: a348121f-8b53b193@192.168.100.12 to 90.185.178.208:18221: CSeq: 94210 NOTIFY to 90.185.178.208:18221: Server: Sip EXpress router (0.9.6 (i386/freebsd)) to 90.185.178.208:18221: Content-Length: 0 to 90.185.178.208:18221: from 84.72.172.220:60007: NOTIFY sip:sip10.youroute.net SIP/2.0 from 84.72.172.220:60007: Via: SIP/2.0/UDP 192.168.0.100:5060;branch=z9hG4bK-adbb4e41 from 84.72.172.220:60007: From: "Switzernet" ;tag=cb15cd08c17ea872o0 from 84.72.172.220:60007: To: from 84.72.172.220:60007: Call-ID: 6e0e0848-31d1a632@192.168.0.100 from 84.72.172.220:60007: CSeq: 106898 NOTIFY from 84.72.172.220:60007: Max-Forwards: 70 from 84.72.172.220:60007: Event: keep-alive from 84.72.172.220:60007: User-Agent: Sipura/SPA941-4.1.8 from 84.72.172.220:60007: Content-Length: 0 from 84.72.172.220:60007: to 84.72.172.220:60007: SIP/2.0 480 Stay Alive to 84.72.172.220:60007: Via: SIP/2.0/UDP 192.168.0.100:5060;branch=z9hG4bK-adbb4e41;rport=60007;received=84.72.172.220 to 84.72.172.220:60007: From: "Switzernet" ;tag=cb15cd08c17ea872o0 to 84.72.172.220:60007: To: ;tag=a256e4214b6852b727cb31bbd4dd23e7.ae6e to 84.72.172.220:60007: Call-ID: 6e0e0848-31d1a632@192.168.0.100 to 84.72.172.220:60007: CSeq: 106898 NOTIFY to 84.72.172.220:60007: Server: Sip EXpress router (0.9.6 (i386/freebsd)) to 84.72.172.220:60007: Content-Length: 0 to 84.72.172.220:60007: ^C root@fr2# $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo -e "\n[$h]"; scp sona@$h.youroute.net:/usr/home/porta-sip/etc/ser.cfg ser-template-$h.cfg; done 2> /dev/null $ diff ser-template-dk1.cfg ser-template-fr1.cfg $ diff ser-template-dk1.cfg ser-template-fr2.cfg 129a130,134 > if (method == "NOTIFY") { > sl_send_reply("405", "Stay Alive / Method Not Allowed"); > break; > } > $ diff ser-template-dk1.cfg ser-template-fr3.cfg $ diff ser-template-dk1.cfg ser-template-fr4.cfg $ diff ser-template-dk1.cfg ser-template-fr5.cfg $ diff ser-template-dk1.cfg ser-template-us1.cfg 19a20 > alias="%%CANONIC_NAME2%%" $ fr5# tail -f /var/sipenv-*/log/sip.log | awk '/: (SENDING|RECEIVED) message (from|to) /{i=NR;t=$0} NR==i+1 && /(^NOTIFY|Stay Alive)/ {j=NR; go=1; print ""} NR>=j&&NR<=j+25&&go{gsub("^.*: .*message ","",t); print t " " $0} /^[ \r\n]*$/{go=0}' fr5# diff /usr/home/porta-one/PortaSIP/etc/ser.cfg /usr/home/porta-sip/etc/ser.cfg ; scp sona@fr2.youroute.net:/usr/home/porta-sip/etc/ser.cfg /usr/home/porta-sip/etc/ser.cfg ; diff /usr/home/porta-one/PortaSIP/etc/ser.cfg /usr/home/porta-sip/etc/ser.cfg fr5# `ls /var/sipenv-*/etc/rc.d/sip.sh | head -1` restart sona@fr2$ #subscribe is not implemented sona@fr2$ tail -60000 /var/sipenv-*/log/sip.log.0 | egrep -B7 -A2 "CSeq: .* SUBSC" 09 Apr 23:57:48.692/GLOBAL/ser[995]: RECEIVED message from 85.1.100.66:51913: SUBSCRIBE sip:41215505669@sip10.youroute.net SIP/2.0 Via: SIP/2.0/UDP 192.168.1.34:5060;branch=z9hG4bK43c68e53dd01ba014b2a6a5bc9dac269;rport From: "41215505669" ;tag=3377598347 To: "41215505669" Call-ID: 1777041976@192_168_1_34 CSeq: 1212324087 SUBSCRIBE Contact: Max-Forwards: 70 -- 09 Apr 23:57:48.692/GLOBAL/ser[995]: SENDING message to 91.121.19.149:5061: SUBSCRIBE sip:41215505669@91.121.19.149:5061 SIP/2.0 Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK81ea.f4f22914964f67f3ebe6d58c1e53f1c5.0 Via: SIP/2.0/UDP 192.168.1.34:5060;received=85.1.100.66;branch=z9hG4bK43c68e53dd01ba014b2a6a5bc9dac269;rport=51913 From: "41215505669" ;tag=3377598347 To: "41215505669" Call-ID: 1777041976@192_168_1_34 CSeq: 1212324087 SUBSCRIBE Contact: Max-Forwards: 16 -- 09 Apr 23:57:48.692/GLOBAL/b2bua: RECEIVED message from 91.121.19.149:5060: SUBSCRIBE sip:41215505669@91.121.19.149:5061 SIP/2.0 Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK81ea.f4f22914964f67f3ebe6d58c1e53f1c5.0 Via: SIP/2.0/UDP 192.168.1.34:5060;received=85.1.100.66;branch=z9hG4bK43c68e53dd01ba014b2a6a5bc9dac269;rport=51913 From: "41215505669" ;tag=3377598347 To: "41215505669" Call-ID: 1777041976@192_168_1_34 CSeq: 1212324087 SUBSCRIBE Contact: Max-Forwards: 16 -- 09 Apr 23:57:48.694/GLOBAL/b2bua: SENDING message to 91.121.19.149:5060: SIP/2.0 501 Not Implemented Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK81ea.f4f22914964f67f3ebe6d58c1e53f1c5.0 Via: SIP/2.0/UDP 192.168.1.34:5060;received=85.1.100.66;branch=z9hG4bK43c68e53dd01ba014b2a6a5bc9dac269;rport=51913 From: 41215505669 ;tag=3377598347 To: 41215505669 Call-ID: 1777041976@192_168_1_34 CSeq: 1212324087 SUBSCRIBE Server: Sippy -- 09 Apr 23:57:48.694/GLOBAL/ser[996]: RECEIVED message from 91.121.19.149:5061: SIP/2.0 501 Not Implemented Via: SIP/2.0/UDP 91.121.19.149;branch=z9hG4bK81ea.f4f22914964f67f3ebe6d58c1e53f1c5.0 Via: SIP/2.0/UDP 192.168.1.34:5060;received=85.1.100.66;branch=z9hG4bK43c68e53dd01ba014b2a6a5bc9dac269;rport=51913 From: 41215505669 ;tag=3377598347 To: 41215505669 Call-ID: 1777041976@192_168_1_34 CSeq: 1212324087 SUBSCRIBE Server: Sippy 09 Apr 23:57:48.694/GLOBAL/ser[996]: SENDING message to 85.1.100.66:51913: SIP/2.0 501 Not Implemented Via: SIP/2.0/UDP 192.168.1.34:5060;received=85.1.100.66;branch=z9hG4bK43c68e53dd01ba014b2a6a5bc9dac269;rport=51913 From: 41215505669 ;tag=3377598347 To: 41215505669 Call-ID: 1777041976@192_168_1_34 CSeq: 1212324087 SUBSCRIBE Server: Sippy $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo -e "\n[$h]"; scp sona@$h.youroute.net:/usr/home/porta-sip/etc/ser.cfg ser-template-$h-v2.cfg; done 2> /dev/null $ u2d ser-template-*-v2.cfg ser-template-dk1-v2.cfg: done. ser-template-fr1-v2.cfg: done. ser-template-fr2-v2.cfg: done. ser-template-fr3-v2.cfg: done. ser-template-fr4-v2.cfg: done. ser-template-fr5-v2.cfg: done. ser-template-us1-v2.cfg: done. $ diff ser-template-dk1-v2.cfg ser-template-fr1-v2.cfg $ diff ser-template-dk1-v2.cfg ser-template-fr2-v2.cfg $ diff ser-template-dk1-v2.cfg ser-template-fr3-v2.cfg $ diff ser-template-dk1-v2.cfg ser-template-fr4-v2.cfg $ diff ser-template-dk1-v2.cfg ser-template-fr5-v2.cfg $ diff ser-template-dk1-v2.cfg ser-template-us1-v2.cfg 19a20 > alias="%%CANONIC_NAME2%%" $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo -e "\n[$h]"; ssh sona@$h.youroute.net "cat \`ls /var/sipenv-*/log/sip.log.0 | head -1\` | awk '/^SIP\\/2.0/{bad=0} /^SIP\\/2.0 483/{bad=1} /^CSeq:/ && bad==1 {print \$3}' | sort | uniq -c"; done 2> /dev/null [fr1] 70 INFO 3 OPTIONS [fr2] [fr3] 38 ACK 3 BYE 48 INVITE 7 NOTIFY 9 OPTIONS 77 REGISTER 2004 SUBSCRIBE [fr4] 6 3 BYE 6 CANCEL 24 INVITE 3 OPTIONS 71 REGISTER 3752 SUBSCRIBE [fr5] 263 ACK 6 BYE 2 CANCEL 286 INVITE 26 NOTIFY 3 OPTIONS 108 REGISTER 5866 SUBSCRIBE [dk1] 35 ACK 32 BYE 8 CANCEL 35 INFO 304 INVITE 26 NOTIFY 31 OPTIONS 108 PING 1606 REGISTER 53106 SUBSCRIBE [us1] $ $ for h in fr1 fr2 fr3 fr4 fr5 dk1 us1; do echo -e "\n[$h]"; ssh sona@$h.youroute.net "cat \`ls /var/sipenv-*/log/sip.log.0 | head -1\` | awk '/^SIP\\/2.0/{bad=0} /^SIP\\/2.0 483/{bad=1} /^CSeq:/ && bad==1 {print \$3}' | sort | uniq -c"; done 2> /dev/null [fr1] [fr2] [fr3] 3 ACK 2 CANCEL 15 INVITE 7 NOTIFY 6 OPTIONS 31 REGISTER 1890 SUBSCRIBE [fr4] 2 CANCEL 11 INVITE 3 OPTIONS 47 REGISTER 1861 SUBSCRIBE [fr5] 457 ACK 6 BYE 2 CANCEL 35 INFO 484 INVITE 32 NOTIFY 3 OPTIONS 109 REGISTER 5706 SUBSCRIBE [dk1] 38 ACK 25 BYE 5 CANCEL 76 INFO 342 INVITE 25 NOTIFY 27 OPTIONS 81 PING 1383 REGISTER 54628 SUBSCRIBE [us1] $ date Sun Apr 19 13:29:05 WEST 2009