Прошу помочь с диагностикой и устранением проблемы с обновлением регистрации аппаратов на Asterisk. Чаще всего она возникает с аппаратами Cisco 7911, но не только с ними. Через некоторый промежуток времени пир отваливается, сам апарат по-прежнему считает, что зарегистрирован.
Временно и частично купировал проблему ignoreregexpire=yes.
OS: FreeBSD 10.2, jail
Asterisk 11.20.0
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip.conf
[general]
disallow=all
allow=G722
allow=alaw
allowguest=no
alwaysauthreject=yes
language=ru
buggymwi=yes
allowsubscribe=yes
notifyringing=yes
notifyhold=yes
notifycid=yes
useclientcode=yes
subscribecontex=internal
busylevel=1
allowtransfer=yes
limitonpeers=yes
canreinvite=no
directmedia=no
qualify=yes
ignoreregexpire=yes
[ophone](!)
type=friend
host=dynamic
callgroup=
pickupgroup=
context=office-phones
call-limit=2
[6654](ophone)
secret=JfkdjE3412
callgroup=2
pickupgroup=2
disallow=all
allow=G722
allow=alaw
allowguest=no
alwaysauthreject=yes
language=ru
buggymwi=yes
allowsubscribe=yes
notifyringing=yes
notifyhold=yes
notifycid=yes
useclientcode=yes
subscribecontex=internal
busylevel=1
allowtransfer=yes
limitonpeers=yes
canreinvite=no
directmedia=no
qualify=yes
ignoreregexpire=yes
[ophone](!)
type=friend
host=dynamic
callgroup=
pickupgroup=
context=office-phones
call-limit=2
[6654](ophone)
secret=JfkdjE3412
callgroup=2
pickupgroup=2
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: Диалог при обновлении регистрации
<--- SIP read from UDP:10.100.1.94:5060 --->
REGISTER sip:sip.lol.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-5ec5af32
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37660 REGISTER
Max-Forwards: 70
Authorization: Digest username="6654",realm="asterisk",nonce="46fd35b5",uri="sip:sip.lol.com:5060",algorithm=MD5,response="bd03d4a974b7ffa07ff520975d06"
Contact: "6654" <sip:6654@10.100.1.94:5060>;expires=300
User-Agent: Cisco/SPA112-1.3.5(004p_XU001)
P-Station-Name: ;mac=5067aef0130c; display=""; sn=CCQ19190697
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
<------------->
--- (14 headers 0 lines) ---
Sending to 10.100.1.94:5060 (no NAT)
Sending to 10.100.1.94:5060 (no NAT)
<--- Transmitting (no NAT) to 10.100.1.94:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-5ec5af32;received=10.100.1.94
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>;tag=as5d0d6437
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37660 REGISTER
Server: Asterisk PBX 11.20.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="187daf72"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5b0f752f-f4b536b1@10.100.1.94' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:10.100.1.94:5060 --->
REGISTER sip:sip.lol.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-55d65163
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37661 REGISTER
Max-Forwards: 70
Authorization: Digest username="6654",realm="asterisk",nonce="187daf72",uri="sip:sip.lol.com:5060",algorithm=MD5,response="f498d09ddfcd92828981012a30b5"
Contact: "6654" <sip:6654@10.100.1.94:5060>;expires=300
User-Agent: Cisco/SPA112-1.3.5(004p_XU001)
P-Station-Name: ;mac=5067aef0130c; display=""; sn=CCQ19190697
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
<------------->
--- (14 headers 0 lines) ---
Sending to 10.100.1.94:5060 (no NAT)
Reliably Transmitting (no NAT) to 10.100.1.94:5060:
OPTIONS sip:6654@10.100.1.94:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.125:5060;branch=z9hG4bK74a5e1db
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.100.1.125>;tag=as4cc45f11
To: <sip:6654@10.100.1.94:5060>
Contact: <sip:Unknown@10.100.1.125:5060>
Call-ID: 5b90cb1c3850433a58cc9c1801ea545e@10.100.1.125:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.20.0
Date: Fri, 22 Jan 2016 06:57:44 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- Transmitting (no NAT) to 10.100.1.94:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-55d65163;received=10.100.1.94
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>;tag=as5d0d6437
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37661 REGISTER
Server: Asterisk PBX 11.20.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 300
Contact: <sip:6654@10.100.1.94:5060>;expires=300
Date: Fri, 22 Jan 2016 06:57:44 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5b0f752f-f4b536b1@10.100.1.94' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:10.100.1.94:5060 --->
SIP/2.0 200 OK
To: <sip:6654@10.100.1.94:5060>;tag=1a2ea1c4c91f6ecbi0
From: "Unknown" <sip:Unknown@10.100.1.125>;tag=as4cc45f11
Call-ID: 5b90cb1c3850433a58cc9c1801ea545e@10.100.1.125:5060
CSeq: 102 OPTIONS
Via: SIP/2.0/UDP 10.100.1.125:5060;branch=z9hG4bK74a5e1db
Server: Cisco/SPA112-1.3.5(004p_XU001)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '5b90cb1c3850433a58cc9c1801ea545e@10.100.1.125:5060' Method: OPTIONS
Really destroying SIP dialog '5b0f752f-f4b536b1@10.100.1.94' Method: REGISTER
REGISTER sip:sip.lol.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-5ec5af32
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37660 REGISTER
Max-Forwards: 70
Authorization: Digest username="6654",realm="asterisk",nonce="46fd35b5",uri="sip:sip.lol.com:5060",algorithm=MD5,response="bd03d4a974b7ffa07ff520975d06"
Contact: "6654" <sip:6654@10.100.1.94:5060>;expires=300
User-Agent: Cisco/SPA112-1.3.5(004p_XU001)
P-Station-Name: ;mac=5067aef0130c; display=""; sn=CCQ19190697
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
<------------->
--- (14 headers 0 lines) ---
Sending to 10.100.1.94:5060 (no NAT)
Sending to 10.100.1.94:5060 (no NAT)
<--- Transmitting (no NAT) to 10.100.1.94:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-5ec5af32;received=10.100.1.94
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>;tag=as5d0d6437
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37660 REGISTER
Server: Asterisk PBX 11.20.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="187daf72"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5b0f752f-f4b536b1@10.100.1.94' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:10.100.1.94:5060 --->
REGISTER sip:sip.lol.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-55d65163
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37661 REGISTER
Max-Forwards: 70
Authorization: Digest username="6654",realm="asterisk",nonce="187daf72",uri="sip:sip.lol.com:5060",algorithm=MD5,response="f498d09ddfcd92828981012a30b5"
Contact: "6654" <sip:6654@10.100.1.94:5060>;expires=300
User-Agent: Cisco/SPA112-1.3.5(004p_XU001)
P-Station-Name: ;mac=5067aef0130c; display=""; sn=CCQ19190697
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
<------------->
--- (14 headers 0 lines) ---
Sending to 10.100.1.94:5060 (no NAT)
Reliably Transmitting (no NAT) to 10.100.1.94:5060:
OPTIONS sip:6654@10.100.1.94:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.125:5060;branch=z9hG4bK74a5e1db
Max-Forwards: 70
From: "Unknown" <sip:Unknown@10.100.1.125>;tag=as4cc45f11
To: <sip:6654@10.100.1.94:5060>
Contact: <sip:Unknown@10.100.1.125:5060>
Call-ID: 5b90cb1c3850433a58cc9c1801ea545e@10.100.1.125:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.20.0
Date: Fri, 22 Jan 2016 06:57:44 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
---
<--- Transmitting (no NAT) to 10.100.1.94:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.100.1.94:5060;branch=z9hG4bK-55d65163;received=10.100.1.94
From: "6654" <sip:6654@sip.lol.com>;tag=694e2d70cf57770fo0
To: "6654" <sip:6654@sip.lol.com>;tag=as5d0d6437
Call-ID: 5b0f752f-f4b536b1@10.100.1.94
CSeq: 37661 REGISTER
Server: Asterisk PBX 11.20.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 300
Contact: <sip:6654@10.100.1.94:5060>;expires=300
Date: Fri, 22 Jan 2016 06:57:44 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5b0f752f-f4b536b1@10.100.1.94' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:10.100.1.94:5060 --->
SIP/2.0 200 OK
To: <sip:6654@10.100.1.94:5060>;tag=1a2ea1c4c91f6ecbi0
From: "Unknown" <sip:Unknown@10.100.1.125>;tag=as4cc45f11
Call-ID: 5b90cb1c3850433a58cc9c1801ea545e@10.100.1.125:5060
CSeq: 102 OPTIONS
Via: SIP/2.0/UDP 10.100.1.125:5060;branch=z9hG4bK74a5e1db
Server: Cisco/SPA112-1.3.5(004p_XU001)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '5b90cb1c3850433a58cc9c1801ea545e@10.100.1.125:5060' Method: OPTIONS
Really destroying SIP dialog '5b0f752f-f4b536b1@10.100.1.94' Method: REGISTER
6654/6654 (Unspecified) D Auto (No) No 0 UNKNOWN
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip show peer 6654
* Name : 6654
Description :
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : office-phones
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language : ru
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup : 2
Pickupgroup : 2
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 0/0
Call limit : 2
Max forwards : 0
Dynamic : Yes
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : -1
Insecure : no
Force rport : Auto (No)
Symmetric RTP: No
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: 4294967295
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
TrustIDOutbnd: Legacy
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : (null)
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 6654
SIP Options : (none)
Codecs : (alaw|g722)
Codec Order : (g722:20,alaw:20)
Auto-Framing : No
Status : UNKNOWN
Useragent : Cisco/SPA112-1.3.5(004p_XU001)
Reg. Contact : sip:6654@10.100.1.94:5060
Qualify Freq : 60000 ms
Keepalive : 0 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
Description :
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : office-phones
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language : ru
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup : 2
Pickupgroup : 2
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 0/0
Call limit : 2
Max forwards : 0
Dynamic : Yes
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : -1
Insecure : no
Force rport : Auto (No)
Symmetric RTP: No
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: 4294967295
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
TrustIDOutbnd: Legacy
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : (null)
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 6654
SIP Options : (none)
Codecs : (alaw|g722)
Codec Order : (g722:20,alaw:20)
Auto-Framing : No
Status : UNKNOWN
Useragent : Cisco/SPA112-1.3.5(004p_XU001)
Reg. Contact : sip:6654@10.100.1.94:5060
Qualify Freq : 60000 ms
Keepalive : 0 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
asterisk*CLI> sip unregister 6654
Peer 6654 not registered
Надеюсь на рекомендации по действиям для дальнейшей диагностики.