Wei Kun
2005-Aug-10 12:04 UTC
[Asterisk-Users] app_voicemail.c still looking for config file even I try to configure the voicemail from database.
Hi I am trying to make asterisk load config from database, so far I get the sip, extension working, but voicemail seems still looking for config file, not from the database. the extconfig.conf looks like ... sipusers => mysql,asterisk,sip_buddies sippeers => mysql,asterisk,sip_buddies extensions => mysql,asterisk,extensions_table voicemail => mysql,asterisk,voicemail_users .. the table looks like mysql> select * from voicemail_users; +----------+-------------+---------+---------+----------+----------+-------- ---------------+------+ | uniqueid | customer_id | context | mailbox | password | fullname | email | page | +----------+-------------+---------+---------+----------+----------+-------- ---------------+------+ | 1 | 2000 | local | 2000 | 4321 | Wei Kun | wei-kun@mediaring.com | | | 2 | 2001 | local | 2001 | 8765 | Wei Kun | kunwei2005@gmail.com | | +----------+-------------+---------+---------+----------+----------+-------- ---------------+------+ But when I call, it prints Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config file for '2001' Do I need put something in voicemail.conf to instruct app_voicemail.c to look it up from database? Thanks Kun
Matthew Boehm
2005-Aug-11 08:40 UTC
[Asterisk-Users] app_voicemail.c still looking for config file even I try to configure the voicemail from database.
Wei Kun wrote:> Hi > I am trying to make asterisk load config from database, so far I get the > sip, extension working, but voicemail seems still looking for config file, > not from the database. > Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config > file for '2001'How exactly are you calling it? Are you specifying the right voicemail context? What did the debug log say? -Matthew
Wei Kun
2005-Aug-14 18:19 UTC
[Asterisk-Users] app_voicemail.c still looking for config fileevenI try to configure the voicemail from database.
Thanks. It works correctly with this change. Kun -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Matthew Boehm Sent: Friday, August 12, 2005 9:26 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] app_voicemail.c still looking for config fileevenI try to configure the voicemail from database. Wei Kun wrote:> mysql> select * from extensions_table; > +----+----------+-------+----------+---------------+----------------+ > | id | context | exten | priority | app | appdata | > +----+----------+-------+----------+---------------+----------------+ > | 1 | from-sip | 2000 | 1 | Dial | SIP/2000|20 | > | 2 | from-sip | 2000 | 2 | Voicemail | u2000 |You need to call voicemail app with a context. Change the line above to show u200@mycontext -Matthew _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users