<div dir="ltr">Thanks to everyone for the help. All the inputs work great.<div><br></div><div>David</div></div><div class="gmail_extra"><br clear="all"><div><div 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 class="gmail_quote">On Wed, Jan 17, 2018 at 5:27 PM, Bryan D. Boyle <span dir="ltr"><<a href="mailto:bdboyle@bdboyle.com" target="_blank">bdboyle@bdboyle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span class="">
<div class="m_6760097320700636420moz-cite-prefix">On 1/17/2018 6:41 PM, David Shaw wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello Everyone, Does anyone know how to use DTMF
tones to run a command, to execute external script?<br clear="all">
<div>
<div class="m_6760097320700636420gmail_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>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br></span>
1. write the bash script or program (you can execute programs too; I
suggest creating a subdirectory in the /etc/asterisk
directory...doug calls it 'local', I usually call it 'scripts'),
debug it, make sure to 'chmod 755 scriptname'.<br>
2. Edit /etc/asterisk/rpt.conf.<br>
3. Go to the [functionsxxxx] stanza for the node you're working
with. Of, if you have just one function stanza, go there.<br>
4. Insert a line, for instance:<br>
85=cmd,/fully/qualified/path/<wbr>to/script<br>
5. save rpt.conf, restart asterisk.<br>
<br>
Now, when you key up the node, and use *85, that script will run.<br>
<br>
It should be noted that functions are decoded using the least number
of digits. So, if you have:<br>
8=cmd,somescript<br>
81=cmd,somescript<br>
811=cmd,somescript<br>
<br>
which script gets executed is left as an exercise. <br>
<br>
Really very simple and flexible. <br>
<br>
BB<br>
wb0yle/w2fuv<br>
<br>
<br>
</div>
<br>______________________________<wbr>_________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org">App_rpt-users@lists.<wbr>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/<wbr>cgi-bin/mailman/listinfo/app_<wbr>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/<wbr>cgi-bin/mailman/listinfo/app_<wbr>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><br></div>