2009-06-03 06:35:22 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2009-09-29 05:31:23 +08:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns:integration="http://www.springframework.org/schema/integration"
|
|
|
|
xmlns:jms="http://www.springframework.org/schema/integration/jms"
|
|
|
|
xmlns:file="http://www.springframework.org/schema/integration/file"
|
|
|
|
xmlns:stream="http://www.springframework.org/schema/integration/stream"
|
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
|
|
http://www.springframework.org/schema/integration
|
|
|
|
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
|
|
|
|
http://www.springframework.org/schema/integration/jms
|
|
|
|
http://www.springframework.org/schema/integration/jms/spring-integration-jms-1.0.xsd
|
|
|
|
http://www.springframework.org/schema/integration/stream
|
|
|
|
http://www.springframework.org/schema/integration/stream/spring-integration-stream-1.0.xsd
|
|
|
|
http://www.springframework.org/schema/integration/file
|
|
|
|
http://www.springframework.org/schema/integration/file/spring-integration-file-1.0.xsd
|
|
|
|
">
|
2009-06-03 06:35:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
<bean class="org.asteriskjava.fastagi.AgiServerThread"
|
|
|
|
init-method="startup" destroy-method="shutdown">
|
|
|
|
<property name="agiServer" ref="agiServer"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="agiServer" class="org.asteriskjava.fastagi.DefaultAgiServer">
|
|
|
|
<property name="bindPort" value="4573"/>
|
|
|
|
<property name="mappingStrategy" ref="mappingStrategy" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="mappingStrategy" class="org.asteriskjava.fastagi.SimpleMappingStrategy">
|
|
|
|
<property name="mappings">
|
|
|
|
<map>
|
|
|
|
<entry key="meetme.groovy" value-ref="asteriskAgi" />
|
2009-08-06 01:29:06 +08:00
|
|
|
<entry key="findConference" value-ref="asteriskAgi" />
|
2009-06-03 06:35:22 +08:00
|
|
|
</map>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="asteriskAgi" class="org.bigbluebutton.pbx.asterisk.AsteriskAgiService" />
|
|
|
|
|
2009-09-29 05:31:23 +08:00
|
|
|
<!-- Spring Integration / JMS gateways -->
|
|
|
|
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
|
|
|
|
<property name="brokerURL">
|
|
|
|
<value>tcp://localhost:61616</value>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<jms:inbound-channel-adapter id="jmsInConferenceStarted"
|
|
|
|
destination-name="conferenceStartedEvents"
|
|
|
|
channel="conferenceStarted"
|
|
|
|
extract-payload="true">
|
|
|
|
<integration:poller>
|
|
|
|
<integration:interval-trigger interval="5" time-unit="SECONDS"/>
|
|
|
|
</integration:poller>
|
|
|
|
</jms:inbound-channel-adapter>
|
|
|
|
<jms:inbound-channel-adapter id="jmsInConferenceEnded"
|
|
|
|
destination-name="conferenceEndedEvents"
|
|
|
|
channel="conferenceEnded"
|
|
|
|
extract-payload="true">
|
|
|
|
<integration:poller>
|
|
|
|
<integration:interval-trigger interval="5" time-unit="SECONDS"/>
|
|
|
|
</integration:poller>
|
|
|
|
</jms:inbound-channel-adapter>
|
|
|
|
|
|
|
|
<integration:channel id="conferenceStarted"/>
|
|
|
|
<integration:channel id="conferenceEnded"/>
|
|
|
|
|
|
|
|
<integration:service-activator input-channel="conferenceStarted" ref="dynamicConferenceService" method="conferenceStarted" />
|
|
|
|
<integration:service-activator input-channel="conferenceEnded" ref="dynamicConferenceService" method="conferenceEnded" />
|
|
|
|
|
|
|
|
<!-- <stream:stdout-channel-adapter id="stdout" channel="jmsinToStdoutChannel" append-newline="true"/>-->
|
2009-12-29 03:38:08 +08:00
|
|
|
|
|
|
|
<import resource="doc-conversion.xml" />
|
2009-04-02 00:53:45 +08:00
|
|
|
</beans>
|