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-12-30 04:29:17 +08:00
|
|
|
|
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>
|
|
|
|
|
2010-01-05 00:22:53 +08:00
|
|
|
<bean id="asteriskAgi" class="org.bigbluebutton.pbx.asterisk.AsteriskAgiService">
|
|
|
|
<property name="dynamicConferenceService" ref="dynamicConferenceService"/>
|
|
|
|
</bean>
|
2009-12-30 04:29:17 +08:00
|
|
|
|
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>
|
|
|
|
|
2010-03-10 03:29:59 +08:00
|
|
|
<!-- INCOMING MESSAGES -->
|
|
|
|
|
|
|
|
<!-- conferenceStarted -->
|
2009-09-29 05:31:23 +08:00
|
|
|
<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>
|
2010-03-10 03:29:59 +08:00
|
|
|
<integration:channel id="conferenceStarted"/>
|
|
|
|
<integration:service-activator input-channel="conferenceStarted" ref="dynamicConferenceService" method="conferenceStarted" />
|
|
|
|
|
|
|
|
<!-- conferenceEnded -->
|
2009-09-29 05:31:23 +08:00
|
|
|
<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>
|
2010-03-10 03:29:59 +08:00
|
|
|
<integration:channel id="conferenceEnded"/>
|
|
|
|
<integration:service-activator input-channel="conferenceEnded" ref="dynamicConferenceService" method="conferenceEnded" />
|
|
|
|
|
|
|
|
<!-- participantsUpdated -->
|
2010-03-05 07:59:02 +08:00
|
|
|
<jms:inbound-channel-adapter id="jmsInParticipantsUpdated"
|
|
|
|
destination-name="participantsUpdatedEvents"
|
|
|
|
channel="participantsUpdated"
|
|
|
|
extract-payload="true">
|
|
|
|
<integration:poller>
|
|
|
|
<integration:interval-trigger interval="5" time-unit="SECONDS"/>
|
|
|
|
</integration:poller>
|
|
|
|
</jms:inbound-channel-adapter>
|
|
|
|
<integration:channel id="participantsUpdated"/>
|
|
|
|
<integration:service-activator input-channel="participantsUpdated" ref="dynamicConferenceService" method="participantsUpdated" />
|
2010-03-10 03:29:59 +08:00
|
|
|
|
2009-09-29 05:31:23 +08:00
|
|
|
<!-- <stream:stdout-channel-adapter id="stdout" channel="jmsinToStdoutChannel" append-newline="true"/>-->
|
2009-12-29 03:38:08 +08:00
|
|
|
|
2010-03-10 03:29:59 +08:00
|
|
|
<!-- OUTGOING MESSAGES -->
|
|
|
|
<integration:gateway id="conferenceEventListener" service-interface="org.bigbluebutton.api.IApiConferenceEventListener" />
|
|
|
|
|
|
|
|
<!-- endMeetingRequest -->
|
|
|
|
<integration:channel id="endMeetingRequest" />
|
|
|
|
<jms:outbound-channel-adapter id="endMeetingRequestJmsOut" destination="endMeetingRequestEvents" channel="endMeetingRequest" />
|
|
|
|
<bean id="endMeetingRequestEvents" class="org.apache.activemq.command.ActiveMQQueue">
|
|
|
|
<constructor-arg value="endMeetingRequestEvents"/>
|
|
|
|
</bean>
|
|
|
|
|
2009-12-31 01:17:45 +08:00
|
|
|
<import resource="doc-conversion.xml" />
|
2009-12-30 04:29:17 +08:00
|
|
|
|
2009-04-02 00:53:45 +08:00
|
|
|
</beans>
|