Всем привет!
К сожалению не нашёл решения вопроса, поэтому прошу вашей помощи.
Есть S4B server 2019 и Asterisk + FreePBX, связаны транком. Звонки с Asterisk на S4B проходят без проблем, в обратную сторону не идут.
Ошибка SIP/2.0 401 Unauthorized. Сервера разделены между собой VPN, NAT между ними нет.
[trunk]
type=friend
nat=no
transport=tcp
qualify=yes
port=5060
insecure=invite,port
host=172.30.0.82
disallow=all
canreinvite=yes
allow=alaw&ulaw
context=from-internal
promiscredir=yes
Вот лог астериска при входящем звонке с S4B.
<--- SIP read from TCP:172.30.0.82:60160 --->
INVITE sip:700@asterisk.domain.ru;user=phone SIP/2.0
FROM: "Test"<sip:0700;phone-context=defaultprofile@ekf.su;user=phone>;epid=EB876079FA;tag=7c93485c
TO: <sip:700@asterisk.ekfgroup.ru;user=phone>
CSEQ: 2448 INVITE
CALL-ID: fd3e4cd9-219a-4525-85bd-079a0795385c
MAX-FORWARDS: 70
VIA: SIP/2.0/TCP 172.30.0.82:60160;branch=z9hG4bK1ff22a5f
CONTACT: <sip:sfb-fe.domain.ru:5060;transport=Tcp;maddr=172.30.0.82;ms-opaque=53b0ff566fc81e45>
CONTENT-LENGTH: 338
SUPPORTED: 100rel
USER-AGENT: RTCC/7.0.0.0 MediationServer
CONTENT-TYPE: application/sdp
ALLOW: ACK
Allow: CANCEL,BYE,INVITE,PRACK,UPDATE
v=0
o=- 1255 1 IN IP4 172.30.0.82
s=session
c=IN IP4 172.30.0.82
b=CT:1000
t=0 0
m=audio 56242 RTP/AVP 97 101 13 0 8
c=IN IP4 172.30.0.82
a=rtcp:56243
a=label:Audio
a=sendrecv
a=rtpmap:97 RED/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=ptime:20
<------------->
--- (14 headers 18 lines) ---
Sending to 172.30.0.82:60160 (no NAT)
Sending to 172.30.0.82:60160 (no NAT)
Using INVITE request as basis request - fd3e4cd9-219a-4525-85bd-079a0795385c
No matching peer for '0700;phone-context=defaultprofile' from '172.30.0.82:60160'
<--- Reliably Transmitting (no NAT) to 172.30.0.82:60160 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 172.30.0.82:60160;branch=z9hG4bK1ff22a5f;received=172.30.0.82
From: "Test"<sip:0700;phone-context=defaultprofile@domain.su;user=phone>;epid=EB876079FA;tag=7c93485c
To: <sip:700@asterisk.domain.ru;user=phone>;tag=as33ca667a
Call-ID: fd3e4cd9-219a-4525-85bd-079a0795385c
CSeq: 2448 INVITE
Server: FPBX-14.0.5.25(13.22.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1ff922cf"
Content-Length: 0
Подскажите в какую сторону рыть?