<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Stephen,<br>
    Here is what I have:<br>
    <br>
    In rpt.conf:<br>
    966 = cmd,/tmp/ssz.sh<br>
    <br>
    in /tmp/ssz.sh:<br>
    #! /bin/bash<br>
    echo "Hello World" >/tmp/ssz.txt<br>
    <br>
    from the asterisk cli:<br>
    *CLI> rpt debug level 0<br>
    app_rpt Debugging disabled<br>
    *CLI> rpt fun 2152 *966<br>
    *CLI> [Jan 22 19:29:53] NOTICE[3303]: app_rpt.c:4008
    function_cmd: cmd param = /tmp/ssz.sh, digitbuf = <br>
    <br>
    script ran<br>
    <br>
    <br>
    Steve<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/22/2016 06:22 PM, Stephen - K1LNX
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABbxpd_nog0U7yrZydWfEp39sauo1SeNkLQ20K-nPWXak7zdyA@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am trying to get a script to execute based on a
        DTMF sequence and it's not working for whatever reason. 
        <div><br>
        </div>
        <div>I put the following in rpt.conf under the functions
          stanza: </div>
        <div><br>
        </div>
        <div>
          <p class=""><span class="">[functions2376]</span></p>
          <p class="">(default functions removed for readability) </p>
          <p class="">; testing script functions<br>
          </p>
          <p class=""><span class="">123=cmd,/root/scripts/test.sh</span></p>
          <p class="">The script is nothing more than a simple shell
            script for testing right now, I validated it worked: </p>
          <p class=""><span class="">#!/bin/bash</span></p>
          <p class="">echo test1234 > test.out</p>
          <p class="">Permissions are set 777 on it to ensure it's able
            to be executed by anything, but when I go to the Asterisk
            console and execute: </p>
          <p class="">rpt fun 2376 *123</p>
          <p class="">The script does not execute. What is it I could be
            missing here if anything? </p>
          <p class="">tnx</p>
          <p class="">Stephen</p>
          <p class="">K1LNX</p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
App_rpt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a>
<a class="moz-txt-link-freetext" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a>

To unsubscribe from this list please visit <a class="moz-txt-link-freetext" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.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"
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. </pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
"Anything is possible if you don't know what you are talking about."
1st Law of Logic</pre>
  </body>
</html>