[Asterisk-Users] app_voicemail.c still looking for configfileeven I try to configure the voicemail from database.

Wei Kun wei-kun at mediaring.com
Thu Aug 11 20:53:05 MST 2005


I search and find this msg also addressing my problem.


[Asterisk-Users] Asterisk voicemail from mysql no longer working
Umar Sear asterisk-users at lists.digium.com
Wed, 28 Jul 2004 14:04:22 +0100 (BST)

    * Previous message: [Asterisk-Users] Asterisk voicemail from mysql no
longer working
    * Next message: [Asterisk-Users] Best Linux for Asterisk
    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Further invetigation revealed that app voicemail did
not like the fact that I had the context set to
'local' as apposed to 'default'

Any ideas' or shall I raise this as a bug ?

Umar.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Wei Kun
Sent: Friday, August 12, 2005 9:51 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] app_voicemail.c still looking for
configfileeven I try to configure the voicemail from database.


Previously I was using voicemail.conf. It works well.
# cat voicemail.conf
[general]

format=wav

[local]

2000 => 4321, Wei Kun, wei-kun at mediaring.com
2001 => 8383, Wei Kun, kunwei2005 at gmail.com

So I moved all the data into DB, and comment out items in voicemail.conf

mysql> select * from voicemail_users;
+----------+-------------+---------+---------+----------+----------+--------
---------------+------+
| uniqueid | customer_id | context | mailbox | password | fullname | email
| page |
+----------+-------------+---------+---------+----------+----------+--------
---------------+------+
|        1 |        2000 | local   |    2000 | 4321     | Wei Kun  |
wei-kun at mediaring.com |      |
|        2 |        2001 | local   |    2001 | 8765     | Wei Kun  |
kunwei2005 at gmail.com  |      |
+----------+-------------+---------+---------+----------+----------+--------
---------------+------+
2 rows in set (0.03 sec)

The extension table looks like

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          |
|  3 | from-sip | 2000  |      102 | Voicemail     | b2000          |
|  4 | from-sip | 2000  |      103 | Hangup        |                |
|  5 | from-sip | 2001  |        1 | Dial          | SIP/2001|20    |
|  6 | from-sip | 2001  |        2 | Voicemail     | u2001          |
|  7 | from-sip | 2001  |      102 | Voicemail     | b2001          |
|  8 | from-sip | 2001  |      103 | Hangup        |                |
|  9 | from-sip | 2999  |        1 | VoicemailMain | ${CALLERIDNUM} |
+----+----------+-------+----------+---------------+----------------+
9 rows in set (0.01 sec)

If I call 2001 from 2000, it take priority 1  and ring, and go to priority
2, now it get warning
Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config
file for '2001'

no debug regarding this part. It looks like asterisk still looking for the
config file?

The extconfig looks like

voicemail => mysql,asterisk,voicemail_users

Kun


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Matthew
Boehm
Sent: Thursday, August 11, 2005 11:40 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] app_voicemail.c still looking for config
fileeven 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

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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




More information about the asterisk-users mailing list