Транк идет от одного из операторов.
Сам транк настроен так -
Звонки с Астериска проходят, а обратно, на Астериск, никак.type=peer
host=NNN.NN.NN.NNN
language=ru
context=from-trunk
disallow=all
allow=alaw&g729
directmedia=no
directrtpsetup=no
canreinvite=no
nat=no
insecure=port,invite
В дебаге пишет так -
Using SIP RTP TOS bits 184
Using SIP RTP CoS mark 5
Сделал дебаг самого транка - sip set debug peer XXX -
Понять из этого ничего не могу.localasrt*CLI> sip set debug peer XXX
SIP Debugging Enabled for IP: NNN.NN.NN.NNN:5060
<--- SIP read from UDP:NNN.NN.NN.NNN:5060 --->
INVITE sip:3951@MMM.MM.MM.MMM;user=phone SIP/2.0
Via: SIP/2.0/UDP NNN.NN.NN.NNN:5060;branch=z9hG4bKghh13710co012go433g0.1
Max-Forwards: 68
Call-ID: 05FBD301@83C8BEE9
From: 3951 <sip:3951@NNN.NN.NN.NNN:5060;user=phone>;tag=A-1-5d3f0005-ed0fb1d0
To: <sip:3951@MMM.MM.MM.MMM>
CSeq: 806880550 INVITE
Expires: 130000
Supported: replaces,100rel
Contact: <sip:Personeta@NNN.NN.NN.NNN;transport=udp>
Allow: INVITE,ACK,CANCEL,BYE,INFO,OPTIONS,PRACK,NOTIFY,MESSAGE,REFER,REGISTER,UPDATE
Content-Length: 166
Content-Type: application/sdp
v=0
o=Personeta 123456 123456 IN IP4 NNN.NN.NN.NNN
s=Audio Session
c=IN IP4 0.0.0.0
t=0 0
m=audio 16510 RTP/AVP 8 18
a=rtpmap:8 PCMA/8000
a=fmtp:18 annexb=no
<------------->
--- (13 headers 8 lines) ---
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Sending to NNN.NN.NN.NNN : 5060 (no NAT)
Using INVITE request as basis request - 05FBD301@83C8BEE9
<--- Reliably Transmitting (no NAT) to NNN.NN.NN.NNN:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP NNN.NN.NN.NNN:5060;branch=z9hG4bKghh13710co012go433g0.1;received=NNN.NN.NN.NNN
From: 3951 <sip:3951@NNN.NN.NN.NNN:5060;user=phone>;tag=A-1-5d3f0005-ed0fb1d0
To: <sip:3951@MMM.MM.MM.MMM>;tag=as6a0a266b
Call-ID: 05FBD301@83C8BEE9
CSeq: 806880550 INVITE
Server: FPBX-2.8.0(1.6.2.16.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '05FBD301@83C8BEE9' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:NNN.NN.NN.NNN:5060 --->
ACK sip:3951@MMM.MM.MM.MMM:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP NNN.NN.NN.NNN:5060;branch=z9hG4bKghh13710co012go433g0.1
CSeq: 806880550 ACK
Max-Forwards: 68
Call-ID: 05FBD301@83C8BEE9
From: 3951 <sip:3951@NNN.NN.NN.NNN:5060;user=phone>;tag=A-1-5d3f0005-ed0fb1d0
To: <sip:3951@MMM.MM.MM.MMM>;tag=as6a0a266b
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Really destroying SIP dialog '05FBD301@83C8BEE9' Method: ACK
localasrt*CLI>
Где грабли?
NNN - IP оператора, MMM - мой