2
0
Эх сурвалжийг харах

kamctl: regenerated db creation files

Victor Seva 7 сар өмнө
parent
commit
ce5cbf1263
42 өөрчлөгдсөн 1756 нэмэгдсэн , 86 устгасан
  1. 12 0
      utils/kamctl/db_berkeley/kamailio/contact
  2. 12 0
      utils/kamctl/db_berkeley/kamailio/impu
  3. 12 0
      utils/kamctl/db_berkeley/kamailio/impu_contact
  4. 12 0
      utils/kamctl/db_berkeley/kamailio/impu_subscriber
  5. 0 2
      utils/kamctl/db_berkeley/kamailio/pcscf_location
  6. 12 0
      utils/kamctl/db_berkeley/kamailio/ro_session
  7. 12 0
      utils/kamctl/db_berkeley/kamailio/subscriber_scscf
  8. 3 1
      utils/kamctl/db_berkeley/kamailio/version
  9. 2 0
      utils/kamctl/db_redis/kamailio/contact
  10. 2 0
      utils/kamctl/db_redis/kamailio/impu
  11. 2 0
      utils/kamctl/db_redis/kamailio/impu_contact
  12. 2 0
      utils/kamctl/db_redis/kamailio/impu_subscriber
  13. 2 0
      utils/kamctl/db_redis/kamailio/ro_session
  14. 2 0
      utils/kamctl/db_redis/kamailio/subscriber_scscf
  15. 31 0
      utils/kamctl/db_sqlite/ims_charging-create.sql
  16. 65 0
      utils/kamctl/db_sqlite/ims_usrloc_scscf-create.sql
  17. 2 0
      utils/kamctl/dbtext/kamailio/contact
  18. 2 0
      utils/kamctl/dbtext/kamailio/impu
  19. 2 0
      utils/kamctl/dbtext/kamailio/impu_contact
  20. 2 0
      utils/kamctl/dbtext/kamailio/impu_subscriber
  21. 1 2
      utils/kamctl/dbtext/kamailio/pcscf_location
  22. 2 0
      utils/kamctl/dbtext/kamailio/ro_session
  23. 2 0
      utils/kamctl/dbtext/kamailio/subscriber_scscf
  24. 2 1
      utils/kamctl/dbtext/kamailio/version
  25. 46 0
      utils/kamctl/mongodb/kamailio/contact.json
  26. 51 0
      utils/kamctl/mongodb/kamailio/impu.json
  27. 21 0
      utils/kamctl/mongodb/kamailio/impu_contact.json
  28. 21 0
      utils/kamctl/mongodb/kamailio/impu_subscriber.json
  29. 131 0
      utils/kamctl/mongodb/kamailio/ro_session.json
  30. 71 0
      utils/kamctl/mongodb/kamailio/subscriber_scscf.json
  31. 1 0
      utils/kamctl/mongodb/kamailio/version-create.mongo
  32. 28 28
      utils/kamctl/mysql/ims_charging-create.sql
  33. 52 52
      utils/kamctl/mysql/ims_usrloc_scscf-create.sql
  34. 39 0
      utils/kamctl/oracle/ims_charging-create.sql
  35. 105 0
      utils/kamctl/oracle/ims_usrloc_scscf-create.sql
  36. 31 0
      utils/kamctl/postgres/ims_charging-create.sql
  37. 65 0
      utils/kamctl/postgres/ims_usrloc_scscf-create.sql
  38. 104 0
      utils/kamctl/xhttp_pi/ims_charging-mod
  39. 30 0
      utils/kamctl/xhttp_pi/ims_charging-table
  40. 253 0
      utils/kamctl/xhttp_pi/ims_usrloc_scscf-mod
  41. 61 0
      utils/kamctl/xhttp_pi/ims_usrloc_scscf-table
  42. 448 0
      utils/kamctl/xhttp_pi/pi_framework.xml

+ 12 - 0
utils/kamctl/db_berkeley/kamailio/contact

@@ -0,0 +1,12 @@
+METADATA_COLUMNS
+id(int) contact(str) params(str) path(str) received(str) user_agent(str) expires(datetime) callid(str)
+METADATA_KEY
+
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NULL|NULL|NULL|NULL|NULL|NULL
+contact|
+contact|6

+ 12 - 0
utils/kamctl/db_berkeley/kamailio/impu

@@ -0,0 +1,12 @@
+METADATA_COLUMNS
+id(int) impu(str) barring(int) reg_state(int) ccf1(str) ccf2(str) ecf1(str) ecf2(str) ims_subscription_data(str)
+METADATA_KEY
+
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|0|0|NULL|NULL|NULL|NULL|NIL
+impu|
+impu|6

+ 12 - 0
utils/kamctl/db_berkeley/kamailio/impu_contact

@@ -0,0 +1,12 @@
+METADATA_COLUMNS
+id(int) impu_id(int) contact_id(int)
+METADATA_KEY
+
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NIL
+impu_contact|
+impu_contact|6

+ 12 - 0
utils/kamctl/db_berkeley/kamailio/impu_subscriber

@@ -0,0 +1,12 @@
+METADATA_COLUMNS
+id(int) impu_id(int) subscriber_id(int)
+METADATA_KEY
+
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NIL
+impu_subscriber|
+impu_subscriber|6

+ 0 - 2
utils/kamctl/db_berkeley/kamailio/pcscf_location

@@ -8,5 +8,3 @@ METADATA_LOGFLAGS
 0
 METADATA_DEFAULTS
 NIL|NIL|NIL|NIL|NIL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|'2030-05-28 21:32:15'|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL
-pcscf_location|
-pcscf_location|7

+ 12 - 0
utils/kamctl/db_berkeley/kamailio/ro_session

@@ -0,0 +1,12 @@
+METADATA_COLUMNS
+id(int) hash_entry(int) hash_id(int) session_id(str) dlg_hash_entry(int) dlg_hash_id(int) direction(int) asserted_identity(str) callee(str) start_time(datetime) last_event_timestamp(datetime) reserved_secs(int) valid_for(int) state(int) incoming_trunk_id(str) outgoing_trunk_id(str) rating_group(int) service_identifier(int) auth_app_id(int) auth_session_type(int) pani(str) mac(str) app_provided_party(str) is_final_allocation(int) origin_host(str)
+METADATA_KEY
+
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NULL|NIL|NIL|NULL|NULL|NULL|NIL|NULL
+ro_session|
+ro_session|3

+ 12 - 0
utils/kamctl/db_berkeley/kamailio/subscriber_scscf

@@ -0,0 +1,12 @@
+METADATA_COLUMNS
+id(int) watcher_uri(str) watcher_contact(str) presentity_uri(str) event(int) expires(datetime) version(int) local_cseq(int) call_id(str) from_tag(str) to_tag(str) record_route(str) sockinfo_str(str)
+METADATA_KEY
+
+METADATA_READONLY
+0
+METADATA_LOGFLAGS
+0
+METADATA_DEFAULTS
+NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL
+subscriber_scscf|
+subscriber_scscf|6

+ 3 - 1
utils/kamctl/db_berkeley/kamailio/version

@@ -1,7 +1,7 @@
 METADATA_COLUMNS
 id(int) table_name(str) table_version(int)
 METADATA_KEY
-1 
+1
 METADATA_READONLY
 0
 METADATA_LOGFLAGS
@@ -92,6 +92,8 @@ mtrees|
 mtrees|2
 nds_trusted_domains|
 nds_trusted_domains|1
+pcscf_location|
+pcscf_location|7
 pdt|
 pdt|1
 pl_pipes|

+ 2 - 0
utils/kamctl/db_redis/kamailio/contact

@@ -0,0 +1,2 @@
+id/int,contact/string,params/string,path/string,received/string,user_agent/string,expires/time,callid/string,
+6

+ 2 - 0
utils/kamctl/db_redis/kamailio/impu

@@ -0,0 +1,2 @@
+id/int,impu/string,barring/int,reg_state/int,ccf1/string,ccf2/string,ecf1/string,ecf2/string,ims_subscription_data/string,
+6

+ 2 - 0
utils/kamctl/db_redis/kamailio/impu_contact

@@ -0,0 +1,2 @@
+id/int,impu_id/int,contact_id/int,
+6

+ 2 - 0
utils/kamctl/db_redis/kamailio/impu_subscriber

@@ -0,0 +1,2 @@
+id/int,impu_id/int,subscriber_id/int,
+6

