Przeglądaj źródła

xhttp_pi: new commands in the pi_framework_sample:
- add
- update
- delete

Ovidiu Sas 12 lat temu
rodzic
commit
622b01719b
41 zmienionych plików z 3152 dodań i 41 usunięć
  1. 80 7
      doc/stylesheets/dbschema_k/xsl/pi_framework_mod.xsl
  2. 72 0
      utils/kamctl/xhttp_pi/acc-mod
  3. 30 0
      utils/kamctl/xhttp_pi/alias_db-mod
  4. 36 0
      utils/kamctl/xhttp_pi/auth_db-mod
  5. 36 0
      utils/kamctl/xhttp_pi/avpops-mod
  6. 132 0
      utils/kamctl/xhttp_pi/carrierroute-mod
  7. 30 0
      utils/kamctl/xhttp_pi/cpl-mod
  8. 98 0
      utils/kamctl/xhttp_pi/dialog-mod
  9. 38 0
      utils/kamctl/xhttp_pi/dialplan-mod
  10. 34 0
      utils/kamctl/xhttp_pi/dispatcher-mod
  11. 60 0
      utils/kamctl/xhttp_pi/domain-mod
  12. 32 0
      utils/kamctl/xhttp_pi/domainpolicy-mod
  13. 126 0
      utils/kamctl/xhttp_pi/drouting-mod
  14. 56 0
      utils/kamctl/xhttp_pi/group-mod
  15. 32 0
      utils/kamctl/xhttp_pi/htable-mod
  16. 58 0
      utils/kamctl/xhttp_pi/imc-mod
  17. 114 0
      utils/kamctl/xhttp_pi/lcr-mod
  18. 9 0
      utils/kamctl/xhttp_pi/matrix-mod
  19. 46 0
      utils/kamctl/xhttp_pi/msilo-mod
  20. 54 0
      utils/kamctl/xhttp_pi/mtree-mod
  21. 28 0
      utils/kamctl/xhttp_pi/pdt-mod
  22. 62 0
      utils/kamctl/xhttp_pi/permissions-mod
  23. 839 34
      utils/kamctl/xhttp_pi/pi_framework.xml
  24. 28 0
      utils/kamctl/xhttp_pi/pipelimit-mod
  25. 240 0
      utils/kamctl/xhttp_pi/presence-mod
  26. 30 0
      utils/kamctl/xhttp_pi/purple-mod
  27. 58 0
      utils/kamctl/xhttp_pi/registrar-mod
  28. 106 0
      utils/kamctl/xhttp_pi/rls-mod
  29. 46 0
      utils/kamctl/xhttp_pi/sca-mod
  30. 44 0
      utils/kamctl/xhttp_pi/siptrace-mod
  31. 38 0
      utils/kamctl/xhttp_pi/speeddial-mod
  32. 8 0
      utils/kamctl/xhttp_pi/standard-mod
  33. 42 0
      utils/kamctl/xhttp_pi/uac-mod
  34. 38 0
      utils/kamctl/xhttp_pi/uid_auth_db-mod
  35. 32 0
      utils/kamctl/xhttp_pi/uid_avp_db-mod
  36. 60 0
      utils/kamctl/xhttp_pi/uid_domain-mod
  37. 30 0
      utils/kamctl/xhttp_pi/uid_gflags-mod
  38. 68 0
      utils/kamctl/xhttp_pi/uid_uri_db-mod
  39. 30 0
      utils/kamctl/xhttp_pi/uri_db-mod
  40. 58 0
      utils/kamctl/xhttp_pi/userblacklist-mod
  41. 94 0
      utils/kamctl/xhttp_pi/usrloc-mod

+ 80 - 7
doc/stylesheets/dbschema_k/xsl/pi_framework_mod.xsl

@@ -43,22 +43,95 @@
 		<xsl:text>&#x9;&lt;mod&gt;&lt;mod_name&gt;</xsl:text>
 		<xsl:value-of select="$table.name"/>
 		<xsl:text>&lt;/mod_name&gt;&#xa;</xsl:text>
+
+		<!-- show/DB1_QUERY -->
 		<xsl:text>&#x9;&#x9;&lt;cmd&gt;&lt;cmd_name&gt;show&lt;/cmd_name&gt;&#xa;</xsl:text>
 		<xsl:text>&#x9;&#x9;&#x9;&lt;db_table_id&gt;</xsl:text>
 		<xsl:value-of select="$table.name"/>
 		<xsl:text>&lt;/db_table_id&gt;&#xa;</xsl:text>
 		<xsl:text>&#x9;&#x9;&#x9;&lt;cmd_type&gt;DB1_QUERY&lt;/cmd_type&gt;&#xa;</xsl:text>
 		<xsl:text>&#x9;&#x9;&#x9;&lt;query_cols&gt;&#xa;</xsl:text>
-		<xsl:apply-templates select="column"/>
+		<xsl:for-each select="column">
+			<xsl:text>&#x9;&#x9;&#x9;&#x9;&lt;col&gt;&lt;field&gt;</xsl:text>
+			<xsl:call-template name="get-name"/>
+			<xsl:text>&lt;/field&gt;&lt;/col&gt;&#xa;</xsl:text>
+		</xsl:for-each>
+		<xsl:text>&#x9;&#x9;&#x9;&lt;/query_cols&gt;&#xa;</xsl:text>
+		<xsl:text>&#x9;&#x9;&lt;/cmd&gt;&#xa;</xsl:text>
+
+		<!-- add/DB1_INSERT -->
+		<xsl:text>&#x9;&#x9;&lt;cmd&gt;&lt;cmd_name&gt;add&lt;/cmd_name&gt;&#xa;</xsl:text>
+		<xsl:text>&#x9;&#x9;&#x9;&lt;db_table_id&gt;</xsl:text>
+		<xsl:value-of select="$table.name"/>
+		<xsl:text>&lt;/db_table_id&gt;&#xa;</xsl:text>
+		<xsl:text>&#x9;&#x9;&#x9;&lt;cmd_type&gt;DB1_INSERT&lt;/cmd_type&gt;&#xa;</xsl:text>
+		<xsl:text>&#x9;&#x9;&#x9;&lt;query_cols&gt;&#xa;</xsl:text>
+		<xsl:for-each select="column">
+			<xsl:choose>
+				<xsl:when test="autoincrement">
+				</xsl:when>
+				<xsl:otherwise>
+					<xsl:text>&#x9;&#x9;&#x9;&#x9;&lt;col&gt;&lt;field&gt;</xsl:text>
+					<xsl:call-template name="get-name"/>
+					<xsl:text>&lt;/field&gt;&lt;/col&gt;&#xa;</xsl:text>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
 		<xsl:text>&#x9;&#x9;&#x9;&lt;/query_cols&gt;&#xa;</xsl:text>
 		<xsl:text>&#x9;&#x9;&lt;/cmd&gt;&#xa;</xsl:text>
-		<xsl:text>&#x9;&lt;/mod&gt;&#xa;</xsl:text>
-	</xsl:template>
 
-	<xsl:template match="column">
-		<xsl:text>&#x9;&#x9;&#x9;&#x9;&lt;col&gt;&lt;field&gt;</xsl:text>
-		<xsl:call-template name="get-name"/>
-		<xsl:text>&lt;/field&gt;&lt;/col&gt;&#xa;</xsl:text>
+		<!-- update/DB1_UPDATE -->
+		<xsl:if test="column/primary">
+			<xsl:text>&#x9;&#x9;&lt;cmd&gt;&lt;cmd_name&gt;update&lt;/cmd_name&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;db_table_id&gt;</xsl:text>
+			<xsl:value-of select="$table.name"/>
+			<xsl:text>&lt;/db_table_id&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;cmd_type&gt;DB1_UPDATE&lt;/cmd_type&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;clause_cols&gt;&#xa;</xsl:text>
+			<xsl:for-each select="column">
+				<xsl:if test="primary">
+					<xsl:text>&#x9;&#x9;&#x9;&#x9;&lt;col&gt;&lt;field&gt;</xsl:text>
+					<xsl:call-template name="get-name"/>
+					<xsl:text>&lt;/field&gt;&lt;operator&gt;=&lt;/operator&gt;&lt;/col&gt;&#xa;</xsl:text>
+				</xsl:if>
+			</xsl:for-each>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;/clause_cols&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;query_cols&gt;&#xa;</xsl:text>
+			<xsl:for-each select="column">
+				<xsl:choose>
+					<xsl:when test="primary">
+					</xsl:when>
+					<xsl:otherwise>
+						<xsl:text>&#x9;&#x9;&#x9;&#x9;&lt;col&gt;&lt;field&gt;</xsl:text>
+						<xsl:call-template name="get-name"/>
+						<xsl:text>&lt;/field&gt;&lt;/col&gt;&#xa;</xsl:text>
+					</xsl:otherwise>
+				</xsl:choose>
+			</xsl:for-each>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;/query_cols&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&lt;/cmd&gt;&#xa;</xsl:text>
+		</xsl:if>
+
+		<!-- delete/DB1_DELETE -->
+		<xsl:if test="column/primary">
+			<xsl:text>&#x9;&#x9;&lt;cmd&gt;&lt;cmd_name&gt;delete&lt;/cmd_name&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;db_table_id&gt;</xsl:text>
+			<xsl:value-of select="$table.name"/>
+			<xsl:text>&lt;/db_table_id&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;cmd_type&gt;DB1_DELETE&lt;/cmd_type&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;clause_cols&gt;&#xa;</xsl:text>
+			<xsl:for-each select="column">
+				<xsl:if test="primary">
+					<xsl:text>&#x9;&#x9;&#x9;&#x9;&lt;col&gt;&lt;field&gt;</xsl:text>
+					<xsl:call-template name="get-name"/>
+					<xsl:text>&lt;/field&gt;&lt;operator&gt;=&lt;/operator&gt;&lt;/col&gt;&#xa;</xsl:text>
+				</xsl:if>
+			</xsl:for-each>
+			<xsl:text>&#x9;&#x9;&#x9;&lt;/clause_cols&gt;&#xa;</xsl:text>
+			<xsl:text>&#x9;&#x9;&lt;/cmd&gt;&#xa;</xsl:text>
+		</xsl:if>
+
+		<xsl:text>&#x9;&lt;/mod&gt;&#xa;</xsl:text>
 	</xsl:template>
 
 </xsl:stylesheet>

+ 72 - 0
utils/kamctl/xhttp_pi/acc-mod

@@ -14,6 +14,42 @@
 				<col><field>time</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>acc</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>method</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>sip_code</field></col>
+				<col><field>sip_reason</field></col>
+				<col><field>time</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>acc</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>method</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>sip_code</field></col>
+				<col><field>sip_reason</field></col>
+				<col><field>time</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>acc</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- missed_calls provisionning -->
 	<mod><mod_name>missed_calls</mod_name>
@@ -31,4 +67,40 @@
 				<col><field>time</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>missed_calls</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>method</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>sip_code</field></col>
+				<col><field>sip_reason</field></col>
+				<col><field>time</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>missed_calls</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>method</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>sip_code</field></col>
+				<col><field>sip_reason</field></col>
+				<col><field>time</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>missed_calls</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 30 - 0
utils/kamctl/xhttp_pi/alias_db-mod

@@ -11,4 +11,34 @@
 				<col><field>domain</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dbaliases</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>alias_username</field></col>
+				<col><field>alias_domain</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dbaliases</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>alias_username</field></col>
+				<col><field>alias_domain</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dbaliases</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 36 - 0
utils/kamctl/xhttp_pi/auth_db-mod

@@ -14,4 +14,40 @@
 				<col><field>rpid</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>subscriber</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>password</field></col>
