Phone Book & Directory

Tried to get a 411 working again for a customer today… But, when I use the standard IVR option for Phonebook none of the names (9) loaded first last seem to work at all…

Also created the Misc Destination of type Directory (*) and tried that, I am assuming it uses the “Display name” from the extensions. But even though the prompt says to enter the first three letters of the first or last name (set in General) it only works as First name, so I changed the settingin the General Settings Tab. But, I am not sure how to get first or last name working, is there supposed to be a field seperator here other than a space. Also, how would I eliminate voice mail / extensions fromthe list that users should not be calling if I continue to use this one ??

Hope to start using Moshe’s new module soon :slight_smile: It’s got to be Better !!!

TIA… for any advice on this one…

Where are these sound files supposed to be ??? I have gsm files the /var/lib/asterisk/sounds/letters (below) but this routine seems to be looking for something else. Would it help to run the gsm through sox to create wav files…

[2010-07-09 17:27:15] VERBOSE[21445] res_agi.c:     -- Playing 'pbdirectory/welcome-to-phonebook' (escape_digits=) (sample_offset 0)
[2010-07-09 17:27:17] VERBOSE[21445] res_agi.c:  pbdirectory: start loop
[2010-07-09 17:27:17] VERBOSE[21445] res_agi.c:  pbdirectory: loop = 0
[2010-07-09 17:27:17] VERBOSE[21445] file.c:     -- <SIP/***************-0000006e> Playing 'pbdirectory/first-three-letters-entry.slin' (language 'en')
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/t' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/t does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/e' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/e does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/s' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/s does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/t' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/t does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/space' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/space does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/u' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/u does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/s' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/s does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/e' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/e does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'letters/r' (language 'en')
[2010-07-09 17:27:22] WARNING[21445] file.c: File letters/r does not exist in any format
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'pbdirectory/if-correct-press' (language 'en')
[2010-07-09 17:27:22] VERBOSE[21445] res_agi.c:     -- Playing 'pbdirectory/if-correct-press' (escape_digits=1*) (sample_offset 0)
[2010-07-09 17:27:24] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'digits/1' (language 'en')
[2010-07-09 17:27:24] WARNING[21445] file.c: File digits/1 does not exist in any format
[2010-07-09 17:27:24] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'pbdirectory/if-incorrect-press' (language 'en')
[2010-07-09 17:27:24] VERBOSE[21445] res_agi.c:     -- Playing 'pbdirectory/if-incorrect-press' (escape_digits=1*) (sample_offset 0)
[2010-07-09 17:27:26] VERBOSE[21445] res_agi.c:  pbdirectory: -- Playing 'digits/star' (language 'en')
[2010-07-09 17:27:26] WARNING[21445] file.c: File digits/star does not exist in any format
[email protected]:/var/lib/asterisk/sounds/letters $ ls
a.gsm         ascii36.gsm  ascii42.gsm  ascii63.gsm  ascii96.gsm   d.gsm                   f.gsm  l.gsm     q.gsm      u.gsm    z.gsm
ascii123.gsm  ascii37.gsm  ascii44.gsm  ascii91.gsm  asterisk.gsm  dollar.gsm              g.gsm  m.gsm     r.gsm      v.gsm
ascii124.gsm  ascii38.gsm  ascii58.gsm  ascii92.gsm  at.gsm        dot.gsm                 h.gsm  n.gsm     s.gsm      w.gsm
ascii125.gsm  ascii39.gsm  ascii59.gsm  ascii93.gsm  b.gsm         e.gsm                   i.gsm  o.gsm     slash.gsm  x.gsm
ascii126.gsm  ascii40.gsm  ascii60.gsm  ascii94.gsm  c.gsm         equals.gsm              j.gsm  p.gsm     space.gsm  y.gsm
ascii34.gsm   ascii41.gsm  ascii62.gsm  ascii95.gsm  dash.gsm      exclaimation-point.gsm  k.gsm  plus.gsm  t.gsm      zed.gsm

well that is not the company directory module, but in any event, those are standard Asterisk sound file so if you are getting those errors, something is wrong with your configuration.

the digits should be in the digits subdir, letters in the letters subdir, etc.

Philippe,

Two seperate issues and I am attempting to figure them both out. Yes, the trace is the Phone Book directory it uses the first three letter look up from the entry. Added “Test User” Extension 2199 and Speed Code 100. From the trace it is attempting to read back T E S T U S E R but even though the letters are in the directory as GSM files the file.c routine does not find the file. Is it supposed to be something other than the gsm that is there or is this another issue ?

For the “Directory” it looks up the name in left to right of the first three characters enetered no matter what the prompt variable is set to. It appears it uses the “Display Name” from the extension to populate the VM module as well, and that plus the spoken name in VM works okay. Was looking for a seperator file so lookup would be Last name, First name with out manually editing the VM name.

Thanks for any help —

phonebuff,

as far as your sound file issues, not sure what is going on. Permissions maybe?

In any event, gsm files are fine.

As far as the Company Directory, it will look at first name or last name. Technically speaking, search for each “word” that is in the display name. So if you had “Billy Bob Brown Jr.” then you search on Billy, Bob, Borwn or Jr.

I’m not sure what you are referring to when you say “…no matter what the prompt value is set to.”

Looks like it is running the module
./var/lib/asterisk/agi-bin/pbdirectory

although there is a duplicate module here –
./var/www/html/admin/modules/pbdirectory/agi-bin/pbdirectory

Not Permissions or existance that I can tell –

[email protected]:/var/lib/asterisk/sounds $ ls -la pbdirectory/first-three-letters*
-rw-rw-r-- 1 asterisk asterisk 59052 Jan  5  2010 pbdirectory/first-three-letters-entry.sln

[email protected]:/var/lib/asterisk/sounds $ ls -la letters/t*
-rw-rw-r-- 1 asterisk asterisk 1089 May 13 14:46 letters/t.gsm

phonebuff,

the one in the modules directory is copied to /var/lib/asterisk/agi-bin.

Beyond that, your issue about not finding the letters an digits is something in your asterisk setup, whether permissions at some level (could be higher up the directory structure), or asterisk setup issues that just can’t find them.

For permissions, you can run ‘amportal chown’ to have all permissions everywhere fixed in case it is that.

:frowning:

Ran the amportal chown – as a first step. (I learned something from you in Huntsville).

Ran Tom’s update-scripts16 & update-fixes16 and then reran amportal chown.

No joy… Will extend the debug functions in the AGI pbdirectory and see if I can figure out what the issues are…

Thanks…

hmm … who knows what Tom’s update scripts did, can you examine them or are they still “hidden” :frowning:

it’s unlikely anything to do wit the AGI. You can turn up debugging but I doubt it will show anything.

The log file made it pretty clear that Asterisk was not finding the sound files. The nature of the error indicates that it is looking for the file in the correct place.

If your system is playing other standard sound files (e.g. you can navigate voicemail) but not these, then something really odd is going on…

Yep, VM works fine, although somene left me a note that the time stamp went away with this upgrade. Might have just been becuase we copied over the files from the temporary system to /var/spool/asterisk/voicemail/default with TAR.

Yes, they are still hidden, although they write a fairly decent log file in /var/log.


Okay,

Thanks to a number of people I have a fix. The directory structure does not have the right permissions. They need execute authority as well as wr. So a quick chmod 774 digits and the other sub directories of /var/lib/asterisk/sounds fixed the issue(s).

Not sure how or when these permissions were lost… Might have been from a restore might have been as part of one of the other updates I did…


Another question related to the asterisk phonebook.
Is there a way to have multiple directory?

I am trying to do the following:

  1. Have two different IVR. One IVR with point to a phonebook. The 2nd will point to another phonebook. Each phonebook wil have complete different listing.

The reason for this is I am trying to have two different company use the same pbx system. When caller do a search, the search result only list their employees, not the other company employees name.

Upgrade to 2.8 and look at the new phonebook module.

BF