tcpdump адреса 192.168.5.6:
[Показать] Спойлер:
- Код: выделить все
19:14:06.851535 IP 192.168.5.6.5060 > 192.168.3.17.5160: SIP: REGISTER sip:192.168.3.17:5160 SIP/2.0
0x0000: 0000 0001 0006 0014 2a86 f305 0000 0800 ........*.......
0x0010: 4568 0249 0000 4000 3f11 afd4 c0a8 0506 Eh.I..@.?.......
0x0020: c0a8 0311 13c4 1428 0235 c3cf 5245 4749 .......(.5..REGI
0x0030: 5354 4552 2073 6970 3a31 3932 2e31 3638 STER.sip:192.168
0x0040: 2e33 2e31 373a 3531 3630 2053 4950 2f32 .3.17:5160.SIP/2
0x0050: 2e30 0d0a 5669 613a 2053 4950 2f32 2e30 .0..Via:.SIP/2.0
0x0060: 2f55 4450 2031 3932 2e31 3638 2e35 2e36 /UDP.192.168.5.6
0x0070: 3a35 3036 303b 6272 616e 6368 3d7a 3968 :5060;branch=z9h
0x0080: 4734 624b 3132 3838 3236 3235 3136 0d0a G4bK1288262516..
0x0090: 4672 6f6d 3a20 2234 3134 3122 203c 7369 From:."4141".<si
0x00a0: 703a 3431 3431 4031 3932 2e31 3638 2e33 p:4141@192.168.3
0x00b0: 2e31 373a 3531 3630 3e3b 7461 673d 3939 .17:5160>;tag=99
0x00c0: 3137 3139 3231 310d 0a54 6f3a 2022 3431 1719211..To:."41
0x00d0: 3431 2220 3c73 6970 3a34 3134 3140 3139 41".<sip:4141@19
0x00e0: 322e 3136 382e 332e 3137 3a35 3136 303e 2.168.3.17:5160>
0x00f0: 0d0a 4361 6c6c 2d49 443a 2030 5f33 3331 ..Call-ID:.0_331
0x0100: 3336 3836 3034 3140 3139 322e 3136 382e 3686041@192.168.
0x0110: 352e 360d 0a43 5365 713a 2031 2052 4547 5.6..CSeq:.1.REG
0x0120: 4953 5445 520d 0a43 6f6e 7461 6374 3a20 ISTER..Contact:.
0x0130: 3c73 6970 3a34 3134 3140 3139 322e 3136 <sip:4141@192.16
0x0140: 382e 352e 363a 3530 3630 3e0d 0a41 6c6c 8.5.6:5060>..All
0x0150: 6f77 3a20 494e 5649 5445 2c20 494e 464f ow:.INVITE,.INFO
0x0160: 2c20 5052 4143 4b2c 2041 434b 2c20 4259 ,.PRACK,.ACK,.BY
0x0170: 452c 2043 414e 4345 4c2c 204f 5054 494f E,.CANCEL,.OPTIO
0x0180: 4e53 2c20 4e4f 5449 4659 2c20 5245 4749 NS,.NOTIFY,.REGI
0x0190: 5354 4552 2c20 5355 4253 4352 4942 452c STER,.SUBSCRIBE,
0x01a0: 2052 4546 4552 2c20 5055 424c 4953 482c .REFER,.PUBLISH,
0x01b0: 2055 5044 4154 452c 204d 4553 5341 4745 .UPDATE,.MESSAGE
0x01c0: 0d0a 4d61 782d 466f 7277 6172 6473 3a20 ..Max-Forwards:.
0x01d0: 3730 0d0a 5573 6572 2d41 6765 6e74 3a20 70..User-Agent:.
0x01e0: 5965 616c 696e 6b20 5349 502d 5431 3950 Yealink.SIP-T19P
0x01f0: 5f45 3220 3533 2e38 342e 302e 3135 0d0a _E2.53.84.0.15..
0x0200: 4578 7069 7265 733a 2033 3630 300d 0a41 Expires:.3600..A
0x0210: 6c6c 6f77 2d45 7665 6e74 733a 2074 616c llow-Events:.tal
0x0220: 6b2c 686f 6c64 2c63 6f6e 6665 7265 6e63 k,hold,conferenc
0x0230: 652c 7265 6665 722c 6368 6563 6b2d 7379 e,refer,check-sy
0x0240: 6e63 0d0a 436f 6e74 656e 742d 4c65 6e67 nc..Content-Leng
0x0250: 7468 3a20 300d 0a0d 0a00 0000 0000 0000 th:.0...........
0x0260: 0000 0000 0000 0000 00 .........
19:14:06.851656 IP 192.168.3.17.5160 > 192.168.5.6.5060: SIP: SIP/2.0 401 Unauthorized
0x0000: 0004 0001 0006 f4b5 2013 0484 0000 0800 ................
0x0010: 4560 0227 bc4b 0000 4011 32b3 c0a8 0311 E`.'.K..@.2.....
0x0020: c0a8 0506 1428 13c4 0213 6421 5349 502f .....(....d!SIP/
0x0030: 322e 3020 3430 3120 556e 6175 7468 6f72 2.0.401.Unauthor
0x0040: 697a 6564 0d0a 5669 613a 2053 4950 2f32 ized..Via:.SIP/2
0x0050: 2e30 2f55 4450 2031 3932 2e31 3638 2e35 .0/UDP.192.168.5
0x0060: 2e36 3a35 3036 303b 6272 616e 6368 3d7a .6:5060;branch=z
0x0070: 3968 4734 624b 3132 3838 3236 3235 3136 9hG4bK1288262516
0x0080: 3b72 6563 6569 7665 643d 3139 322e 3136 ;received=192.16
0x0090: 382e 352e 360d 0a46 726f 6d3a 2022 3431 8.5.6..From:."41
0x00a0: 3431 2220 3c73 6970 3a34 3134 3140 3139 41".<sip:4141@19
0x00b0: 322e 3136 382e 332e 3137 3a35 3136 303e 2.168.3.17:5160>
0x00c0: 3b74 6167 3d39 3931 3731 3932 3131 0d0a ;tag=991719211..
0x00d0: 546f 3a20 2234 3134 3122 203c 7369 703a To:."4141".<sip:
0x00e0: 3431 3431 4031 3932 2e31 3638 2e33 2e31 4141@192.168.3.1
0x00f0: 373a 3531 3630 3e3b 7461 673d 6173 3532 7:5160>;tag=as52
0x0100: 6362 3233 3231 0d0a 4361 6c6c 2d49 443a cb2321..Call-ID:
0x0110: 2030 5f33 3331 3336 3836 3034 3140 3139 .0_3313686041@19
0x0120: 322e 3136 382e 352e 360d 0a43 5365 713a 2.168.5.6..CSeq:
0x0130: 2031 2052 4547 4953 5445 520d 0a53 6572 .1.REGISTER..Ser
0x0140: 7665 723a 2046 5042 582d 3134 2e30 2e31 ver:.FPBX-14.0.1
0x0150: 332e 3428 3133 2e32 322e 3029 0d0a 416c 3.4(13.22.0)..Al
0x0160: 6c6f 773a 2049 4e56 4954 452c 2041 434b low:.INVITE,.ACK
0x0170: 2c20 4341 4e43 454c 2c20 4f50 5449 4f4e ,.CANCEL,.OPTION
0x0180: 532c 2042 5945 2c20 5245 4645 522c 2053 S,.BYE,.REFER,.S
0x0190: 5542 5343 5249 4245 2c20 4e4f 5449 4659 UBSCRIBE,.NOTIFY
0x01a0: 2c20 494e 464f 2c20 5055 424c 4953 482c ,.INFO,.PUBLISH,
0x01b0: 204d 4553 5341 4745 0d0a 5375 7070 6f72 .MESSAGE..Suppor
0x01c0: 7465 643a 2072 6570 6c61 6365 732c 2074 ted:.replaces,.t
0x01d0: 696d 6572 0d0a 5757 572d 4175 7468 656e imer..WWW-Authen
0x01e0: 7469 6361 7465 3a20 4469 6765 7374 2061 ticate:.Digest.a
0x01f0: 6c67 6f72 6974 686d 3d4d 4435 2c20 7265 lgorithm=MD5,.re
0x0200: 616c 6d3d 2261 7374 6572 6973 6b22 2c20 alm="asterisk",.
0x0210: 6e6f 6e63 653d 2235 3030 3238 6666 3122 nonce="50028ff1"
0x0220: 0d0a 436f 6e74 656e 742d 4c65 6e67 7468 ..Content-Length
0x0230: 3a20 300d 0a0d 0a00 0000 0000 0000 0000 :.0.............
0x0240: 0000 0000 0000 00 .......
tcpdump порта 5060 на шлюзе:
[Показать] Спойлер:
- Код: выделить все
tcpdump -i eth1 port 5060
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
19:58:10.694706 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:10.695417 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
19:58:14.723505 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:14.724235 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
19:58:18.752273 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:18.753020 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
19:58:22.781045 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:22.781691 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
19:58:26.810879 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:26.811636 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
19:58:30.839670 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:30.840412 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
19:58:34.868496 IP 192.168.5.6.sip > 192.168.3.17.5160: SIP, length: 558
19:58:34.869257 IP 192.168.3.17.5160 > 192.168.5.6.sip: SIP, length: 524
14 packets captured
14 packets received by filter
0 packets dropped by kernel
Дебаг:
- Код: выделить все
[2019-08-05 19:02:39] VERBOSE[2500] chan_sip.c: Reliably Transmitting (no NAT) to 192.168.3.218:5060:
OPTIONS sip:4120@192.168.3.218:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.3.17:5160;branch=z9hG4bK63a72994
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.3.17:5160>;tag=as7d73772f
To: <sip:4120@192.168.3.218:5060>
Contact: <sip:Unknown@192.168.3.17:5160>
Call-ID: 7438ee43748d6d8d7b1655fc013a82f2@192.168.3.17:5160
CSeq: 102 OPTIONS
User-Agent: FPBX-14.0.13.4(13.22.0)
Date: Mon, 05 Aug 2019 15:02:39 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
[2019-08-05 19:02:39] VERBOSE[2500] chan_sip.c:
<--- SIP read from UDP:192.168.3.218:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.3.17:5160;branch=z9hG4bK63a72994
From: "Unknown" <sip:Unknown@192.168.3.17:5160>;tag=as7d73772f
To: <sip:4120@192.168.3.218:5060>;tag=1711213898
Call-ID: 7438ee43748d6d8d7b1655fc013a82f2@192.168.3.17:5160
CSeq: 102 OPTIONS
User-Agent: Yealink SIP-T19P_E2 53.81.14.1
Content-Length: 0