Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt_asterisk-odbc [2013/03/14 17:06] abelbeck |
userdoc:tt_asterisk-odbc [2014/07/03 13:39] abelbeck [Mass Deployment SQL Table] |
||
---|---|---|---|
Line 38: | Line 38: | ||
The first step in using func_odbc dialplan functions is to create a database with some SQL schema, for example when the AstLinux **SQL-Data** tab in the web interface is first accessed it automatically creates the following schema in file ''/ | The first step in using func_odbc dialplan functions is to create a database with some SQL schema, for example when the AstLinux **SQL-Data** tab in the web interface is first accessed it automatically creates the following schema in file ''/ | ||
- | CREATE TABLE ' | + | CREATE TABLE IF NOT EXISTS |
' | ' | ||
' | ' | ||
- | ' | + | ' |
- | ' | + | ' |
' | ' | ||
' | ' | ||
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
); | ); | ||
| | ||
- | CREATE TABLE ' | + | CREATE TABLE IF NOT EXISTS |
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
| | ||
- | CREATE TABLE ' | + | CREATE TABLE IF NOT EXISTS |
' | ' | ||
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
' | ' | ||
); | ); | ||
Line 95: | Line 95: | ||
It is very simple and very powerful! | It is very simple and very powerful! | ||
- | !!Tip ->!! Teach yourself some basic SQL commands. | + | !!Tip ->!! Teach yourself some basic SQL commands. |
+ | ===== Mass Deployment SQL Table ===== | ||
+ | |||
+ | When using the **[[userdoc: | ||
+ | |||
+ | !!Note: AstLinux 1.1.7 or later is required!! | ||
+ | |||
+ | Using the SQL-Data tab in the web interface, view an example ' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The SQL schema is of the form: | ||
+ | |||
+ | CREATE TABLE ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | Following the examples above, adding a context to ''/ | ||
+ | |||
+ | Mass Deployment detailed documentation found here: | ||
+ | **[[userdoc: | ||