asterisk different voicemail storages
Tzafrir Cohen
tzafrir.cohen@xorcom.com
Sat, 12 Mar 2005 00:06:03 +0200
Hi
There is one place where the Asterisk code depends on stuff from
asterisk-addons: apps/app_voicemail.c has all the storage-related
functions surrendered by #ifdef-s and thus different "implementations"
of the same "interface" are used depending on the build-time
configuration.
This means that if we build app_voicemail.so with support for
definitions in plain config files, we can't use a storage in postgresql
DB and vise-versa.
The solution would probably be to build app_voicemail.so,
app_voicemail_gq.so (with defines for pgsql) and app_voicemail_my.so
(with defines for mysql).
If we want to keep the mysql stuff in the addons package: any elegant
way of bringing the relevant files into the addons build environment?
Although I believe that the latter is a temporary issue, as it seems
that in the HEAD version the mysql and postgresql ifdef-s are gone, and
only odbc is used. The original problem of setting the storage type at
build tim remains.
--
Tzafrir Cohen icq#16849755 +972-50-7952406
tzafrir.cohen@xorcom.com http://www.xorcom.com