Process session timers, even if Session-Expires header is missing
authorDavid M. Lee <dlee@digium.com>
Thu, 31 Jan 2013 20:17:15 +0000 (20:17 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 31 Jan 2013 20:17:15 +0000 (20:17 +0000)
commit5899e13112c59579e5b555ae3fc8f680e192d069
treed9ef0e155e10e5c12784e3d01ade250b3d98946c
parentd6e05d5bf3509c3d1c1f8ddb2937acc65db180bc
Process session timers, even if Session-Expires header is missing

Previously, Asterisk only processed session timer information if both the
'Supported: timer' and 'Session-Expires' headers were present. However, the
Session-Expires header is optional. If we were to receive a request with a
Min-SE greater than our configured session-expires, we would respond with a
'Session-Expires' header that was too small.

This patch cleans the situation up a bit, always processing timer information
if the 'Supported: timer' header is present.

(closes issue ASTERISK-20787)
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/2299/
........

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

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

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