[Asterisk-bugs] [Asterisk 0010200]: Users with the same last name are not all listed in the directory. Only one of them is.

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 13 18:07:41 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10200 
====================================================================== 
Reported By:                mrskippy
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   10200
Category:                   Applications/app_directory
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.5 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             07-13-2007 10:05 CDT
Last Modified:              07-13-2007 18:07 CDT
====================================================================== 
Summary:                    Users with the same last name are not all listed in
the directory.  Only one of them is.
Description: 
The directory application does not support users with the same last name. 
Only one of these users gets listed.  I'm supprised that this has not been
dealt with already.

I did make sure the option "hasdirectory" is set to yes for both users. 
Both users are in the same context.  If I rename one of these users, he
shows up in the directory listing.
====================================================================== 

---------------------------------------------------------------------- 
 mrskippy - 07-13-07 18:07  
---------------------------------------------------------------------- 
Thanks for the time spent on this issue.

I can't test your patch because I don't have a test box environment to
compile.  But I'm looking at it and it seems incorrect but I may be wrong.

The "for" on line 505 goes through each users.  (Each user is a category
[XXX]).  Therefore there is no need to loop and get the values of
"fullname" for each users.

Simply by looking at the SVN code I would remove lines 546 and 547.  This
way the "for" loop could continue if the user presses the "*" key. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-13-07 18:07  mrskippy       Note Added: 0067377                          
======================================================================




More information about the asterisk-bugs mailing list