LP#1463459: make SC Status handler recognize logged-in SIP session user/gmcharlt/lp1463459_signed_off
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 8 Jun 2015 20:57:11 +0000 (16:57 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 12 Jun 2015 18:58:02 +0000 (18:58 +0000)
commit5544f6017e6f67b7ffab59b188e486d9324fd9a9
treec2ae3609b1cec428020227c3fce8283c5914a877
parent8545ee251cb2a55f44000cec267e43e2136a4138
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>
Sip/MsgType.pm