bigbluebutton-Github/bigbluebutton-web/grails-app/conf/spring/resources.xml

102 lines
4.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
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
">
<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" />
<entry key="findConference" value-ref="asteriskAgi" />
</map>
</property>
</bean>
<bean id="asteriskAgi" class="org.bigbluebutton.pbx.asterisk.AsteriskAgiService">
<property name="dynamicConferenceService" ref="dynamicConferenceService"/>
</bean>
<!-- Spring Integration / JMS gateways -->
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL">
<value>tcp://localhost:61616</value>
</property>
</bean>
<!-- INCOMING MESSAGES -->
<!-- conferenceStarted -->
<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>
<integration:channel id="conferenceStarted"/>
<integration:service-activator input-channel="conferenceStarted" ref="dynamicConferenceService" method="conferenceStarted" />
<!-- conferenceEnded -->
<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="conferenceEnded"/>
<integration:service-activator input-channel="conferenceEnded" ref="dynamicConferenceService" method="conferenceEnded" />
<!-- participantsUpdated -->
<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" />
<!-- <stream:stdout-channel-adapter id="stdout" channel="jmsinToStdoutChannel" append-newline="true"/>-->
<!-- 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>
<import resource="doc-conversion.xml" />
</beans>