]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Process session timers, even if Session-Expires header is missing
authorDavid M. Lee <dlee@digium.com>
Thu, 31 Jan 2013 20:10:23 +0000 (20:10 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 31 Jan 2013 20:10:23 +0000 (20:10 +0000)
commit1412adf576234a9bc33a9c94a12f1c974c492278
treeb73a228ef01ac97da625f2e5856f85e06cba7c00
parentd865240168d64e110b7996fc28ad331e58310ad3
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

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