Directory.php - slow?

timboothby
Posts: 18
Member Since:
2007-09-11

Hi,

I'm setting up a new system, Trixbox CE 2.8.0.2 with about 40 extensions all Aastra 57i.

The directory.php script works, but there is a good 5 or 6 second delay between pressing the button and the directory displaying. Whilst it's a great feature, this is irritatingly slow. I've tried running it in a web browser (after commenting out the check that it's being run from a phone) and the XML displays after about 2 seconds. This suggests the other 3 or 4 seconds is the time the phone takes to render the directory. I appreciate it's only a phone, but this seems slow to me. I am suspicious that there may be an underlying problem as certain pages in FreePBX are sluggish compared to a second system I have e.g. editing extensions takes a few seconds to save changes.

So can someone please advise, is it normal for the directory to take 5+ seconds to display or is something wrong somewhere?

Thanks,

Tim



bmacdonald
Posts: 11
Member Since:
2009-11-18
Yes, the directory is slow

I have a custom application on our trixbox server that queries our Exchange server, analyzes 500 contact objects from a public folder, and displays them on any 57i phone, sorted by last name. That application loads and runs much faster than the Aastra/Asterisk "Directory" that shows the phone numbers of our eight staff members. So, there is definitely something strangely slow with directory.php, but I don't think it's an inherent limitation on the processing power of the phone hardware. Unless it has something to do with the on/off-hook icon next to each extension in the directory?



mag
Posts: 135
Member Since:
2006-05-31
Braden - Any chance you can

Braden - Any chance you can share the Exchange directory lookup?

As far as directory.php goes - I checked this on our test system running locally and with about 60 listings (although only a few phones connected) in the directory, it comes up in about 2 seconds. This is on a 57i running the latest firmware. I would think the issue could be with the system checking the busy state of all extensions...

Another thought is to try this after just restarting the phone and see if this makes any difference. I've come across a few memory leaks in the Aastra's before, although not with more recent firmwre.



bmacdonald
Posts: 11
Member Since:
2009-11-18

mag
Posts: 135
Member Since:
2006-05-31
Thanks - appreciate the link

Thanks - appreciate the link



aastra1
Posts: 287
Member Since:
2006-11-06
PBX Directory is slow

Yes you are right the way we have implemented the parsing of the PBX directory is not very efficient and the presence does not help, basically we do 2 AGI requests for each registered user.

We noticed that as well.

It has been fixed in the next version of the scripts (2.3.0) which should be beta pretty soon where we also look for the BLF status when the presence status is "available" so now you will also have a dynamic state before dialing.

On top of that we will publish the source code for an LDAP (Active Directory) directory application which will allow the users to access to the Global Address List in Exchange, this will be published in the XML SDK for 2.5.3 firmware (ETA end of January 2010).

Please be patient... If this is REALLY critical for you we could release a patch 4 for teh 2.2.0 scripts, please let us know.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



angel2008
Posts: 1
Member Since:
2010-03-15
Aastra 55i and LDAP corporate directory

Hi all,
i am new on this forum, but seems to me here are people that could help me out.
I have Linksys IP phones running on my trixbox as well as cisco and aastra.
For the corporate directory and phone book i am running openldap and it works fine for linksys and cisco as well
but i am not able to use ldap as phonebook for aastra 55i as well.
If anyone have some hints to share i would appreciate

regards



aastra1
Posts: 287
Member Since:
2006-11-06
XML Scripts 2.3.0 will include a LDAP directory application

Hi angel2008,

We already published an LDAP directory in the XML API documentation 2.5.3 and 3.0.1, this script is now integrated in the next version of the XML scripts 2.3.0 which are going to be in beta next week.

Stay tuned.

--

---
aastra1
Aastra XML scripts 2.3.0 now available



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.