3
Fork 0

Fixed README

This commit is contained in:
Artem Prilutskiy 2017-12-23 09:39:34 +03:00
parent 3a1c896fe4
commit 11d38a27f3

View file

@ -19,14 +19,22 @@ set(MODSRC ${MODSRC} PatchCord.cpp BrandMeisterBridge.cpp)
### Add following lines to ModuleEchoLink.h:
Find this:
```#include "version/SVXLINK.h"```
and add ***ADFTER***:
```include "BrandMeisterBridge.h"```
```
#include "version/SVXLINK.h"
```
and add ***AFTER***:
```
include "BrandMeisterBridge.h"
```
Find this:
```private:```
```
private:
```
and add ***ADFTER***:
```BrandMeisterBridge bridge;```
```
BrandMeisterBridge bridge;
```
### Add following lines to ModuleEchoLink.cpp:
@ -41,7 +49,7 @@ Find this (*bool ModuleEchoLink::initialize(void)*):
return false;
}
```
And put next lines:
And then put next lines:
```
if (cfg().getValue(cfgName(), "BRIDGE_DEFAULT", value))
{
@ -53,35 +61,45 @@ And put next lines:
}
```
Find this text (*void ModuleEchoLink::onChatMsgReceived(QsoImpl *qso, const string& msg)*):
Find this (*void ModuleEchoLink::onChatMsgReceived(QsoImpl *qso, const string& msg)*):
```
processEvent(ss.str());
```
And add ***BEFORE***:
```bridge.handleChatMessage(escaped.c_str());```
And add this ***BEFORE***:
```
bridge.handleChatMessage(escaped.c_str());
```
Find this text (*void ModuleEchoLink::broadcastTalkerStatus(void)*):
Find this line (*void ModuleEchoLink::broadcastTalkerStatus(void)*):
```
msg << "> " << mycall << " " << sysop_name << "\n\n";
```
And add ***BEFORE***:
```const char* sysop_name = bridge.getTalker();```
And add this ***BEFORE***:
```
const char* sysop_name = bridge.getTalker();
```
Find this text (*void ModuleEchoLink::broadcastTalkerStatus(void)*):
```msg << "> " << talker->remoteCallsign() << " " << talker->remoteName() << "\n\n";```
And add ***AFTER***:
```bridge.setTalker(talker->remoteCallsign().c_str(), talker->remoteName().c_str());```
```
msg << "> " << talker->remoteCallsign() << " " << talker->remoteName() << "\n\n";
```
And add this ***AFTER***:
```
bridge.setTalker(talker->remoteCallsign().c_str(), talker->remoteName().c_str());
```
## How to configure:
Add folowing lines to your *ModuleEchoLink.conf*
```
BRIDGE_DEFAULT=9504
BRIDGE_PROXY=2501:10
```
Where BRIDGE_DEFAULT is a default ID of callee that will be passed when ID cannot be resolved by callsign (most possible this callsign has not been registred in DMR database)
BRIDGE_PROXY should correspond to Network ID of BrandMeister Server and Cord ID connected to.
Where *BRIDGE_DEFAULT* is a default ID of callee that will be passed when ID cannot be resolved by callsign (most possible this callsign has not been registred in DMR database)
*BRIDGE_PROXY* should correspond to Network ID of BrandMeister Server and Cord ID connected to.