<div dir="ltr"><div dir="ltr"><div>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. </div><div><br></div><div>Video</div><div><a href="https://youtu.be/XvoDmcPuVVw">https://youtu.be/XvoDmcPuVVw</a><br></div><div><br></div><div><br></div><div>CODE</div><div>Rpt.conf</div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">[events]</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">/etc/asterisk/scripts/kerchunk.sh = s|t|RPT_RXKEYED</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">/etc/asterisk/scripts/unkey.sh = s|f|RPT_RXKEYED</span></p></div><div><br></div><div><br></div><div>Kerchunk.sh</div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(52,187,199)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">#!/bin/bash</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)"><b>touch</b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> /etc/asterisk/scripts/keyed</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">sleep 1.3</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;min-height:24px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">if</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">[</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">!</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">-f</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> /etc/asterisk/scripts/keyed </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">];</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">then</span></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">   </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)"><b>echo</b></span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>"File $FILE exists."</b></span></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(175,173,36)"><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">   </span>asterisk -rx </span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>"rpt localplay 45499 /etc/asterisk/sounds/kerchunk"</b></span></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">fi</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;min-height:24px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">exit</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> 0</span></p><p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><br></span></p><p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">unkey.sh</span></p><p class="gmail-p1" style="margin:0px;font:21px Menlo;color:rgb(52,187,199)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">#!/bin/bash</span></p><p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">






</span></p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:21px;line-height:normal;font-family:Menlo"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)"><b>rm</b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> /etc/asterisk/scripts/keyed</span></p></div></div></div>