]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Ensure the correct value is returned for CHANNEL(pjsip, secure)
authorAsterisk Autobuilder <asteriskteam@digium.com>
Fri, 19 Dec 2014 20:38:03 +0000 (20:38 +0000)
committerAsterisk Autobuilder <asteriskteam@digium.com>
Fri, 19 Dec 2014 20:38:03 +0000 (20:38 +0000)
commitb6d0b4f1e7f057af012e004bc183bdc79b28ba87
tree84ba8d91a382b56239e0f34b0b16c9b992cac16b
parentd05f5cf00f72e2bfc02ef4563c1a087701b61e9a
Ensure the correct value is returned for CHANNEL(pjsip, secure)

Prior to this patch, we were using the PJSIP dialog's secure flag
to determine if a secure transport was being used. Unfortunately,
the dialog's secure flag was only set if a SIPS URI were in use,
as required by RFC 3261 sections 12.1.1 and 12.1.2. What we're interested
in is not dialog security, but transport security. This code change
switches to a model where we use the dialog's target URI to determine
what transport would be used to communicate, and then check if that
transport is secure.

AST-1450 #close
Reported by John Bigelow

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

Merged revisions 429739 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@429861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/pjsip/dialplan_functions.c