-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RF Id <-> Network Id Translation #83
Conversation
…section for bidirectional ID translation
I’m still not happy with the concept but the code is fine. I’ll add it and see if any abuse of it is reported. Thanks for the contribution. |
I agree with g4klx, seems abusing features. Also you implemented so complicated... @HegrJan Here is suggested mine #74 implementations
What for?: For keep super simple base TGRewrites[1-999999:11000001-11999999],[1-999999:12000001-12999999] to every 5 networks, Additional few special(parrot,ref control) rules controlled by SrcRewrite or TypeRewrite[additional private call range control] properly working. I hope this commit should be remove for keep consistency.
|
First, an accessibility notice. A source code sample - or whatever
you've stored there - shouldn't be stored in images. As I'm blind I
unfortunately cannot review your suggestion. And it has other
consequences as well.
The IdRewrite rule is used for rewriting IDs for given network, not
for routing the traffic to a specific network upon the ID, therefore
it has independent level. I don't feel persuaded it breaks
consistency.
…On 5/23/19, d51r3verse ***@***.***> wrote:
I agree with g4klx, seems abusing features. Also you implemented so
complicated...
You can just change orders every SrcRewrite first, then TGRewrite. That's
all.
No need to add bunch of codes... and I think you break consistency( **Final
level rewrites only RFRewrites, and NetRewrites** )
Here is sample of mine( What for?: keep super simple base
TGRewrites[1-999999:11000001-11999999],[1-999999:12000001-12999999] for
every networks, Additional discard rules controlled by SrcRewrite or
TypeRewrite)
![image](https://user-images.githubusercontent.com/29874379/58240692-7398e380-7d86-11e9-9319-12f655cdcde8.png)
I hope this commit should be remove for keep consistency.
> Solved #57 by adding the _IdRewrite=RFId,NetId_ rule to the network
> configuration section. Multiple such rules can be specified for one
> network. Matching source Id is rewritten before writing to the network,
> incoming private calls to the Network Id are rewritten to the RF Id.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#83 (comment)
|
Please use exist |
- In current implementation RFRewrites are used to route the traffic
to the desired network. Only one (first matching) rewrite rule is
applied.
- Either RFRewrites or PassAll rules are applied
- SrcRewrite doesn't change the source ID, but the destination ID; no
other original rule did change SrcId.
- As IdRewrite rules are applied (if matched) right before writing to
the network having no effect on traffic routing, there's no need to
check the return value.
Consider the following (my real case) scenario:
~~~~
[DMR Network 1]
IdRewrite=2306018,2308358
PassAllTG=2
[DMR Network 2]
IdRewrite=2306018,2308358
PassAllPC=2
~~~~
- Trace the routing for the Network 2.
- And what if I utilized both timeslots?
…On 5/23/19, d51r3verse ***@***.***> wrote:
Please use exist `m_dmr*RFRewrites` and `m_dmr1NetRewrites`.
I think it is bad idea to call direct `rewrite` without return value check.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#83 (comment)
|
1: You did not consider XLX network
Yes, I know why you are not using generic This may not met for others needs I think. And someone confusing(local repeater users)
You just considered only for your environments( /w massive master repo file changed). |
Solved #57 by adding the IdRewrite=RFId,NetId rule to the network configuration section. Multiple such rules can be specified for one network. Matching source Id is rewritten before writing to the network, incoming private calls to the Network Id are rewritten to the RF Id.