+				<col><field>email_address</field></col>
+				<col><field>ha1</field></col>
+				<col><field>ha1b</field></col>
+				<col><field>rpid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>subscriber</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>password</field></col>
+				<col><field>email_address</field></col>
+				<col><field>ha1</field></col>
+				<col><field>ha1b</field></col>
+				<col><field>rpid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>subscriber</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 36 - 0
utils/kamctl/xhttp_pi/avpops-mod

@@ -14,4 +14,40 @@
 				<col><field>last_modified</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>usr_preferences</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>uuid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>attribute</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>usr_preferences</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>uuid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>attribute</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>usr_preferences</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 132 - 0
utils/kamctl/xhttp_pi/carrierroute-mod

@@ -18,6 +18,50 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>carrierroute</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>carrier</field></col>
+				<col><field>domain</field></col>
+				<col><field>scan_prefix</field></col>
+				<col><field>flags</field></col>
+				<col><field>mask</field></col>
+				<col><field>prob</field></col>
+				<col><field>strip</field></col>
+				<col><field>rewrite_host</field></col>
+				<col><field>rewrite_prefix</field></col>
+				<col><field>rewrite_suffix</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>carrierroute</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>carrier</field></col>
+				<col><field>domain</field></col>
+				<col><field>scan_prefix</field></col>
+				<col><field>flags</field></col>
+				<col><field>mask</field></col>
+				<col><field>prob</field></col>
+				<col><field>strip</field></col>
+				<col><field>rewrite_host</field></col>
+				<col><field>rewrite_prefix</field></col>
+				<col><field>rewrite_suffix</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>carrierroute</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- carrierfailureroute provisionning -->
 	<mod><mod_name>carrierfailureroute</mod_name>
@@ -37,6 +81,46 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>carrierfailureroute</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>carrier</field></col>
+				<col><field>domain</field></col>
+				<col><field>scan_prefix</field></col>
+				<col><field>host_name</field></col>
+				<col><field>reply_code</field></col>
+				<col><field>flags</field></col>
+				<col><field>mask</field></col>
+				<col><field>next_domain</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>carrierfailureroute</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>carrier</field></col>
+				<col><field>domain</field></col>
+				<col><field>scan_prefix</field></col>
+				<col><field>host_name</field></col>
+				<col><field>reply_code</field></col>
+				<col><field>flags</field></col>
+				<col><field>mask</field></col>
+				<col><field>next_domain</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>carrierfailureroute</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- carrier_name provisionning -->
 	<mod><mod_name>carrier_name</mod_name>
@@ -48,6 +132,30 @@
 				<col><field>carrier</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>carrier_name</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>carrier</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>carrier_name</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>carrier</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>carrier_name</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- domain_name provisionning -->
 	<mod><mod_name>domain_name</mod_name>
@@ -59,4 +167,28 @@
 				<col><field>domain</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>domain_name</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>domain</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>domain_name</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>domain</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>domain_name</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 30 - 0
utils/kamctl/xhttp_pi/cpl-mod

@@ -11,4 +11,34 @@
 				<col><field>cpl_bin</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>cpl</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>cpl_xml</field></col>
+				<col><field>cpl_bin</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>cpl</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>cpl_xml</field></col>
+				<col><field>cpl_bin</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>cpl</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 98 - 0
utils/kamctl/xhttp_pi/dialog-mod

@@ -30,6 +30,74 @@
 				<col><field>xdata</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>callee_sock</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>timeout</field></col>
+				<col><field>sflags</field></col>
+				<col><field>iflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>xdata</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>callid</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_uri</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>caller_cseq</field></col>
+				<col><field>callee_cseq</field></col>
+				<col><field>caller_route_set</field></col>
+				<col><field>callee_route_set</field></col>
+				<col><field>caller_contact</field></col>
+				<col><field>callee_contact</field></col>
+				<col><field>caller_sock</field></col>
+				<col><field>callee_sock</field></col>
+				<col><field>state</field></col>
+				<col><field>start_time</field></col>
+				<col><field>timeout</field></col>
+				<col><field>sflags</field></col>
+				<col><field>iflags</field></col>
+				<col><field>toroute_name</field></col>
+				<col><field>req_uri</field></col>
+				<col><field>xdata</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- dialog_vars provisionning -->
 	<mod><mod_name>dialog_vars</mod_name>
@@ -44,4 +112,34 @@
 				<col><field>dialog_value</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>dialog_key</field></col>
+				<col><field>dialog_value</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialog_vars</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 38 - 0
utils/kamctl/xhttp_pi/dialplan-mod

@@ -15,4 +15,42 @@
 				<col><field>attrs</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dialplan</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>dpid</field></col>
+				<col><field>pr</field></col>
+				<col><field>match_op</field></col>
+				<col><field>match_exp</field></col>
+				<col><field>match_len</field></col>
+				<col><field>subst_exp</field></col>
+				<col><field>repl_exp</field></col>
+				<col><field>attrs</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dialplan</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>dpid</field></col>
+				<col><field>pr</field></col>
+				<col><field>match_op</field></col>
+				<col><field>match_exp</field></col>
+				<col><field>match_len</field></col>
+				<col><field>subst_exp</field></col>
+				<col><field>repl_exp</field></col>
+				<col><field>attrs</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dialplan</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 34 - 0
utils/kamctl/xhttp_pi/dispatcher-mod

@@ -13,4 +13,38 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dispatcher</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>setid</field></col>
+				<col><field>destination</field></col>
+				<col><field>flags</field></col>
+				<col><field>priority</field></col>
+				<col><field>attrs</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dispatcher</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>setid</field></col>
+				<col><field>destination</field></col>
+				<col><field>flags</field></col>
+				<col><field>priority</field></col>
+				<col><field>attrs</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dispatcher</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 60 - 0
utils/kamctl/xhttp_pi/domain-mod

