[Home]

Summary:ASTERISK-06312: Directory Application doesn't work if using realtime config - 0002475
Reporter:Ramakrishnan Swaminathnan (sramki)Labels:
Date Opened:2006-02-14 10:00:17.000-0600Date Closed:2011-06-07 14:02:37
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) extconfig.conf
( 1) full
( 2) full-new
( 3) vmlog
( 4) vmlog-new
( 5) Voicemail.png
Description:Hi,

I saw your posting about directory application not working with Realtime configuration in asterisk .,

http://bugs.digium.com/bug_view_advanced_page.php?bug_id=2475

I am not able to download the patches app_directory_realtime_1.6.1.patch <http://bugs.digium.com/file_download.php?file_id=4915&type=bug> , config.h.patch <http://bugs.digium.com/file_download.php?file_id=4898&type=bug> and config.c.patch <http://bugs.digium.com/file_download.php?file_id=4897&type=bug> , since its all CVS versions.

Can you please send me the above files. Also I need instructions as where to place each of the above files and how to compile/install them.

Please do the needful.

Thanks
Ramki
ramki@visitar.com
Comments:By: opsys (opsys) 2006-02-15 07:54:49.000-0600

The bug you speak about has been closed since March 2nd of 2005.  IT is on CVS HEAD meaning that it is by now in all releases since 1.2.

By: Ramakrishnan Swaminathnan (sramki) 2006-02-22 10:31:19.000-0600

Hi,
 I used a new system and installed asterisk 1.2.4. Still I am held up with the issue of directory not working in realtime.
 
 Can you please send me specific patches which will help me solve this issue.

Thanks
Ramki
ramki@visitar.com

By: Tilghman Lesher (tilghman) 2006-02-22 10:56:19.000-0600

Are you successfully using Realtime for voicemail?  If so, you need to upload a text file containing the console output (including the output of all WARNING and ERROR log messages) for a call when Directory fails.

I suspect that this is a configuration problem on your system, not a problem with Realtime.

By: Ramakrishnan Swaminathnan (sramki) 2006-02-22 11:16:10.000-0600

Hi,

Thanks for your prompt response. I have uploaded the console log, full log and extconfig.conf.

If you look into the logs, you will understand that even though I have requested asterisk to switch to realtime, its still looking for /etc/asterisk/voicemail.conf.

Please advise.

Thanks
Ramki

By: Tilghman Lesher (tilghman) 2006-02-22 11:21:30.000-0600

As is quite clear from your logs, you are using some AGI script called directory, not the Directory application.  That AGI script is not part of Asterisk and is not supported.  Please use the Directory application in the future.

By: Ramakrishnan Swaminathnan (sramki) 2006-02-22 11:53:42.000-0600

Hi,

 I was using Directory application and AGI alternatively as I understood basically doing the same job.

 While using Directory application also I get the same error. I tried a variety of combinations as follows .,

1. removed voicemail.conf from /etc/asterisk
2. made an empty voicemail.conf file in  /etc/asterisk
3. created voicemail.conf and pointed the contexts to switch to realtime like

[context-name]
Switch => Realtime

But all the above proved futile.

Any suggestions will be greatly appreciated.
I will upload the latest logs using Directory application without the AGI.

Thanks,
Ramki

By: Tilghman Lesher (tilghman) 2006-02-22 14:24:04.000-0600

From your own logs:

Feb 22 13:45:46 VERBOSE[23789] logger.c:   == Parsing '/etc/asterisk/voicemail.conf': Feb 22 13:45:46 VERBOSE[23789] logger.c:   == Parsing '/etc/asterisk/voicemail.conf': Found
Feb 22 13:45:46 DEBUG[23789] res_config_mysql.c: MySQL RealTime: Retrieve SQL: SELECT * FROM voicemail_users WHERE mailbox LIKE '%' AND context = 'sugarcrm' ORDER BY mailbox
Feb 22 13:45:46 DEBUG[23789] res_config_mysql.c: MySQL RealTime: Everything is fine.

Where is the problem?

By: Ramakrishnan Swaminathnan (sramki) 2006-02-22 14:46:29.000-0600

Hello Corydon,

Thanks for your prompt response. We appreciate it.

The issue is, the Directory application is not working. In other words when I dial the three characters of the person's first/last name, it should give me the extension before confirming and possibly transfer the call.

But its simply hanging me up, if I remove the voicemail.conf file or have an empty voicemail.conf file.

I have attached the screenshot of voicemail table. Can you have a look at it.

Thanks
Ramki

By: Tilghman Lesher (tilghman) 2006-02-22 15:01:50.000-0600

Realtime is not supposed to replace your entire voicemail.conf.  It is supposed to act as a supplement, for the user entries.  If you have no [general] section in voicemail.conf, that shortcoming cannot be addressed by Realtime.  You need both the file, as well as entries in your database to use Realtime.

By: Ramakrishnan Swaminathnan (sramki) 2006-02-23 14:09:53.000-0600

Thanks. That really helped me to solve the issue. Directory in realtime is working fine for me.

Again thanks for support.