Default to enabling status-before-login user/dbs/default_status_then_login
authorDan Scott <dan@coffeecode.net>
Mon, 5 Jan 2015 18:26:45 +0000 (13:26 -0500)
committerDan Scott <dan@coffeecode.net>
Mon, 5 Jan 2015 18:26:45 +0000 (13:26 -0500)
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 <dan@coffeecode.net>
SIPconfig.xml
Sip/Configuration/Service.pm

index ce5d939..976083b 100644 (file)
@@ -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" />
   </listeners>
 
index 88fe971..875f817 100644 (file)
@@ -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;