Skip to content
Snippets Groups Projects
Commit 37930961 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

add optional 'extended ODBC storage' mode (issue #4403)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent aad6fbb8
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,11 @@ CFLAGS+=-fPIC ...@@ -71,7 +71,11 @@ CFLAGS+=-fPIC
# If you have MySQL 4.1 or later you can use ODBC # If you have MySQL 4.1 or later you can use ODBC
# storage # storage
# #
# Uncomment to use odbc storage
#CFLAGS+=-DUSE_ODBC_STORAGE #CFLAGS+=-DUSE_ODBC_STORAGE
# Uncomment for extended odbc voicemail storage
#CFLAGS+=-DEXTENDED_ODBC_STORAGE
# See doc/README.odbcstorage for more information
all: $(APPS) all: $(APPS)
......
This diff is collapsed.
...@@ -6,20 +6,28 @@ instead of using a file. This is *not* a full realtime engine and ...@@ -6,20 +6,28 @@ instead of using a file. This is *not* a full realtime engine and
*only* supports ODBC. The table description for the "voicemessages" *only* supports ODBC. The table description for the "voicemessages"
table is as follows: table is as follows:
+--------------+-------------+------+-----+---------+-------+ +----------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra | | Field | Type | Null | Key | Default | Extra |
+--------------+-------------+------+-----+---------+-------+ +----------------+-------------+------+-----+---------+-------+
| msgnum | int(11) | YES | | NULL | | | msgnum | int(11) | YES | | NULL | |
| dir | varchar(80) | YES | MUL | NULL | | | dir | varchar(80) | YES | MUL | NULL | |
| context | varchar(80) | YES | | NULL | | | context | varchar(80) | YES | | NULL | |
| macrocontext | varchar(80) | YES | | NULL | | | macrocontext | varchar(80) | YES | | NULL | |
| callerid | varchar(40) | YES | | NULL | | | callerid | varchar(40) | YES | | NULL | |
| origtime | varchar(40) | YES | | NULL | | | origtime | varchar(40) | YES | | NULL | |
| duration | varchar(20) | YES | | NULL | | | duration | varchar(20) | YES | | NULL | |
| recording | longblob | YES | | NULL | | | mailboxuser | varchar(80) | YES | | NULL | |*
+--------------+-------------+------+-----+---------+-------+ | mailboxcontext | varchar(80) | YES | | NULL | |*
| recording | longblob | YES | | NULL | |
+----------------+-------------+------+-----+---------+-------+
*=Denotes new fieldnames, define EXTENDED_ODBC_STORAGE in
apps/Makefile to enable the functionality.
The database name (from /etc/asterisk/res_odbc.conf) is in the The database name (from /etc/asterisk/res_odbc.conf) is in the
"odbcstorage" variable in the general section. "odbcstorage" variable in the general section of voicemail.conf.
You may modify the voicemessages table name by using
odbctable=??? in voicemail.conf
Mark
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment