Author Topic: Phone Book package  (Read 31364 times)

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Phone Book package
« Reply #45 on: July 18, 2009, 12:01:19 PM »
Hello everyone,

there is a new PhoneBook package on
http://askozia.zetaerre.net/phonebook_1.0.pbxpkg

Some fix suggested by Tom Mazzotta.
Not heavly test, sorry. Remember backup your data!


-Roberto
« Last Edit: July 18, 2009, 03:49:58 PM by zetaerre »

Tom Mazzotta

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 2
    • View Profile
Re: Phone Book package
« Reply #46 on: July 21, 2009, 12:13:10 AM »
Roberto,

Thanks so much for the update. Works as expected now. FYI, since my initial tests I reconfigured my server for https to manage it remotely. Since my phones won't download the XML file via https, I used cron in the Inetd package to copy the file to the tftp server (every five minutes) as follows:

*/5 * * * *   root      /bin/cp /storage/phonebook.pkg/data/grandstream/gs_phonebook.xml /storage/inetd.pkg/data/srv/tftp

The above crontab entry should appear all on one line; I was not sucessful using the "\" to continue to a 2nd line in the crontab. (Also must include the path for cp to work). Now my phones download the phonebook via tftp.

At first I also tried creating a symlink to the XML file  to make this process cleaner (i.e., instead of using cron). While everything looked fine when I ssh'd into the pbx, tftp refused to find the file, so I was forced to physically copy it to the tftp server (using cron) to get this to work.

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Phone Book package
« Reply #47 on: July 21, 2009, 11:19:48 AM »


...Since my phones won't download the XML file via https...


Hi Tom,

mmmh, it's not https, it's http, but
probably there's a diffrent behaviour with diffrent firmware. Ok don't mind.

On the this version when user modify an entry I copy all under /storage/inetd.pkg/data/srv/tftp if exits.

http://www.zetaerre.net/askozia/phonebook_1.1.pbxpkg

Enjoy.
-Roberto

Tom Mazzotta

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 2
    • View Profile
Re: Phone Book package
« Reply #48 on: July 21, 2009, 03:29:15 PM »
Roberto,

Great job! So now I don't need my cron job to keep the data upto date on the tftp server. FYI, just thought you might be interested in a few things I noticed in my testing:

1. After intalling the latest package, it still reports itself as "phonebook (1.0)" in Askozia, even though you labeled the package file as "phonebook_1.1.pbxpkg". I'm not sure if this was intentional.

2. When using http to access the phonebooks, I noticed that the XML for "thomson", "snom", and "cisco", are all generated via an index.php file located in the appropriate folder in your package's storage area. This data is not copied to the tftp site. This doesn't affect my site, since I am only using Grandstream phones at this point, but other users may not understand what is going on here.

3. I noticed that with v1.0 and 1.1, that IE8 can't download a CSV file using the EXPORT feature. I am able to export correctly using FireFox 3.5.1. I'm not sure if the fact that I'm running the pbx gui in https mode makes a difference here. I also tried making the pbx a trusted site in IE8 and it didn't seem to help. Not a big problem, since I have a good workaround with Firefox, but strange none the less.


Thanks again for all your hard work on this package!
-tm

Tom Mazzotta

  • Jr. Member
  • **
  • Posts: 26
  • Karma: 2
    • View Profile
Re: Phone Book package
« Reply #49 on: July 21, 2009, 06:53:04 PM »
Roberto,

Another small suggestion. It would be nice to see a count of how many entries are in the phonebook on the packages_phonebook.php page. I believe the Grandstream phones have a limit of 100 phonebook entries (I'm sure other models have similar limits); this feature would let you know when there are too many entries to download into the phone. Thanks again!

-tm

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Phone Book package
« Reply #50 on: July 22, 2009, 10:36:53 AM »

1. After intalling the latest package, it still reports itself as "phonebook (1.0)" in Askozia, even though you labeled the package file as "phonebook_1.1.pbxpkg". I'm not sure if this was intentional.

-No, I just came out a bug  ;D

2. When using http to access the phonebooks, I noticed that the XML for "thomson", "snom", and "cisco", are all generated via an index.php file located in the appropriate folder in your package's storage area. This data is not copied to the tftp site. This doesn't affect my site, since I am only using Grandstream phones at this point, but other users may not understand what is going on here.

Some phone model get data via tftp other via http. I think it's correct. If someone have time to test, thanks.

3. I noticed that with v1.0 and 1.1, that IE8 can't download a CSV file using the EXPORT feature. I am able to export correctly using FireFox 3.5.1. I'm not sure if the fact that I'm running the pbx gui in https mode makes a difference here. I also tried making the pbx a trusted site in IE8 and it didn't seem to help. Not a big problem, since I have a good workaround with Firefox, but strange none the less.

I've tested on IE  8.0.6001.18702 without any problem. Someone have another version with bug problem above?

-Roberto

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Phone Book package
« Reply #51 on: July 22, 2009, 10:41:22 AM »

Another small suggestion. It would be nice to see a count of how many entries are in the phonebook on the packages_phonebook.php page...

Ok, you are right. Keep in touch, I'll implement on next version.  ;D

He's there anybody out there that have good suggestions?
I develope a test for it!!!  ;D ;D

cschwadorf

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Phone Book package
« Reply #52 on: August 17, 2009, 03:56:58 PM »
I've tested on IE  8.0.6001.18702 without any problem. Someone have another version with bug problem above?

-Roberto

Tested IE 8.0.6001.18813 German today and same problem as reported by Tom Mazzotta. I have tested with and without https and export works perfekt without using https....

711andi

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Phone Book package
« Reply #53 on: October 19, 2009, 04:56:58 PM »
It would be nice, if askozia look up the Caller ID number on the active channel against your phonebook database and set the Caller ID name if there were an entry match.
(e.g. external analog line without ID Name delivery)
This could useful for any device which do not provide access to the central phonebook such as softclients (X-Lite) or phones without XML phonebook option.

I don't know if this implementation is possible but this were a useful improvement and my suggestion for a complete integration of the phonebook in askozia in the future.

Regards
« Last Edit: October 19, 2009, 05:26:20 PM by 711andi »