Re: SIP клиент за NAT
ded: http://www.voip-info.org/wiki/view/Routers+SIP+ALG
Спасибо, почитал.
Если я правильно понял, то в пакетах не должен фигурировать локальный адрес.
В моих пакетах локальный адрес встретился только в строчке
a=alt:1 1 : e1M+7kMm 7O/4/5dn 192.168.1.21 11468
То есть, я думаю, не в этом проблема.
Или я ошибаюсь?
Наведу часть логов около этого момента. Логи в момент звонка на эхотест.
<------------>
Scheduling destruction of SIP dialog 'ZmQ5YTMyNWEyM2U5NzFmOWJkNTAzYTRiMmE0NDhjMGI.' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog 'MjU4ZTI3MjgxMzhmNWMxMGMxOGIyODcxMjYwZThmM2M.' Method: REGISTER
ksmriya*CLI>
<--- SIP read from UDP://92.113.96.190:12410 --->
INVITE sip:600@ksmriya.org.ua SIP/2.0
Via: SIP/2.0/UDP 92.113.96.190:12410;branch=z9hG4bK-d8754z-972e0c16d1735c62-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:6100@92.113.96.190:12410>
To: "600"<sip:600@ksmriya.org.ua>
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=507c5368
Call-ID: MTUwZmZiMjdiMDE5ZjVjYWUyY2EzM2Q4YjBhZDM4NmU.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1100l stamp 47546
Content-Length: 424
v=0
o=- 5 2 IN IP4 92.113.96.190
s=CounterPath X-Lite 3.0
c=IN IP4 92.113.96.190
t=0 0
m=audio 15446 RTP/AVP 107 119 100 106 0 105 98 8 3 101
a=alt:1 1 : jUzFg5E7 msxdasm+ 192.168.1.21 15446
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:119 BV32-FEC/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
<------------->
--- (12 headers 16 lines) ---
Sending to 92.113.96.190 : 12410 (NAT)
Using INVITE request as basis request - MTUwZmZiMjdiMDE5ZjVjYWUyY2EzM2Q4YjBhZDM4NmU.
Found peer '6100' for '6100' from 92.113.96.190:12410
ksmriya*CLI>
<--- Reliably Transmitting (NAT) to 92.113.96.190:12410 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 92.113.96.190:12410;branch=z9hG4bK-d8754z-972e0c16d1735c62-1---d8754z-;received=92.113.96.190;rport=12410
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=507c5368
To: "600"<sip:600@ksmriya.org.ua>;tag=as20e7b5ca
Call-ID: MTUwZmZiMjdiMDE5ZjVjYWUyY2EzM2Q4YjBhZDM4NmU.
CSeq: 1 INVITE
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7d023409"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'MTUwZmZiMjdiMDE5ZjVjYWUyY2EzM2Q4YjBhZDM4NmU.' in 32000 ms (Method: INVITE)
ksmriya*CLI>
<--- SIP read from UDP://92.113.96.190:12410 --->
ACK sip:600@ksmriya.org.ua SIP/2.0
Via: SIP/2.0/UDP 92.113.96.190:12410;branch=z9hG4bK-d8754z-972e0c16d1735c62-1---d8754z-;rport
To: "600"<sip:600@ksmriya.org.ua>;tag=as20e7b5ca
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=507c5368
Call-ID: MTUwZmZiMjdiMDE5ZjVjYWUyY2EzM2Q4YjBhZDM4NmU.
CSeq: 1 ACK
Content-Length: 0
|