@@ -10,6 +10,34 @@
 				<col><field>last_modified</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>domain</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>domain</field></col>
+				<col><field>did</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>domain</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>domain</field></col>
+				<col><field>did</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>domain</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- domain_attrs provisionning -->
 	<mod><mod_name>domain_attrs</mod_name>
@@ -25,4 +53,36 @@
 				<col><field>last_modified</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>domain_attrs</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>did</field></col>
+				<col><field>name</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>domain_attrs</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>did</field></col>
+				<col><field>name</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>domain_attrs</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 32 - 0
utils/kamctl/xhttp_pi/domainpolicy-mod

@@ -12,4 +12,36 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>domainpolicy</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>rule</field></col>
+				<col><field>type</field></col>
+				<col><field>att</field></col>
+				<col><field>val</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>domainpolicy</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>rule</field></col>
+				<col><field>type</field></col>
+				<col><field>att</field></col>
+				<col><field>val</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>domainpolicy</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 126 - 0
utils/kamctl/xhttp_pi/drouting-mod

@@ -13,6 +13,40 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dr_gateways</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>type</field></col>
+				<col><field>address</field></col>
+				<col><field>strip</field></col>
+				<col><field>pri_prefix</field></col>
+				<col><field>attrs</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dr_gateways</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>gwid</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>type</field></col>
+				<col><field>address</field></col>
+				<col><field>strip</field></col>
+				<col><field>pri_prefix</field></col>
+				<col><field>attrs</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dr_gateways</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>gwid</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- dr_rules provisionning -->
 	<mod><mod_name>dr_rules</mod_name>
@@ -30,6 +64,42 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dr_rules</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>groupid</field></col>
+				<col><field>prefix</field></col>
+				<col><field>timerec</field></col>
+				<col><field>priority</field></col>
+				<col><field>routeid</field></col>
+				<col><field>gwlist</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dr_rules</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>ruleid</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>groupid</field></col>
+				<col><field>prefix</field></col>
+				<col><field>timerec</field></col>
+				<col><field>priority</field></col>
+				<col><field>routeid</field></col>
+				<col><field>gwlist</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dr_rules</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>ruleid</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- dr_gw_lists provisionning -->
 	<mod><mod_name>dr_gw_lists</mod_name>
@@ -42,6 +112,32 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dr_gw_lists</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>gwlist</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dr_gw_lists</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>gwlist</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dr_gw_lists</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- dr_groups provisionning -->
 	<mod><mod_name>dr_groups</mod_name>
@@ -56,4 +152,34 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>dr_groups</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>groupid</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>dr_groups</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>groupid</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>dr_groups</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 56 - 0
utils/kamctl/xhttp_pi/group-mod

@@ -11,6 +11,36 @@
 				<col><field>last_modified</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>grp</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>grp</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>grp</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>grp</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>grp</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- re_grp provisionning -->
 	<mod><mod_name>re_grp</mod_name>
@@ -23,4 +53,30 @@
 				<col><field>group_id</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>re_grp</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>reg_exp</field></col>
+				<col><field>group_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>re_grp</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>reg_exp</field></col>
+				<col><field>group_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>re_grp</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 32 - 0
utils/kamctl/xhttp_pi/htable-mod

@@ -12,4 +12,36 @@
 				<col><field>expires</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>htable</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>key_name</field></col>
+				<col><field>key_type</field></col>
+				<col><field>value_type</field></col>
+				<col><field>key_value</field></col>
+				<col><field>expires</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>htable</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>key_name</field></col>
+				<col><field>key_type</field></col>
+				<col><field>value_type</field></col>
+				<col><field>key_value</field></col>
+				<col><field>expires</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>htable</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 58 - 0
utils/kamctl/xhttp_pi/imc-mod

@@ -10,6 +10,34 @@
 				<col><field>flag</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>imc_rooms</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>name</field></col>
+				<col><field>domain</field></col>
+				<col><field>flag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>imc_rooms</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>name</field></col>
+				<col><field>domain</field></col>
+				<col><field>flag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>imc_rooms</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- imc_members provisionning -->
 	<mod><mod_name>imc_members</mod_name>
@@ -24,4 +52,34 @@
 				<col><field>flag</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>imc_members</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>room</field></col>
+				<col><field>flag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>imc_members</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>room</field></col>
+				<col><field>flag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>imc_members</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 114 - 0
utils/kamctl/xhttp_pi/lcr-mod

@@ -20,6 +20,54 @@
 				<col><field>defunct</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>lcr_gw</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>lcr_id</field></col>
+				<col><field>gw_name</field></col>
+				<col><field>ip_addr</field></col>
+				<col><field>hostname</field></col>
+				<col><field>port</field></col>
+				<col><field>params</field></col>
+				<col><field>uri_scheme</field></col>
+				<col><field>transport</field></col>
+				<col><field>strip</field></col>
+				<col><field>prefix</field></col>
+				<col><field>tag</field></col>
+				<col><field>flags</field></col>
+				<col><field>defunct</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>lcr_gw</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>lcr_id</field></col>
+				<col><field>gw_name</field></col>
+				<col><field>ip_addr</field></col>
+				<col><field>hostname</field></col>
+				<col><field>port</field></col>
+				<col><field>params</field></col>
+				<col><field>uri_scheme</field></col>
+				<col><field>transport</field></col>
+				<col><field>strip</field></col>
+				<col><field>prefix</field></col>
+				<col><field>tag</field></col>
+				<col><field>flags</field></col>
+				<col><field>defunct</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>lcr_gw</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- lcr_rule_target provisionning -->
 	<mod><mod_name>lcr_rule_target</mod_name>
@@ -35,6 +83,38 @@
 				<col><field>weight</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>lcr_rule_target</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>lcr_id</field></col>
