Allstarlink - Add weather command to DTMF

To add a DTMF command in /etc/asterisk/rpt.conf go to the [functions] stanza. It would be [functionsnode#]


This is where DTMF commands are defined.

55 would not be a good choice since *5x is macro's.

I would use 85 if it is not being used. It is not with regular commands. Remember if you define a two digit command then you cannot use three digits or more for that command. So *85 would preclude using *851 or *856, etc.

So if you wanted to define *85 as a command to play the weather. I will use wx_condition.sh as an example.

In the [functionsnode#] stanza add

85=cmd,/usr/local/sbin/wx_condition.sh KPHL 40000

Of course the KPHL would be your weather identifier and 40000 your node number.

Restart asterisk

*85 will run that script and say the weather.




https://groups.io/g/Allstar


73, Doug, WA3DSP

W2LPC



No comments:

Post a Comment


.
Allstar // AllstarLink -
https://groups.io/g/Allstar
.