TG Rewrites - BM vs Phoenix

Post Reply
G0FHM
Posts: 57
Joined: Mon May 14, 2018 8:47 pm

TG Rewrites - BM vs Phoenix

Post by G0FHM »

Hi all,

I'm reconfiguring for bias towards Phoenix, with BM as secondary (purely as i'm on the edge of a Phoenix area and the TG structure is known better locally than BM).

I'm no stranger to TG rewrites in dmrgateway, but I am trying to configure TG2351 to point to Phoenix as opposed to BM. I think I have it set right, but whenever I key up with TG2351 it immediately links to BM as a dynamic TG. Can somebody check my figures and advise?

Pasted below!

Many thanks!

[DMR Network 1]
Enabled=1
Address=87.117.229.173
Port=62031
TGRewrite0=2,9,2,9,1
TGRewrite=1,9,1,9,1
TGRewrite=1,234,1,235,1
PCRewrite0=2,94000,2,4000,1001
TypeRewrite0=2,9990,2,9990
SrcRewrite0=2,4000,2,9,1001
PassAllPC0=1
PassAllTG0=1
PassAllPC1=2
PassAllTG1=2
Password="passw0rd"
Debug=0
Name=BM_UK_2341
Id=235283

[DMR Network 2]
Enabled=1
Address=phoenix-e.opendmr.net
Port=55555
TGRewrite=1,1,1,1,2
TGRewrite=1,2,1,2,1
TGRewrite=1,13,1,13,1
TGRewrite=1,113,1,113,1
TGRewrite=1,123,1,123,1
TGRewrite=1,80,1,80,5
TGRewrite=1,81,1,81,1
TGRewrite=1,82,1,82,1
TGRewrite=1,83,1,83,1
TGRewrite=1,119,1,119,1
TGRewrite=1,129,1,129,1
TGRewrite=1,235,1,235,1
TGRewrite=1,2351,1,2351
TGRewrite=2,8,8,2
TGRewrite=2,840,2,840,2
TGRewrite=2,800,2,800,99
PCRewrite0=2,84000,2,4000,2,84440,2
TypeRewrite=2,844,2,844
TypeRewrite=2,9,2,9
Password="passw0rd"
Debug=1
Id=235283
Name=DMR+_IPSC2-PhoenixE
Options="Startref=4000;userlink=1;TS1_1=235;TS1_2=13;TS2_1=840;"
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: TG Rewrites - BM vs Phoenix

Post by MW0MWZ »

G0FHM wrote: Tue Oct 13, 2020 11:58 am Hi all,

I'm reconfiguring for bias towards Phoenix, with BM as secondary (purely as i'm on the edge of a Phoenix area and the TG structure is known better locally than BM).

I'm no stranger to TG rewrites in dmrgateway, but I am trying to configure TG2351 to point to Phoenix as opposed to BM. I think I have it set right, but whenever I key up with TG2351 it immediately links to BM as a dynamic TG. Can somebody check my figures and advise?

Pasted below!

Many thanks!

[DMR Network 1]
Enabled=1
Address=87.117.229.173
Port=62031
TGRewrite0=2,9,2,9,1
TGRewrite=1,9,1,9,1
TGRewrite=1,234,1,235,1
PCRewrite0=2,94000,2,4000,1001
TypeRewrite0=2,9990,2,9990
SrcRewrite0=2,4000,2,9,1001
PassAllPC0=1
PassAllTG0=1
PassAllPC1=2
PassAllTG1=2
Password="passw0rd"
Debug=0
Name=BM_UK_2341
Id=235283

[DMR Network 2]
Enabled=1
Address=phoenix-e.opendmr.net
Port=55555
TGRewrite=1,1,1,1,2
TGRewrite=1,2,1,2,1
TGRewrite=1,13,1,13,1
TGRewrite=1,113,1,113,1
TGRewrite=1,123,1,123,1
TGRewrite=1,80,1,80,5
TGRewrite=1,81,1,81,1
TGRewrite=1,82,1,82,1
TGRewrite=1,83,1,83,1
TGRewrite=1,119,1,119,1
TGRewrite=1,129,1,129,1
TGRewrite=1,235,1,235,1
TGRewrite=1,2351,1,2351
TGRewrite=2,8,8,2
TGRewrite=2,840,2,840,2
TGRewrite=2,800,2,800,99
PCRewrite0=2,84000,2,4000,2,84440,2
TypeRewrite=2,844,2,844
TypeRewrite=2,9,2,9
Password="passw0rd"
Debug=1
Id=235283
Name=DMR+_IPSC2-PhoenixE
Options="Startref=4000;userlink=1;TS1_1=235;TS1_2=13;TS2_1=840;"
The problem here is that in network 1, you have:

Code: Select all

PassAllPC0=1
PassAllTG0=1
PassAllPC1=2
PassAllTG1=2
What this does - is say that *any* PC (private call) that is not defined by a rule, and *any* TG that is not defined by a rule (for both Time slots) should be forwarded to this network.

So if you remove those from Network 1 and put them on Network 2, anything that is not explicitly defined will go to Network 2.
Make sense?
Andy

73 de MW0MWZ
http://pistar.uk
G0FHM
Posts: 57
Joined: Mon May 14, 2018 8:47 pm

Re: TG Rewrites - BM vs Phoenix

Post by G0FHM »

Makes sense, Many thanks!
WD8OQS
Posts: 1
Joined: Thu Jul 09, 2020 2:55 am

Re: TG Rewrites - BM vs Phoenix

Post by WD8OQS »

Is there anywhere all of the rules for All of the expert mode GMR GW rules are at for stuff like these PCRewriteX, TypeRewriteX, TGRewriteX, SrcRewriteX, as well as PassAllPC0=1, PassAllTG0=1,PassAllPC1=2,PassAllTG1=2 ? I’m trying to set up BM, TGIF, DMR+ network on one pi-star. Every example is slightly different based upon talk groups and the server that they connect too. I can’t seem to find the rules for how each is to be used and when. The order of the [DMR Network #] also seems to matter. Thanks.
Post Reply