Last active
October 1, 2015 11:52
-
-
Save schakko/1a3f4997efbf7f243b04 to your computer and use it in GitHub Desktop.
XML configuration for monitord, using POCSAG and ActiveMQ failover. It uses snd_aloop as input device.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"> | |
<monitordconfig version="1.0"> | |
<name>monitord</name> | |
<logfile>/var/log/monitord.log</logfile> | |
<loglevel>DEBUG</loglevel> | |
<soundcard num="1"> | |
<device>plughw:Loopback,0,0</device> | |
<status>1</status> | |
<baud>48000</baud> | |
<name>Loopback</name> | |
<channel part="left"> | |
<name>Channel left</name> | |
<module type="poc1200"> | |
<algorithm> 1 </algorithm> | |
<crc-check> 1 </crc-check> | |
<ecc> 0 </ecc> | |
<maxerrors> 3 </maxerrors> | |
</module> | |
</channel> | |
<channel part="right"> | |
<name>Channel right</name> | |
<module type="poc1200"> | |
<algorithm> 1 </algorithm> | |
<crc-check> 1 </crc-check> | |
<ecc> 0 </ecc> | |
<maxerrors> 3 </maxerrors> | |
</module> | |
</channel> | |
</soundcard> | |
<dataplugins> | |
<plugin name="activemq"> | |
<file>/root/dist/libmplugin_activemq.so</file> | |
<parameters> | |
<logfile>/var/log/activemq.log</logfile> | |
<loglevel>DEBUG</loglevel> | |
<!-- use startupMaxReconnectAttempts=1 to identify a generic connection problem on first startup --> | |
<brokerUri>failover://(tcp://127.0.0.1:61616)?transport.commandTracingEnabled=true&startupMaxReconnectAttempts=1&connection.endTimeout=1500</brokerUri> | |
<clientId>monitord</clientId> | |
<sendTimeout>1500</sendTimeout> | |
<closeTimeout>10</closeTimeout> | |
<producerWindowSize>5</producerWindowSize> | |
<useCompression>0</useCompression> | |
<clientAck>0</clientAck> | |
<useTopic>1</useTopic> | |
<deliveryModePersistent>0</deliveryModePersistent> | |
<destUri>zabos</destUri> | |
<topic type="zvei"> | |
<destUri>zabos.zvei</destUri> | |
</topic> | |
<topic type="pocsag"> | |
<destUri>zabos.pocsag</destUri> | |
</topic> | |
</parameters> | |
</plugin> | |
</dataplugins> | |
</monitordconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment