Откуда: Uzhgorod
Сообщений: 54
|
Re: SIP клиент за NAT
nat=yes
проброску портов убрал, она ни на что не влияет, как оказалось.
В момент регистрации локальный адресс нигде не фигурирует. Навожу логи. (IP - клиентов - динамические, по-этому не прячу).
Здесь возможно видно почему идет перерегистрация клиента.
Могу показать также логи, когда идет обрыв при звонке на эхотест, но не знаю, что именно показывать, а все логи - слишком большие.
<--- SIP read from UDP://92.113.96.190:14308 --->
REGISTER sip:ksmriya.org.ua SIP/2.0
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-c0796d57c8223222-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:6100@92.113.96.190:14308;rinstance=063c7b6abe84ea72>
To: "GAMER"<sip:6100@ksmriya.org.ua>
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 92.113.96.190 : 14308 (NAT)
ksmriya*CLI>
<--- Transmitting (NAT) to 92.113.96.190:14308 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-c0796d57c8223222-1---d8754z-;received=92.113.96.190;rport=14308
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
To: "GAMER"<sip:6100@ksmriya.org.ua>;tag=as5cbdd930
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 1 REGISTER
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="13c65eeb"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.' in 32000 ms (Method: REGISTER)
ksmriya*CLI>
<--- SIP read from UDP://92.113.96.190:14308 --->
REGISTER sip:ksmriya.org.ua SIP/2.0
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-a233f7467333db55-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:6100@92.113.96.190:14308;rinstance=063c7b6abe84ea72>
To: "GAMER"<sip:6100@ksmriya.org.ua>
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="6100",realm="asterisk",nonce="13c65eeb",uri="sip:ksmriya.org.ua",response="939cc830158032b266dbded302ebbcdc",algorithm=MD5
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 92.113.96.190 : 14308 (NAT)
-- Registered SIP '6100' at 92.113.96.190 port 14308
> Saved useragent "X-Lite release 1100l stamp 47546" for peer 6100
ksmriya*CLI>
<--- Transmitting (NAT) to 92.113.96.190:14308 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-a233f7467333db55-1---d8754z-;received=92.113.96.190;rport=14308
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
To: "GAMER"<sip:6100@ksmriya.org.ua>;tag=as5cbdd930
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 2 REGISTER
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Expires: 3600
Contact: <sip:6100@92.113.96.190:14308;rinstance=063c7b6abe84ea72>;expires=3600
Date: Sat, 28 Feb 2009 21:55:44 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.' in 32000 ms (Method: REGISTER)
ksmriya*CLI>
<--- SIP read from UDP://92.113.96.190:14308 --->
REGISTER sip:ksmriya.org.ua SIP/2.0
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-96402d37042ac034-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:6100@92.113.96.190:14308;rinstance=063c7b6abe84ea72>;expires=0
To: "GAMER"<sip:6100@ksmriya.org.ua>
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 3 REGISTER
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="6100",realm="asterisk",nonce="13c65eeb",uri="sip:ksmriya.org.ua",response="939cc830158032b266dbded302ebbcdc",algorithm=MD5
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 92.113.96.190 : 14308 (NAT)
-- Unregistered SIP '6100'
ksmriya*CLI>
<--- Transmitting (NAT) to 92.113.96.190:14308 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-96402d37042ac034-1---d8754z-;received=92.113.96.190;rport=14308
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
To: "GAMER"<sip:6100@ksmriya.org.ua>;tag=as5cbdd930
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 3 REGISTER
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Expires: 0
Date: Sat, 28 Feb 2009 21:55:45 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.' in 32000 ms (Method: REGISTER)
ksmriya*CLI>
<--- SIP read from UDP://92.113.96.190:14308 --->
REGISTER sip:ksmriya.org.ua SIP/2.0
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-f1334c0fc9480116-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:6100@92.113.96.190:14308;rinstance=ead2e920a8102c79>
To: "GAMER"<sip:6100@ksmriya.org.ua>
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 4 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1100l stamp 47546
Authorization: Digest username="6100",realm="asterisk",nonce="13c65eeb",uri="sip:ksmriya.org.ua",response="939cc830158032b266dbded302ebbcdc",algorithm=MD5
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 92.113.96.190 : 14308 (NAT)
-- Registered SIP '6100' at 92.113.96.190 port 14308
> Saved useragent "X-Lite release 1100l stamp 47546" for peer 6100
ksmriya*CLI>
<--- Transmitting (NAT) to 92.113.96.190:14308 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 92.113.96.190:14308;branch=z9hG4bK-d8754z-f1334c0fc9480116-1---d8754z-;received=92.113.96.190;rport=14308
From: "GAMER"<sip:6100@ksmriya.org.ua>;tag=511ef763
To: "GAMER"<sip:6100@ksmriya.org.ua>;tag=as5cbdd930
Call-ID: MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.
CSeq: 4 REGISTER
Server: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces, timer
Expires: 3600
Contact: <sip:6100@92.113.96.190:14308;rinstance=ead2e920a8102c79>;expires=3600
Date: Sat, 28 Feb 2009 21:55:45 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'MmM4YjJhNzc5Y2Y2ZGQ1ZDAyMmYyMzcwYTAyN2ViYjY.' in 32000 ms (Method: REGISTER)
ksmriya*CLI> exit
Executing last minute cleanups
|