Re: confbridge ACL Error


Kim-Benjamin Lütkemeier
 

When I Change
This line (516) :  ACL = build_acl('sub_acl')
into: ACL = True

than the confbridge start but when I sent with my Radio I get this:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 86, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
    why = selectable.doRead()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 249, in doRead
    self.protocol.datagramReceived(data, addr)
  File "/home/Kim/hblink/hblink.py", line 486, in client_datagramReceived
    self.dmrd_received(_radio_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data)
  File "hb_confbridge.py", line 245, in dmrd_received
    if allow_sub(_rf_src) == False:
exceptions.NameError: global name 'allow_sub' is not defined


Am 23.08.2018 um 19:39 schrieb kbluetkemeier via Groups.Io:

Hey  I Updated my Old HBlink and I'm receiving an error when starting Confbridge.py:

hb_confbridge.py -c bridge.cfg
DEBUG 2018-08-23 19:27:35,248 Logging system started, anything from here on gets logged
INFO 2018-08-23 19:27:35,249 ID ALIAS MAPPER: 'peer_ids.csv' is current, not downloaded
INFO 2018-08-23 19:27:35,249 ID ALIAS MAPPER: 'subscriber_ids.csv' is current, not downloaded
INFO 2018-08-23 19:27:35,272 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-08-23 19:27:35,601 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-08-23 19:27:35,603 Routing bridges file found and bridges imported
INFO 2018-08-23 19:27:35,603 ACL file found, importing entries. This will take about 1.5 seconds per 1 million IDs
INFO 2018-08-23 19:27:35,604 ACL file not found or invalid - all subscriber IDs are valid
Traceback (most recent call last):
  File "hb_confbridge.py", line 516, in <module>
    ACL = build_acl('sub_acl')
  File "hb_confbridge.py", line 146, in build_acl
    return ACL
UnboundLocalError: local variable 'ACL' referenced before assignment

Any Ideas?,

Do1KBL, Kim


Join main@DVSwitch.groups.io to automatically receive all group messages.