I saw that I can prevent a name from showing up in the IVR directory by putting ()s around the name, in the Display Name field of the extension. I am using 2.3.0.3 and have not gotten this to work. I put ()s around the name (Mike Shappell) saved and restarted and when I access the company directory I am still getting a match for the name. Is this working or am I missing something? Thanks.
Mike
__________________




There has never been such a
There has never been such a trick by design although I've heard of people doing some thing like this. The real solution is we need a proper directory module and a change to the way the directory works. So you can exclude users, alias them, create new names and point them somewhere else, etc. The module would not be too hard to write and could leverage much of what is there today - but is is needed and the real way to do it. Sorry that does not really help you with you current problem though.
------------------------------------
Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx
Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here
here is a quick one line code change to do that...
First off I agree with Philippe that the directory needs work. There are several features I'd like to have also. To that end I just submitted a patch that allows for the integration of multiple boxes so that the voicemail directory on any one system becomes a unified single directory across multiple systems. This patch assumes a lot, each box can already talk to each other box, the dial plans handle the routing, there are no overlapping extensions, etc.
But since I was just through the code I knew where to make the change to have it do what you want...
If you edit the /var/lib/asterisk/agi-bin/directory file and go to the bottom then go up 36 lines (or just down 483 lines) you will find the following line.
if (!empty($box["name"])) {
replace it with this line
if (!empty($box["name"]) && (substr($box["name"],1)!="(") && (substr($box["name"],-1) != ")")) {
then you will have that functionality.
Be aware that every time you upgrade freepbx (or the voice module) you take a chance that the file will be replaced loosing that functionality again.
Awesome
You guys are awesome thank you so much for all the useful post. This one worked like a charm.