wb2osz / direwolf

Dire Wolf is a software "soundcard" AX.25 packet modem/TNC and APRS encoder/decoder. It can be used stand-alone to observe APRS traffic, as a tracker, digipeater, APRStt gateway, or Internet Gateway (IGate). For more information, look at the bottom 1/4 of this page and in https://github.com/wb2osz/direwolf/blob/dev/doc/README.md
GNU General Public License v2.0
1.55k stars 302 forks source link

Direwolf v1.6 truncates Source SSID when IS to TX #408

Open joshbradfield opened 2 years ago

joshbradfield commented 2 years ago

When forwarding from the internet (IG) to radio (TX), any text following a hyphen "-" in the "source" call sign is dropped. e.g. WHO-IS becomes WHO

Steps to reproduce:

  1. Setup direwolf as an RX/TX IGATE
  2. From a message capable APRS device emit a beacon (so direwolf knows the device is in range)
  3. From the same device emit a "WHO-IS" request/message

Expected Result

Actual Result

Example

WHO-IS request sent from ZL1JSH-9 via ZL1JSH-10,

[ig>tx] WHO-IS>APJIW4,TCPIP*,qAC,AE5PL-JF::ZL1JSH-9 :Charles Beadfield/New Zealand{583
mheard_save_is: WHO - update time, was 1656771162 seconds ago.
callsign  cnt chan hops    RF      IS    lat     long  msp
WHO         7   0   0      -      0:00     -       -    1
ZL1JSH-9   10   0   0     0:00     -    -36.79  174.76  0
ZL1NL-3     6   0   0     0:03     -    -36.84  174.77  0
ZL1JSH      2   0   0      -      0:16     -       -    1
Was message addressee ZL1JSH-9 heard in the past 60 minutes, with 1 or fewer digipeater hops?
Yes, ZL1JSH-9 last heard over radio 0 minutes ago, 0 digipeater hops.
Was message source WHO heard in the past 1 minutes, with 0 or fewer digipeater hops?
No, we have not heard WHO over the radio.
MSP for WHO set to 1
[0L] ZL1JSH-10>APDW16,WIDE1-1:}WHO>APJIW4,TCPIP,ZL1JSH-10*::ZL1JSH-9 :ack5
[0L] ZL1JSH-10>APDW16,WIDE1-1:}WHO>APJIW4,TCPIP,ZL1JSH-10*::ZL1JSH-9 :Charles Beadfield/New Zealand{583
wb2osz commented 2 years ago

Thank you for reporting this problem. The code was written, expecting only a numeric SSID. This is an unusual, but perfectly valid case. The message addressee, and therefore the sender of a reply, does not have the same restriction as the AX.25 addresses.

joshbradfield commented 2 years ago

Yes, I should probably update this to make it clear that

Issue only applicable for non-numeric SSIDs

Otherwise, very much enjoying using direwolf :)

On Mon, 4 Jul 2022, 13:23 wb2osz, @.***> wrote:

Thank you for reporting this problem. The code was written, expecting only a numeric SSID. This is an unusual, but perfectly valid case. The message addressee, and therefore the sender of a reply, does not have the same restriction as the AX.25 addresses.

— Reply to this email directly, view it on GitHub https://github.com/wb2osz/direwolf/issues/408#issuecomment-1173234594, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCTWH4JRTLGLJ2W5ZAVR63VSI4K5ANCNFSM52PEKYGA . You are receiving this because you authored the thread.Message ID: @.***>