Ticket #2516 (reopened Feature Requests)

Opened 1 year ago

Last modified 1 month ago

provide option for pbdirectory to look up extensions entries

Reported by: cmould Assigned to:
Priority: minor Milestone: 2.6
Component: Phonebook Directory Version: 2.3.1
Keywords: pbdirectory Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version: 2.3.1.0

Description

My directory function would not find entries from my extensions list. i traced the problem to the phonebook_list() function in pbdirectory. The offending code was "if (substr($k, 1, 7) == 'cidname')"

The $list hash that it was operating on contained "/AMPUSER/9002/cidname" in the string that was being compared. strpos($k,1 ,7) would return "/AMPUSE" and return false in the comparison. I changed it to "if (strpos($k, 'cidname'))" to search for the string anywhere in $k.

my directory now works Carey

Change History

01/03/08 12:52:34 changed by pnlarsson

  • status changed from new to closed.
  • resolution set to wontfix.

The pbdirectory is only looking up numbers from the Phonebook module, not the extensions.

To change it to also search for extensions is big change that needs some thought. But a good step would be a patch that covers both lookup phonebook entries and optional extensions.

I will close this for now - please reopen if you have a patch, and we take it from there.

01/03/08 13:23:11 changed by pnlarsson

  • status changed from closed to reopened.
  • resolution deleted.
  • type changed from Bugs to Feature Requests.
  • component changed from Voicemail Module to Phonebook Module.
  • milestone changed from Cut Line to 3.0.

Changed this into a feature request instead. Let's see what we can do.

07/16/08 09:20:36 changed by p_lindheimer

  • milestone changed from 2.5 to 3.0.

10/27/08 08:19:34 changed by p_lindheimer

  • priority changed from major to minor.
  • summary changed from bug in pbdirectory with asterisk 1.2.18 to provide option for pbdirectory to look up extensions entries.
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads