mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2026-07-27 12:34:22 -04:00
Add P252DMR Reflector option to P25Gateway
This commit is contained in:
@@ -52,6 +52,12 @@ void CReflectors::setParrot(const std::string& address, unsigned int port)
|
||||
m_parrotPort = port;
|
||||
}
|
||||
|
||||
void CReflectors::setP252DMR(const std::string& address, unsigned int port)
|
||||
{
|
||||
m_p252dmrAddress = address;
|
||||
m_p252dmrPort = port;
|
||||
}
|
||||
|
||||
bool CReflectors::load()
|
||||
{
|
||||
// Clear out the old reflector list
|
||||
@@ -134,6 +140,16 @@ bool CReflectors::load()
|
||||
m_reflectors.push_back(refl);
|
||||
LogInfo("Loaded P25 parrot (TG%u)", refl->m_id);
|
||||
}
|
||||
|
||||
// Add the P252DMR entry
|
||||
if (m_p252dmrPort > 0U) {
|
||||
CP25Reflector* refl = new CP25Reflector;
|
||||
refl->m_id = 10U;
|
||||
refl->m_address = CUDPSocket::lookup(m_p252dmrAddress);
|
||||
refl->m_port = m_p252dmrPort;
|
||||
m_reflectors.push_back(refl);
|
||||
LogInfo("Loaded P25 parrot (TG%u)", refl->m_id);
|
||||
}
|
||||
|
||||
size = m_reflectors.size();
|
||||
if (size == 0U)
|
||||
|
||||
Reference in New Issue
Block a user