A Life Without Compunction

  • 12:01:32 am on March 10, 2010 | # | 0

    If you want to remove an extension from the directory with FreePBX, simply edit the file: /var/www/html/admin/modules/core/agi-bin/directory

    On line 479, replace:

    if (!empty($box["name"])) {

    with:

    if (!empty($box["name"]) && (substr($box["name"],1)!="(") && (substr($box["name"],-1) != ")")) {

    Now you can simply set the Display Name of the extension you want removed from the directory to be enclosed in parentheses such as “(John Doe)”.

     

Leave a Comment