[App_rpt-users] Kerchunk Police

Skyler F electricity440 at gmail.com
Sat Sep 1 01:07:59 UTC 2018


Just was playing with some scripting for fun. Not very practical and there
are many problems, but thought I would share, maybe someone can do
something more creative.

Video
https://youtu.be/XvoDmcPuVVw


CODE
Rpt.conf

[events]

/etc/asterisk/scripts/kerchunk.sh = s|t|RPT_RXKEYED

/etc/asterisk/scripts/unkey.sh = s|f|RPT_RXKEYED


Kerchunk.sh

#!/bin/bash

*touch* /etc/asterisk/scripts/keyed

sleep 1.3


if [ ! -f /etc/asterisk/scripts/keyed ]; then

   *echo* *"File $FILE exists."*

   asterisk -rx *"rpt localplay 45499 /etc/asterisk/sounds/kerchunk"*

fi


exit 0


unkey.sh

#!/bin/bash

*rm* /etc/asterisk/scripts/keyed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20180831/c6b6a9b9/attachment.html>


More information about the App_rpt-users mailing list