asterisk/channels/sip
Alec L Davis f7f58b7bc2 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
2013-05-02 08:24:31 +00:00
..
include chan_sip: Session-Expires: Set timer to correctly expire at (~2/3) of the interval when not the refresher 2013-05-02 08:24:31 +00:00
config_parser.c Multiple revisions 370769-370771 2012-08-03 21:52:57 +00:00
dialplan_functions.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
reqresp_parser.c Fix Record-Route parsing for large headers. 2013-01-18 05:31:23 +00:00
sdp_crypto.c Corrected crypto tag in SDP ANSWER for SRTP. (again) 2013-01-29 17:46:30 +00:00
security_events.c AST-2013-003: Prevent username disclosure in SIP channel driver 2013-03-27 15:27:31 +00:00
srtp.c Clean up doxygen warnings 2012-08-30 14:23:28 +00:00
utils.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00