chan_sip: Session-Expires: Set timer to correctly expire at (~2/3) of the interval...
authorAlec L Davis <sivad.a@paradise.net.nz>
Thu, 2 May 2013 08:24:31 +0000 (08:24 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Thu, 2 May 2013 08:24:31 +0000 (08:24 +0000)
commitf7f58b7bc23d4f79ea69ca0e2ef4a12ee5127ddd
tree9d1ab237dbd6ed97eaf00ccdf0454c4265295e1b
parent7f0f53958b463ae4ef8bbeb219dec3909e54e4cd
chan_sip: Session-Expires: Set timer to correctly expire at (~2/3) of the interval when not the refresher

RFC 4028 Section 10
if the side not performing refreshes does not receive a
session refresh request before the session expiration, it SHOULD send
a BYE to terminate the session, slightly before the session
expiration.  The minimum of 32 seconds and one third of the session
interval is RECOMMENDED.

Prior to this asterisk would refresh at 1/2 the Session-Expires interval,
or if the remote device was the refresher, asterisk would timeout at interval end.

Now, when not refresher, timeout as per RFC noted above.

(closes issue ASTERISK-21742)

Reported by: alecdavis
Tested by: alecdavis
alecdavis (license 585)

Review https://reviewboard.asterisk.org/r/2488/
........

Merged revisions 387344 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 387345 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@387369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/sip/include/sip.h