Skip to content

Commit

Permalink
fix TS parsing during trigger action
Browse files Browse the repository at this point in the history
  • Loading branch information
n0mjs710 committed Jun 23, 2017
1 parent a3a2961 commit 62fc209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confbridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def group_voice(self, _src_sub, _dst_group, _ts, _end, _peerid, _data):
if _system['SYSTEM'] == self._system:

# TGID matches an ACTIVATION trigger
if _dst_group in _system['ON']:
if _dst_group in _system['ON'] and _ts == _system['TS']:
# Set the matching rule as ACTIVE
if _system['ACTIVE'] == False:
_system['ACTIVE'] = True
Expand All @@ -388,7 +388,7 @@ def group_voice(self, _src_sub, _dst_group, _ts, _end, _peerid, _data):
self._logger.info('(%s) Bridge: %s, timeout timer reset to: %s', self._system, _bridge, _system['TIMER'] - now)

# TGID matches an DE-ACTIVATION trigger
if _dst_group in _system['OFF']:
if _dst_group in _system['OFF'] and _ts == _system['TS']:
# Set the matching rule as ACTIVE
if _system['ACTIVE'] == True:
_system['ACTIVE'] = False
Expand Down

0 comments on commit 62fc209

Please sign in to comment.