Hi Eugene,
On Mon, 14 May 2007 13:27:56 +0400, Eugene Prokopiev <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible to use VoiceMail with SQLite or any other resource module?
>
> I tried to use sqlite in such way:
>
> # cat modules.conf
> [modules]
> autoload => no
> load => res_features.so
> load => res_adsi.so
> load => res_sqlite.so
> load => chan_local.so
> load => chan_iax2.so
> load => chan_sip.so
> load => codec_ulaw.so
> load => codec_alaw.so
> load => format_pcm.so
> load => format_pcm_alaw.so
> load => format_wav.so
> load => format_ogg_vorbis.so
> load => func_timeout.so
> load => func_callerid.so
> load => func_strings.so
> load => pbx_ael.so
> load => app_proc.so
> load => app_playback.so
> load => app_dial.so
> load => app_muxmon.so
> load => app_voicemail.so
> load => app_rxfax.so
>
> # cat res_sqlite.conf
> [general]
> reload => no
> dbfile => db
>
> # sqlite3 /var/lib/callweaver/db
> SQLite version 3.3.15
> Enter ".help" for instructions
> sqlite> .schema
> CREATE TABLE voicemail_users (
> uniqueid int(11) not null,
> customer_id int(11) not null,
> context varchar(50) not null,
> mailbox int(5) not null,
> password varchar(4) not null,
> fullname varchar(50) not null,
> email varchar(50) not null,
> pager varchar(50) not null,
> stamp timestamp(14) not null
> );
> sqlite> select * from voicemail_users;
> 0|0|local|101|101||||
>
> # cat extconfig.conf
> voicemail => mysql,callweaver,voicemail_users
>
> # cat voicemail.conf
> [general]
> format=wav
> maxmessage=300
> [local]
> ;101 => 101
>
> On saving message I got:
>
> -- Executing VoiceMail("SIP/sipnet.ru-00645710", "[EMAIL PROTECTED]") in
> new stack
> May 14 13:30:48 WARNING[1092139328]: app_voicemail.c:2345
> leave_voicemail: No entry in voicemail config file for '101'
>
> What's wrong?
>
> --
> Thanks,
> Eugene Prokopiev
>
> _______________________________________________
> Callweaver-users mailing list
> [email protected]
> http://lists.callweaver.org/mailman/listinfo/callweaver-users
Don't really know if voicemail works with sqlite but extconf is wrong.
> # cat extconfig.conf
> voicemail => mysql,callweaver,voicemail_users
this only work with mysql. Perhaps something like:
voicemail => sqlite,callweaver,voicemail_users
--
Nelson Silva
-----------------------
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users