Browse Source

- add message flag support for more flexibility in routing
- increase table version, as two new colums are introduced
- internal refactoring, change routing rule structure
- add documentation about this functionality
- update database tables after schema extension
- credits goes to Hardy Kahl, hardy dot kahl at 1und1 dot de


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3946 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 17 years ago
parent
commit
dd7348a108
1 changed files with 17 additions and 1 deletions
  1. 17 1
      lib/srdb1/schema/carrierroute.xml

+ 17 - 1
lib/srdb1/schema/carrierroute.xml

@@ -9,7 +9,7 @@
 	  
 	  <table id="carrierroute" xmlns:db="http://docbook.org/ns/docbook">
 		  <name>carrierroute</name>
-		  <version>1</version>
+		  <version>2</version>
 		  <type db="mysql">&MYSQL_TABLE_TYPE;</type>
 		  <description>
 			  <db:para>This table is used by the carrierroute module to provides routing, balancing and blacklisting capabilities. More information is available at: http://www.openser.org/docs/modules/devel/carrierroute.html
@@ -52,6 +52,22 @@
 			  <description>This column contains the scan prefix, which define the matching portion of a phone number.</description>
 		  </column>
 		  
+		  <column>
+			  <name>flags</name>
+			  <type>unsigned int</type>
+			  <size>&flag_len;</size>
+			  <default>0</default>
+			  <description>This column contains the flags used for rule matching.</description>
+		  </column>
+		  
+		  <column>
+			  <name>mask</name>
+			  <type>unsigned int</type>
+			  <size>&flag_len;</size>
+			  <default>0</default>
+			  <description>This column contains the mask that is applied to the message flags before rule matching.</description>
+		  </column>
+		  
 		  <column>
 			  <name>prob</name>
 			  <type>float</type>