From: Dan Scott Date: Mon, 5 Jan 2015 18:26:45 +0000 (-0500) Subject: Default to enabling status-before-login X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdbs%2Fdefault_status_then_login;p=working%2FSIPServer.git Default to enabling status-before-login In the wild, Bibliotheca, Envisionware, Relais, and 3M clients have all been observed requesting status before login. Default to enabling the behaviour by default. Signed-off-by: Dan Scott --- diff --git a/SIPconfig.xml b/SIPconfig.xml index ce5d939..976083b 100644 --- a/SIPconfig.xml +++ b/SIPconfig.xml @@ -49,7 +49,7 @@ port="127.0.0.1:6001/tcp" transport="RAW" protocol="SIP/2.00" - allow_sc_status_then_login="disabled" + allow_sc_status_then_login="enabled" timeout="60" /> diff --git a/Sip/Configuration/Service.pm b/Sip/Configuration/Service.pm index 88fe971..875f817 100644 --- a/Sip/Configuration/Service.pm +++ b/Sip/Configuration/Service.pm @@ -41,7 +41,7 @@ sub timeout { sub allow_sc_status_then_login { my $self = shift; - return $self->{'allow_sc_status_then_login'} =~ /true|yes|enabled/i ? 1 : 0; + return $self->{'allow_sc_status_then_login'} =~ /false|no|disabled/i ? 0 : 1; } 1;