+				<col><field>rule_id</field></col>
+				<col><field>gw_id</field></col>
+				<col><field>priority</field></col>
+				<col><field>weight</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>lcr_rule_target</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>lcr_id</field></col>
+				<col><field>rule_id</field></col>
+				<col><field>gw_id</field></col>
+				<col><field>priority</field></col>
+				<col><field>weight</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>lcr_rule_target</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- lcr_rule provisionning -->
 	<mod><mod_name>lcr_rule</mod_name>
@@ -51,4 +131,38 @@
 				<col><field>enabled</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>lcr_rule</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>lcr_id</field></col>
+				<col><field>prefix</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>request_uri</field></col>
+				<col><field>stopper</field></col>
+				<col><field>enabled</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>lcr_rule</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>lcr_id</field></col>
+				<col><field>prefix</field></col>
+				<col><field>from_uri</field></col>
+				<col><field>request_uri</field></col>
+				<col><field>stopper</field></col>
+				<col><field>enabled</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>lcr_rule</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 9 - 0
utils/kamctl/xhttp_pi/matrix-mod

@@ -9,4 +9,13 @@
 				<col><field>res</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>matrix</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>first</field></col>
+				<col><field>second</field></col>
+				<col><field>res</field></col>
+			</query_cols>
+		</cmd>
 	</mod>

+ 46 - 0
utils/kamctl/xhttp_pi/msilo-mod

@@ -19,4 +19,50 @@
 				<col><field>status</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>silo</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>src_addr</field></col>
+				<col><field>dst_addr</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>inc_time</field></col>
+				<col><field>exp_time</field></col>
+				<col><field>snd_time</field></col>
+				<col><field>ctype</field></col>
+				<col><field>body</field></col>
+				<col><field>extra_hdrs</field></col>
+				<col><field>callid</field></col>
+				<col><field>status</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>silo</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>src_addr</field></col>
+				<col><field>dst_addr</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>inc_time</field></col>
+				<col><field>exp_time</field></col>
+				<col><field>snd_time</field></col>
+				<col><field>ctype</field></col>
+				<col><field>body</field></col>
+				<col><field>extra_hdrs</field></col>
+				<col><field>callid</field></col>
+				<col><field>status</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>silo</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 54 - 0
utils/kamctl/xhttp_pi/mtree-mod

@@ -9,6 +9,32 @@
 				<col><field>tvalue</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>mtree</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>tprefix</field></col>
+				<col><field>tvalue</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>mtree</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>tprefix</field></col>
+				<col><field>tvalue</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>mtree</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- mtrees provisionning -->
 	<mod><mod_name>mtrees</mod_name>
@@ -22,4 +48,32 @@
 				<col><field>tvalue</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>mtrees</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>tname</field></col>
+				<col><field>tprefix</field></col>
+				<col><field>tvalue</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>mtrees</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>tname</field></col>
+				<col><field>tprefix</field></col>
+				<col><field>tvalue</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>mtrees</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 28 - 0
utils/kamctl/xhttp_pi/pdt-mod

@@ -10,4 +10,32 @@
 				<col><field>domain</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>pdt</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>sdomain</field></col>
+				<col><field>prefix</field></col>
+				<col><field>domain</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>pdt</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>sdomain</field></col>
+				<col><field>prefix</field></col>
+				<col><field>domain</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>pdt</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 62 - 0
utils/kamctl/xhttp_pi/permissions-mod

@@ -11,6 +11,36 @@
 				<col><field>tag</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>trusted</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>src_ip</field></col>
+				<col><field>proto</field></col>
+				<col><field>from_pattern</field></col>
+				<col><field>tag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>trusted</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>src_ip</field></col>
+				<col><field>proto</field></col>
+				<col><field>from_pattern</field></col>
+				<col><field>tag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>trusted</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- address provisionning -->
 	<mod><mod_name>address</mod_name>
@@ -26,4 +56,36 @@
 				<col><field>tag</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>address</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>grp</field></col>
+				<col><field>ip_addr</field></col>
+				<col><field>mask</field></col>
+				<col><field>port</field></col>
+				<col><field>tag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>address</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>grp</field></col>
+				<col><field>ip_addr</field></col>
+				<col><field>mask</field></col>
+				<col><field>port</field></col>
+				<col><field>tag</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>address</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

Plik diff jest za duży
+ 839 - 34
utils/kamctl/xhttp_pi/pi_framework.xml


+ 28 - 0
utils/kamctl/xhttp_pi/pipelimit-mod

@@ -10,4 +10,32 @@
 				<col><field>plimit</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>pl_pipes</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>pipeid</field></col>
+				<col><field>algorithm</field></col>
+				<col><field>plimit</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>pl_pipes</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>pipeid</field></col>
+				<col><field>algorithm</field></col>
+				<col><field>plimit</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>pl_pipes</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 240 - 0
utils/kamctl/xhttp_pi/presence-mod

@@ -15,6 +15,44 @@
 				<col><field>sender</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>presentity</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>event</field></col>
+				<col><field>etag</field></col>
+				<col><field>expires</field></col>
+				<col><field>received_time</field></col>
+				<col><field>body</field></col>
+				<col><field>sender</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>presentity</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>event</field></col>
+				<col><field>etag</field></col>
+				<col><field>expires</field></col>
+				<col><field>received_time</field></col>
+				<col><field>body</field></col>
+				<col><field>sender</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>presentity</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- active_watchers provisionning -->
 	<mod><mod_name>active_watchers</mod_name>
@@ -49,6 +87,76 @@
 				<col><field>updated_winfo</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>active_watchers</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>presentity_uri</field></col>
