[App_rpt-users] Kerchunk Police

David Shaw shawpbx at gmail.com
Sat Sep 1 04:27:07 UTC 2018


Thanks, Thats Cool


--
Thanks, David

"Laws that forbid the carrying of arms...disarm only those who are neither
inclined nor determined to commit crimes. Such laws make things worse for
the assaulted and better for the assailants; they serve rather to encourage
than prevent homicides, for an unarmed man may be attacked with greater
confidence than an armed one."
Thomas Jefferson


On Fri, Aug 31, 2018 at 6:08 PM Skyler F <electricity440 at gmail.com> wrote:

> 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
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20180831/72066d59/attachment.html>


More information about the App_rpt-users mailing list