Всем привет!
отваливается транк через некоторое время
lab*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
ххх.ххх.ххх.хх:5060 N ххххххххх 105 No Authentication Sun, 25 Aug 2013 23:23:47
1 SIP registrations.
переподключаю и некоторое время все работает. но потом опять такой же трабл.
Заметил еще если указывать имя а не IP хоста то потом входящие не работаю.
строка регистрации login:pass@ip_host
и PEER:
type=friend
user=9448xxxxx
username=9448xxxxx
secret=pass
port=5060
host=195.128.182.62
context=sip_9448xxxxx
insecure=port,invite
qualify=yes
nat=yes
dtmfmode=rfc2833
diallow=all
allow=g729&gsm&alaw&ulaw
canreinvite=yes
rtpkeepalive=10
fromuser=9448xxxxx
fromdomain=my_ip
Это зареганый
SIP Debugging enabled
== Manager 'admin' logged on from 127.0.0.1
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 195.128.182.62:5060:
REGISTER sip:195.128.182.62 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK31d2b034;rport
Max-Forwards: 70
From: <sip:9448xxxxx@195.128.182.62>;tag=as7b87864b
To: <sip:9448xxxxx@195.128.182.62>
Call-ID: 165cffff101534f301ce49c2652df2d1@127.0.0.1
CSeq: 106 REGISTER
User-Agent: Asterisk PBX 1.6.2.13
Authorization: Digest username="9448xxxxx", realm="sipit", algorithm=MD5, uri="s ip:195.128.182.62", nonce="445a77c01377687523492", response="cfa31cac6103c7909b4 ed2e8ba9e7cfa"
Expires: 120
Contact: <sip:s@192.168.1.11>
Content-Length: 0
---
<--- SIP read from UDP:195.128.182.62:5060 --->
SIP/2.0 401 Unauthorized
Call-ID: 165cffff101534f301ce49c2652df2d1@127.0.0.1
Via: SIP/2.0/UDP 192.168.1.11:5060;rport=5060;branch=z9hG4bK31d2b034;received=19 2.168.1.11
From: <sip:9448xxxxx@195.128.182.62>;tag=as7b87864b
To: <sip:9448xxxxx@195.128.182.62>
CSeq: 106 REGISTER
WWW-Authenticate: Digest nonce="e3cf25641377687628502",realm="sipit"
Max-Forwards: 70
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name 195.128.182.62
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 195.128.182.62:5060:
REGISTER sip:195.128.182.62 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK6cad959a;rport
Max-Forwards: 70
From: <sip:9448xxxxx@195.128.182.62>;tag=as720eafba
To: <sip:9448xxxxx@195.128.182.62>
Call-ID: 165cffff101534f301ce49c2652df2d1@127.0.0.1
CSeq: 107 REGISTER
User-Agent: Asterisk PBX 1.6.2.13
Authorization: Digest username="9448xxxxx", realm="sipit", algorithm=MD5, uri="s ip:195.128.182.62", nonce="e3cf25641377687628502", response="162b914fde213494573 6707230ca5b08"
Expires: 120
Contact: <sip:s@192.168.1.11>
Content-Length: 0
---
<--- SIP read from UDP:195.128.182.62:5060 --->
SIP/2.0 200 OK
Call-ID: 165cffff101534f301ce49c2652df2d1@127.0.0.1
Via: SIP/2.0/UDP 192.168.1.11:5060;rport=5060;branch=z9hG4bK6cad959a;received=19 2.168.1.11
From: <sip:9448xxxxx@195.128.182.62>;tag=as720eafba
To: <sip:9448xxxxx@195.128.182.62>
CSeq: 107 REGISTER
Max-Forwards: 70
Contact: <sip:s@192.168.1.11:5060>;expires=60
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Scheduling destruction of SIP dialog '165cffff101534f301ce49c2652df2d1@127.0.0.1 ' in 32000 ms (Method: REGISTER)
== Manager 'admin' logged off from 127.0.0.1
<--- SIP read from UDP:192.168.1.3:53661 --->
REGISTER sip:192.168.1.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.3:53661;branch=z9hG4bK-d8754z-d8133741ea41a476-1---d8 754z-;rport
Max-Forwards: 70
Contact: <sip:0000@192.168.1.3:53661;rinstance=3684a9297321ff0b>
To: "0000"<sip:0000@192.168.1.11:5060>
From: "0000"<sip:0000@192.168.1.11:5060>;tag=9c0bf012
Call-ID: MTM4NGUyZmRhYjBkMWU4YjA1YzVmMDA1NmE4NjYyNjk.
CSeq: 4299 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, IN FO, MESSAGE
Supported: replaces
User-Agent: 3CXPhone 6.0.26523.0
Authorization: Digest username="0000",realm="asterisk",nonce="339397ee",uri="sip :192.168.1.11:5060",response="0794b852307eb1925ae74545d1e9c793",algorithm=MD5
Content-Length: 0
<------------->
--- (14 headers 0 lines) ---
Sending to 192.168.1.3 : 53661 (no NAT)
<--- Transmitting (NAT) to 192.168.1.3:53661 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.3:53661;branch=z9hG4bK-d8754z-d8133741ea41a476-1---d8 754z-;received=192.168.1.3;rport=53661
From: "0000"<sip:0000@192.168.1.11:5060>;tag=9c0bf012
To: "0000"<sip:0000@192.168.1.11:5060>
Call-ID: MTM4NGUyZmRhYjBkMWU4YjA1YzVmMDA1NmE4NjYyNjk.
CSeq: 4299 REGISTER
Server: Asterisk PBX 1.6.2.13
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
И потом умер
Host dnsmgr Username Refresh State Reg.Time
195.128.182.62:5060 N 9448xxxxx 105 No Authentication Wed, 28 Aug 2013 14:09:13
lab*CLI> sip set debug on
SIP Debugging enabled
<--- SIP read from UDP:192.168.1.3:53661 --->
Really destroying SIP dialog 'MTM4NGUyZmRhYjBkMWU4YjA1YzVmMDA1NmE4NjYyNjk.' Method: REGISTER
Reliably Transmitting (NAT) to 195.128.182.62:5060:
OPTIONS sip:195.128.182.62 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK08df2301;rport
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.1.11>;tag=as4218122c
To: <sip:195.128.182.62>
Contact: <sip:Unknown@192.168.1.11>
Call-ID: 69b1091e01f55bb84edafc940c53ca6a@192.168.1.11
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.13
Date: Wed, 28 Aug 2013 11:11:58 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
<--- SIP read from UDP:195.128.182.62:5060 --->
SIP/2.0 403 Forbidden
Call-ID: 69b1091e01f55bb84edafc940c53ca6a@192.168.1.11
Via: SIP/2.0/UDP 192.168.1.11:5060;rport=5060;branch=z9hG4bK08df2301;received=192.168.1.11
From: "Unknown" <sip:Unknown@192.168.1.11:5060>;tag=as4218122c
To: <sip:195.128.182.62>
CSeq: 102 OPTIONS
Max-Forwards: 70
Warning: 399 Smile CTI Server "Not authorized request"
Content-Length: 0
и постоянно
== Manager 'admin' logged off from 127.0.0.1
== Manager 'admin' logged on from 127.0.0.1
и так 100500 раз, но я думаю это не страшно.
Что подскажете, господа, как решать проблему с отваливанием танка.
Хоть движок сайта и дурной, вы все-таки берегите наши мозги, форматируйте текст.
switch ( 2013-08-26 13:58:31 +0400 )редактироватьа дебаг где? когда транк отвалился.
romariosar ( 2013-08-26 14:15:49 +0400 )редактировать