+				<col><field>watcher_username</field></col>
+				<col><field>watcher_domain</field></col>
+				<col><field>to_user</field></col>
+				<col><field>to_domain</field></col>
+				<col><field>event</field></col>
+				<col><field>event_id</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>local_cseq</field></col>
+				<col><field>remote_cseq</field></col>
+				<col><field>contact</field></col>
+				<col><field>record_route</field></col>
+				<col><field>expires</field></col>
+				<col><field>status</field></col>
+				<col><field>reason</field></col>
+				<col><field>version</field></col>
+				<col><field>socket_info</field></col>
+				<col><field>local_contact</field></col>
+				<col><field>from_user</field></col>
+				<col><field>from_domain</field></col>
+				<col><field>updated</field></col>
+				<col><field>updated_winfo</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>active_watchers</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>presentity_uri</field></col>
+				<col><field>watcher_username</field></col>
+				<col><field>watcher_domain</field></col>
+				<col><field>to_user</field></col>
+				<col><field>to_domain</field></col>
+				<col><field>event</field></col>
+				<col><field>event_id</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>local_cseq</field></col>
+				<col><field>remote_cseq</field></col>
+				<col><field>contact</field></col>
+				<col><field>record_route</field></col>
+				<col><field>expires</field></col>
+				<col><field>status</field></col>
+				<col><field>reason</field></col>
+				<col><field>version</field></col>
+				<col><field>socket_info</field></col>
+				<col><field>local_contact</field></col>
+				<col><field>from_user</field></col>
+				<col><field>from_domain</field></col>
+				<col><field>updated</field></col>
+				<col><field>updated_winfo</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>active_watchers</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- watchers provisionning -->
 	<mod><mod_name>watchers</mod_name>
@@ -66,6 +174,42 @@
 				<col><field>inserted_time</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>watchers</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>presentity_uri</field></col>
+				<col><field>watcher_username</field></col>
+				<col><field>watcher_domain</field></col>
+				<col><field>event</field></col>
+				<col><field>status</field></col>
+				<col><field>reason</field></col>
+				<col><field>inserted_time</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>watchers</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>presentity_uri</field></col>
+				<col><field>watcher_username</field></col>
+				<col><field>watcher_domain</field></col>
+				<col><field>event</field></col>
+				<col><field>status</field></col>
+				<col><field>reason</field></col>
+				<col><field>inserted_time</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>watchers</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- xcap provisionning -->
 	<mod><mod_name>xcap</mod_name>
@@ -84,6 +228,44 @@
 				<col><field>port</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>xcap</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>doc</field></col>
+				<col><field>doc_type</field></col>
+				<col><field>etag</field></col>
+				<col><field>source</field></col>
+				<col><field>doc_uri</field></col>
+				<col><field>port</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>xcap</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>doc</field></col>
+				<col><field>doc_type</field></col>
+				<col><field>etag</field></col>
+				<col><field>source</field></col>
+				<col><field>doc_uri</field></col>
+				<col><field>port</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>xcap</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- pua provisionning -->
 	<mod><mod_name>pua</mod_name>
@@ -112,4 +294,62 @@
 				<col><field>extra_headers</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>pua</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>pres_uri</field></col>
+				<col><field>pres_id</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>desired_expires</field></col>
+				<col><field>flag</field></col>
+				<col><field>etag</field></col>
+				<col><field>tuple_id</field></col>
+				<col><field>watcher_uri</field></col>
+				<col><field>call_id</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>cseq</field></col>
+				<col><field>record_route</field></col>
+				<col><field>contact</field></col>
+				<col><field>remote_contact</field></col>
+				<col><field>version</field></col>
+				<col><field>extra_headers</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>pua</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>pres_uri</field></col>
+				<col><field>pres_id</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>desired_expires</field></col>
+				<col><field>flag</field></col>
+				<col><field>etag</field></col>
+				<col><field>tuple_id</field></col>
+				<col><field>watcher_uri</field></col>
+				<col><field>call_id</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>cseq</field></col>
+				<col><field>record_route</field></col>
+				<col><field>contact</field></col>
+				<col><field>remote_contact</field></col>
+				<col><field>version</field></col>
+				<col><field>extra_headers</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>pua</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 30 - 0
utils/kamctl/xhttp_pi/purple-mod

@@ -11,4 +11,34 @@
 				<col><field>ext_pass</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>purplemap</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>sip_user</field></col>
+				<col><field>ext_user</field></col>
+				<col><field>ext_prot</field></col>
+				<col><field>ext_pass</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>purplemap</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>sip_user</field></col>
+				<col><field>ext_user</field></col>
+				<col><field>ext_prot</field></col>
+				<col><field>ext_pass</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>purplemap</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 58 - 0
utils/kamctl/xhttp_pi/registrar-mod

@@ -25,4 +25,62 @@
 				<col><field>reg_id</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>aliases</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>ruid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>contact</field></col>
+				<col><field>received</field></col>
+				<col><field>path</field></col>
+				<col><field>expires</field></col>
+				<col><field>q</field></col>
+				<col><field>callid</field></col>
+				<col><field>cseq</field></col>
+				<col><field>last_modified</field></col>
+				<col><field>flags</field></col>
+				<col><field>cflags</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>socket</field></col>
+				<col><field>methods</field></col>
+				<col><field>instance</field></col>
+				<col><field>reg_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>aliases</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>ruid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>contact</field></col>
+				<col><field>received</field></col>
+				<col><field>path</field></col>
+				<col><field>expires</field></col>
+				<col><field>q</field></col>
+				<col><field>callid</field></col>
+				<col><field>cseq</field></col>
+				<col><field>last_modified</field></col>
+				<col><field>flags</field></col>
+				<col><field>cflags</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>socket</field></col>
+				<col><field>methods</field></col>
+				<col><field>instance</field></col>
+				<col><field>reg_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>aliases</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 106 - 0
utils/kamctl/xhttp_pi/rls-mod

@@ -15,6 +15,44 @@
 				<col><field>reason</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>rls_presentity</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>rlsubs_did</field></col>
+				<col><field>resource_uri</field></col>
+				<col><field>content_type</field></col>
+				<col><field>presence_state</field></col>
+				<col><field>expires</field></col>
+				<col><field>updated</field></col>
+				<col><field>auth_state</field></col>
+				<col><field>reason</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>rls_presentity</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>rlsubs_did</field></col>
+				<col><field>resource_uri</field></col>
+				<col><field>content_type</field></col>
+				<col><field>presence_state</field></col>
+				<col><field>expires</field></col>
+				<col><field>updated</field></col>
+				<col><field>auth_state</field></col>
+				<col><field>reason</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>rls_presentity</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- rls_watchers provisionning -->
 	<mod><mod_name>rls_watchers</mod_name>
