<div dir="ltr">Thanks, Thats Cool<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><br></div><div>--</div><div><span style="font-size:12.8px">Thanks, David</span><br></div></div><div dir="ltr"><br></div><div dir="ltr"><span style="color:rgb(68,68,68);font-family:Georgia,"Times New Roman",Times,serif;font-size:12px">"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."</span><br></div><div dir="ltr">Thomas Jefferson<span style="color:rgb(68,68,68);font-family:Georgia,"Times New Roman",Times,serif;font-size:12px"><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 31, 2018 at 6:08 PM Skyler F <<a href="mailto:electricity440@gmail.com">electricity440@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://youtu.be/XvoDmcPuVVw</a><br></div><div><br></div><div><br></div><div>CODE</div><div>Rpt.conf</div><div>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">[events]</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">/etc/asterisk/scripts/kerchunk.sh = s|t|RPT_RXKEYED</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">#!/bin/bash</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)"><b>touch</b></span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> /etc/asterisk/scripts/keyed</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">sleep 1.3</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">if</span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="m_-6127807833273656345gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">[</span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="m_-6127807833273656345gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">!</span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="m_-6127807833273656345gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">-f</span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> /etc/asterisk/scripts/keyed </span><span class="m_-6127807833273656345gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">];</span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="m_-6127807833273656345gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,189,38)">then</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="m_-6127807833273656345gmail-Apple-converted-space"> </span></span><span class="m_-6127807833273656345gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)"><b>echo</b></span><span class="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>"File $FILE exists."</b></span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="m_-6127807833273656345gmail-Apple-converted-space"> </span>asterisk -rx </span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>"rpt localplay 45499 /etc/asterisk/sounds/kerchunk"</b></span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">fi</span></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">exit</span><span class="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> 0</span></p><p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><br></span></p><p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">unkey.sh</span></p><p class="m_-6127807833273656345gmail-p1" style="margin:0px;font:21px Menlo;color:rgb(52,187,199)"><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures">#!/bin/bash</span></p><p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">
</span></p><p class="m_-6127807833273656345gmail-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="m_-6127807833273656345gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)"><b>rm</b></span><span class="m_-6127807833273656345gmail-s1" style="font-variant-ligatures:no-common-ligatures"> /etc/asterisk/scripts/keyed</span></p></div></div></div>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org" target="_blank">App_rpt-users@lists.allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>
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. <br>
</blockquote></div>