[Asterisk-Users] Voicemail and MySQL

VCI Help Desk admin at vci.net
Mon Dec 13 13:36:00 MST 2004


    Yeah, I don't believe that new feature wasn't in the one I made my notes
with a few months ago. I just assumed that context was the same as in
sip.conf and extensions.conf

      Bill





----- Original Message ----- 
From: Matthew Boehm
To: Asterisk Users Mailing List - Non-Commercial Discussion
Sent: Monday, December 13, 2004 2:21 PM
Subject: Re: [Asterisk-Users] Voicemail and MySQL


Ahhhhhhhhhhhhhhhhhhhh..now we find the problem.
Voicemailmain does NOT use the context that calls it.
haha..finally found the problem.

You must call it as VoicemailMain(@from-sip) if you want it to look for
mailbox in a specific context.

I knew it was something simple.

-Matthew

----- Original Message ----- 
From: "Bill" <admin at vci.net>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Monday, December 13, 2004 1:04 PM
Subject: [Asterisk-Users] Voicemail and MySQL


>     I have Asterisk talking to MySQL using Realtime but for some reason I
> keep getting the wrong context used when Realtime makes the MySQL call. I
> can see this in my /var/log/mysql.log file. Because of this I can't login
to
> VoicemailMain from my X-Ten phone. I can login if I statically configure
the
> voicemail user in voicemail.conf but I prefer the MySQL.
>
>     SELECT * FROM users WHERE mailbox = '0063' AND context = 'default'
>
>     In my sip.conf file I have the default settings except the default
> context is set. I removed all the example SIP configs further down the
> config.
>
>     [general]
>     context=from-sip     ;Default context for incoming calls
>
>     In my extensions.conf file I have the following. All example extension
> configs have been removed.
>
>     [from-sip]
>     exten => 8500,1,VoicemailMain
>     exten => 8500,n,Hangup
>
>     What am I doing wrong?
>
>
>       Bill
>
> _______________________________________________
> 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