+ 2 - 0
utils/kamctl/db_redis/kamailio/ro_session

@@ -0,0 +1,2 @@
+id/int,hash_entry/int,hash_id/int,session_id/string,dlg_hash_entry/int,dlg_hash_id/int,direction/int,asserted_identity/string,callee/string,start_time/time,last_event_timestamp/time,reserved_secs/int,valid_for/int,state/int,incoming_trunk_id/string,outgoing_trunk_id/string,rating_group/int,service_identifier/int,auth_app_id/int,auth_session_type/int,pani/string,mac/string,app_provided_party/string,is_final_allocation/int,origin_host/string,
+3

+ 2 - 0
utils/kamctl/db_redis/kamailio/subscriber_scscf

@@ -0,0 +1,2 @@
+id/int,watcher_uri/string,watcher_contact/string,presentity_uri/string,event/int,expires/time,version/int,local_cseq/int,call_id/string,from_tag/string,to_tag/string,record_route/string,sockinfo_str/string,
+6

+ 31 - 0
utils/kamctl/db_sqlite/ims_charging-create.sql

@@ -0,0 +1,31 @@
+CREATE TABLE ro_session (
+    id INTEGER PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    session_id VARCHAR(100) NOT NULL,
+    dlg_hash_entry INTEGER NOT NULL,
+    dlg_hash_id INTEGER NOT NULL,
+    direction INTEGER NOT NULL,
+    asserted_identity VARCHAR(100) NOT NULL,
+    callee VARCHAR(100) NOT NULL,
+    start_time TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
+    last_event_timestamp TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
+    reserved_secs INTEGER DEFAULT NULL,
+    valid_for INTEGER DEFAULT NULL,
+    state INTEGER DEFAULT NULL,
+    incoming_trunk_id VARCHAR(20) DEFAULT NULL,
+    outgoing_trunk_id VARCHAR(20) DEFAULT NULL,
+    rating_group INTEGER DEFAULT NULL,
+    service_identifier INTEGER DEFAULT NULL,
+    auth_app_id INTEGER NOT NULL,
+    auth_session_type INTEGER NOT NULL,
+    pani VARCHAR(100) DEFAULT NULL,
+    mac VARCHAR(17) DEFAULT NULL,
+    app_provided_party VARCHAR(100) DEFAULT NULL,
+    is_final_allocation INTEGER NOT NULL,
+    origin_host VARCHAR(150) DEFAULT NULL
+);
+
+CREATE INDEX ro_session_hash_idx ON ro_session (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('ro_session','3');

+ 65 - 0
utils/kamctl/db_sqlite/ims_usrloc_scscf-create.sql

@@ -0,0 +1,65 @@
+CREATE TABLE contact (
+    id INTEGER PRIMARY KEY NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    params VARCHAR(255) DEFAULT NULL,
+    path VARCHAR(255) DEFAULT NULL,
+    received VARCHAR(255) DEFAULT NULL,
+    user_agent VARCHAR(255) DEFAULT NULL,
+    expires TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
+    callid VARCHAR(255) DEFAULT NULL,
+    CONSTRAINT contact_contact UNIQUE (contact)
+);
+
+INSERT INTO version (table_name, table_version) values ('contact','6');
+
+CREATE TABLE impu (
+    id INTEGER PRIMARY KEY NOT NULL,
+    impu VARCHAR(64) NOT NULL,
+    barring INTEGER DEFAULT 0,
+    reg_state INTEGER DEFAULT 0,
+    ccf1 VARCHAR(64) DEFAULT NULL,
+    ccf2 VARCHAR(64) DEFAULT NULL,
+    ecf1 VARCHAR(64) DEFAULT NULL,
+    ecf2 VARCHAR(64) DEFAULT NULL,
+    ims_subscription_data BLOB,
+    CONSTRAINT impu_impu UNIQUE (impu)
+);
+
+INSERT INTO version (table_name, table_version) values ('impu','6');
+
+CREATE TABLE impu_contact (
+    id INTEGER PRIMARY KEY NOT NULL,
+    impu_id INTEGER NOT NULL,
+    contact_id INTEGER NOT NULL,
+    CONSTRAINT impu_contact_impu_id UNIQUE (impu_id, contact_id)
+);
+
+INSERT INTO version (table_name, table_version) values ('impu_contact','6');
+
+CREATE TABLE subscriber_scscf (
+    id INTEGER PRIMARY KEY NOT NULL,
+    watcher_uri VARCHAR(100) NOT NULL,
+    watcher_contact VARCHAR(100) NOT NULL,
+    presentity_uri VARCHAR(100) NOT NULL,
+    event INTEGER NOT NULL,
+    expires TIMESTAMP WITHOUT TIME ZONE NOT NULL,
+    version INTEGER NOT NULL,
+    local_cseq INTEGER NOT NULL,
+    call_id VARCHAR(50) NOT NULL,
+    from_tag VARCHAR(50) NOT NULL,
+    to_tag VARCHAR(50) NOT NULL,
+    record_route TEXT NOT NULL,
+    sockinfo_str VARCHAR(50) NOT NULL,
+    CONSTRAINT subscriber_scscf_contact UNIQUE (event, watcher_contact, presentity_uri)
+);
+
+INSERT INTO version (table_name, table_version) values ('subscriber_scscf','6');
+
+CREATE TABLE impu_subscriber (
+    id INTEGER PRIMARY KEY NOT NULL,
+    impu_id INTEGER NOT NULL,
+    subscriber_id INTEGER NOT NULL,
+    CONSTRAINT impu_subscriber_impu_id UNIQUE (impu_id, subscriber_id)
+);
+
+INSERT INTO version (table_name, table_version) values ('impu_subscriber','6');

+ 2 - 0
utils/kamctl/dbtext/kamailio/contact

@@ -0,0 +1,2 @@
+id(int,auto) contact(string) params(string,null) path(string,null) received(string,null) user_agent(string,null) expires(int,null) callid(string,null)
+0:contact:6

+ 2 - 0
utils/kamctl/dbtext/kamailio/impu

@@ -0,0 +1,2 @@
+id(int,auto) impu(string) barring(int,null) reg_state(int,null) ccf1(string,null) ccf2(string,null) ecf1(string,null) ecf2(string,null) ims_subscription_data(string,null)
+0:impu:6

+ 2 - 0
utils/kamctl/dbtext/kamailio/impu_contact

@@ -0,0 +1,2 @@
+id(int,auto) impu_id(int) contact_id(int)
+0:impu_contact:6

+ 2 - 0
utils/kamctl/dbtext/kamailio/impu_subscriber

@@ -0,0 +1,2 @@
+id(int,auto) impu_id(int) subscriber_id(int)
+0:impu_subscriber:6

+ 1 - 2
utils/kamctl/dbtext/kamailio/pcscf_location

@@ -1,2 +1 @@
-id(int,auto) domain(string) aor(string) host(string) port(int) received(string,null) received_port(int,null) received_proto(int,null) path(string,null) rinstance(string,null) rx_session_id(string,null) reg_state(int,null) expires(int,null) service_routes(string,null) socket(string,null) public_ids(string,null) security_type(int,null) protocol(string,null) mode(string,null) ck(string,null) ik(string,null) ealg(string,null) ialg(string,null) port_pc(int,null) port_ps(int,null) port_uc(int,null) port_us(int,null) spi_pc(int,null) spi_ps(int,null) spi_uc(int,null) spi_us(int,null) t_security_type(int,null) t_protocol(string,null) t_mode(string,null) t_ck(string,null) t_ik(string,null) t_ealg(string,null) t_ialg(string,null) t_port_pc(int,null) t_port_ps(int,null) t_port_uc(int,null) t_port_us(int,null) t_spi_pc(int,null) t_spi_ps(int,null) t_spi_uc(int,null) t_spi_us(int,null) 
-0:pcscf_location:7
+id(int,auto) domain(string) aor(string) host(string) port(int) received(string,null) received_port(int,null) received_proto(int,null) path(string,null) rinstance(string,null) rx_session_id(string,null) reg_state(int,null) expires(int,null) service_routes(string,null) socket(string,null) public_ids(string,null) security_type(int,null) protocol(string,null) mode(string,null) ck(string,null) ik(string,null) ealg(string,null) ialg(string,null) port_pc(int,null) port_ps(int,null) port_uc(int,null) port_us(int,null) spi_pc(int,null) spi_ps(int,null) spi_uc(int,null) spi_us(int,null) t_security_type(int,null) t_protocol(string,null) t_mode(string,null) t_ck(string,null) t_ik(string,null) t_ealg(string,null) t_ialg(string,null) t_port_pc(int,null) t_port_ps(int,null) t_port_uc(int,null) t_port_us(int,null) t_spi_pc(int,null) t_spi_ps(int,null) t_spi_uc(int,null) t_spi_us(int,null)

+ 2 - 0
utils/kamctl/dbtext/kamailio/ro_session

@@ -0,0 +1,2 @@
+id(int,auto) hash_entry(int) hash_id(int) session_id(string) dlg_hash_entry(int) dlg_hash_id(int) direction(int) asserted_identity(string) callee(string) start_time(int,null) last_event_timestamp(int,null) reserved_secs(int,null) valid_for(int,null) state(int,null) incoming_trunk_id(string,null) outgoing_trunk_id(string,null) rating_group(int,null) service_identifier(int,null) auth_app_id(int) auth_session_type(int) pani(string,null) mac(string,null) app_provided_party(string,null) is_final_allocation(int) origin_host(string,null)
+0:ro_session:3

+ 2 - 0
utils/kamctl/dbtext/kamailio/subscriber_scscf

@@ -0,0 +1,2 @@
+id(int,auto) watcher_uri(string) watcher_contact(string) presentity_uri(string) event(int) expires(int) version(int) local_cseq(int) call_id(string) from_tag(string) to_tag(string) record_route(string) sockinfo_str(string)
+0:subscriber_scscf:6

+ 2 - 1
utils/kamctl/dbtext/kamailio/version

@@ -1,4 +1,4 @@
-id(int,auto) table_name(string) table_version(int) 
+id(int,auto) table_name(string) table_version(int)
 0:version:1
 0:acc:5
 0:acc_cdrs:2
@@ -41,6 +41,7 @@ id(int,auto) table_name(string) table_version(int)
 0:mtree:1
 0:mtrees:2
 0:nds_trusted_domains:1
+0:pcscf_location:7
 0:pdt:1
 0:pl_pipes:1
 0:presentity:5

+ 46 - 0
utils/kamctl/mongodb/kamailio/contact.json

@@ -0,0 +1,46 @@
+{
+  "name": "contact",
+  "version": 6,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "contact": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "params": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "path": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "received": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "user_agent": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "expires": {
+      "type": "datetime",
+      "default": null,
+      "null": true
+    },
+    "callid": {
+      "type": "string",
+      "default": null,
+      "null": true
+    }
+  ]
+}

