# How to silence "asterisk -rx command" result?

**URL:** <https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415>\
**Category:** AllStarLink\
**Created:** [September 16, 2023, 7:18pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415 "2023-09-16T19:18:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwarnok](https://community.allstarlink.org/user_avatar/community.allstarlink.org/dwarnok/32/2160_2.png) [@dwarnok](https://community.allstarlink.org/u/dwarnok)\
**Post date:** [September 16, 2023, 7:18pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415/1 "2023-09-16T19:18:23Z")

</div>

asterisk -rx “rpt cmd ${node} cop 14 1” returns an audible “FF1”. How do I silence that audible result, please? The -m option doesn’t.

---

<div class="post-metadata">

**Author:** ![N8PC](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/n/f04885/32.png) [@N8PC](https://community.allstarlink.org/u/N8PC)\
**Post date:** [September 17, 2023, 9:47pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415/2 "2023-09-17T21:47:39Z")

</div>

why are you trying to set a control state? that one is automatically set

---

<div class="post-metadata">

**Author:** ![dwarnok](https://community.allstarlink.org/user_avatar/community.allstarlink.org/dwarnok/32/2160_2.png) [@dwarnok](https://community.allstarlink.org/u/dwarnok)\
**Post date:** [September 17, 2023, 11:03pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415/3 "2023-09-17T23:03:57Z")

</div>

I need the controlstate to disable ${node} Tx without an asterisk restart, as long as a certain condition is met. The last line in rpt.conf is “includeifexists custom/rpt.conf”, and /etc/asterisk/custom/rpt.conf contains:

```auto
[controlstates]
;statenum = copcmd,[copcmd]...
0 = rptena,lnkena,apena,totena,ufena,noicd ; Normal operation
1 = rptdis,lnkdis,apdis,totena,ufdis,noice ; Repeater only operation

```

This works perfectly as intended, but I would like to disable the announcement for that cmd only.

Thank you for your considerations.

---

<div class="post-metadata">

**Author:** ![Mike](https://community.allstarlink.org/user_avatar/community.allstarlink.org/mike/32/1569_2.png) [@Mike](https://community.allstarlink.org/u/Mike)\
**Post date:** [September 18, 2023, 10:23pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415/4 "2023-09-18T22:23:15Z")

</div>

Have you tried -q

I am not sure it will work for app\_rpt  
because while it is a function of asterisk, you are changing a app\_rpt function in channel.

asterisk -h for help on proper placement.

But I think it would go something like this…  
asterisk -rx **-q** “rpt cmd $(node) cop 14 1”  
but this might work also  
asterisk -rx **q** “rpt cmd $(node) cop 14 1”

---

<div class="post-metadata">

**Author:** ![dwarnok](https://community.allstarlink.org/user_avatar/community.allstarlink.org/dwarnok/32/2160_2.png) [@dwarnok](https://community.allstarlink.org/u/dwarnok)\
**Post date:** [September 19, 2023, 4:47pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415/5 "2023-09-19T16:47:38Z")

</div>

man asterisk indicates:

```auto
...
       -q Reduce default console output when running in conjunction with console mode (-c).
...

```

One can temporarily duplicate the issue from the command line by setting the node variable to your node number xxxxx and then issuing one command to enable it and one to disable it:

```auto
node=xxxxx
asterisk -rx "rpt cmd ${node} cop 14 1"
asterisk -rx "rpt cmd ${node} cop 14 0"

```

---

<div class="post-metadata">

**Author:** ![Mike](https://community.allstarlink.org/user_avatar/community.allstarlink.org/mike/32/1569_2.png) [@Mike](https://community.allstarlink.org/u/Mike)\
**Post date:** [September 19, 2023, 11:20pm UTC](https://community.allstarlink.org/t/how-to-silence-asterisk-rx-command-result/20415/6 "2023-09-19T23:20:59Z")

</div>

Well, as I said, I don’t think it ‘generally’ can be done.  
There are a few commands that have suppression option that are built into the app\_rpt code.  
Like switching the logic on parallel port pins or suppressing all the pre-dial stuff on a phone patch etc.  
Few items specific.
