Tailmessage Timer

Hi, kinda new into AllStar. I want to be able to change the tailmessage timer via a macro if needed. Any hints on how to do this?

My tailmessages are set at 45 minutes but if I want to cancel a club meeting, or set a weather alert, I can script in a new tail message but I would want to shorten the timer to lets say every 5 minutes. I don’t really want to rewrite the rtp.conf just overwrite the timer in memory until the reboot or until I change it back.

Thanks

···

Darrell Black

(517) 917-2226
GigaHacker@gmail.com
http://www.linkedin.com/in/darrellblack

73 de W8DSB

“In God we trust, all others we monitor”

GMRS WRDE739

I can help you out.

Do you have a node number, DMR ID, Gmail address or Facebook account to communicate further?

···

On Sat, Jul 6, 2019, 5:08 PM Darrell Black gigahacker@gmail.com wrote:

Hi, kinda new into AllStar. I want to be able to change the tailmessage timer via a macro if needed. Any hints on how to do this?

My tailmessages are set at 45 minutes but if I want to cancel a club meeting, or set a weather alert, I can script in a new tail message but I would want to shorten the timer to lets say every 5 minutes. I don’t really want to rewrite the rtp.conf just overwrite the timer in memory until the reboot or until I change it back.

Thanks

Darrell Black

(517) 917-2226
GigaHacker@gmail.com
http://www.linkedin.com/in/darrellblack

73 de W8DSB

“In God we trust, all others we monitor”

GMRS WRDE739


App_rpt-users mailing list

App_rpt-users@lists.allstarlink.org

http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the “Unsubscribe or edit options button”

You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

Joshua,

You can find his gmail address in the header, but he also has it explicitly listed in his signature.

Or, you could share with community by keeping it on the list.

···

On Sat, Jul 6, 2019, 17:15 Joshua Nulton kg5ebi@gmail.com wrote:

I can help you out.

Do you have a node number, DMR ID, Gmail address or Facebook account to communicate further?

On Sat, Jul 6, 2019, 5:08 PM Darrell Black gigahacker@gmail.com wrote:

Hi, kinda new into AllStar. I want to be able to change the tailmessage timer via a macro if needed. Any hints on how to do this?

My tailmessages are set at 45 minutes but if I want to cancel a club meeting, or set a weather alert, I can script in a new tail message but I would want to shorten the timer to lets say every 5 minutes. I don’t really want to rewrite the rtp.conf just overwrite the timer in memory until the reboot or until I change it back.

Thanks

Darrell Black

(517) 917-2226
GigaHacker@gmail.com
http://www.linkedin.com/in/darrellblack

73 de W8DSB

“In God we trust, all others we monitor”

GMRS WRDE739


App_rpt-users mailing list

App_rpt-users@lists.allstarlink.org

http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the “Unsubscribe or edit options button”

You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.


App_rpt-users mailing list

App_rpt-users@lists.allstarlink.org

http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the “Unsubscribe or edit options button”

You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

Thanks, :slight_smile: I didn’t want to email or call without confirmation that those were still valid points of contact or that he was available. But have since made contact.

I explained to him over the phone that my approach would be to write a couple custom scripts to modify the variable as needed and those scripts could be run via remote DTMF control or rotated on a fixed schedule. I will post the solution here as well, should anyone else want to have a copy.

I can not share his rpt.conf file but I can explain what was done…

Three changes were made to his rpt.conf file as noted here:

  1. tailmessagetime=2700001 ; incremented to 2700001 to be easily found by DTMF control script - in node stanza
  2. 84=cmd,/usr/local/sbin/tail45minutes.sh ; added DTMF Controllable bash script to change the rpt.conf variable - in functions stanza
  3. 85=cmd,/usr/local/sbin/tail5minutes.sh ; added DTMF Controllable bash script to change the rpt.conf variable - in functions stanza
    In the rpt.conf file I modified the tail time from 2700000 to 2700001 to make that easy for the script to find. Easier than me dealing with SED and spaces anyway…I then added the DTMF command of *84 to set the tailmessage time to 45 minutes, and *85 to set the tailmessage time to 5 minutes. ALL 3 changes are commented on the file.

The deal breaker: The script from 45 to 5 minutes will only work if it is currently set to 2700001, and the script from 5 minutes to 45 will only work if the variable is currently set to 300001. Basically if someone manually changes the time to anything other than 2700001 & 300001 neither script will work.

First modify your rpt.conf file to match the above changes. Then upload the two additional scripts linked below, these 2 scripts need to be saved to the /usr/local/sbin/ and once there will need to be set to executable and set by typing the following four commands:

sudo -s

chmod u+x /usr/local/sbin/tail45minutes.sh

chmod u+x /usr/local/sbin/tail5minutes.sh

sudo asterisk -rx “rpt reload”

Files linked:
tail45minutes.sh

tail5minutes.sh

All should be set after that.

Jae KG5EBI

···

On Sat, Jul 6, 2019 at 5:31 PM Joshua Nulton kg5ebi@gmail.com wrote:

Thanks, :slight_smile: I didn’t want to email or call without confirmation that those were still valid points of contact or that he was available. But have since made contact.

I explained to him over the phone that my approach would be to write a couple custom scripts to modify the variable as needed and those scripts could be run via remote DTMF control or rotated on a fixed schedule. I will post the solution here as well, should anyone else want to have a copy.