+ 51 - 0
utils/kamctl/mongodb/kamailio/impu.json

@@ -0,0 +1,51 @@
+{
+  "name": "impu",
+  "version": 6,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "impu": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "barring": {
+      "type": "int",
+      "default": 0,
+      "null": true
+    },
+    "reg_state": {
+      "type": "int",
+      "default": 0,
+      "null": true
+    },
+    "ccf1": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "ccf2": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "ecf1": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "ecf2": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "ims_subscription_data": {
+      "type": "text",
+      "default": null,
+      "null": true
+    }
+  ]
+}

+ 21 - 0
utils/kamctl/mongodb/kamailio/impu_contact.json

@@ -0,0 +1,21 @@
+{
+  "name": "impu_contact",
+  "version": 6,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "impu_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "contact_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    }
+  ]
+}

+ 21 - 0
utils/kamctl/mongodb/kamailio/impu_subscriber.json

@@ -0,0 +1,21 @@
+{
+  "name": "impu_subscriber",
+  "version": 6,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "impu_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "subscriber_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    }
+  ]
+}

+ 131 - 0
utils/kamctl/mongodb/kamailio/ro_session.json

@@ -0,0 +1,131 @@
+{
+  "name": "ro_session",
+  "version": 3,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "hash_entry": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "hash_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "session_id": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "dlg_hash_entry": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "dlg_hash_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "direction": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "asserted_identity": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "callee": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "start_time": {
+      "type": "datetime",
+      "default": null,
+      "null": true
+    },
+    "last_event_timestamp": {
+      "type": "datetime",
+      "default": null,
+      "null": true
+    },
+    "reserved_secs": {
+      "type": "int",
+      "default": null,
+      "null": true
+    },
+    "valid_for": {
+      "type": "int",
+      "default": null,
+      "null": true
+    },
+    "state": {
+      "type": "int",
+      "default": null,
+      "null": true
+    },
+    "incoming_trunk_id": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "outgoing_trunk_id": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "rating_group": {
+      "type": "int",
+      "default": null,
+      "null": true
+    },
+    "service_identifier": {
+      "type": "int",
+      "default": null,
+      "null": true
+    },
+    "auth_app_id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "auth_session_type": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "pani": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "mac": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "app_provided_party": {
+      "type": "string",
+      "default": null,
+      "null": true
+    },
+    "is_final_allocation": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "origin_host": {
+      "type": "string",
+      "default": null,
+      "null": true
+    }
+  ]
+}

+ 71 - 0
utils/kamctl/mongodb/kamailio/subscriber_scscf.json

@@ -0,0 +1,71 @@
+{
+  "name": "subscriber_scscf",
+  "version": 6,
+  "columns": [
+    "id": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "watcher_uri": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "watcher_contact": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "presentity_uri": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "event": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "expires": {
+      "type": "datetime",
+      "default": null,
+      "null": false
+    },
+    "version": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "local_cseq": {
+      "type": "int",
+      "default": null,
+      "null": false
+    },
+    "call_id": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "from_tag": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "to_tag": {
+      "type": "string",
+      "default": null,
+      "null": false
+    },
+    "record_route": {
+      "type": "text",
+      "default": null,
+      "null": false
+    },
+    "sockinfo_str": {
+      "type": "string",
+      "default": null,
+      "null": false
+    }
+  ]
+}

+ 1 - 0
utils/kamctl/mongodb/kamailio/version-create.mongo

