Adding Support for Asterisk 1.4
On the way to Asterisk-Java 0.3
The most important issue we have to resolve before we can release Asterisk-Java 0.3 is full support for Asterisk 1.4
The challenge is to find all changes. Unfortunately the Changelogs do not record all of them so the only way to go is looking through the whole source tree and checking all events and actions for the Manager API and the supported requests for FastAGI.
Many thanks to Martin B. Smith who continued that work and provided support for the GetConfig and UpdateConfig actions and is currently working on AJ-50.
You can also help us by providing feedback on what's still missing. Just post a short comment to AJ-50 and tell us which new properties, actions, events or FastAGI changes you encountered.
Externalize your AGI Configuration
Using Spring Framework for AGI Mapping and Configuration
Using a dependency injection framework like the Spring Framework to exernalize your configuration is often a great enhancement for maintainance and deployment of your application.
If you are building an AGI application using Asterisk-Java the following code snippets will show you how do it.
<beans xmlns="..."> <bean id="agiServer" class="org.asteriskjava.fastagi.DefaultAgiServer" init-method="startup" destroy-method="shutdown"> <property name="mappingStrategy" ref="mappingStrategy" /> </bean> <bean id="mappingStrategy" class="org.asteriskjava.fastagi.SimpleMappingStrategy"> <property name="mappings"> <map> <entry key="hello.agi" value-ref="helloAgi" /> </map> </property> </bean> <bean id="helloAgi" class="HelloAgi"> <property name="voicePrompt" value="tt-monkeys" /> </bean> </beans>