[asterisk-users] Directory app not working with realtime

Tech Support asterisk at voipbusiness.us
Thu Jul 31 10:17:21 CDT 2014


 

    This is what I have in my configs. My debug shows that it is using realtime for voicemail when using the ‘directory’ application, but it's not working and can't find any extensions. However, checking voicemail does work with this configuration. My voicemail context is called ‘default-Acme’.

 

extconfig.conf:

; Use MySQL, the 'userportal' database, and the 'voicemail' table.

[settings]

voicemail => mysql,userportal,voicemail

 

 

voicemail.conf:

[general]

searchcontexts=yes

 

 

res_config_mysql.conf:

[userportal]

dbhost = 127.0.0.1

dbname = userportal

dbuser = XXXXX

dbpass = YYYYY

dbport = 3306

dbsock = /var/lib/mysql/mysql.sock

 

 

Debug: 

[Jul 31 11:00:49] VERBOSE[20256] config.c:   == Parsing '/etc/asterisk/voicemail.conf': [Jul 31 11:00:49] DEBUG[20256] config.c: Parsing /etc/asterisk/voicemail.conf

[Jul 31 11:00:49] VERBOSE[20256] config.c:   == Found

[Jul 31 11:00:49] DEBUG[20256] res_config_mysql.c: MySQL RealTime: Connection okay.

[Jul 31 11:00:49] DEBUG[20256] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM voicemail WHERE mailbox LIKE '%' AND context = 'default-Acme' ORDER BY mailbox

 

 

Thanks;

John

 

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Scott Griepentrog
Sent: Wednesday, July 30, 2014 4:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Directory app not working with realtime

 

I just took a peak at that version of app_voicemail and the code definitely reads from realtime.  I would suggest:

 

1) Posting your (password sanitized) configs to see if someone can spot a problem

 

2) Running with debug and verbose messages enabled and checking the log for helpful diagnostics describing why it isn't working.

 

 

On Wed, Jul 30, 2014 at 10:32 AM, Tech Support <asterisk at voipbusiness.us> wrote:

Scott;

    I’m using Asterisk’s built-in application “Directory”, not the php script. 

Thanks;

John

 

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Scott Griepentrog
Sent: Wednesday, July 30, 2014 10:59 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Directory app not working with realtime

 

For clarification: I was speaking of the "directory.php" which didn't support realtime last I looked at the code.

 

The app_directory built in to Asterisk should support realtime.

 

Can you determine which one you're using?

 

 

On Wed, Jul 30, 2014 at 9:46 AM, Scott Griepentrog <sgriepentrog at digium.com> wrote:

The last time I looked at the directory application, it was hard coded to read the voicemail.conf file directly.  Unless there is a newer version that can be configured to read the database, it would have to be modified.

 

 

On Wed, Jul 30, 2014 at 8:55 AM, Tech Support <asterisk at voipbusiness.us> wrote:

All;

    I’m currently running Asterisk 1.8.15-cert7 and am using realtime to store my voicemail configuration. The voicemail application works fine, but the problem I have is that the ‘Directory’ app cannot find any entries because there are no entries in the voicemail.conf file. When I add a context and an extension entry in voicemail.conf, it works the way it should. Is there something that I’m missing here? Any insight at all would be greatly appreciated.

Thanks;

John

 

Tech Support

Tech Support

VoIP Business Solutions

240-215-3479 (Work/Fax)

support at voipbusiness.us <mailto:fsd at voipbusiness.us> 

 

 

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users





 

-- 

Image removed by sender. Digium logo

Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org





 

-- 

Image removed by sender. Digium logo

Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users





 

-- 

Image removed by sender. Digium logo

Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 317 507 4029
Check us out at: http://digium.com · http://asterisk.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140731/f1a2f152/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 521 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140731/f1a2f152/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 521 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140731/f1a2f152/attachment-0001.jpg>


More information about the asterisk-users mailing list