@@ -48,4 +86,72 @@
 				<col><field>updated</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>rls_watchers</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>presentity_uri</field></col>
+				<col><field>to_user</field></col>
+				<col><field>to_domain</field></col>
+				<col><field>watcher_username</field></col>
+				<col><field>watcher_domain</field></col>
+				<col><field>event</field></col>
+				<col><field>event_id</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>local_cseq</field></col>
+				<col><field>remote_cseq</field></col>
+				<col><field>contact</field></col>
+				<col><field>record_route</field></col>
+				<col><field>expires</field></col>
+				<col><field>status</field></col>
+				<col><field>reason</field></col>
+				<col><field>version</field></col>
+				<col><field>socket_info</field></col>
+				<col><field>local_contact</field></col>
+				<col><field>from_user</field></col>
+				<col><field>from_domain</field></col>
+				<col><field>updated</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>rls_watchers</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>presentity_uri</field></col>
+				<col><field>to_user</field></col>
+				<col><field>to_domain</field></col>
+				<col><field>watcher_username</field></col>
+				<col><field>watcher_domain</field></col>
+				<col><field>event</field></col>
+				<col><field>event_id</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>callid</field></col>
+				<col><field>local_cseq</field></col>
+				<col><field>remote_cseq</field></col>
+				<col><field>contact</field></col>
+				<col><field>record_route</field></col>
+				<col><field>expires</field></col>
+				<col><field>status</field></col>
+				<col><field>reason</field></col>
+				<col><field>version</field></col>
+				<col><field>socket_info</field></col>
+				<col><field>local_contact</field></col>
+				<col><field>from_user</field></col>
+				<col><field>from_domain</field></col>
+				<col><field>updated</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>rls_watchers</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 46 - 0
utils/kamctl/xhttp_pi/sca-mod

@@ -19,4 +19,50 @@
 				<col><field>subscribe_cseq</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>sca_subscriptions</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>subscriber</field></col>
+				<col><field>aor</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>state</field></col>
+				<col><field>app_idx</field></col>
+				<col><field>call_id</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>record_route</field></col>
+				<col><field>notify_cseq</field></col>
+				<col><field>subscribe_cseq</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>sca_subscriptions</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>subscriber</field></col>
+				<col><field>aor</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>state</field></col>
+				<col><field>app_idx</field></col>
+				<col><field>call_id</field></col>
+				<col><field>from_tag</field></col>
+				<col><field>to_tag</field></col>
+				<col><field>record_route</field></col>
+				<col><field>notify_cseq</field></col>
+				<col><field>subscribe_cseq</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>sca_subscriptions</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 44 - 0
utils/kamctl/xhttp_pi/siptrace-mod

@@ -18,4 +18,48 @@
 				<col><field>direction</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>sip_trace</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>time_stamp</field></col>
+				<col><field>time_us</field></col>
+				<col><field>callid</field></col>
+				<col><field>traced_user</field></col>
+				<col><field>msg</field></col>
+				<col><field>method</field></col>
+				<col><field>status</field></col>
+				<col><field>fromip</field></col>
+				<col><field>toip</field></col>
+				<col><field>fromtag</field></col>
+				<col><field>direction</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>sip_trace</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>time_stamp</field></col>
+				<col><field>time_us</field></col>
+				<col><field>callid</field></col>
+				<col><field>traced_user</field></col>
+				<col><field>msg</field></col>
+				<col><field>method</field></col>
+				<col><field>status</field></col>
+				<col><field>fromip</field></col>
+				<col><field>toip</field></col>
+				<col><field>fromtag</field></col>
+				<col><field>direction</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>sip_trace</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 38 - 0
utils/kamctl/xhttp_pi/speeddial-mod

@@ -15,4 +15,42 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>speed_dial</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>sd_username</field></col>
+				<col><field>sd_domain</field></col>
+				<col><field>new_uri</field></col>
+				<col><field>fname</field></col>
+				<col><field>lname</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>speed_dial</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>sd_username</field></col>
+				<col><field>sd_domain</field></col>
+				<col><field>new_uri</field></col>
+				<col><field>fname</field></col>
+				<col><field>lname</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>speed_dial</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 8 - 0
utils/kamctl/xhttp_pi/standard-mod

@@ -8,4 +8,12 @@
 				<col><field>table_version</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>version</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>table_name</field></col>
+				<col><field>table_version</field></col>
+			</query_cols>
+		</cmd>
 	</mod>

+ 42 - 0
utils/kamctl/xhttp_pi/uac-mod

@@ -17,4 +17,46 @@
 				<col><field>expires</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uacreg</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>l_uuid</field></col>
+				<col><field>l_username</field></col>
+				<col><field>l_domain</field></col>
+				<col><field>r_username</field></col>
+				<col><field>r_domain</field></col>
+				<col><field>realm</field></col>
+				<col><field>auth_username</field></col>
+				<col><field>auth_password</field></col>
+				<col><field>auth_proxy</field></col>
+				<col><field>expires</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uacreg</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>l_uuid</field></col>
+				<col><field>l_username</field></col>
+				<col><field>l_domain</field></col>
+				<col><field>r_username</field></col>
+				<col><field>r_domain</field></col>
+				<col><field>realm</field></col>
+				<col><field>auth_username</field></col>
+				<col><field>auth_password</field></col>
+				<col><field>auth_proxy</field></col>
+				<col><field>expires</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uacreg</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 38 - 0
utils/kamctl/xhttp_pi/uid_auth_db-mod

@@ -15,4 +15,42 @@
 				<col><field>uid</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_credentials</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>auth_username</field></col>
