]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Properly handle UAC/UAS roles for SIP session timers
authorTerry Wilson <twilson@digium.com>
Tue, 25 Sep 2012 17:21:19 +0000 (17:21 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 25 Sep 2012 17:21:19 +0000 (17:21 +0000)
commit6f943721f136160f2d2243d37e5131d27a0dd39e
treeb62a21e10455dd41e0a293898dc05919f5322ca4
parent1e43c3bada6e4fec88cabe2d0ce1e5db1883307e
Properly handle UAC/UAS roles for SIP session timers

The SIP session timer mechanism contains a mandatory 'refresher' parameter
(included in the Session-Expires header) which is used in the session timer
offer/answer signaling within a SIP Invite dialog. It looks like asterisk is
interpreting the uac resp. uas role only as the initial role of client and
server (caller is uac, callee is uas). The standard rfc 4028 however assigns
the client role to the ((RE)-Invite) requester, the server role to the
((RE)-Invite) responder.

This patch has Asterisk track the actual refresher as "us" or "them" as opposed
to relying on just the configured "uas" or "uac" properties.

(closes issue AST-922)
Reported by: Thomas Airmont

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@373652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/sip/include/sip.h
configs/sip.conf.sample