Jonas Kellens
2021-Jun-30 18:28 UTC
[asterisk-users] Asterisk Manager gives event PeerStatus: Unregistered Cause: Expired
Hello I see the following event from the Asterisk Manager : 2021-06-30 11:20:55 Array ( [0] => Event: PeerStatus [1] => Privilege: system,all [2] => SystemName: tstv7 [3] => ChannelType: SIP [4] => Peer: SIP/testacc7700921 [5] => PeerStatus: Unregistered [6] => Cause: Expired ) But I see no SIP REGISTER with SIP-header Expires:0 (so an UNregister if you like) in my SIP debug. What I do see is a SIP OPTION, following a SIP 200 OK (so this is the qualify frequenty) at 11:20:45 [Jun 30 11:20:45] VERBOSE[1581] chan_sip.c: Reliably Transmitting (NAT) to my.lo.cal.ip:55014: OPTIONS sip:testacc7700921 at 192.168.1.9:5060 SIP/2.0 Via: SIP/2.0/UDP my.aste.risk.ip:5060;branch=z9hG4bK357689ec;rport Max-Forwards: 70 From: "asterisk" <sip:asterisk at my.aste.risk.ip>;tag=as0da9cbe1 To: <sip:testacc7700921 at 192.168.1.9:5060> Contact: <sip:asterisk at my.aste.risk.ip:5060> Call-ID: 0b8c7f5745051ae73193231f5a487b11 at my.aste.risk.ip:5060 CSeq: 102 OPTIONS User-Agent: TSTv7 Date: Wed, 30 Jun 2021 09:20:45 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Content-Length: 0 --- [Jun 30 11:20:45] VERBOSE[1581] chan_sip.c: <--- SIP read from UDP:my.lo.cal.ip:55014 ---> SIP/2.0 200 OK Via: SIP/2.0/UDP my.aste.risk.ip:5060;branch=z9hG4bK357689ec;rport=5060 From: "asterisk" <sip:asterisk at my.aste.risk.ip>;tag=as0da9cbe1 To: <sip:testacc7700921 at 192.168.1.9:5060>;tag=2924269434 Call-ID: 0b8c7f5745051ae73193231f5a487b11 at my.aste.risk.ip:5060 CSeq: 102 OPTIONS User-Agent: Yealink SIP-T46G 28.83.0.120 Content-Length: 0 In sip.conf I have the following config concerning SIP registration expiry : maxexpiry=3600 ;minexpiry=60 ;defaultexpiry=120 ;submaxexpiry=3600 ;subminexpiry=60 qualifyfreq=120 So my question is : what causes the Asterisk Manager to report a "PeerStatus: Unregistered" if I find no such data in my SIP debug information ?? Kind regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210630/af758997/attachment.html>
Joshua C. Colp
2021-Jun-30 18:32 UTC
[asterisk-users] Asterisk Manager gives event PeerStatus: Unregistered Cause: Expired
On Wed, Jun 30, 2021 at 3:28 PM Jonas Kellens <jonas.kellens at telenet.be> wrote:> Hello > > > I see the following event from the Asterisk Manager : > > 2021-06-30 11:20:55 > Array > ( > [0] => Event: PeerStatus > [1] => Privilege: system,all > [2] => SystemName: tstv7 > [3] => ChannelType: SIP > [4] => Peer: SIP/testacc7700921 > [5] => PeerStatus: Unregistered > [6] => Cause: Expired > ) > >The cause is in this message, the registration expired. A re-registration did not occur before the registration expiration so it expired and was unregistered. -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210630/3caad4ac/attachment.html>
Jonas Kellens
2021-Jul-01 15:34 UTC
[asterisk-users] Asterisk Manager gives event PeerStatus: Unregistered Cause: Expired
Hello Joshua these are the 2 previous events on the Manager interface : 2021-06-30 11:10:45 Array ( [0] => Event: PeerStatus [1] => Privilege: system,all [2] => SystemName: tstv7 [3] => ChannelType: SIP [4] => Peer: SIP/testacc7700921 [5] => PeerStatus: Registered [6] => Address: my.lo.cal.ip:55014 ) 2021-06-30 11:10:48 Array ( [0] => Event: PeerStatus [1] => Privilege: system,all [2] => SystemName: tstv7 [3] => ChannelType: SIP [4] => Peer: SIP/testacc7700921 [5] => PeerStatus: Reachable [6] => ) So there is a re-register at 11:10:45 How do you explain the "Expired" 10 minutes later ?? Op 30-06-21 om 20:32 schreef Joshua C. Colp:> On Wed, Jun 30, 2021 at 3:28 PM Jonas Kellens > <jonas.kellens at telenet.be <mailto:jonas.kellens at telenet.be>> wrote: > > Hello > > > I see the following event from the Asterisk Manager : > > 2021-06-30 11:20:55 > Array > ( > [0] => Event: PeerStatus > [1] => Privilege: system,all > [2] => SystemName: tstv7 > [3] => ChannelType: SIP > [4] => Peer: SIP/testacc7700921 > [5] => PeerStatus: Unregistered > [6] => Cause: Expired > ) > > > The cause is in this message, the registration expired. A > re-registration did not occur before the registration expiration so it > expired and was unregistered. > > -- > Joshua C. Colp > Asterisk Technical Lead > Sangoma Technologies > Check us out at www.sangoma.com <http://www.sangoma.com> and > www.asterisk.org <http://www.asterisk.org> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210701/b69dc6bd/attachment.html>