+				<col><field>did</field></col>
+				<col><field>realm</field></col>
+				<col><field>password</field></col>
+				<col><field>flags</field></col>
+				<col><field>ha1</field></col>
+				<col><field>ha1b</field></col>
+				<col><field>uid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_credentials</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>auth_username</field></col>
+				<col><field>did</field></col>
+				<col><field>realm</field></col>
+				<col><field>password</field></col>
+				<col><field>flags</field></col>
+				<col><field>ha1</field></col>
+				<col><field>ha1b</field></col>
+				<col><field>uid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_credentials</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 32 - 0
utils/kamctl/xhttp_pi/uid_avp_db-mod

@@ -12,4 +12,36 @@
 				<col><field>flags</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_user_attrs</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>uid</field></col>
+				<col><field>name</field></col>
+				<col><field>value</field></col>
+				<col><field>type</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_user_attrs</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>uid</field></col>
+				<col><field>name</field></col>
+				<col><field>value</field></col>
+				<col><field>type</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_user_attrs</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 60 - 0
utils/kamctl/xhttp_pi/uid_domain-mod

@@ -10,6 +10,34 @@
 				<col><field>flags</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_domain</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>did</field></col>
+				<col><field>domain</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_domain</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>did</field></col>
+				<col><field>domain</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_domain</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- uid_domain_attrs provisionning -->
 	<mod><mod_name>uid_domain_attrs</mod_name>
@@ -25,4 +53,36 @@
 				<col><field>flags</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_domain_attrs</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>did</field></col>
+				<col><field>name</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_domain_attrs</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>did</field></col>
+				<col><field>name</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_domain_attrs</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 30 - 0
utils/kamctl/xhttp_pi/uid_gflags-mod

@@ -11,4 +11,34 @@
 				<col><field>flags</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_global_attrs</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>name</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_global_attrs</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>name</field></col>
+				<col><field>type</field></col>
+				<col><field>value</field></col>
+				<col><field>flags</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_global_attrs</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 68 - 0
utils/kamctl/xhttp_pi/uid_uri_db-mod

@@ -12,6 +12,38 @@
 				<col><field>scheme</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_uri</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>uid</field></col>
+				<col><field>did</field></col>
+				<col><field>username</field></col>
+				<col><field>flags</field></col>
+				<col><field>scheme</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_uri</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>uid</field></col>
+				<col><field>did</field></col>
+				<col><field>username</field></col>
+				<col><field>flags</field></col>
+				<col><field>scheme</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_uri</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- uid_uri_attrs provisionning -->
 	<mod><mod_name>uid_uri_attrs</mod_name>
@@ -29,4 +61,40 @@
 				<col><field>scheme</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uid_uri_attrs</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>did</field></col>
+				<col><field>name</field></col>
+				<col><field>value</field></col>
+				<col><field>type</field></col>
+				<col><field>flags</field></col>
+				<col><field>scheme</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uid_uri_attrs</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>did</field></col>
+				<col><field>name</field></col>
+				<col><field>value</field></col>
+				<col><field>type</field></col>
+				<col><field>flags</field></col>
+				<col><field>scheme</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uid_uri_attrs</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 30 - 0
utils/kamctl/xhttp_pi/uri_db-mod

@@ -11,4 +11,34 @@
 				<col><field>last_modified</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>uri</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>uri_user</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>uri</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>uri_user</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>uri</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 58 - 0
utils/kamctl/xhttp_pi/userblacklist-mod

@@ -11,6 +11,36 @@
 				<col><field>whitelist</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>userblacklist</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>prefix</field></col>
+				<col><field>whitelist</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>userblacklist</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>prefix</field></col>
+				<col><field>whitelist</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>userblacklist</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- globalblacklist provisionning -->
 	<mod><mod_name>globalblacklist</mod_name>
@@ -24,4 +54,32 @@
 				<col><field>description</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>globalblacklist</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>prefix</field></col>
+				<col><field>whitelist</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>globalblacklist</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>prefix</field></col>
+				<col><field>whitelist</field></col>
+				<col><field>description</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>globalblacklist</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

+ 94 - 0
utils/kamctl/xhttp_pi/usrloc-mod

@@ -25,6 +25,64 @@
 				<col><field>reg_id</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>location</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>ruid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>contact</field></col>
+				<col><field>received</field></col>
+				<col><field>path</field></col>
+				<col><field>expires</field></col>
+				<col><field>q</field></col>
+				<col><field>callid</field></col>
+				<col><field>cseq</field></col>
+				<col><field>last_modified</field></col>
+				<col><field>flags</field></col>
+				<col><field>cflags</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>socket</field></col>
+				<col><field>methods</field></col>
+				<col><field>instance</field></col>
+				<col><field>reg_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>location</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>ruid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>contact</field></col>
+				<col><field>received</field></col>
+				<col><field>path</field></col>
+				<col><field>expires</field></col>
+				<col><field>q</field></col>
+				<col><field>callid</field></col>
+				<col><field>cseq</field></col>
+				<col><field>last_modified</field></col>
+				<col><field>flags</field></col>
+				<col><field>cflags</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>socket</field></col>
+				<col><field>methods</field></col>
+				<col><field>instance</field></col>
+				<col><field>reg_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>location</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>
 	<!-- location_attrs provisionning -->
 	<mod><mod_name>location_attrs</mod_name>
@@ -42,4 +100,40 @@
 				<col><field>last_modified</field></col>
 			</query_cols>
 		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>location_attrs</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>ruid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>aname</field></col>
+				<col><field>atype</field></col>
+				<col><field>avalue</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>location_attrs</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>ruid</field></col>
+				<col><field>username</field></col>
+				<col><field>domain</field></col>
+				<col><field>aname</field></col>
+				<col><field>atype</field></col>
+				<col><field>avalue</field></col>
+				<col><field>last_modified</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>location_attrs</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
 	</mod>

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików