I suggest doing that with controlstates. In rpt.conf uncomment and change statenum 1 to rptdis. Then you can activate the state from a script with asterisk -rx "rpt cmd yyyyy cop 14 z" where yyyyy is your node number and z is the state (0 or 1).
[controlstates]
;statenum = copcmd,[copcmd]...
0 = rptena,lnkena,apena,totena,ufena,noicd ; Normal operation
1 = rptdis,lnkdis,apdis,totdis,ufdis,noicd ; Example repeater disabled
;2 = rptena,lnkdis,apdis,totena,ufdis,noice ; Repeater only operation
Hope this helps. Let me know if you have questions.
Rereading this thread, I’m lost. How can lsusb cause app_rpt to speak?
That said, if you want to turn off command speech response and not allow users to turn it back on, make these two edits to rpt.conf.
telemdefault = 0 ; 0 = telemetry output off
; 1 = telemetry output on (default = 1)
; 2 = timed telemetry output on command execution and for a short time thereafter.
and
telemdynamic = 0 ; 0 = disallow users to change the local telemetry setting with a COP command
; 1 = Allow users to change the setting with a COP command. (default = 1)
However, you’ll still get a function complete beep, I believe.