From da607cd542eb626a7ab1e6504bb2159933dcf7ae Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Wed, 4 Dec 2019 17:25:50 -0600 Subject: [PATCH] inbound OBP Unit calls --- bridge.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bridge.py b/bridge.py index bd84a7b..ab4d82e 100755 --- a/bridge.py +++ b/bridge.py @@ -427,7 +427,14 @@ class routerOBP(OPENBRIDGE): # Is this a new call stream? - if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']): + if (_stream_id not in self.STATUS): + # This is a new call stream + self.STATUS[_stream_id] = { + 'START': pkt_time, + 'CONTENTION':False, + 'RFS': _rf_src, + 'TGID': _dst_id, + } # Collision in progress, bail out! if (self.STATUS[_slot]['RX_TYPE'] != HBPF_SLT_VTERM) and (pkt_time < (self.STATUS[_slot]['RX_TIME'] + STREAM_TO)) and (_rf_src != self.STATUS[_slot]['RX_RFS']):