Explorar o código

- typo fixed
- added column flags to aliases and location table

Jan Janak %!s(int64=22) %!d(string=hai) anos
pai
achega
7c33b76e51
Modificáronse 1 ficheiros con 20 adicións e 1 borrados
  1. 20 1
      scripts/ser_mysql.sh

+ 20 - 1
scripts/ser_mysql.sh

@@ -140,7 +140,7 @@ EOF
 # read realm
 prompt_realm() 
 {
-	printf "Doamin (realm) for the default user 'admin': "
+	printf "Domain (realm) for the default user 'admin': "
 	read SIP_DOMAIN
 	echo
 }
@@ -289,6 +289,9 @@ CREATE TABLE aliases (
   last_modified timestamp(14) NOT NULL,
   replicate int(10) unsigned default NULL,
   state tinyint(1) unsigned default NULL,
+  flags set("NAT", "INVITE", "!INVITE", 
+                   "MESSAGE", "!MESSAGE", 
+		   "SUBSCRIBE", "!SUBSCRIBE") NOT NULL default '',
   PRIMARY KEY($USERCOL, domain, contact)
 ) $TABLE_TYPE;
 
@@ -332,6 +335,19 @@ CREATE TABLE grp (
 # Table structure for table 'location' -- that is persistent UsrLoc
 #
 
+# Description of flags column
+# - "NAT" means that the contact is behind a NAT
+# - "INVITE" means that the contact accepts INVITE 
+#   and related messages ("BYE, ACK, CANCEL...")
+# - "!INVITE" means that the contact does NOT accept
+#   INVITE and related messages
+# - "MESSAGE" means that the contact accepts MESSAGE
+# - "!MESSAGE" means that the contact does NOT accept
+#   MESSAGE
+# - "SUBSCRIBE" means that the contact accepts SUBSCRIBE
+#   and NOTIFY
+# - "!SUBSCRIBE" means that the contact does NOT accept
+#   SUBSCRIBE and NOTIFY
 
 CREATE TABLE location (
   $USERCOL varchar(64) NOT NULL default '',
@@ -344,6 +360,9 @@ CREATE TABLE location (
   last_modified timestamp(14) NOT NULL,
   replicate int(10) unsigned default NULL,
   state tinyint(1) unsigned default NULL,
+  flags set("NAT", "INVITE", "!INVITE",
+            "MESSAGE", "!MESSAGE",
+            "SUBSCRIBE", "!SUBSCRIBE") NOT NULL default '',				 
   PRIMARY KEY($USERCOL, domain, contact)
 ) $TABLE_TYPE;