[op25-dev] How To Hold On A Talk Group

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/op25-dev@lists.osmocom.org/.

'Trunk Tracker' trunktracker@tampabay.rr.com [op25-dev] op25-dev at yahoogroups.com
Sun Dec 16 00:22:45 UTC 2018


Well, I'm not even close to being smart enough to be a programmer.  So I wouldn't know how to do anything.

 

trunktracker at tampabay.rr.com

 

From: op25-dev at yahoogroups.com [mailto:op25-dev at yahoogroups.com] 
Sent: Friday, December 14, 2018 8:57 PM
To: op25-dev at yahoogroups.com
Subject: RE: [op25-dev] How To Hold On A Talk Group

 

  

The particular area of trunking.py that handles the type types of holds (soft vs hard) and their timers is tortured and risky to modify without extensive testing.  There is also an oddity that the terminal won't update it's Talkgroup ID display unless a frequency update message is triggered (usually by retuning back to the control channel).  Taken together, implementing your request is remarkably challenging for what should be a simple change (i.e. delaying the nulling of self.current_tgid).  

 

Feel free to hack around and see if you can make it work properly.  The bolded line is what causes the Talkgroup ID to disappear.

 

trunking.py

        if self.current_state != self.states.CC and self.tgid_hold_until <= curr_time and self.hold_mode is False and new_state is None:
            if self.debug > 1:
                sys.stderr.write("%f release tg(%s)\n" % (time.time(), self..current_tgid))
            self.tgid_hold = None
            self.current_tgid = None
            self.current_srcaddr = 0
            self.current_grpaddr = 0
            self.current_encrypted = 0
            new_state = self.states.CC
            new_frequency = tsys.trunk_cc
        elif self.wait_until <= curr_time and self.tgid_hold_until <= curr_time and self.hold_mode is False and new_state is None:
            self.wait_until = curr_time + self.TSYS_HOLD_TIME
            self.current_srcaddr = 0
            self.current_grpaddr = 0
            self.current_encrypted = 0
            new_nac = self.find_next_tsys()
            new_state = self.states.CC





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20181215/9d3cfafa/attachment.htm>


More information about the op25-dev mailing list