confbridge_rules.py error #dmrlink


ai6bx
 

All appears to be starting correctly now however I am not getting audio between repeaters. I have one master, RiffNet, and five peers built into my confbridge_rules.py. Shouldn’t these pass audio between each now? When I had a single master and single peer it was working.


ai6bx
 

You were correct sir. Thank you.


Doug Kingston
 

I don't have the file to look at, but I would check the previous line for a syntax error that isn't detected until this line.


ai6bx
 

I have dmrlink up and running and then added a few other peers to my dmrlink.cfg file. I then did a copy/paste of existing lines in my confbridge_rules file and changed the system names to match the new entries in dmrlink.cfg. I am now getting syntax error messages as follows. I have looked at the lines very closely and don't see anything off. I have also tried re-writing my hand with the same results. I am open to suggestions or is it not a syntax error and something not linking from another file?
root@AI6BX-DMR:~# systemctl status dmrlink
● dmrlink.service - Controls when dmrlink starts
   Loaded: loaded (/lib/systemd/system/dmrlink.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-11-25 21:34:11 PST; 12min ago
  Process: 476 ExecStart=/opt/DMRlink/confbridge.py (code=exited, status=1/FAILURE)
 Main PID: 476 (code=exited, status=1/FAILURE)
 
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]:     bridge_file = import_module(_confbridge_rules)
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]:   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]:     __import__(name)
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]:   File "/opt/DMRlink/confbridge_rules.py", line 55
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]:     {'SYSTEM': 'CARLSBAD',    'TS': 1, 'TGID': 156, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE',   'ON': [2,], 'OFF': [9,10]
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]:     ^
Nov 25 21:34:11 AI6BX-DMR confbridge.py[476]: SyntaxError: invalid syntax
Nov 25 21:34:11 AI6BX-DMR systemd[1]: dmrlink.service: Main process exited, code=exited, status=1/FAILURE
Nov 25 21:34:11 AI6BX-DMR systemd[1]: dmrlink.service: Unit entered failed state.
Nov 25 21:34:11 AI6BX-DMR systemd[1]: dmrlink.service: Failed with result 'exit-code'.

If I comment out this line, it gives me the same error on the next pasted line.

Here is what I get when I try to start the script:

root@AI6BX-DMR:~# cd /opt/DMRlink
root@AI6BX-DMR:/opt/DMRlink# python confbridge.py
INFO 2019-11-25 21:47:48,327 DMRlink 'dmrlink.py' (c) 2013 - 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2019-11-25 21:47:48,328 ID ALIAS MAPPER: 'peer_ids.json' is current, not downloaded
INFO 2019-11-25 21:47:48,328 ID ALIAS MAPPER: 'subscriber_ids.json' is current, not downloaded
INFO 2019-11-25 21:47:48,458 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2019-11-25 21:47:50,254 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2019-11-25 21:47:50,256 (DANIEL) IPSC Instance Created: 734562, :62044
INFO 2019-11-25 21:47:50,257 (B2V) IPSC Instance Created: 734561, :62040
INFO 2019-11-25 21:47:50,257 (RIFFBRIDGE) IPSC Instance Created: 12345, :50009
INFO 2019-11-25 21:47:50,258 (RIFFBRIDGE) Registering with the Master: 47.180.30.199:7000
INFO 2019-11-25 21:47:50,258 (SNOW) IPSC Instance Created: 734563, :62043
INFO 2019-11-25 21:47:50,258 (CARLSBAD) IPSC Instance Created: 734566, :62042
INFO 2019-11-25 21:47:50,259 (RIFFNET) IPSC Instance Created: 54321, :62031
Traceback (most recent call last):
  File "confbridge.py", line 499, in <module>
    CONFIG_DICT = make_bridge_config('confbridge_rules')
  File "confbridge.py", line 122, in make_bridge_config
    bridge_file = import_module(_confbridge_rules)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/DMRlink/confbridge_rules.py", line 55
    {'SYSTEM': 'CARLSBAD',    'TS': 1, 'TGID': 156, 'ACTIVE': True, 'TIMEOUT': 2, 'TO_TYPE': 'NONE',   'ON': [2,], 'OFF': [9,10], 'RESET': []},
    ^
SyntaxError: invalid syntax
root@AI6BX-DMR:/opt/DMRlink#