]> git.evergreen-ils.org Git - SIPServer.git/commit
LP#1463459: make SC Status handler recognize logged-in SIP session
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 8 Jun 2015 20:57:11 +0000 (16:57 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 16 Jun 2015 19:13:21 +0000 (15:13 -0400)
commit22b77ed625bb3e341aba3c74696e7614c310cd74
tree13550a7e1fda2a67d67525cdcb47c0a5c38d098d
parent667084c63d113c32c6a8f2bd03d613ae57fe4b2d
LP#1463459: make SC Status handler recognize logged-in SIP session

Due to MsgType not having an account field, handle_sc_status should
be checking $server, not $self, for account information. As a result
of checking the wrong field handle_sc_status always assumes the
session is not logged in and returns status based on the first account.

When this account is not flagged for some capabilities and the client
expects/needs those capabilities the client may determine it can't
function and disconnect, even though the login actually has those
capabilities. This patch fixes that; it also adjusts how
$server->{account} is checked (definedness, not existence).

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Sip/MsgType.pm