From 39aa7149073006bc0b4f73c2fab3175ccb6427ab Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 24 Apr 2014 21:46:01 -0500 Subject: [PATCH] Added TGID and TS parsing --- playback.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playback.py b/playback.py index 647bb16..45c2c76 100755 --- a/playback.py +++ b/playback.py @@ -28,6 +28,7 @@ __status__ = 'pre-alpha' # TGID to listen for and repeat on TGID = '\x00\x00\x0A' +TS = 1 class playbackIPSC(IPSC): @@ -40,7 +41,7 @@ class playbackIPSC(IPSC): #************************************************ def group_voice(self, _network, _src_sub, _dst_sub, _ts, _end, _peerid, _data): - if TGID == _dst_sub: + if TGID == _dst_sub and TS == _ts: if not _end: if not self.CALL_DATA: logger.info('(%s) Receiving transmission to be played back from subscriber: %s', _network, int_id(_src_sub))