Cort Buffington
b2d256b024
added peer validation to registration requests we reply to
2013-10-10 16:23:52 -05:00
Cort Buffington
a8988e8cf7
Merge branch 'master' of https://github.com/n0mjs710/DMRlink
...
Conflicts:
ipsc.py
2013-10-10 16:19:12 -05:00
Cort Buffington
b62af8020b
Merge pull request #9 from ryanturner/master
...
Fixed a typo, made error messages consistent.
2013-10-10 07:44:44 -07:00
Ryan Turner
3cc2afafda
Fixed a typo, made error messages consistent.
2013-10-09 23:07:38 -05:00
Cort Buffington
5f76ce28f5
Merge pull request #8 from adamfast/event-notifications
...
Adds a private function for alerting when events happen inside the libra...
2013-09-14 17:29:41 -07:00
Adam Fast
303e92795e
Adds a private function for alerting when events happen inside the library. This function no-ops by default but can be overridden by subclassing IPSC and extending the method to perform whatever type of notification is desired.
2013-09-14 19:07:32 -05:00
Cort Buffington
ee2a8953ee
Update to print-peer-list function
...
Made it prettier
2013-09-10 20:36:35 -05:00
Cort Buffington
478301a394
Commeting the Config
2013-09-10 16:24:38 -05:00
Cort Buffington
9828390799
Removed Extra Line
2013-09-10 15:43:37 -05:00
Cort Buffington
e56adaa4bf
Peer List Update, Fixed formatting
2013-09-10 15:42:38 -05:00
Cort Buffington
f04dd45346
MAJOR UPDATE!
...
Added a derived class for the rare event of an un-authenticated IPSC,
this necessitated moving two global functions into the classese.
Changes to prepare this as a module -- all "user space" packets that
are received now have expliciet callback functions (handily located in
one place)
Moved the supporting characters into the ipsc sub-directory. The config
is the only likely one to be touched.
Improved some of the logging, but also commented it out to make things
run faster when it is not in use.
2013-09-10 15:28:18 -05:00
Cort Buffington
916ed46fef
FIxed calculation of number of peers in an IPSC
...
Incorrect decodeing of determination of the peer-list. As it turns out,
the packet indicates the length of the list, not the number of peers.
So, take that value / 11 (length of a peer entry) for the number of
peers. Thanks to Hans for pointing this out!
2013-09-10 09:43:45 -05:00
Cort Buffington
3f9aee2c3c
Fixed commend on the Group Voice feature.
2013-08-30 16:24:56 -05:00
Cort Buffington
b41cf5ff7b
CLEAN UP & DOCUMENT
...
This was just a massive clean up and documentation festival. Many many
clean ups made for better readability and consistenty, most everything
is well commented now too.
2013-08-30 16:23:12 -05:00
Cort Buffington
75e72ce8bb
Completed Group Voice Bridge
...
Added a function call to send a supplied packet to EVERY peer
(including master) that is active in an IPSC (except ourselves). This
completed the group voice bridge, and should facilitate EASILY adding
data and private bridging.
2013-08-28 11:06:54 -05:00
Cort Buffington
5b41354730
Cleaning out debugging items.
2013-08-27 10:32:27 -05:00
Cort Buffington
56236ec6cd
Remove debugging items from TG forwarding
2013-08-27 10:23:54 -05:00
Cort Buffington
9a17d9d172
Add notes on bridging Group Voice calls
2013-08-26 08:20:35 -05:00
Cort Buffington
567204e961
Group Voice Forwarding Now Works
...
Group Voice forwarding now works, making this code sucessful at
bridging IPSC networks. Some things are missing, such as transmission
to all peers in an IPSC, right now, it only sends to the master, but
that's easily enough added, and my next goal.
2013-08-26 08:16:54 -05:00
Cort Buffington
dd1528567e
Group Voice Re-Write Added
...
Group Voice re-writes of both sourc IPSC radio ID and group translation
work. Packets are not yet actually sent to the destination network.
Right now the code prints out the original packet and the re-written
packet (with hash added)
2013-08-25 16:13:23 -05:00
Cort Buffington
861e5a2055
Fixed typos
2013-08-23 07:53:48 -05:00
Cort Buffington
85a2fe9af9
Additional Work on Bridging
2013-08-23 07:52:50 -05:00
Cort Buffington
8e79cf8f8d
Create Named "Labels" For Each IPSC
...
Obejct names for each IPSC class instantiation, so bridging code can
identify a target IPSC (class instantiaion) to call packet transmit
methods on.
2013-08-16 14:30:20 -05:00
Cort Buffington
d3940765ca
commenting out stuff that doesn't work
2013-08-16 07:55:51 -05:00
Cort Buffington
1dc2dc0081
BEGIN working on bridge code
...
Stopped with this not completed, but mostly there. Need to fix some
references.
2013-08-08 21:48:28 -05:00
Cort Buffington
365f752c8e
added missing logger statement on peer-list packet type
2013-08-07 21:54:57 -05:00
Cort Buffington
d877ba90dc
Removed debugging print statements
2013-08-07 21:46:51 -05:00
Cort Buffington
53a3ed7828
WORKS CORRECTLY - COMPLETELY!!!
2013-08-07 14:15:53 -05:00
Cort Buffington
191a5c382e
Cleaning up now proper peer list processing
2013-08-06 22:35:31 -05:00
Cort Buffington
86c03c7702
Finally! Proper peer list processing!!!
2013-08-06 22:33:04 -05:00
Cort Buffington
6660c8b810
Copyright added
2013-08-02 15:31:55 -05:00
Cort Buffington
e575186fc3
Work on improving peer list
...
Need to "update" the peer list instead of wipe it out and write a new
one. This is just started, so not implemented yet.
2013-08-01 15:45:57 -05:00
Cort Buffington
530a6fc612
Comments Added
2013-08-01 15:21:35 -05:00
Cort Buffington
5fead4ea91
added marker for next to-do item
2013-08-01 15:18:53 -05:00
Cort Buffington
ad57ed0ebb
Added Peer/Master Timeout and Removal
2013-08-01 15:09:20 -05:00
Cort Buffington
244f53778a
Added "self" note for self peer in the print peer-list function
2013-07-31 20:56:49 -05:00
Cort Buffington
851b0e9c4d
More work on validation
2013-07-31 20:46:03 -05:00
Cort Buffington
738af072cb
Update README.md
2013-07-31 14:08:31 -05:00
Cort Buffington
835011d1a8
Fixed formatting error in peer list
2013-07-31 13:58:53 -05:00
Cort Buffington
897540243a
Peer List Print & More Validation
2013-07-31 12:33:31 -05:00
Cort Buffington
8f8608cbfc
Started adding conditionals to validate messages
...
for example: if we haven't yet received a peer list from the master, we
should not be processing keep-alives from peers.
2013-07-30 11:50:29 -05:00
Cort Buffington
2e0f29fc97
Peer Validation - In Progress
...
Mostly done.. must find a way to allow master registration and
reception of peer list BEFORE validating incoming messages to the peer
list -- chicken and egg problem. Easily solved, but needs an EFFICIENT
solution since EVERY PACKET will be passed through this test.
2013-07-30 10:52:10 -05:00
Cort Buffington
9e049977fd
log level change
2013-07-30 10:11:22 -05:00
Cort Buffington
ca22654a13
Peer validation work
2013-07-29 21:12:12 -05:00
Cort Buffington
2d0c767c11
Begin adding valid peer and master checking… partial
...
Not yet completed, but done in a way to pass so the code works.
2013-07-29 21:06:25 -05:00
Cort Buffington
c1f6442f07
Standardized use of binascii for hex conversions
...
Had been using a mix of unhexlify/hexlify and a2b_hex/b2a_hex. I
settled on the later as it's the most descriptive to me.
2013-07-29 20:51:21 -05:00
Cort Buffington
7650e7cc4d
Remove Cruft in Logging
2013-07-29 13:38:59 -05:00
Cort Buffington
724f9299cb
Added IPSC Authentication Validation Function
...
We can now pass the auth key, and a packet to this function and get a
pass/fail (True/False) return.
2013-07-29 13:23:37 -05:00
Cort Buffington
7c6899e49f
Clean up debug logging for peer lists
...
Fixed the peer-list printing function so that it signals there is no
peer list if we've not yet received one.
2013-07-28 22:33:14 -05:00
Cort Buffington
440f3d61b4
Updated config data structure
...
… so it matches changes made in the last update a few minutes ago.
2013-07-28 22:25:25 -05:00