Questions regarding Asterisk Phonebook & Directory

Hello all!

Currently I am in the process of building out an IVR and it seems I need some help (I’m new to this). When configuring the IVR, I am able to get to the Phonebook Directory module from the live IVR but not the “Directory” option. Once I hit 1 for the Directory destination it goes into silence for eternity. So my first question is what is the difference between the “Phonebook Directory” and the “Directory” destinations in the IVR and why is one destination working but not the other?

I’ll have more to elaborate on eventually.

There is a bug. A community member submitted a patch that fixes the issue. The module is currently in the “Edge Track” awaiting release to stable.

http://issues.freepbx.org/browse/FREEPBX-11894

I read the article you posted. I don’t even get the prompt to enter in the users name. It’s just silence. Even if I enter in characters, nothing happens, it doesn’t hang up.

run the following commands:

fwconsole ma upgrade framework
fwconsole ma --edge upgrade directory
fwconsole reload

Then test again

Still no luck, anything else I can try? We pointed a temp DID to go straight to the Directory, rings once and it picks up but you don’t hear an announcement. Just silence.

Logs - we need logs to see the error, and you are most assuredly getting some kind of error.

As dave said, next step is a call trace.

In your console (ssh) run

asterisk -rvvvvvddddd

Make a test call then post the output between tripple bactics

LOG OUTPUT

[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/directory/assets to /var/www/html/admin/assets/directory
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/backup/assets to /var/www/html/admin/assets/backup
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/phpinfo/assets to /var/www/html/admin/assets/phpinfo
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/queues/assets to /var/www/html/admin/assets/queues
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/ivr/assets to /var/www/html/admin/assets/ivr
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/paging/assets to /var/www/html/admin/assets/paging
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/fax/assets to /var/www/html/admin/assets/fax
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/sipsettings/assets to /var/www/html/admin/assets/sipsettings
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/endpointman/assets to /var/www/html/admin/assets/endpointman
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/parking/assets to /var/www/html/admin/assets/parking
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/cdr/assets to /var/www/html/admin/assets/cdr
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/iaxsettings/assets to /var/www/html/admin/assets/iaxsettings
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/digium_phones/assets to /var/www/html/admin/assets/digium_phones
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/dahdiconfig/assets to /var/www/html/admin/assets/dahdiconfig
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/recordings/assets to /var/www/html/admin/assets/recordings
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/superfecta/assets to /var/www/html/admin/assets/superfecta
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/logfiles/assets to /var/www/html/admin/assets/logfiles
[2016-Mar-31 14:12:32] [PHP-WARNING] (/var/lib/asterisk/bin/retrieve_conf:72) - symlink(): File exists
[2016-Mar-31 14:12:32] [ERROR] (bin/retrieve_conf:73) - Can Not /var/www/html/admin/modules/core/assets to /var/www/html/admin/assets/core

hangs at “Launched AGI Script /var/lib/asterisk/agi-bin/directory.agi”.

 -- <SIP/BILLING-0000002a> Playing 'custom/Administrative-IVR2.slin' (language 'en')
[2016-03-31 16:14:44] DTMF[15873][C-0000003b]: channel.c:4194 __ast_read: DTMF begin '1' received on SIP/BILLING-00                                                                                                                          00002a
[2016-03-31 16:14:44] DTMF[15873][C-0000003b]: channel.c:4198 __ast_read: DTMF begin ignored '1' on SIP/BILLING-000                                                                                                                          0002a
[2016-03-31 16:14:44] DTMF[15873][C-0000003b]: channel.c:4108 __ast_read: DTMF end '1' received on SIP/BILLING-0000                                                                                                                          002a, duration 160 ms
[2016-03-31 16:14:44] DTMF[15873][C-0000003b]: channel.c:4178 __ast_read: DTMF end passthrough '1' on SIP/BILLING-0                                                                                                                          000002a
  == CDR updated on SIP/BILLING-0000002a
    -- Executing [1@ivr-6:1] Goto("SIP/BILLING-0000002a", "directory,2,1") in new stack
    -- Goto (directory,2,1)
    -- Executing [2@directory:1] Answer("SIP/BILLING-0000002a", "") in new stack
    -- Executing [2@directory:2] Wait("SIP/BILLING-0000002a", "1") in new stack
    -- Executing [2@directory:3] AGI("SIP/BILLING-0000002a", "directory.agi,dir=2,retivr=false") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/directory.agi

Go to a command line and make sure the file exists. If it does, execute it from the command line (it’s probably a PHP or PERL script) and see what errors it generates.

It does exist, hangs after we run the script

Did you do that? Were there any errors?

You cant run this from the CLI. It’s waiting for input on STDIN from Asterisk but there isn’t any.

STDIN! Ahhhh. That makes sense.