Browse code

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

Jan Janak authored on 15/09/2003 21:20:48
Showing 1 changed files
... ...
@@ -140,7 +140,7 @@ EOF
140 140
 # read realm
141 141
 prompt_realm() 
142 142
 {
143
-	printf "Doamin (realm) for the default user 'admin': "
143
+	printf "Domain (realm) for the default user 'admin': "
144 144
 	read SIP_DOMAIN
145 145
 	echo
146 146
 }
... ...
@@ -289,6 +289,9 @@ CREATE TABLE aliases (
289 289
   last_modified timestamp(14) NOT NULL,
290 290
   replicate int(10) unsigned default NULL,
291 291
   state tinyint(1) unsigned default NULL,
292
+  flags set("NAT", "INVITE", "!INVITE", 
293
+                   "MESSAGE", "!MESSAGE", 
294
+		   "SUBSCRIBE", "!SUBSCRIBE") NOT NULL default '',
292 295
   PRIMARY KEY($USERCOL, domain, contact)
293 296
 ) $TABLE_TYPE;
294 297
 
... ...
@@ -332,6 +335,19 @@ CREATE TABLE grp (
332 335
 # Table structure for table 'location' -- that is persistent UsrLoc
333 336
 #
334 337
 
338
+# Description of flags column
339
+# - "NAT" means that the contact is behind a NAT
340
+# - "INVITE" means that the contact accepts INVITE 
341
+#   and related messages ("BYE, ACK, CANCEL...")
342
+# - "!INVITE" means that the contact does NOT accept
343
+#   INVITE and related messages
344
+# - "MESSAGE" means that the contact accepts MESSAGE
345
+# - "!MESSAGE" means that the contact does NOT accept
346
+#   MESSAGE
347
+# - "SUBSCRIBE" means that the contact accepts SUBSCRIBE
348
+#   and NOTIFY
349
+# - "!SUBSCRIBE" means that the contact does NOT accept
350
+#   SUBSCRIBE and NOTIFY
335 351
 
336 352
 CREATE TABLE location (
337 353
   $USERCOL varchar(64) NOT NULL default '',
... ...
@@ -344,6 +360,9 @@ CREATE TABLE location (
344 360
   last_modified timestamp(14) NOT NULL,
345 361
   replicate int(10) unsigned default NULL,
346 362
   state tinyint(1) unsigned default NULL,
363
+  flags set("NAT", "INVITE", "!INVITE",
364
+            "MESSAGE", "!MESSAGE",
365
+            "SUBSCRIBE", "!SUBSCRIBE") NOT NULL default '',				 
347 366
   PRIMARY KEY($USERCOL, domain, contact)
348 367
 ) $TABLE_TYPE;
349 368