| 1 |
<?xml version="1.0"?> |
| 2 |
<framework> |
| 3 |
<!-- Declare all db connections |
| 4 |
Each db connection MUST have: |
| 5 |
- an "id" to be identified by a tabe |
| 6 |
- a URL pointing to the actual database |
| 7 |
--> |
| 8 |
<db_url id="mysql">mysql://kamailio:kamailiorw@localhost/kamailio</db_url> |
| 9 |
<!-- Declare all tables |
| 10 |
Each table MUST have: |
| 11 |
- an 'id' to be identified by a command |
| 12 |
- a 'table_name' pointing to the actual table name in the database |
| 13 |
- a 'db_url_id' to identify the db connection |
| 14 |
- multiple 'column' nodes with 'field', 'type' and 'validation': |
| 15 |
/* type */ |
| 16 |
DB1_INT, /**< represents an 32 bit integer number */ |
| 17 |
DB1_BIGINT, /**< represents an 64 bit integer number */ |
| 18 |
DB1_DOUBLE, /**< represents a floating point number */ |
| 19 |
DB1_STRING, /**< represents a zero terminated const char* */ |
| 20 |
DB1_STR, /**< represents a string of 'str' type */ |
| 21 |
DB1_DATETIME, /**< represents date and time */ |
| 22 |
DB1_BLOB, /**< represents a large binary object */ |
| 23 |
DB1_BITMAP /**< a one-dimensional array of 32 flags */ |
| 24 |
/* validation */ |
| 25 |
P_HOST_PORT /**< represents [proto:]host[:port] */ |
| 26 |
P_IPV4_PORT /**< represents [proto:]IPv4[:port] */ |
| 27 |
IPV4 /**< represents an IPv4 */ |
| 28 |
URI /**< represents a SIP URI */ |
| 29 |
URI_IPV4HOST /**< represents a SIP URI w/ IPv4 as host */ |
| 30 |
--> |
| 31 |
|