robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
827 stars 191 forks source link

Increment conventional call numbers on restart_call() #930

Closed taclane closed 4 months ago

taclane commented 4 months ago

Conventional calls are assigned a call number when they are first created, and continue to reuse that same call_num for every subsequent call.

While this reuse has no negative technical effects, it is not ideal from the standpoint of logging or reporting to have non-unique numbers as a call identifier.

This patch simply increments the call_num on each Call_conventional::restart_call().

robotastic commented 4 months ago

Brilliant!