I tried to use ONE entry of my voicemail.conf to put into the database:
[other]
;602=1357,Ronald Wiplinger 602,ronald_wiplinger@yahoo.com
INSERT INTO `voicemail_users` ( `uniqueid` , `customer_id` , `context` ,
`mailbox` , `password` , `fullname` , `email` , `pager` , `stamp` ,
`attach` , `saycid` , `hidefromdir` )
VALUES ('1', '602', 'other', '602',
'3525', 'Ronald Wiplinger',
'ronald_wiplinger@yahoo.com', '', NOW( ) , 'no',
'yes', 'no')
extconfig.conf includes:
voicemail => mysql,astconf,voicemail_users
*CLI> reload
-- Executing VoiceMail("SIP/601-a9a3", "b602") in new stack
Apr 4 17:48:34 WARNING[18977]: app_voicemail.c:2227 leave_voicemail: No
entry in voicemail config file for '602'
What do I miss?
bye
Ronald
Try having the voicemail command do Voicemail(b602@other) On Apr 4, 2005 4:56 AM, Ronald Wiplinger <ronald@elmit.com> wrote:> I tried to use ONE entry of my voicemail.conf to put into the database: > > [other] > ;602=1357,Ronald Wiplinger 602,ronald_wiplinger@yahoo.com > > INSERT INTO `voicemail_users` ( `uniqueid` , `customer_id` , `context` , > `mailbox` , `password` , `fullname` , `email` , `pager` , `stamp` , > `attach` , `saycid` , `hidefromdir` ) > VALUES ('1', '602', 'other', '602', '3525', 'Ronald Wiplinger', > 'ronald_wiplinger@yahoo.com', '', NOW( ) , 'no', 'yes', 'no') > > extconfig.conf includes: > voicemail => mysql,astconf,voicemail_users > > *CLI> reload > > -- Executing VoiceMail("SIP/601-a9a3", "b602") in new stack > Apr 4 17:48:34 WARNING[18977]: app_voicemail.c:2227 leave_voicemail: No > entry in voicemail config file for '602' > > What do I miss? > > bye > > Ronald > > _______________________________________________ > 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 >
I have the latest Asterisk CVS as of 4/21/05 and a Fedora FC3 machine. I also set up the system to use Realtime for the voicemail mailboxes. I am successfully using Realtime for extensions and sip clients on this machine, but as yet, cannot get the voicemail system to recognize the mailboxes as defined in the MySQL database. The other tables, Sip and Extensions are part of the same database and they are accessed correctly. When the voicemail system does a MySQL query, the debug output shows that the correct mailbox is requested, but the context in the query is "default", not the context that should be active at the moment, in my case "analog-phones". Of course, if I define the extension in the voicemail.conf file, it works perfectly for the same context. I must be doing something wrong, but I cannot see what. Any help would be greatly appreciated. Ed Horton
Edwin Horton wrote:> I have the latest Asterisk CVS as of 4/21/05 and a Fedora FC3 > machine. I also set up the system to use Realtime for the voicemail > mailboxes. I am successfully using Realtime for extensions and sip > clients on this machine, but as yet, cannot get the voicemail system > to recognize the mailboxes as defined in the MySQL database. The > other tables, Sip and Extensions are part of the same database and > they are accessed correctly. > > When the voicemail system does a MySQL query, the debug output shows > that the correct mailbox is requested, but the context in the query > is "default", not the context that should be active at the moment, in > my case "analog-phones". Of course, if I define the extension in the > voicemail.conf file, it works perfectly for the same context. > > I must be doing something wrong, but I cannot see what. Any help > would be greatly appreciated. > > Ed HortonSend your extensions.conf section relative to this VM call. -Matthew
Thank you both for the insight. The original problem was that the voice
mail system returned a "no mailbox found" error since the query was
looking
for a mailbox in the "default" context and I had defined them in other
contexts, in my case, "from-sip" and "analog-phones". It
seems I am
confusing extension context with voicemail context. I included the
following in my extension file:
exten => 2201,1,agi,notify.agi
exten => 2201,2,Dial(Zap/9,20)
exten => 2201,3,Answer
exten => 2201,4,Wait(1)
exten => 2201,5,Voicemail(u${EXTEN})
exten => 2201,6,Hangup
exten => 2201,105,Voicemail(b${EXTEN})
exten => 2201,106,Hangup
For the channel definition in the zapata.conf file, I have the following:
context = analog-phones
group = 3
pickupgroup = 3
signalling = fxo_ks
adsi = yes
mailbox = 2201@analog-phones
callerid = "Phone 1" <2201>
channel => 9
I realize that I did not need to use the EXTEN variable, since I had unique
entries in this case. I added {EXTEN}@analog-phones ( or could have used
the variable) and all works correctly. Thank you. I assumed that the
"context" entry in the voicemail_users table identified the mailbox
location. In the past, before realtime, and with the mailboxes defined in
voicemail.conf, I did not have to append the context in the extension table.
I don't really care that it is required now, but why did it work before?
Regards,
Ed Horton