1
0
Fork 0

Wires-X uses an odd DG-Id, handle it correctly.

ycs232-kbc
Jonathan Naylor 4 years ago
parent 3fd09f49f9
commit ebe32306c0

@ -55,6 +55,8 @@ const char* DEFAULT_INI_FILE = "/etc/DGIdGateway.ini";
const unsigned int UNSET_DGID = 999U;
const unsigned char WIRESX_DGID = 127U;
const unsigned char DT_VD_MODE1 = 0x01U;
const unsigned char DT_VD_MODE2 = 0x02U;
const unsigned char DT_VOICE_FR_MODE = 0x04U;
@ -424,6 +426,9 @@ int CDGIdGateway::run()
unsigned char ft = fich.getFT();
unsigned char dgId = fich.getDGId();
if (dgId == WIRESX_DGID)
dgId = 0U;
if (dgId != currentDGId) {
if (currentDGId != UNSET_DGID && dgIdNetwork[currentDGId] != NULL && !dgIdNetwork[currentDGId]->m_static) {
dgIdNetwork[currentDGId]->unlink();

Loading…
Cancel
Save