View Single Post
  #1 (permalink)  
Old 10-16-2008, 07:22 AM
chlauber chlauber is offline
Senior Member
 
Posts: 63
Default Asterisk PBX Integration Zimlet

Hi all.
I started programming an asterisk zimlet that uses asterisk manager interface AMI instead of SIP protocol like the already existing Zimlet.
Thanks to Asterisk-Java I was able to easily interface with AMI in jsp.
Main purpose is to dial (originate). I also added SMS functionality that uses Asterik SMS() application. For now every originate does a separate login to AMI, send action and then logs out. Don't now if this can cause troubles in big installations.

Finally i have something working, but there are still some problems.

1) Internationalization:
I was unable to get messages.properties files to work. Already check the Forum and Zimlets Whitepaper, but still no luck.
So for now everything is hardcoded in English.

2) SMS encoding:
For some reason the SMS Messages do not arrive correctly in the Zimlets JSP. I can watch the correctly URL encoded message with LiveHttp Headers in FF or with wireshark. For some reason German and French Umlauts do not arrive in the JSP. Even when i try to log what the paramter like:
Code:
smsMsg = request.getParameter("msg");
zimletLog.debug("Param smsMsg: " + smsMsg);
Umlauts like öäü are just displayed as ???. Is there an issue with jetty?

3)Disabling of SMS Menu does not work
Seems like
Code:
enableContextMenuItem(this.PANEL_MENU,id,false);
in ZmZimletBase.js does nothing

4)Getting global properties in javascript for maxSMSLength
Was also unable to make
Code:
getConfigProperty(key);
working.

Any help is welcome!
I added zimlet zip file. config_template.xml should be commented enough to get it working.

Have fun, Christof.
Attached Files
File Type: zip ch_bnc_asterisk.zip (335.2 KB, 130 views)

Last edited by chlauber : 10-16-2008 at 08:22 AM.
Reply With Quote