Asterisk 13.19.1
FreePBX 14.0.13.4
Centos 7
Ситуация:
1. Отсутствует интернет (авария у провайдера)
2. Внутренний номер 2224 звонит на внутренний номер 2222, звонок проходит, но абоненты не слышат друг друга.
3. Провайдер восстанавливает связь.
4. Внутренний номер 2224 звонит на внутренний номер 2222, звонок проходит, абоненты слышат друг друга
Оба клиента и сервер находятся в одной сети.
192.168.30.222 (Asterisk)
192.168.30.141 (Клиент 2222)
91.191.xxx.xxx (Внешний IP)
Результат Tcp-Dump
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[root@freepbx asterisk]# tcpdump host 192.168.30.141 -vvvvv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
13:26:57.827576 IP (tos 0x60, ttl 64, id 61586, offset 0, flags [DF], proto UDP (17), length 460)
freepbx.sangoma.local.sip > 192.168.30.141.sip: [udp sum ok] SIP, length: 432
OPTIONS sip:2222@192.168.30.141:5060 SIP/2.0
Via: SIP/2.0/UDP 91.191.xxx.xxx:5060;rport;branch=z9hG4bKPj13b685b5-52c7-45cf-9225-5186772db5d7
From: <sip:2222@192.168.30.222>;tag=381cc75b-460e-4f44-87cb-012c1a3b882c
To: <sip:2222@192.168.30.141>
Contact: <sip:2222@91.191.xxx.xxx:5060>
Call-ID: a60ee6ec-ec59-4201-93f3-aece2a29a7c1
CSeq: 15780 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.4(13.19.1)
Content-Length: 0
13:26:57.834926 IP (tos 0x68, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 398)
192.168.30.141.sip > freepbx.sangoma.local.sip: [udp sum ok] SIP, length: 370
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.191.xxx.xxx:5060;rport=5060;branch=z9hG4bKPj13b685b5-52c7-45cf-9225-5186772db5d7
From: <sip:2222@192.168.30.222>;tag=381cc75b-460e-4f44-87cb-012c1a3b882c
To: <sip:2222@192.168.30.141>;tag=1986002339
Call-ID: a60ee6ec-ec59-4201-93f3-aece2a29a7c1
CSeq: 15780 OPTIONS
User-Agent: Yealink SIP-T21P_E2 52.82.14.1
Content-Length: 0
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
13:26:57.827576 IP (tos 0x60, ttl 64, id 61586, offset 0, flags [DF], proto UDP (17), length 460)
freepbx.sangoma.local.sip > 192.168.30.141.sip: [udp sum ok] SIP, length: 432
OPTIONS sip:2222@192.168.30.141:5060 SIP/2.0
Via: SIP/2.0/UDP 91.191.xxx.xxx:5060;rport;branch=z9hG4bKPj13b685b5-52c7-45cf-9225-5186772db5d7
From: <sip:2222@192.168.30.222>;tag=381cc75b-460e-4f44-87cb-012c1a3b882c
To: <sip:2222@192.168.30.141>
Contact: <sip:2222@91.191.xxx.xxx:5060>
Call-ID: a60ee6ec-ec59-4201-93f3-aece2a29a7c1
CSeq: 15780 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-14.0.13.4(13.19.1)
Content-Length: 0
13:26:57.834926 IP (tos 0x68, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 398)
192.168.30.141.sip > freepbx.sangoma.local.sip: [udp sum ok] SIP, length: 370
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.191.xxx.xxx:5060;rport=5060;branch=z9hG4bKPj13b685b5-52c7-45cf-9225-5186772db5d7
From: <sip:2222@192.168.30.222>;tag=381cc75b-460e-4f44-87cb-012c1a3b882c
To: <sip:2222@192.168.30.141>;tag=1986002339
Call-ID: a60ee6ec-ec59-4201-93f3-aece2a29a7c1
CSeq: 15780 OPTIONS
User-Agent: Yealink SIP-T21P_E2 52.82.14.1
Content-Length: 0
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Call flow for c56964ec-242d-4751-9d21-86bc0bfd343e (Color by Request/Response)
xINVITE sip:2222@192.168.30.141:5060 SIP/2.0
192.168.30.222:5060 192.168.30.141:5060xVia: SIP/2.0/UDP 91.191.xxx.xx:5060;rport;branch=z9hG4bKPj53eb093f-83a2-4466-a1b6-4023f6d8439e
qqqqqqqqqqwqqqqqqqqq qqqqqqqqqqwqqqqqqqqqxFrom: " АГ(2224)" <sip:2224@192.168.30.222>;tag=6d8d42e5-8e7f-4cc5-b1a3-a883f0eda5a2
x INVITE (SDP) x xTo: <sip:2222@192.168.30.141>
13:48:55.542108 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x xContact: <sip:asterisk@91.191.xxx.xx:5060>
+0.006413 x 100 Trying x xCall-ID: c56964ec-242d-4751-9d21-86bc0bfd343e
13:48:55.548521 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xCSeq: 24043 INVITE
+0.049470 x 180 Ringing x xAllow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
13:48:55.597991 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xSupported: 100rel, timer, replaces, norefersub
+4.349329 x 200 OK (SDP) x xSession-Expires: 1800
13:48:59.947320 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xMin-SE: 90
+0.000468 x ACK x xP-Asserted-Identity: "АГ (2224)" <sip:2224@192.168.30.222>
13:48:59.947788 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x xMax-Forwards: 70
+5.342810 x BYE x xUser-Agent: FPBX-14.0.13.4(13.19.1)
13:49:05.290598 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xContent-Type: application/sdp
+0.000302 x 200 OK x xContent-Length: 341
13:49:05.290900 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x x
x x xv=0
x x xo=- 1234702884 1234702884 IN IP4 91.191.xxx.xx
x x xs=Asterisk
x x xc=IN IP4 91.191.xxx.xx
x x xt=0 0
x x xm=audio 17940 RTP/AVP 0 8 3 111 9 101
x x xa=rtpmap:0 PCMU/8000
x x xa=rtpmap:8 PCMA/8000
x x xa=rtpmap:3 GSM/8000
x x xa=rtpmap:111 G726-32/8000
x x xa=rtpmap:9 G722/8000
x x xa=rtpmap:101 telephone-event/8000
x x xa=fmtp:101 0-16
x x xa=ptime:20
x x xa=maxptime:150
x x xa=sendrecv
xINVITE sip:2222@192.168.30.141:5060 SIP/2.0
192.168.30.222:5060 192.168.30.141:5060xVia: SIP/2.0/UDP 91.191.xxx.xx:5060;rport;branch=z9hG4bKPj53eb093f-83a2-4466-a1b6-4023f6d8439e
qqqqqqqqqqwqqqqqqqqq qqqqqqqqqqwqqqqqqqqqxFrom: " АГ(2224)" <sip:2224@192.168.30.222>;tag=6d8d42e5-8e7f-4cc5-b1a3-a883f0eda5a2
x INVITE (SDP) x xTo: <sip:2222@192.168.30.141>
13:48:55.542108 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x xContact: <sip:asterisk@91.191.xxx.xx:5060>
+0.006413 x 100 Trying x xCall-ID: c56964ec-242d-4751-9d21-86bc0bfd343e
13:48:55.548521 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xCSeq: 24043 INVITE
+0.049470 x 180 Ringing x xAllow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
13:48:55.597991 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xSupported: 100rel, timer, replaces, norefersub
+4.349329 x 200 OK (SDP) x xSession-Expires: 1800
13:48:59.947320 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xMin-SE: 90
+0.000468 x ACK x xP-Asserted-Identity: "АГ (2224)" <sip:2224@192.168.30.222>
13:48:59.947788 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x xMax-Forwards: 70
+5.342810 x BYE x xUser-Agent: FPBX-14.0.13.4(13.19.1)
13:49:05.290598 x <qqqqqqqqqqqqqqqqqqqqqqqqqq x xContent-Type: application/sdp
+0.000302 x 200 OK x xContent-Length: 341
13:49:05.290900 x qqqqqqqqqqqqqqqqqqqqqqqqqq> x x
x x xv=0
x x xo=- 1234702884 1234702884 IN IP4 91.191.xxx.xx
x x xs=Asterisk
x x xc=IN IP4 91.191.xxx.xx
x x xt=0 0
x x xm=audio 17940 RTP/AVP 0 8 3 111 9 101
x x xa=rtpmap:0 PCMU/8000
x x xa=rtpmap:8 PCMA/8000
x x xa=rtpmap:3 GSM/8000
x x xa=rtpmap:111 G726-32/8000
x x xa=rtpmap:9 G722/8000
x x xa=rtpmap:101 telephone-event/8000
x x xa=fmtp:101 0-16
x x xa=ptime:20
x x xa=maxptime:150
x x xa=sendrecv
Contact: <sip:2222@91.191.xxx.xxx:5060>
Contact: <sip:asterisk@91.191.xxx.xx:5060>
Почему при внутреннем звонке может подставляться внешний IP адрес?