@@ -41,6 +41,7 @@ db.getCollection("version").insert({ table_name: "mohqueues", table_version: Num
 db.getCollection("version").insert({ table_name: "mtree", table_version: NumberInt(1) });
 db.getCollection("version").insert({ table_name: "mtrees", table_version: NumberInt(2) });
 db.getCollection("version").insert({ table_name: "nds_trusted_domains", table_version: NumberInt(1) });
+db.getCollection("version").insert({ table_name: "pcscf_location", table_version: NumberInt(7) });
 db.getCollection("version").insert({ table_name: "pdt", table_version: NumberInt(1) });
 db.getCollection("version").insert({ table_name: "pl_pipes", table_version: NumberInt(1) });
 db.getCollection("version").insert({ table_name: "presentity", table_version: NumberInt(5) });

+ 28 - 28
utils/kamctl/mysql/ims_charging-create.sql

@@ -1,31 +1,31 @@
-INSERT INTO version (table_name, table_version) values ('ro_session','3');
 CREATE TABLE `ro_session` (
-  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-  `hash_entry` int(10) unsigned NOT NULL,
-  `hash_id` int(10) unsigned NOT NULL,
-  `session_id` varchar(100) NOT NULL,
-  `dlg_hash_entry` int(10) unsigned NOT NULL,
-  `dlg_hash_id` int(10) unsigned NOT NULL,
-  `direction` int(1) unsigned NOT NULL,
-  `asserted_identity` varchar(100) NOT NULL,
-  `callee` varchar(100) NOT NULL,
-  `start_time` datetime DEFAULT NULL,
-  `last_event_timestamp` datetime DEFAULT NULL,
-  `reserved_secs` int(10) DEFAULT NULL,
-  `valid_for` int(10) DEFAULT NULL,
-  `state` int(1) DEFAULT NULL,
-  `incoming_trunk_id` varchar(20) DEFAULT NULL,
-  `outgoing_trunk_id` varchar(20) DEFAULT NULL,
-  `rating_group` int(11) DEFAULT NULL,
-  `service_identifier` int(11) DEFAULT NULL,
-  `auth_app_id` int(11) NOT NULL,
-  `auth_session_type` int(11) NOT NULL,
-  `pani` varchar(100) DEFAULT NULL,
-  `mac` varchar(17) DEFAULT NULL,
-  `app_provided_party` varchar(100) DEFAULT NULL,
-  `is_final_allocation` int(1) unsigned NOT NULL,
-  `origin_host` varchar(150) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `hash_idx` (`hash_entry`,`hash_id`)
+    `id` INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `hash_entry` INT(10) UNSIGNED NOT NULL,
+    `hash_id` INT(10) UNSIGNED NOT NULL,
+    `session_id` VARCHAR(100) NOT NULL,
+    `dlg_hash_entry` INT(10) UNSIGNED NOT NULL,
+    `dlg_hash_id` INT(10) UNSIGNED NOT NULL,
+    `direction` INT(1) UNSIGNED NOT NULL,
+    `asserted_identity` VARCHAR(100) NOT NULL,
+    `callee` VARCHAR(100) NOT NULL,
+    `start_time` DATETIME DEFAULT NULL,
+    `last_event_timestamp` DATETIME DEFAULT NULL,
+    `reserved_secs` INT(10) DEFAULT NULL,
+    `valid_for` INT(10) DEFAULT NULL,
+    `state` INT(1) DEFAULT NULL,
+    `incoming_trunk_id` VARCHAR(20) DEFAULT NULL,
+    `outgoing_trunk_id` VARCHAR(20) DEFAULT NULL,
+    `rating_group` INT(11) DEFAULT NULL,
+    `service_identifier` INT(11) DEFAULT NULL,
+    `auth_app_id` INT(11) NOT NULL,
+    `auth_session_type` INT(11) NOT NULL,
+    `pani` VARCHAR(100) DEFAULT NULL,
+    `mac` VARCHAR(17) DEFAULT NULL,
+    `app_provided_party` VARCHAR(100) DEFAULT NULL,
+    `is_final_allocation` INT(1) UNSIGNED NOT NULL,
+    `origin_host` VARCHAR(150) DEFAULT NULL
 );
 
+CREATE INDEX hash_idx ON ro_session (`hash_entry`, `hash_id`);
+
+INSERT INTO version (table_name, table_version) values ('ro_session','3');

+ 52 - 52
utils/kamctl/mysql/ims_usrloc_scscf-create.sql

@@ -1,65 +1,65 @@
-INSERT INTO version (table_name, table_version) values ('contact','6');
 CREATE TABLE `contact` (
-  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-  `contact` char(255) NOT NULL,
-  `params` varchar(255) DEFAULT NULL,
-  `path` varchar(255) DEFAULT NULL,
-  `received` varchar(255) DEFAULT NULL,
-  `user_agent` varchar(255) DEFAULT NULL,
-  `expires` datetime DEFAULT NULL,
-  `callid` varchar(255) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `contact` (`contact`)
+    `id` INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `contact` VARCHAR(255) NOT NULL,
+    `params` VARCHAR(255) DEFAULT NULL,
+    `path` VARCHAR(255) DEFAULT NULL,
+    `received` VARCHAR(255) DEFAULT NULL,
+    `user_agent` VARCHAR(255) DEFAULT NULL,
+    `expires` DATETIME DEFAULT NULL,
+    `callid` VARCHAR(255) DEFAULT NULL,
+    CONSTRAINT contact UNIQUE (`contact`)
 );
 
-INSERT INTO version (table_name, table_version) values ('impu','6');
+INSERT INTO version (table_name, table_version) values ('contact','6');
+
 CREATE TABLE `impu` (
-  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
-  `impu` char(64) NOT NULL,
-  `barring` int(1) DEFAULT '0',
-  `reg_state` int(11) DEFAULT '0',
-  `ccf1` char(64) DEFAULT NULL,
-  `ccf2` char(64) DEFAULT NULL,
-  `ecf1` char(64) DEFAULT NULL,
-  `ecf2` char(64) DEFAULT NULL,
-  `ims_subscription_data` blob,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `impu` (`impu`)
+    `id` INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `impu` VARCHAR(64) NOT NULL,
+    `barring` INT(1) DEFAULT 0,
+    `reg_state` INT(11) DEFAULT 0,
+    `ccf1` VARCHAR(64) DEFAULT NULL,
+    `ccf2` VARCHAR(64) DEFAULT NULL,
+    `ecf1` VARCHAR(64) DEFAULT NULL,
+    `ecf2` VARCHAR(64) DEFAULT NULL,
+    `ims_subscription_data` BLOB,
+    CONSTRAINT impu UNIQUE (`impu`)
 );
 
-INSERT INTO version (table_name, table_version) values ('impu_contact','6');
+INSERT INTO version (table_name, table_version) values ('impu','6');
+
 CREATE TABLE `impu_contact` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `impu_id` int(11) NOT NULL,
-  `contact_id` int(11) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `impu_id` (`impu_id`,`contact_id`)
+    `id` INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `impu_id` INT(10) NOT NULL,
+    `contact_id` INT(10) NOT NULL,
+    CONSTRAINT impu_id UNIQUE (`impu_id`, `contact_id`)
 );
 
-INSERT INTO version (table_name, table_version) values ('subscriber','6');
-CREATE TABLE `subscriber` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `watcher_uri` varchar(100) NOT NULL,
-  `watcher_contact` varchar(100) NOT NULL,
-  `presentity_uri` varchar(100) NOT NULL,
-  `event` int(11) NOT NULL,
-  `expires` datetime NOT NULL,
-  `version` int(11) NOT NULL,
-  `local_cseq` int(11) NOT NULL,
-  `call_id` varchar(50) NOT NULL,
-  `from_tag` varchar(50) NOT NULL,
-  `to_tag` varchar(50) NOT NULL,
-  `record_route` TEXT NOT NULL,
-  `sockinfo_str` varchar(50) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `watcher_uri` (`event`,`watcher_contact`,`presentity_uri`)
+INSERT INTO version (table_name, table_version) values ('impu_contact','6');
+
+CREATE TABLE `subscriber_scscf` (
+    `id` INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `watcher_uri` VARCHAR(100) NOT NULL,
+    `watcher_contact` VARCHAR(100) NOT NULL,
+    `presentity_uri` VARCHAR(100) NOT NULL,
+    `event` INT(11) NOT NULL,
+    `expires` DATETIME NOT NULL,
+    `version` INT(11) NOT NULL,
+    `local_cseq` INT(11) NOT NULL,
+    `call_id` VARCHAR(50) NOT NULL,
+    `from_tag` VARCHAR(50) NOT NULL,
+    `to_tag` VARCHAR(50) NOT NULL,
+    `record_route` TEXT NOT NULL,
+    `sockinfo_str` VARCHAR(50) NOT NULL,
+    CONSTRAINT contact UNIQUE (`event`, `watcher_contact`, `presentity_uri`)
 );
 
-INSERT INTO version (table_name, table_version) values ('impu_subscriber','6');
+INSERT INTO version (table_name, table_version) values ('subscriber_scscf','6');
+
 CREATE TABLE `impu_subscriber` (
-  `id` int(11) NOT NULL AUTO_INCREMENT,
-  `impu_id` int(11) NOT NULL,
-  `subscriber_id` int(11) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `impu_id` (`impu_id`,`subscriber_id`)
+    `id` INT(10) AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    `impu_id` INT(10) NOT NULL,
+    `subscriber_id` INT(10) NOT NULL,
+    CONSTRAINT impu_id UNIQUE (`impu_id`, `subscriber_id`)
 );
+
+INSERT INTO version (table_name, table_version) values ('impu_subscriber','6');

+ 39 - 0
utils/kamctl/oracle/ims_charging-create.sql

@@ -0,0 +1,39 @@
+CREATE TABLE ro_session (
+    id NUMBER(10) PRIMARY KEY,
+    hash_entry NUMBER(10),
+    hash_id NUMBER(10),
+    session_id VARCHAR2(100),
+    dlg_hash_entry NUMBER(10),
+    dlg_hash_id NUMBER(10),
+    direction NUMBER(10),
+    asserted_identity VARCHAR2(100),
+    callee VARCHAR2(100),
+    start_time DATE DEFAULT NULL,
+    last_event_timestamp DATE DEFAULT NULL,
+    reserved_secs NUMBER(10) DEFAULT NULL,
+    valid_for NUMBER(10) DEFAULT NULL,
+    state NUMBER(10) DEFAULT NULL,
+    incoming_trunk_id VARCHAR2(20) DEFAULT NULL,
+    outgoing_trunk_id VARCHAR2(20) DEFAULT NULL,
+    rating_group NUMBER(10) DEFAULT NULL,
+    service_identifier NUMBER(10) DEFAULT NULL,
+    auth_app_id NUMBER(10),
+    auth_session_type NUMBER(10),
+    pani VARCHAR2(100) DEFAULT NULL,
+    mac VARCHAR2(17) DEFAULT NULL,
+    app_provided_party VARCHAR2(100) DEFAULT NULL,
+    is_final_allocation NUMBER(10),
+    origin_host VARCHAR2(150) DEFAULT NULL
+);
+
+CREATE OR REPLACE TRIGGER ro_session_tr
+before insert on ro_session FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END ro_session_tr;
+/
+BEGIN map2users('ro_session'); END;
+/
+CREATE INDEX ro_session_hash_idx  ON ro_session (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('ro_session','3');

+ 105 - 0
utils/kamctl/oracle/ims_usrloc_scscf-create.sql

@@ -0,0 +1,105 @@
+CREATE TABLE contact (
+    id NUMBER(10) PRIMARY KEY,
+    contact VARCHAR2(255),
+    params VARCHAR2(255) DEFAULT NULL,
+    path VARCHAR2(255) DEFAULT NULL,
+    received VARCHAR2(255) DEFAULT NULL,
+    user_agent VARCHAR2(255) DEFAULT NULL,
+    expires DATE DEFAULT NULL,
+    callid VARCHAR2(255) DEFAULT NULL,
+    CONSTRAINT contact_contact  UNIQUE (contact)
+);
+
+CREATE OR REPLACE TRIGGER contact_tr
+before insert on contact FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END contact_tr;
+/
+BEGIN map2users('contact'); END;
+/
+INSERT INTO version (table_name, table_version) values ('contact','6');
+
+CREATE TABLE impu (
+    id NUMBER(10) PRIMARY KEY,
+    impu VARCHAR2(64),
+    barring NUMBER(10) DEFAULT 0,
+    reg_state NUMBER(10) DEFAULT 0,
+    ccf1 VARCHAR2(64) DEFAULT NULL,
+    ccf2 VARCHAR2(64) DEFAULT NULL,
+    ecf1 VARCHAR2(64) DEFAULT NULL,
+    ecf2 VARCHAR2(64) DEFAULT NULL,
+    ims_subscription_data BLOB,
+    CONSTRAINT impu_impu  UNIQUE (impu)
+);
+
+CREATE OR REPLACE TRIGGER impu_tr
+before insert on impu FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END impu_tr;
+/
+BEGIN map2users('impu'); END;
+/
+INSERT INTO version (table_name, table_version) values ('impu','6');
+
+CREATE TABLE impu_contact (
+    id NUMBER(10) PRIMARY KEY,
+    impu_id NUMBER(10),
+    contact_id NUMBER(10),
+    CONSTRAINT impu_contact_impu_id  UNIQUE (impu_id, contact_id)
+);
+
+CREATE OR REPLACE TRIGGER impu_contact_tr
+before insert on impu_contact FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END impu_contact_tr;
+/
+BEGIN map2users('impu_contact'); END;
+/
+INSERT INTO version (table_name, table_version) values ('impu_contact','6');
+
+CREATE TABLE subscriber_scscf (
+    id NUMBER(10) PRIMARY KEY,
+    watcher_uri VARCHAR2(100),
+    watcher_contact VARCHAR2(100),
+    presentity_uri VARCHAR2(100),
+    event NUMBER(10),
+    expires DATE,
+    version NUMBER(10),
+    local_cseq NUMBER(10),
+    call_id VARCHAR2(50),
+    from_tag VARCHAR2(50),
+    to_tag VARCHAR2(50),
+    record_route CLOB,
+    sockinfo_str VARCHAR2(50),
+    CONSTRAINT subscriber_scscf_contact  UNIQUE (event, watcher_contact, presentity_uri)
+);
+
+CREATE OR REPLACE TRIGGER subscriber_scscf_tr
+before insert on subscriber_scscf FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END subscriber_scscf_tr;
+/
+BEGIN map2users('subscriber_scscf'); END;
+/
+INSERT INTO version (table_name, table_version) values ('subscriber_scscf','6');
+
+CREATE TABLE impu_subscriber (
+    id NUMBER(10) PRIMARY KEY,
+    impu_id NUMBER(10),
+    subscriber_id NUMBER(10),
+    CONSTRAINT impu_subscriber_impu_id  UNIQUE (impu_id, subscriber_id)
+);
+
+CREATE OR REPLACE TRIGGER impu_subscriber_tr
+before insert on impu_subscriber FOR EACH ROW
+BEGIN
+  auto_id(:NEW.id);
+END impu_subscriber_tr;
+/
+BEGIN map2users('impu_subscriber'); END;
+/
+INSERT INTO version (table_name, table_version) values ('impu_subscriber','6');

+ 31 - 0
utils/kamctl/postgres/ims_charging-create.sql

@@ -0,0 +1,31 @@
+CREATE TABLE ro_session (
+    id SERIAL PRIMARY KEY NOT NULL,
+    hash_entry INTEGER NOT NULL,
+    hash_id INTEGER NOT NULL,
+    session_id VARCHAR(100) NOT NULL,
+    dlg_hash_entry INTEGER NOT NULL,
+    dlg_hash_id INTEGER NOT NULL,
+    direction INTEGER NOT NULL,
+    asserted_identity VARCHAR(100) NOT NULL,
+    callee VARCHAR(100) NOT NULL,
+    start_time TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
+    last_event_timestamp TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
+    reserved_secs INTEGER DEFAULT NULL,
+    valid_for INTEGER DEFAULT NULL,
+    state INTEGER DEFAULT NULL,
+    incoming_trunk_id VARCHAR(20) DEFAULT NULL,
+    outgoing_trunk_id VARCHAR(20) DEFAULT NULL,
+    rating_group INTEGER DEFAULT NULL,
+    service_identifier INTEGER DEFAULT NULL,
+    auth_app_id INTEGER NOT NULL,
+    auth_session_type INTEGER NOT NULL,
+    pani VARCHAR(100) DEFAULT NULL,
+    mac VARCHAR(17) DEFAULT NULL,
+    app_provided_party VARCHAR(100) DEFAULT NULL,
+    is_final_allocation INTEGER NOT NULL,
+    origin_host VARCHAR(150) DEFAULT NULL
+);
+
+CREATE INDEX ro_session_hash_idx ON ro_session (hash_entry, hash_id);
+
+INSERT INTO version (table_name, table_version) values ('ro_session','3');

+ 65 - 0
utils/kamctl/postgres/ims_usrloc_scscf-create.sql

@@ -0,0 +1,65 @@
+CREATE TABLE contact (
+    id SERIAL PRIMARY KEY NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    params VARCHAR(255) DEFAULT NULL,
+    path VARCHAR(255) DEFAULT NULL,
+    received VARCHAR(255) DEFAULT NULL,
+    user_agent VARCHAR(255) DEFAULT NULL,
+    expires TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
+    callid VARCHAR(255) DEFAULT NULL,
+    CONSTRAINT contact_contact UNIQUE (contact)
+);
+
+INSERT INTO version (table_name, table_version) values ('contact','6');
+
+CREATE TABLE impu (
+    id SERIAL PRIMARY KEY NOT NULL,
+    impu VARCHAR(64) NOT NULL,
+    barring INTEGER DEFAULT 0,
+    reg_state INTEGER DEFAULT 0,
+    ccf1 VARCHAR(64) DEFAULT NULL,
+    ccf2 VARCHAR(64) DEFAULT NULL,
+    ecf1 VARCHAR(64) DEFAULT NULL,
+    ecf2 VARCHAR(64) DEFAULT NULL,
+    ims_subscription_data BYTEA,
+    CONSTRAINT impu_impu UNIQUE (impu)
+);
+
+INSERT INTO version (table_name, table_version) values ('impu','6');
+
+CREATE TABLE impu_contact (
+    id SERIAL PRIMARY KEY NOT NULL,
+    impu_id INTEGER NOT NULL,
+    contact_id INTEGER NOT NULL,
+    CONSTRAINT impu_contact_impu_id UNIQUE (impu_id, contact_id)
+);
+
+INSERT INTO version (table_name, table_version) values ('impu_contact','6');
+
+CREATE TABLE subscriber_scscf (
+    id SERIAL PRIMARY KEY NOT NULL,
+    watcher_uri VARCHAR(100) NOT NULL,
+    watcher_contact VARCHAR(100) NOT NULL,
+    presentity_uri VARCHAR(100) NOT NULL,
+    event INTEGER NOT NULL,
+    expires TIMESTAMP WITHOUT TIME ZONE NOT NULL,
+    version INTEGER NOT NULL,
+    local_cseq INTEGER NOT NULL,
+    call_id VARCHAR(50) NOT NULL,
+    from_tag VARCHAR(50) NOT NULL,
+    to_tag VARCHAR(50) NOT NULL,
+    record_route TEXT NOT NULL,
+    sockinfo_str VARCHAR(50) NOT NULL,
+    CONSTRAINT subscriber_scscf_contact UNIQUE (event, watcher_contact, presentity_uri)
+);
+
+INSERT INTO version (table_name, table_version) values ('subscriber_scscf','6');
+
+CREATE TABLE impu_subscriber (
+    id SERIAL PRIMARY KEY NOT NULL,
+    impu_id INTEGER NOT NULL,
+    subscriber_id INTEGER NOT NULL,
+    CONSTRAINT impu_subscriber_impu_id UNIQUE (impu_id, subscriber_id)
+);
+
+INSERT INTO version (table_name, table_version) values ('impu_subscriber','6');

+ 104 - 0
utils/kamctl/xhttp_pi/ims_charging-mod

@@ -0,0 +1,104 @@
+	<!-- ro_session provisioning -->
+	<mod><mod_name>ro_session</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>ro_session</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>session_id</field></col>
+				<col><field>dlg_hash_entry</field></col>
+				<col><field>dlg_hash_id</field></col>
+				<col><field>direction</field></col>
+				<col><field>asserted_identity</field></col>
+				<col><field>callee</field></col>
+				<col><field>start_time</field></col>
+				<col><field>last_event_timestamp</field></col>
+				<col><field>reserved_secs</field></col>
+				<col><field>valid_for</field></col>
+				<col><field>state</field></col>
+				<col><field>incoming_trunk_id</field></col>
+				<col><field>outgoing_trunk_id</field></col>
+				<col><field>rating_group</field></col>
+				<col><field>service_identifier</field></col>
+				<col><field>auth_app_id</field></col>
+				<col><field>auth_session_type</field></col>
+				<col><field>pani</field></col>
+				<col><field>mac</field></col>
+				<col><field>app_provided_party</field></col>
+				<col><field>is_final_allocation</field></col>
+				<col><field>origin_host</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>ro_session</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>session_id</field></col>
+				<col><field>dlg_hash_entry</field></col>
+				<col><field>dlg_hash_id</field></col>
+				<col><field>direction</field></col>
+				<col><field>asserted_identity</field></col>
+				<col><field>callee</field></col>
+				<col><field>start_time</field></col>
+				<col><field>last_event_timestamp</field></col>
+				<col><field>reserved_secs</field></col>
+				<col><field>valid_for</field></col>
+				<col><field>state</field></col>
+				<col><field>incoming_trunk_id</field></col>
+				<col><field>outgoing_trunk_id</field></col>
+				<col><field>rating_group</field></col>
+				<col><field>service_identifier</field></col>
+				<col><field>auth_app_id</field></col>
+				<col><field>auth_session_type</field></col>
+				<col><field>pani</field></col>
+				<col><field>mac</field></col>
+				<col><field>app_provided_party</field></col>
+				<col><field>is_final_allocation</field></col>
+				<col><field>origin_host</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>ro_session</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>session_id</field></col>
+				<col><field>dlg_hash_entry</field></col>
+				<col><field>dlg_hash_id</field></col>
+				<col><field>direction</field></col>
+				<col><field>asserted_identity</field></col>
+				<col><field>callee</field></col>
+				<col><field>start_time</field></col>
+				<col><field>last_event_timestamp</field></col>
+				<col><field>reserved_secs</field></col>
+				<col><field>valid_for</field></col>
+				<col><field>state</field></col>
+				<col><field>incoming_trunk_id</field></col>
+				<col><field>outgoing_trunk_id</field></col>
+				<col><field>rating_group</field></col>
+				<col><field>service_identifier</field></col>
+				<col><field>auth_app_id</field></col>
+				<col><field>auth_session_type</field></col>
+				<col><field>pani</field></col>
+				<col><field>mac</field></col>
+				<col><field>app_provided_party</field></col>
+				<col><field>is_final_allocation</field></col>
+				<col><field>origin_host</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>ro_session</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/ims_charging-table

@@ -0,0 +1,30 @@
+	<!-- Declaration of ro_session table-->
+	<db_table id="ro_session">
+		<table_name>ro_session</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>session_id</field><type>DB1_STR</type></column>
+		<column><field>dlg_hash_entry</field><type>DB1_INT</type></column>
+		<column><field>dlg_hash_id</field><type>DB1_INT</type></column>
+		<column><field>direction</field><type>DB1_INT</type></column>
+		<column><field>asserted_identity</field><type>DB1_STR</type></column>
+		<column><field>callee</field><type>DB1_STR</type></column>
+		<column><field>start_time</field><type>DB1_DATETIME</type></column>
+		<column><field>last_event_timestamp</field><type>DB1_DATETIME</type></column>
+		<column><field>reserved_secs</field><type>DB1_INT</type></column>
+		<column><field>valid_for</field><type>DB1_INT</type></column>
+		<column><field>state</field><type>DB1_INT</type></column>
+		<column><field>incoming_trunk_id</field><type>DB1_STR</type></column>
+		<column><field>outgoing_trunk_id</field><type>DB1_STR</type></column>
+		<column><field>rating_group</field><type>DB1_INT</type></column>
+		<column><field>service_identifier</field><type>DB1_INT</type></column>
+		<column><field>auth_app_id</field><type>DB1_INT</type></column>
+		<column><field>auth_session_type</field><type>DB1_INT</type></column>
+		<column><field>pani</field><type>DB1_STR</type></column>
+		<column><field>mac</field><type>DB1_STR</type></column>
+		<column><field>app_provided_party</field><type>DB1_STR</type></column>
+		<column><field>is_final_allocation</field><type>DB1_INT</type></column>
+		<column><field>origin_host</field><type>DB1_STR</type></column>
+	</db_table>

+ 253 - 0
utils/kamctl/xhttp_pi/ims_usrloc_scscf-mod

@@ -0,0 +1,253 @@
+	<!-- contact provisioning -->
+	<mod><mod_name>contact</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>contact</field></col>
+				<col><field>params</field></col>
+				<col><field>path</field></col>
+				<col><field>received</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>expires</field></col>
+				<col><field>callid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>contact</field></col>
+				<col><field>params</field></col>
+				<col><field>path</field></col>
+				<col><field>received</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>expires</field></col>
+				<col><field>callid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>contact</field></col>
+				<col><field>params</field></col>
+				<col><field>path</field></col>
+				<col><field>received</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>expires</field></col>
+				<col><field>callid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- impu provisioning -->
+	<mod><mod_name>impu</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>impu</field></col>
+				<col><field>barring</field></col>
+				<col><field>reg_state</field></col>
+				<col><field>ccf1</field></col>
+				<col><field>ccf2</field></col>
+				<col><field>ecf1</field></col>
+				<col><field>ecf2</field></col>
+				<col><field>ims_subscription_data</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>impu</field></col>
+				<col><field>barring</field></col>
+				<col><field>reg_state</field></col>
+				<col><field>ccf1</field></col>
+				<col><field>ccf2</field></col>
+				<col><field>ecf1</field></col>
+				<col><field>ecf2</field></col>
+				<col><field>ims_subscription_data</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>impu</field></col>
+				<col><field>barring</field></col>
+				<col><field>reg_state</field></col>
+				<col><field>ccf1</field></col>
+				<col><field>ccf2</field></col>
+				<col><field>ecf1</field></col>
+				<col><field>ecf2</field></col>
+				<col><field>ims_subscription_data</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- impu_contact provisioning -->
+	<mod><mod_name>impu_contact</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>impu_id</field></col>
+				<col><field>contact_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>impu_id</field></col>
+				<col><field>contact_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>impu_id</field></col>
+				<col><field>contact_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- subscriber_scscf provisioning -->
+	<mod><mod_name>subscriber_scscf</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>watcher_uri</field></col>
+				<col><field>watcher_contact</field></col>
+				<col><field>presentity_uri</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>version</field></col>
+				<col><field>local_cseq</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>sockinfo_str</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>watcher_uri</field></col>
+				<col><field>watcher_contact</field></col>
+				<col><field>presentity_uri</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>version</field></col>
+				<col><field>local_cseq</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>sockinfo_str</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>watcher_uri</field></col>
+				<col><field>watcher_contact</field></col>
+				<col><field>presentity_uri</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>version</field></col>
+				<col><field>local_cseq</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>sockinfo_str</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- impu_subscriber provisioning -->
+	<mod><mod_name>impu_subscriber</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>impu_subscriber</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>impu_id</field></col>
+				<col><field>subscriber_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>impu_subscriber</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>impu_id</field></col>
+				<col><field>subscriber_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>impu_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>impu_id</field></col>
+				<col><field>subscriber_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>impu_subscriber</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>

+ 61 - 0
utils/kamctl/xhttp_pi/ims_usrloc_scscf-table

@@ -0,0 +1,61 @@
+	<!-- Declaration of contact table-->
+	<db_table id="contact">
+		<table_name>contact</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>contact</field><type>DB1_STR</type></column>
+		<column><field>params</field><type>DB1_STR</type></column>
+		<column><field>path</field><type>DB1_STR</type></column>
+		<column><field>received</field><type>DB1_STR</type></column>
+		<column><field>user_agent</field><type>DB1_STR</type></column>
+		<column><field>expires</field><type>DB1_DATETIME</type></column>
+		<column><field>callid</field><type>DB1_STR</type></column>
+	</db_table>
+	<!-- Declaration of impu table-->
+	<db_table id="impu">
+		<table_name>impu</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>impu</field><type>DB1_STR</type></column>
+		<column><field>barring</field><type>DB1_INT</type></column>
+		<column><field>reg_state</field><type>DB1_INT</type></column>
+		<column><field>ccf1</field><type>DB1_STR</type></column>
+		<column><field>ccf2</field><type>DB1_STR</type></column>
+		<column><field>ecf1</field><type>DB1_STR</type></column>
+		<column><field>ecf2</field><type>DB1_STR</type></column>
+		<column><field>ims_subscription_data</field><type>DB1_BLOB</type></column>
+	</db_table>
+	<!-- Declaration of impu_contact table-->
+	<db_table id="impu_contact">
+		<table_name>impu_contact</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>impu_id</field><type>DB1_INT</type></column>
+		<column><field>contact_id</field><type>DB1_INT</type></column>
+	</db_table>
+	<!-- Declaration of subscriber_scscf table-->
+	<db_table id="subscriber_scscf">
+		<table_name>subscriber_scscf</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>watcher_uri</field><type>DB1_STR</type></column>
+		<column><field>watcher_contact</field><type>DB1_STR</type></column>
+		<column><field>presentity_uri</field><type>DB1_STR</type></column>
+		<column><field>event</field><type>DB1_INT</type></column>
+		<column><field>expires</field><type>DB1_DATETIME</type></column>
+		<column><field>version</field><type>DB1_INT</type></column>
+		<column><field>local_cseq</field><type>DB1_INT</type></column>
+		<column><field>call_id</field><type>DB1_STR</type></column>
+		<column><field>from_tag</field><type>DB1_STR</type></column>
+		<column><field>to_tag</field><type>DB1_STR</type></column>
+		<column><field>record_route</field><type>DB1_BLOB</type></column>
+		<column><field>sockinfo_str</field><type>DB1_STR</type></column>
+	</db_table>
+	<!-- Declaration of impu_subscriber table-->
+	<db_table id="impu_subscriber">
+		<table_name>impu_subscriber</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>impu_id</field><type>DB1_INT</type></column>
+		<column><field>subscriber_id</field><type>DB1_INT</type></column>
+	</db_table>

+ 448 - 0
utils/kamctl/xhttp_pi/pi_framework.xml

@@ -341,6 +341,36 @@
 		<column><field>room</field><type>DB1_STR</type></column>
 		<column><field>flag</field><type>DB1_INT</type></column>
 	</db_table>
+	<!-- Declaration of ro_session table-->
+	<db_table id="ro_session">
+		<table_name>ro_session</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>hash_entry</field><type>DB1_INT</type></column>
+		<column><field>hash_id</field><type>DB1_INT</type></column>
+		<column><field>session_id</field><type>DB1_STR</type></column>
+		<column><field>dlg_hash_entry</field><type>DB1_INT</type></column>
+		<column><field>dlg_hash_id</field><type>DB1_INT</type></column>
+		<column><field>direction</field><type>DB1_INT</type></column>
+		<column><field>asserted_identity</field><type>DB1_STR</type></column>
+		<column><field>callee</field><type>DB1_STR</type></column>
+		<column><field>start_time</field><type>DB1_DATETIME</type></column>
+		<column><field>last_event_timestamp</field><type>DB1_DATETIME</type></column>
+		<column><field>reserved_secs</field><type>DB1_INT</type></column>
+		<column><field>valid_for</field><type>DB1_INT</type></column>
+		<column><field>state</field><type>DB1_INT</type></column>
+		<column><field>incoming_trunk_id</field><type>DB1_STR</type></column>
+		<column><field>outgoing_trunk_id</field><type>DB1_STR</type></column>
+		<column><field>rating_group</field><type>DB1_INT</type></column>
+		<column><field>service_identifier</field><type>DB1_INT</type></column>
+		<column><field>auth_app_id</field><type>DB1_INT</type></column>
+		<column><field>auth_session_type</field><type>DB1_INT</type></column>
+		<column><field>pani</field><type>DB1_STR</type></column>
+		<column><field>mac</field><type>DB1_STR</type></column>
+		<column><field>app_provided_party</field><type>DB1_STR</type></column>
+		<column><field>is_final_allocation</field><type>DB1_INT</type></column>
+		<column><field>origin_host</field><type>DB1_STR</type></column>
+	</db_table>
 	<!-- Declaration of dialog_in table-->
 	<db_table id="dialog_in">
 		<table_name>dialog_in</table_name>
@@ -464,6 +494,67 @@
 		<column><field>t_spi_uc</field><type>DB1_INT</type></column>
 		<column><field>t_spi_us</field><type>DB1_INT</type></column>
 	</db_table>
+	<!-- Declaration of contact table-->
+	<db_table id="contact">
+		<table_name>contact</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>contact</field><type>DB1_STR</type></column>
+		<column><field>params</field><type>DB1_STR</type></column>
+		<column><field>path</field><type>DB1_STR</type></column>
+		<column><field>received</field><type>DB1_STR</type></column>
+		<column><field>user_agent</field><type>DB1_STR</type></column>
+		<column><field>expires</field><type>DB1_DATETIME</type></column>
+		<column><field>callid</field><type>DB1_STR</type></column>
+	</db_table>
+	<!-- Declaration of impu table-->
+	<db_table id="impu">
+		<table_name>impu</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>impu</field><type>DB1_STR</type></column>
+		<column><field>barring</field><type>DB1_INT</type></column>
+		<column><field>reg_state</field><type>DB1_INT</type></column>
+		<column><field>ccf1</field><type>DB1_STR</type></column>
+		<column><field>ccf2</field><type>DB1_STR</type></column>
+		<column><field>ecf1</field><type>DB1_STR</type></column>
+		<column><field>ecf2</field><type>DB1_STR</type></column>
+		<column><field>ims_subscription_data</field><type>DB1_BLOB</type></column>
+	</db_table>
+	<!-- Declaration of impu_contact table-->
+	<db_table id="impu_contact">
+		<table_name>impu_contact</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>impu_id</field><type>DB1_INT</type></column>
+		<column><field>contact_id</field><type>DB1_INT</type></column>
+	</db_table>
+	<!-- Declaration of subscriber_scscf table-->
+	<db_table id="subscriber_scscf">
+		<table_name>subscriber_scscf</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>watcher_uri</field><type>DB1_STR</type></column>
+		<column><field>watcher_contact</field><type>DB1_STR</type></column>
+		<column><field>presentity_uri</field><type>DB1_STR</type></column>
+		<column><field>event</field><type>DB1_INT</type></column>
+		<column><field>expires</field><type>DB1_DATETIME</type></column>
+		<column><field>version</field><type>DB1_INT</type></column>
+		<column><field>local_cseq</field><type>DB1_INT</type></column>
+		<column><field>call_id</field><type>DB1_STR</type></column>
+		<column><field>from_tag</field><type>DB1_STR</type></column>
+		<column><field>to_tag</field><type>DB1_STR</type></column>
+		<column><field>record_route</field><type>DB1_BLOB</type></column>
+		<column><field>sockinfo_str</field><type>DB1_STR</type></column>
+	</db_table>
+	<!-- Declaration of impu_subscriber table-->
+	<db_table id="impu_subscriber">
+		<table_name>impu_subscriber</table_name>
+		<db_url_id>mysql</db_url_id>
+		<column><field>id</field><type>DB1_INT</type></column>
+		<column><field>impu_id</field><type>DB1_INT</type></column>
+		<column><field>subscriber_id</field><type>DB1_INT</type></column>
+	</db_table>
 	<!-- Declaration of lcr_gw table-->
 	<db_table id="lcr_gw">
 		<table_name>lcr_gw</table_name>
@@ -2470,6 +2561,110 @@
 			</clause_cols>
 		</cmd>
 	</mod>
+	<!-- ro_session provisioning -->
+	<mod><mod_name>ro_session</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>ro_session</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>hash_entry</field></col>
+				<col><field>hash_id</field></col>
+				<col><field>session_id</field></col>
+				<col><field>dlg_hash_entry</field></col>
+				<col><field>dlg_hash_id</field></col>
+				<col><field>direction</field></col>
+				<col><field>asserted_identity</field></col>
+				<col><field>callee</field></col>
+				<col><field>start_time</field></col>
+				<col><field>last_event_timestamp</field></col>
+				<col><field>reserved_secs</field></col>
+				<col><field>valid_for</field></col>
+				<col><field>state</field></col>
+				<col><field>incoming_trunk_id</field></col>
+				<col><field>outgoing_trunk_id</field></col>
+				<col><field>rating_group</field></col>
+				<col><field>service_identifier</field></col>
+				<col><field>auth_app_id</field></col>
+				<col><field>auth_session_type</field></col>
+				<col><field>pani</field></col>
+				<col><field>mac</field></col>
+				<col><field>app_provided_party</field></col>
+				<col><field>is_final_allocation</field></col>
+				<col><field>origin_host</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>ro_session</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>session_id</field></col>
+				<col><field>dlg_hash_entry</field></col>
+				<col><field>dlg_hash_id</field></col>
+				<col><field>direction</field></col>
+				<col><field>asserted_identity</field></col>
+				<col><field>callee</field></col>
+				<col><field>start_time</field></col>
+				<col><field>last_event_timestamp</field></col>
+				<col><field>reserved_secs</field></col>
+				<col><field>valid_for</field></col>
+				<col><field>state</field></col>
+				<col><field>incoming_trunk_id</field></col>
+				<col><field>outgoing_trunk_id</field></col>
+				<col><field>rating_group</field></col>
+				<col><field>service_identifier</field></col>
+				<col><field>auth_app_id</field></col>
+				<col><field>auth_session_type</field></col>
+				<col><field>pani</field></col>
+				<col><field>mac</field></col>
+				<col><field>app_provided_party</field></col>
+				<col><field>is_final_allocation</field></col>
+				<col><field>origin_host</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>ro_session</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>session_id</field></col>
+				<col><field>dlg_hash_entry</field></col>
+				<col><field>dlg_hash_id</field></col>
+				<col><field>direction</field></col>
+				<col><field>asserted_identity</field></col>
+				<col><field>callee</field></col>
+				<col><field>start_time</field></col>
+				<col><field>last_event_timestamp</field></col>
+				<col><field>reserved_secs</field></col>
+				<col><field>valid_for</field></col>
+				<col><field>state</field></col>
+				<col><field>incoming_trunk_id</field></col>
+				<col><field>outgoing_trunk_id</field></col>
+				<col><field>rating_group</field></col>
+				<col><field>service_identifier</field></col>
+				<col><field>auth_app_id</field></col>
+				<col><field>auth_session_type</field></col>
+				<col><field>pani</field></col>
+				<col><field>mac</field></col>
+				<col><field>app_provided_party</field></col>
+				<col><field>is_final_allocation</field></col>
+				<col><field>origin_host</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>ro_session</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
 	<!-- dialog_in provisioning -->
 	<mod><mod_name>dialog_in</mod_name>
 		<cmd><cmd_name>show</cmd_name>
@@ -2937,6 +3132,259 @@
 			</clause_cols>
 		</cmd>
 	</mod>
+	<!-- contact provisioning -->
+	<mod><mod_name>contact</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>contact</field></col>
+				<col><field>params</field></col>
+				<col><field>path</field></col>
+				<col><field>received</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>expires</field></col>
+				<col><field>callid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>contact</field></col>
+				<col><field>params</field></col>
+				<col><field>path</field></col>
+				<col><field>received</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>expires</field></col>
+				<col><field>callid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>contact</field></col>
+				<col><field>params</field></col>
+				<col><field>path</field></col>
+				<col><field>received</field></col>
+				<col><field>user_agent</field></col>
+				<col><field>expires</field></col>
+				<col><field>callid</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>contact</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- impu provisioning -->
+	<mod><mod_name>impu</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>impu</field></col>
+				<col><field>barring</field></col>
+				<col><field>reg_state</field></col>
+				<col><field>ccf1</field></col>
+				<col><field>ccf2</field></col>
+				<col><field>ecf1</field></col>
+				<col><field>ecf2</field></col>
+				<col><field>ims_subscription_data</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>impu</field></col>
+				<col><field>barring</field></col>
+				<col><field>reg_state</field></col>
+				<col><field>ccf1</field></col>
+				<col><field>ccf2</field></col>
+				<col><field>ecf1</field></col>
+				<col><field>ecf2</field></col>
+				<col><field>ims_subscription_data</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>impu</field></col>
+				<col><field>barring</field></col>
+				<col><field>reg_state</field></col>
+				<col><field>ccf1</field></col>
+				<col><field>ccf2</field></col>
+				<col><field>ecf1</field></col>
+				<col><field>ecf2</field></col>
+				<col><field>ims_subscription_data</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>impu</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- impu_contact provisioning -->
+	<mod><mod_name>impu_contact</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>impu_id</field></col>
+				<col><field>contact_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>impu_id</field></col>
+				<col><field>contact_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>impu_id</field></col>
+				<col><field>contact_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>impu_contact</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- subscriber_scscf provisioning -->
+	<mod><mod_name>subscriber_scscf</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>watcher_uri</field></col>
+				<col><field>watcher_contact</field></col>
+				<col><field>presentity_uri</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>version</field></col>
+				<col><field>local_cseq</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>sockinfo_str</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>watcher_uri</field></col>
+				<col><field>watcher_contact</field></col>
+				<col><field>presentity_uri</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>version</field></col>
+				<col><field>local_cseq</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>sockinfo_str</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_UPDATE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+			<query_cols>
+				<col><field>watcher_uri</field></col>
+				<col><field>watcher_contact</field></col>
+				<col><field>presentity_uri</field></col>
+				<col><field>event</field></col>
+				<col><field>expires</field></col>
+				<col><field>version</field></col>
+				<col><field>local_cseq</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>sockinfo_str</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>subscriber_scscf</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
+	<!-- impu_subscriber provisioning -->
+	<mod><mod_name>impu_subscriber</mod_name>
+		<cmd><cmd_name>show</cmd_name>
+			<db_table_id>impu_subscriber</db_table_id>
+			<cmd_type>DB1_QUERY</cmd_type>
+			<query_cols>
+				<col><field>id</field><link_cmd>update</link_cmd></col>
+				<col><field>impu_id</field></col>
+				<col><field>subscriber_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>add</cmd_name>
+			<db_table_id>impu_subscriber</db_table_id>
+			<cmd_type>DB1_INSERT</cmd_type>
+			<query_cols>
+				<col><field>impu_id</field></col>
+				<col><field>subscriber_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>update</cmd_name>
+			<db_table_id>impu_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>impu_id</field></col>
+				<col><field>subscriber_id</field></col>
+			</query_cols>
+		</cmd>
+		<cmd><cmd_name>delete</cmd_name>
+			<db_table_id>impu_subscriber</db_table_id>
+			<cmd_type>DB1_DELETE</cmd_type>
+			<clause_cols>
+				<col><field>id</field><operator>=</operator></col>
+			</clause_cols>
+		</cmd>
+	</mod>
 	<!-- lcr_gw provisioning -->
 	<mod><mod_name>lcr_gw</mod_name>
 		<cmd><cmd_name>show</cmd_name>