[Asterisk-Users] Voicemail and MySQL
Matthew Boehm
mboehm at cytelcom.com
Mon Dec 13 13:21:15 MST 2004
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
More information about the asterisk-users
mailing list