Error Linking Repeater

Help with D-Star related issues
k2np
Posts: 6
Joined: Mon Jul 09, 2018 3:18 pm

Re: Error Linking Repeater

Post by k2np » Wed Jul 11, 2018 1:29 am

Ok, I have made some progress!

I can link a repeater by manually entering a call sign (e.g., K2BWK_BL). This is the same format that is used to connect to the the reflectors. The format that is rejected is the /K2BWK__B which is built in the the radios. So it definitely sounds like a bug, but I am not sure who actually does the routing and lookup. Is it MMDVM or something else?

k2np
Posts: 6
Joined: Mon Jul 09, 2018 3:18 pm

Re: Error Linking Repeater

Post by k2np » Fri Jul 13, 2018 12:56 pm

I know I keep replying to myself, but maybe it'll help someone else.

I don't think it's actually a bug. I went through the ircDDB code, and that is the guy that handles all the routing. I think the real issue is that ircDDB is using the wrong thing to do the routing. I see this in the logs:

Code: Select all

K2NP     is trying to G2 route to repeater KB2VZS B
The relevant block of code in ircDDB is:

Code: Select all

              
               wxLogMessage(wxT("%s is trying to G2 route to repeater %s"), user.c_str(), repeater.c_str());

               m_g2Repeater = repeater;
               m_g2User = wxT("CQCQCQ  ");
               
               CRepeaterData* data = m_cache->findRepeater(m_g2Repeater);

                if (data == NULL) {
                        m_g2Status = G2_REPEATER;
                        m_irc->findRepeater(m_g2Repeater);
                        m_g2Header = new CHeaderData(header);
                        m_queryTimer.start();
                } else {
                        m_g2Status = G2_OK;
                        m_g2Address = data->getAddress();
                        m_g2Gateway = data->getGateway();
                        header.setDestination(m_g2Address, G2_DV_PORT);
                        header.setRepeaters(m_g2Gateway, m_g2Repeater);
                        m_g2Handler->writeHeader(header);
                        delete data;
                }
So it is failing to find the repeater in the findRepeater code. I haven't had a chance to pore over that code yet. I suspect it is really a config issue. My config is below. I think it probably has to do with the gateway type. If someone actually has this working, can you post your config file? Thanks.

Code: Select all

gatewayType=1
gatewayCallsign=K2NP
gatewayAddress=0.0.0.0
icomAddress=127.0.0.1
icomPort=20000
hbAddress=127.0.0.1
hbPort=20010
latitude=43.05.00
longitude=-77.28.00
description1=Fairport NY
description2=USA
url=http://www.qrz.com/db/K2NP
repeaterCall1=K2NP
repeaterBand1=B
repeaterType1=0
repeaterAddress1=127.0.0.1
repeaterPort1=20011
reflector1=REF030 C
atStartup1=1
reconnect1=0
frequency1=433.30000
offset1=0.0000
rangeKms1=1.000
latitude1=43.05.00
longitude1=-77.28.00
agl1=3.000
description1_1=Fairport NY
description1_2=USA
url1=
band1_1=0
band1_2=0
band1_3=0
repeaterCall2=
repeaterBand2=
repeaterType2=0
repeaterAddress2=127.0.0.1
repeaterPort2=20012
reflector2=
atStartup2=0
reconnect2=0
frequency2=0.00000
offset2=0.0000
rangeKms2=0.000
latitude2=0.000000
longitude2=0.000000
agl2=0.000
description2_1=
description2_2=
url2=
band2_1=0
band2_2=0
band2_3=0
repeaterCall3=
repeaterBand3=
repeaterType3=0
repeaterAddress3=127.0.0.1
repeaterPort3=20013
reflector3=
atStartup3=0
reconnect3=0
frequency3=0.00000
offset3=0.0000
rangeKms3=0.000
latitude3=0.000000
longitude3=0.000000
agl3=0.000
description3_1=
description3_2=
url3=
band3_1=0
band3_2=0
band3_3=0
repeaterCall4=
repeaterBand4=
repeaterType4=0
repeaterAddress4=127.0.0.1
repeaterPort4=20014
reflector4=
atStartup4=0
reconnect4=0
frequency4=0.00000
offset4=0.0000
rangeKms4=0.000
latitude4=0.000000
longitude4=0.000000
agl4=0.000
description4_1=
description4_2=
url4=
band4_1=0
band4_2=0
band4_3=0
ircddbEnabled=1
ircddbHostname=rr.openquad.net
ircddbUsername=K2NP
ircddbPassword=
aprsEnabled=1
aprsHostname=rotate.aprs2.net
aprsPort=14580
dextraEnabled=1
dextraMaxDongles=5
dplusEnabled=1
dplusMaxDongles=5
dplusLogin=K2NP
dcsEnabled=1
ccsEnabled=1
ccsHost=CCS706
starNetBand1=B
starNetCallsign1=
starNetLogoff1=
starNetInfo1=
starNetPermanent1=
starNetUserTimeout1=
starNetGroupTimeout1=
starNetCallsignSwitch1=1
starNetTXMsgSwitch1=1
starNetReflector1=
starNetBand2=B
starNetCallsign2=
starNetLogoff2=
starNetInfo2=
starNetPermanent2=
starNetUserTimeout2=
starNetGroupTimeout2=
starNetCallsignSwitch2=1
starNetTXMsgSwitch2=1
starNetReflector2=
starNetBand3=A
starNetCallsign3=
starNetLogoff3=
starNetInfo3=
starNetPermanent3=
starNetUserTimeout3=300
starNetGroupTimeout3=300
starNetCallsignSwitch3=0
starNetTXMsgSwitch3=1
starNetReflector3=
starNetBand4=A
starNetCallsign4=
starNetLogoff4=
starNetInfo4=
starNetPermanent4=
starNetUserTimeout4=300
starNetGroupTimeout4=300
starNetCallsignSwitch4=0
starNetTXMsgSwitch4=1
starNetReflector4=
starNetBand5=A
starNetCallsign5=
starNetLogoff5=
starNetInfo5=
starNetPermanent5=
starNetUserTimeout5=300
starNetGroupTimeout5=300
starNetCallsignSwitch5=0
starNetTXMsgSwitch5=1
starNetReflector5=
remoteEnabled=1
remotePassword=xxxxxxxxx
remotePort=10022
language=0
infoEnabled=1
echoEnabled=1
logEnabled=1
dratsEnabled=1
dtmfEnabled=1
windowX=290
windowY=284

Post Reply