asterisk/channels
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
..
h323 Asterisk media architecture conversion - no more format bitfields 2011-02-03 16:22:10 +00:00
iax2 chan_iax2: Fix compile error if MALLOC_DEBUG enabled. 2013-02-01 19:35:26 +00:00
misdn chan_misdn: Fix sending RELEASE_COMPLETE in response to SETUP. 2012-11-30 21:38:01 +00:00
sip 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
Makefile Merge the pimp_my_sip branch into trunk. 2013-04-25 18:25:31 +00:00
chan_agent.c chan_agent: Prevent multiple channels from logging in as the same agent. 2013-01-29 18:02:07 +00:00
chan_alsa.c Don't attempt to create a voice frame on a read error 2013-04-14 02:35:04 +00:00
chan_bridge.c confbridge: Minor fixes playing user counts to the conference. 2013-01-22 00:36:52 +00:00
chan_console.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_dahdi.c chan_dahdi: fix lower bound check with -ve integer conversion from a float 2013-05-02 06:57:04 +00:00
chan_gtalk.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_gulp.c Fix a log message. 2013-04-30 18:12:36 +00:00
chan_h323.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_iax2.c Remove some unnecessary calls to ast_bridged_channel() in chan_iax2.c 2013-05-01 20:00:53 +00:00
chan_jingle.c Set the sin_family on the bind address socket during initialization 2013-02-24 23:01:17 +00:00
chan_local.c Simplify chan_local.c:manager_optimize_away() using ao2_find(). 2013-05-01 21:55:53 +00:00
chan_mgcp.c Remove some unnecessary calls to ast_bridged_channel() in chan_mgcp.c 2013-05-01 20:01:27 +00:00
chan_misdn.c chan_misdn: Fix compile error. 2013-01-16 17:49:52 +00:00
chan_motif.c Add The Status Of A Module To The Output Of "CLI> module show" 2013-02-19 17:17:10 +00:00
chan_multicast_rtp.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
chan_nbs.c Opaquification for ast_format structs in struct ast_channel 2012-02-24 00:32:20 +00:00
chan_oss.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_phone.c Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_sip.c 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
chan_skinny.c Remove some unnecessary calls to ast_bridged_channel() in chan_skinny.c 2013-05-01 20:01:10 +00:00
chan_unistim.c Remove some unnecessary calls to ast_bridged_channel() in chan_unistim.c 2013-05-01 20:01:43 +00:00
chan_vpb.cc Doxygen Updates - Title update 2012-10-14 21:47:40 +00:00
console_board.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_gui.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
misdn_config.c Add named callgroups/pickupgroups 2012-08-07 12:46:36 +00:00
sig_analog.c Remove some unnecessary calls to ast_bridged_channel() in chan_dahdi.c/sig_analog.c 2013-05-01 20:00:31 +00:00
sig_analog.h Convert sig_analog to use a global callback table. 2012-08-08 20:32:53 +00:00
sig_pri.c chan_dahdi: Add inband_on_proceeding compatibility option. 2013-04-03 20:20:09 +00:00
sig_pri.h chan_dahdi: Add inband_on_proceeding compatibility option. 2013-04-03 20:20:09 +00:00
sig_ss7.c chan_dahdi/SS7: Made reject incoming call for an in-alarm or blocked channel. 2012-11-08 21:12:35 +00:00
sig_ss7.h Convert sig_ss7 to use a global callback table. 2012-08-08 00:15:54 +00:00
vcodecs.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
vgrabbers.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00