Installing ch_bnc_asterisk
--------------------------

First: It does not work with the Zimbra Desktop version. It works with the Open
Source Edition as well as with Network Edition. Currently testet with ZCS 5.10.

Basically it's been installed like any other zimlet. See also adminstation 
guide chapter 13.1
http://www.zimbra.com/docs/ne/latest/administration_guide/Zimlets.13.1.html

CLI example for a Linux server:

1) Copy ch_bnc_asterisk.zip to /opt/zimbra/zimlets

   scp ch_bnc_asterisk.zip zimbra@zdev:zimlets/

2) Install as user "zimbra"

   zmzimletctl install zimlets/ch_bnc_asterisk.zip

3) Get configuration template and edit configuration to your needs.
   zmzimletctl getConfigTemplate zimlets/ch_bnc_asterisk.zip > /tmp/ch_bnc_asterisk_config.xml
   vi /tmp/ch_bnc_asterisk_config.xml
   
4) Configure zimlet

   zmzimletctl configure /tmp/ch_bnc_asterisk_config.xml
   (In cases you get SOAP Error during configuration try reinstalling zimlet using admin webgui)
   
5) restart mailboxd
   This is the only part that is not usual for installing a zimlet. This is
   because a zmzimletctl install does not load the needed jar file included 
   in the zimlet.
   
   zmmailboxdctl restart


Zimlet Debugging
-----------------
* Client:
For the client part it may help to just open the Firefox Error Console
(JavaScript errors).

* Server:
Set the log level for the zimelts to DEBUG. Configure this the following way:
Add the following line to /opt/zimbra/conf/log4j.properties.in

	log4j.logger.zimbra.zimlet=DEBUG

After editing log4j.properties.in you need to restart mailboxd:
   
   zmmailboxdctl restart

Then watch logfile /opt/zimbra/log/mailbox.log. The Zimbra server does some
caching. So after installing a new Zimlet or new Version its a good idea to
restart mailboxd and to do a logoff/login.
