DMRGateway: more than 2 "pass all TG" and "PC" fields

Suggest new features here
Post Reply
iw5ejm
Posts: 2
Joined: Mon Jan 13, 2020 2:20 pm

DMRGateway: more than 2 "pass all TG" and "PC" fields

Post by iw5ejm »

HI.
Could be possible to add other two field in the dmrgateway configuration, DMR network 1 section?

The field are another pair of pass all TG and pass all PC.
They are necessary if you want to pass for example all TG and private calls from both slot 1&2 to dmr network 1 and just one TG to XLXnetwork.

I tried to add it manually in the full edit section of dmrgateway.ini but when you apply some change the section is rewritten and the secondary added directive deleted.
Thanks!
Attachments
Schermata 2020-01-17 alle 09.34.51.png
Schermata 2020-01-17 alle 09.34.51.png (29.46 KiB) Viewed 2537 times
VE3RD
Posts: 113
Joined: Thu Oct 11, 2018 7:21 pm

Re: DMRGateway: more than 2 "pass all TG" and "PC" fields

Post by VE3RD »

I am no expert on the DMRGateway, however I fail to understand how a PassAllTG in another network would work.
The PassAllTG is there to catch all data packets that are not caught by another rule. Putting a PassAllTG in two networks, kinda defeats itself.

My suggestion is to add the TGRewrite rules into the other networks to trap what you want for that network. You can have multiple TGRewrite and PCRewrite Rules rules in a Network by adding a number. TGRewite1=, TGRewrite2=

I run the DMRGateway with multiple networks as follows

For TS2
Net1 TGRewrite=2,1000001,2,1,999999
Net2 TGRewrite=2,2000001,2,1,999999
........
Net5 TGRewrite=2,5000001,2,1,999999

For TS1
Net1 TGRewrite=1,1000001,1,999999

I don't use the PCRewrite rule so am only guessing at the syntax
Net1 PCRewrite=2,1000001,2,999999
Net1 SrcRewrie=2,1,2,1000001,999999

With this method, I dial up 2000302 on my radio and I am on DMR Plus TG 302
Change the dial on my radio to 1000310 and I am on Brandmeister TG 310
no need for ANY PassAllTG rules.

However: if you select TG310 on your radio, then it will pass right through and nothing will happen.
Adding a PassAllTG rule to ONE network, will allow that network to trap tg310 and send it out to the appropiate server

The one fly in the ointment here, is Network three is overwritten by pi-star and I occasionally have to go in with ssh and clean it up. Many assumptions were made by the creators back when this system was in its infancy and they added auto config rules to make life easier for newbies. The advanced stuff we are trying to do now requires a little fiddling to get around the initial restrictions. It is possible to get a hotspot do do many things that the pi-star configurator will not allow.

PHIL VE3RD
iw5ejm
Posts: 2
Joined: Mon Jan 13, 2020 2:20 pm

Re: DMRGateway: more than 2 "pass all TG" and "PC" fields

Post by iw5ejm »

No I need to pass all tg of both slot to the same network.

This is successfully accomplished on a custom dmrgateway Debian install with the following simple syntax:

PassAllTG=1
PassAllTG=2
PassAllPC=2
PassAllPC=1

In this way you pass all dmr tg and private traffic to brandmeister except one tg directed to an xlx server.

We are a network of a half a dozen of repeater, not all under my complete control: on mine there is a custom Debian install, on others there is pistar and I can't change it but I need to connect them to our xlx server without the need of manually editing the ini file every time an other sysop change something via the GUI in pistar...

Thanks for the reply and 73's marco
Post Reply